*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: #f9fafb;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ── Tokens from design system light mode ── */
:root {
  --primary:   #2d4a65;   /* secondary navy — main brand CTA */
  --blue:      #2563eb;   /* blue-600 — highlights, links */
  --blue-light:#eff6ff;   /* blue-50 */
  --cyan:      #0891b2;   /* cyan-600 */
  --cyan-light:#ecfeff;
  --success:   #10b981;
  --success-bg:#d1fae5;
  --warning:   #f59e0b;
  --error:     #ef4444;
  --bg:        #ffffff;
  --bg-subtle: #f9fafb;
  --bg-muted:  #f3f4f6;
  --border:    #e5e7eb;
  --border-strong: #d1d5db;
  --fg:        #111827;
  --fg-2:      #374151;
  --fg-muted:  #5b6471;   /* darkened from #6b7280 for AA contrast on white */
  --fg-subtle: #6b7280;   /* darkened from #9ca3af for small-text contrast */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.05);
}

/* ── Layout ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ── Nav ── */
/* Tylko górny pasek nawigacji (bezpośrednie dziecko body) jest fixed.
   `body > nav` zamiast gołego `nav`, żeby NIE łapać zagnieżdżonych <nav>
   jak breadcrumb (.breadcrumb) czy stopka quizu (.quiz-foot) — inaczej
   przyklejają się do góry strony i nachodzą na navbar. */
body > nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.nav-inner { height: 60px; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 2px; }
/* logo_medium.png ma duży wewnętrzny margines wokół znaku — kadrujemy go
   maską: pudełko 38×48 (węższe niż wysokie, bo dymek jest węższy niż wysoki)
   z overflow:hidden, a obraz skalujemy ~2.6×, więc wycentrowany znak wypełnia
   pudełko, a białe pola dookoła są przycięte. Węższe pudełko + mały gap
   sprawiają, że napis „LingoDesk" przylega ciasno do znaku. */
.nav-logo-mark { width: 38px; height: 44px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
/* Znak w PNG siedzi minimalnie powyżej środka swojego płótna — po przycięciu
   wygląda jakby unosił się nad napisem. translateY zsuwa go optycznie na linię
   tekstu „LingoDesk". */
.nav-logo-mark img { width: 330%; height: auto; display: block; transform: translateY(2px); }
.nav-logo-name { color: var(--primary); font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a { color: var(--fg-muted); font-size: 13px; font-weight: 600; transition: color .14s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--primary); color: white;
  padding: 8px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 800;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(45,74,101,.2);
}
.nav-cta:hover { background: #243d53; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(45,74,101,.28); }

/* ── Hero ── */
.hero {
  padding: 136px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(37,99,235,.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(8,145,178,.04) 0%, transparent 55%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-light); color: #1d4ed8; border: 1px solid #bfdbfe;
  border-radius: 9999px; padding: 5px 14px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 28px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 {
  font-size: clamp(46px, 7vw, 78px); font-weight: 900;
  color: var(--fg); letter-spacing: -0.04em; line-height: 1.0;
  /* Zero — slogan (.hero-slogan) jest bezpośrednio pod nazwą i razem tworzą
     wizualnie jeden dwuwierszowy nagłówek. Odstęp od treści niżej daje
     margines sloganu. */
  margin-bottom: 0;
}
/* Slogan — wizualnie druga linia nagłówka, ale MUSI być osobnym elementem
   poza <h1> (patrz komentarz przy <h1> w index.html: weryfikacja marki
   Google porównuje tekstową treść nagłówka z polem „App name", więc <h1>
   zawiera wyłącznie „LingoDesk"). Typografia 1:1 z .hero h1, żeby zmiana
   struktury była niewidoczna dla użytkownika. */
.hero-slogan {
  font-size: clamp(46px, 7vw, 78px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.0;
  margin: 0 0 20px;
}
.hero h1 .accent,
.hero-slogan .accent { color: var(--blue); }
.hero-sub {
  font-size: 18px; color: var(--fg-muted);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.65;
}
.hero-btns {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 64px; flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary); color: white;
  padding: 14px 30px; border-radius: 10px; font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(45,74,101,.22);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(45,74,101,.28); background: #243d53; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg); color: var(--fg-2);
  padding: 14px 30px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 15px; font-weight: 700;
  transition: border-color .15s, box-shadow .15s;
}
.btn-secondary:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

/* ── App mockup ── */
/* Hint „kliknij moduł" — pigułka nad mockupem. Domyślnie ukryta (opacity 0 +
   lekki zjazd w górę); klasa .show (dodawana przez JS gdy mockup w widoku)
   robi fade-in + bounce. Klasa .hidden (po pierwszym kliknięciu) chowa ją
   na stałe. Tylko desktop — na mobile display:none. */
.mock-hint {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 auto 14px; padding: 7px 16px;
  background: var(--blue-light); color: #1d4ed8; border: 1px solid #bfdbfe;
  border-radius: 9999px; font-size: 12px; font-weight: 800;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none; /* czysto informacyjna, nie przechwytuje klików */
}
.mock-hint.show { opacity: 1; transform: translateY(0); animation: hintBounce 2.6s ease-in-out 0.4s 2; }
.mock-hint.hidden { opacity: 0; transform: translateY(-4px); }
.mock-hint-spark { font-size: 13px; }
@keyframes hintBounce { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-3px); } }

.mockup-wrap {
  max-width: 960px; margin: 0 auto;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.02);
}
.mock-bar {
  background: #f8fafc; border-bottom: 1px solid var(--border);
  padding: 10px 16px; display: flex; align-items: center; gap: 7px;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-url {
  flex: 1; max-width: 280px; background: white; border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 12px; font-size: 11px; color: var(--fg-muted);
  font-family: monospace; margin: 0 12px;
}
/* Wysokość dobrana tak, by zmieścił się realny układ ekranu: nagłówek strony
   z akcjami + zakładki + karta filtrów + tabela (tak jak w aplikacji).
   `text-align: left` zeruje wyśrodkowanie dziedziczone z sekcji hero — UI
   aplikacji jest wyrównane do lewej, więc bez tego resetu każdy tytuł,
   komórka tabeli i etykieta lądowały na środku. */
.mock-body { display: flex; height: 420px; text-align: left; }
.mock-sidebar {
  width: 196px; background: #1a2942; flex-shrink: 0;   /* dokładny navy sidebara aplikacji */
  display: flex; flex-direction: column; padding: 12px 8px;
}
.mock-logo-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
/* Logo w mockupie — ten sam crop-mask co nav/footer: PNG ma duży margines
   wokół znaku, więc bez kadrowania znak tonie w bieli. Pudełko 24×24 z
   overflow:hidden, obraz skalowany 330% wypełnia je wyciętym znakiem. */
.mock-logo-box { width: 26px; height: 26px; background: white; border-radius: 7px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mock-logo-box img { width: 330%; height: auto; display: block; transform: translateY(1px); }
/* Blok tekstu przy logo — nazwa organizacji nad domeną (jak w aplikacji). */
.mock-logo-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.mock-logo-org { color: white; font-size: 11px; font-weight: 900; letter-spacing: -.01em; }
.mock-logo-dom { color: rgba(255,255,255,.45); font-size: 8px; font-weight: 600; }
.mock-nav-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px;
  color: rgba(255,255,255,.55); font-size: 10.5px; font-weight: 500; margin-bottom: 1px;
  border-left: 2px solid transparent;
  cursor: pointer; transition: background .15s, color .15s; /* klikalne moduły mockupu */
}
/* Każda pozycja sidebara ma teraz własny widok — nie ma pozycji „martwych",
   więc wszystkie są klikalne (brak wariantu .mock-nav-static). */
.mock-nav-item:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.mock-nav-item:focus-visible { outline: 2px solid #60a5fa; outline-offset: -2px; }
.mock-nav-item.active { background: rgba(255,255,255,.12); color: white; border-left-color: #60a5fa; font-weight: 700; }
.mock-badge { margin-left: auto; background: #ef4444; color: white; border-radius: 9999px; font-size: 8px; font-weight: 800; padding: 1px 5px; }
.mock-group-label { font-size: 8px; font-weight: 800; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 0.1em; padding: 0 8px; margin: 8px 0 3px; }
.mock-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-subtle); }
.mock-topbar { height: 44px; background: white; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; flex-shrink: 0; }
/* Wyszukiwarka „Szukaj wszędzie…" + skrót Ctrl K — centralny element headera
   aplikacji (Command Palette). */
.mock-search { flex: 1; max-width: 300px; display: flex; align-items: center; gap: 6px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; }
.mock-search-ph { flex: 1; font-size: 9px; color: #9ca3af; font-weight: 500; }
.mock-kbd { font-size: 7px; font-weight: 700; color: #6b7280; background: white; border: 1px solid var(--border); border-radius: 4px; padding: 1px 4px; letter-spacing: .04em; }
.mock-user { display: flex; align-items: center; gap: 7px; }
.mock-user-av { width: 24px; height: 24px; border-radius: 50%; background: #e0e7ff; color: #3730a3; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; }
.mock-user-txt { display: flex; flex-direction: column; line-height: 1.2; }
.mock-user-name { font-size: 9.5px; font-weight: 800; color: #111827; }
.mock-user-role { font-size: 8px; color: var(--fg-subtle); font-weight: 600; }
.mock-user-sep { width: 1px; height: 18px; background: var(--border); margin: 0 2px; }
.mock-content { flex: 1; padding: 14px 16px; overflow: hidden; }
.mock-page-title { font-size: 14px; font-weight: 900; color: var(--fg); margin-bottom: 12px; letter-spacing: -0.02em; }

/* Nagłówek strony 1:1 z aplikacją: tytuł + podtytuł po lewej, akcje po prawej. */
.pg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pg-title { font-size: 17px; font-weight: 900; color: #0f172a; letter-spacing: -.03em; line-height: 1.1; }
.pg-sub { font-size: 9px; color: var(--fg-muted); font-weight: 600; margin-top: 2px; }
.pg-actions { display: flex; gap: 5px; flex-shrink: 0; }
.btn-ghost { display: inline-flex; align-items: center; gap: 4px; background: white; border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px; font-size: 8.5px; font-weight: 700; color: #374151; white-space: nowrap; }
.btn-ghost svg { width: 10px; height: 10px; }
.btn-ghost.btn-on { background: var(--bg-muted); border-color: var(--border-strong); }
.btn-dark { display: inline-flex; align-items: center; gap: 4px; background: #1a2942; color: white; border-radius: 7px; padding: 5px 9px; font-size: 8.5px; font-weight: 800; white-space: nowrap; }

/* Zakładki (Aktywni / Archiwum / …) — podkreślenie aktywnej, licznik w pigułce. */
.tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.tab { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; color: var(--fg-muted); padding: 0 1px 7px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: #1a2942; border-bottom-color: #1a2942; font-weight: 800; }
.tab-c { background: var(--bg-muted); border-radius: 9999px; font-size: 7.5px; font-weight: 800; padding: 1px 5px; color: #374151; }

/* Karta filtrów — szukajka + Filtry/Sortuj/Eksportuj + chipy pod spodem. */
.filter-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.filter-row { display: flex; gap: 5px; align-items: center; margin-bottom: 7px; }
.fsearch { flex: 1; display: flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px; font-size: 8.5px; color: #9ca3af; font-weight: 500; overflow: hidden; white-space: nowrap; }
.fsearch svg { width: 10px; height: 10px; flex-shrink: 0; }
.fbtn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px; font-size: 8.5px; font-weight: 700; color: #374151; background: white; white-space: nowrap; }
.fbtn svg { width: 10px; height: 10px; }

/* Nagłówek powitalny Dashboardu. */
.dash-date { font-size: 8px; font-weight: 800; color: #2563eb; text-transform: uppercase; letter-spacing: .1em; }
.dash-hello { font-size: 19px; font-weight: 900; color: #0f172a; letter-spacing: -.03em; line-height: 1.15; margin-top: 2px; }
.dash-sub { font-size: 9px; color: var(--fg-muted); font-weight: 600; margin: 2px 0 10px; }
.dash-range { display: flex; align-items: center; gap: 5px; background: white; border: 1px solid var(--border); border-radius: 10px; padding: 6px 9px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.dash-range-l { font-size: 8.5px; font-weight: 700; color: var(--fg-muted); }
.seg { font-size: 8.5px; font-weight: 700; color: #374151; border-radius: 6px; padding: 3px 8px; }
.seg.active { background: #1a2942; color: white; font-weight: 800; }
.dash-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; box-shadow: var(--shadow-sm); }
.dash-card-t { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800; color: #111827; margin-bottom: 7px; }
.dash-card-t svg { width: 11px; height: 11px; }
/* Miniatura wykresu — słupki jako proxy dla Recharts z aplikacji. */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.spark span { flex: 1; background: #10b981; border-radius: 2px 2px 0 0; opacity: .85; }
.spark.blue span { background: #2563eb; }

.kpi-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.kpi { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 10px 11px; box-shadow: var(--shadow-sm); }
.kpi.urgent { background: #fef2f2; border-color: #fecaca; }
/* Nagłówek kafelka — etykieta po lewej, kolorowy kwadracik z ikoną po prawej
   (dokładnie jak KPI na DashboardPage). */
.kpi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.kpi-ico { width: 18px; height: 18px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi-ico svg { width: 11px; height: 11px; }
.kpi-label { font-size: 8px; font-weight: 800; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: .07em; }
.kpi.urgent .kpi-label { color: #dc2626; }
.kpi-val { font-size: 20px; font-weight: 900; color: var(--fg); letter-spacing: -0.03em; line-height: 1; }
.kpi.urgent .kpi-val { color: #991b1b; }
.kpi-sub { font-size: 8px; font-weight: 700; margin-top: 4px; opacity: .8; }
.mock-table { background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.mock-thead { background: #f8fafc; display: flex; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--border); gap: 10px; }
.mock-th { font-size: 8px; font-weight: 800; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: .07em; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #f1f5f9; }
.mock-row:last-child { border-bottom: none; }
/* Kolumna zaznaczania (bulk actions) — jest w każdej tabeli aplikacji. */
.mock-cbx { width: 12px; flex: 0 0 12px; display: flex; align-items: center; }
.cbx { width: 9px; height: 9px; border: 1.5px solid #cbd5e1; border-radius: 3px; display: block; }
/* Stopka paginacji tabeli. */
.mock-foot { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; border-top: 1px solid var(--border); background: #fcfdfe; font-size: 8.5px; color: var(--fg-muted); font-weight: 600; }
.mock-foot-r { display: inline-flex; align-items: center; gap: 5px; }
.pg-nav { font-size: 8.5px; font-weight: 700; color: #374151; }
/* Stawki lektora (indywidualna / grupowa) — dwie linie jak w TeachersPage. */
.rate { font-size: 10px; font-weight: 800; color: #111827; line-height: 1.25; }
.rate span { font-size: 7.5px; font-weight: 600; color: var(--fg-subtle); }
.rate-2 { font-weight: 700; color: #374151; }
.act { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--fg-muted); font-weight: 700; }
.price { font-size: 10px; font-weight: 800; color: #111827; }
.price span { font-size: 7.5px; font-weight: 600; color: var(--fg-subtle); }
/* Niebieski baner informacyjny (np. okno „najbliższe 2 tygodnie" w Grafiku). */
.info-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--blue-light); border: 1px solid #bfdbfe; border-radius: 9px; padding: 7px 10px; margin-bottom: 9px; font-size: 8.5px; color: #1e40af; font-weight: 600; }
.mock-av { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; }
.chip { border-radius: 9999px; padding: 1px 6px; font-size: 8px; font-weight: 800; }
/* Ikony sidebara mockupu — inline SVG (lucide). Dziedziczą `currentColor`,
   więc aktywna pozycja (biała) i nieaktywne (półprzezroczyste) kolorują się
   jak w aplikacji. */
.mock-nav-ico { width: 13px; height: 13px; flex-shrink: 0; }
.mr-name { font-size: 10px; font-weight: 700; color: #111827; }
.mr-sub { font-size: 9px; color: #9ca3af; }

/* Przełączanie widoków modułów — tylko aktywny .mock-view jest widoczny.
   Lekki crossfade (opacity) przy zmianie; bez ruchu layoutu. */
.mock-view { display: none; animation: mockFade .45s ease; }
.mock-view.active { display: block; }
@keyframes mockFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Alerty — w aplikacji alert to KARTA z kolorową ramką (wg typu), nagłówkiem
   z badge priorytetu i akcją „Zakończ", a pod spodem zagnieżdżona lista
   dotkniętych lekcji/uczniów. Nie jest to cienki wiersz. */
.alert-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; margin-bottom: 7px; box-shadow: var(--shadow-sm); }
.alert-card.crit { border-color: #fecaca; background: #fffbfb; }
.alert-card.warn { border-color: #fed7aa; background: #fffdf8; }
.alert-card-head { display: flex; align-items: flex-start; gap: 8px; }
.alert-t { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; color: #111827; margin-bottom: 2px; }
.alert-ico { width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; }
/* Zagnieżdżona pozycja alertu (lekcja / uczeń) */
.alert-sub { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; background: white; border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; margin-top: 6px; }
.alert-sub-t { flex: 1 1 100%; font-size: 9.5px; font-weight: 700; color: #111827; }
.alert-sub-m { font-size: 8.5px; color: var(--fg-subtle); font-weight: 600; }
.alert-sub-d { margin-left: auto; font-size: 8.5px; color: var(--fg-muted); font-weight: 600; }

/* Wspólne elementy widoków mockupu */
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.btn-mini { font-size: 9px; font-weight: 800; color: white; background: var(--primary); border-radius: 7px; padding: 5px 9px; white-space: nowrap; }
.chip-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.fchip { font-size: 8.5px; font-weight: 800; border-radius: 9999px; padding: 3px 9px; background: #f3f4f6; color: #374151; }
.fchip.active { background: var(--primary); color: white; }
/* Pigułka salda (StudentBalanceBadge) — borderowana pill jak w aplikacji */
.bpill { display: inline-block; font-size: 8.5px; font-weight: 800; border: 1px solid; border-radius: 9999px; padding: 2px 7px; white-space: nowrap; }
/* Przycisk „Rozlicz" — outline primary jak w SettlementsTab */
.btn-rozlicz { display: inline-block; font-size: 9px; font-weight: 800; color: var(--primary); border: 1px solid rgba(45,74,101,.35); border-radius: 7px; padding: 3px 9px; }

/* Grafik — kalendarz TYGODNIOWY (react-big-calendar) jak w aplikacji:
   pasek narzędzi, kolumna godzin (gutter) + 7 kolumn dni, podświetlona
   kolumna „dziś" i czerwona linia bieżącej godziny. */
.cal-card { background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cal-toolbar { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-bottom: 1px solid var(--border); }
.cal-today { font-size: 8.5px; font-weight: 800; color: #374151; border: 1px solid var(--border); border-radius: 7px; padding: 3px 8px; }
.cal-arrows { font-size: 11px; font-weight: 800; color: var(--fg-muted); letter-spacing: 3px; }
.cal-month { font-size: 11px; font-weight: 800; color: #111827; letter-spacing: -.01em; }
.cal-view { margin-left: auto; font-size: 8.5px; font-weight: 800; color: #374151; border: 1px solid var(--border); border-radius: 7px; padding: 3px 8px; }
/* Siatka: stała kolumna godzin + 7 równych kolumn dni. */
.cal-head, .cal-r { display: grid; grid-template-columns: 34px repeat(7, 1fr); }
.cal-head { border-bottom: 1px solid var(--border); background: #fcfdfe; }
.cal-day { font-size: 7.5px; font-weight: 800; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: 5px 2px; border-left: 1px solid #f1f5f9; }
.cal-day b { color: #111827; font-size: 9px; margin-left: 2px; }
.cal-day.is-today { background: #fefce8; }
/* Numer „dziś" w niebieskim kółku — dokładnie jak w kalendarzu aplikacji. */
.cal-today-n { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 50%; background: #2563eb; color: white !important; font-size: 8px; }
.cal-gut { font-size: 7.5px; font-weight: 700; color: var(--fg-subtle); text-align: right; padding: 2px 4px 0 0; }
.cal-r { border-bottom: 1px solid #f6f8fa; min-height: 30px; }
.cal-r:last-child { border-bottom: none; }
.cal-c { position: relative; border-left: 1px solid #f1f5f9; padding: 1px; }
.cal-c.is-today { background: #fefce8; }
/* Kafelek lekcji — kolory z STATUS_COLORS_LIGHT, 2px lewy akcent. */
.ev { display: block; font-style: normal; font-size: 7.5px; font-weight: 600; line-height: 1.3; border-radius: 3px; border-left: 2px solid; padding: 3px 4px; overflow: hidden; }
.ev b { font-size: 8px; font-weight: 800; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-green { background: #DCFCE7; border-left-color: #22C55E; color: #166534; }
.ev-grey  { background: #F3F4F6; border-left-color: #6B7280; color: #374151; }
.ev-amber { background: #FEF3C7; border-left-color: #F59E0B; color: #92400E; }
/* Czerwona linia „teraz" z kropką po lewej. */
.cal-now { position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: #ef4444; }
.cal-now::before { content: ''; position: absolute; left: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }

/* ── Materiały ── nagłówki sekcji + wall „Przebieg lekcji" */
.sec-head { font-size: 8.5px; font-weight: 800; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.sec-c { color: var(--fg-subtle); font-weight: 700; }
/* Odznaka typu pliku — kolor wg rozszerzenia (jak w liście materiałów). */
.ftype { flex: 0 0 26px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 6.5px; font-weight: 900; letter-spacing: .04em; }
.ftype-pdf { background: #fee2e2; color: #b91c1c; }
.ftype-doc { background: #dbeafe; color: #1e40af; }
/* Karta lekcji w wallu */
.wall-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; box-shadow: var(--shadow-sm); }
.wall-head { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid #f1f5f9; margin-bottom: 7px; }
.wall-t { flex: 1; font-size: 10px; font-weight: 800; color: #111827; }
.wall-d { font-size: 8.5px; color: var(--fg-muted); font-weight: 600; }
.wall-lbl { font-size: 7.5px; font-weight: 800; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.wall-txt { font-size: 9px; color: #374151; font-weight: 600; margin-bottom: 7px; }
.wall-hw { background: #fffdf8; border: 1px solid #fed7aa; border-radius: 8px; padding: 7px 8px; }
.wall-links { display: flex; gap: 5px; margin-top: 4px; }

/* ── Nagrania ── pasek zajętości + wiersz nagrania */
.stor-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.stor-row { display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.stor-v { color: var(--fg-muted); font-weight: 800; }
.rec-ico { flex: 0 0 24px; height: 24px; border-radius: 7px; background: #ede9fe; color: #6d28d9; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.rec-wait { background: #fef3c7; color: #92400e; }
.btn-play { color: #6d28d9; border-color: #ddd6fe; background: #f5f3ff; }

/* ── Sale ── drzewo: lokalizacja + zagnieżdżone sale */
.loc-card { background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.loc-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #f1f5f9; }
.loc-ico { font-size: 13px; }
.loc-chev { color: var(--fg-subtle); font-size: 11px; font-weight: 800; }
.room { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 30px; border-bottom: 1px solid #f6f8fa; }
.room:last-child { border-bottom: none; }
.room-n { flex: 1.4; font-size: 9.5px; font-weight: 700; color: #111827; }
.room-m { flex: .8; font-size: 8.5px; color: var(--fg-muted); font-weight: 700; }
.room-a { flex: 1.8; font-size: 8.5px; color: var(--fg-subtle); }

/* ── Dłużnicy ── ikona przy tytule, kwota, badge dni zaległości */
.dbt-title { display: flex; align-items: center; gap: 8px; }
.dbt-ico { width: 24px; height: 24px; border-radius: 8px; background: #fee2e2; color: #dc2626; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; flex-shrink: 0; }
/* Czerwony lewy akcent — dłużnik „krzyczy" na liście. */
.dbt-row { border-left: 3px solid #ef4444; }
.dbt-amt { font-size: 11px; font-weight: 900; color: #b91c1c; letter-spacing: -.02em; }
.btn-warn { display: inline-flex; align-items: center; gap: 4px; background: #fffbeb; border: 1px solid #fde68a; color: #b45309; border-radius: 7px; padding: 4px 8px; font-size: 8.5px; font-weight: 800; white-space: nowrap; }
.dbt-days { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: #fee2e2; border: 1px solid #fecaca; border-radius: 8px; padding: 3px 8px; font-size: 7px; font-weight: 700; color: #b91c1c; line-height: 1.2; }
.dbt-days b { font-size: 11px; font-weight: 900; }

/* Kursy (tabela) — badge typu/poziomu + chip trybu + pasek uczestników */
.cc-badges { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.cc-mode { font-size: 8px; font-weight: 700; color: var(--fg-muted); }
.prog { height: 5px; border-radius: 9999px; background: #e5e7eb; overflow: hidden; }
.prog span { display: block; height: 100%; border-radius: 9999px; }
.prog-l { font-size: 8.5px; font-weight: 800; color: #374151; margin-top: 2px; }


/* Nagrania */

/* ── Stats ── */
.stats {
  display: flex; justify-content: center; gap: 52px;
  margin-top: 56px; padding-bottom: 8px; flex-wrap: wrap;
}
.stat-num { font-size: 30px; font-weight: 900; color: var(--fg); letter-spacing: -0.03em; }
.stat-label { font-size: 10px; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-top: 4px; }

/* ── Section base ── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-subtle); }
.section-accent { background: var(--primary); }
.section-header { text-align: center; margin-bottom: 52px; }
.eyebrow { font-size: 11px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.eyebrow-green { color: #059669; }
.eyebrow-navy  { color: #93c5fd; }
h2.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 900; color: var(--fg); letter-spacing: -0.03em; line-height: 1.1; }
h2.section-title.on-primary { color: white; }
.section-sub { font-size: 16px; color: var(--fg-muted); margin-top: 10px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.section-sub.on-primary { color: rgba(255,255,255,.6); }

/* ── Bento cards ── */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; flex-shrink: 0; }
.card-eyebrow { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.card h3 { font-size: 18px; font-weight: 800; color: var(--fg); margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 13px; color: var(--fg-muted); line-height: 1.65; }
.tag { font-size: 11px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: 9999px; padding: 3px 10px; color: var(--fg-muted); font-weight: 600; }
.bento { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.bento-wide { grid-column: span 2; }

/* Payment rows */
.pay-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; margin-bottom: 6px; }
.pay-row:last-child { margin-bottom: 0; }

/* ── Integration cards ── */
.int-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.int-card {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.int-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); border-color: var(--border-strong); }
.int-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.int-badge { display: inline-flex; align-items: center; gap: 5px; background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 9999px; padding: 2px 9px; font-size: 10px; font-weight: 800; }
.int-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--fg-muted); margin-bottom: 6px; }
.int-check span:first-child { color: #059669; font-weight: 700; flex-shrink: 0; }

/* ── Import steps ── */
.step-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.step-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-sm); }
.step-num { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: white; font-size: 14px; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-card h3 { font-size: 17px; font-weight: 800; color: var(--fg); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 16px; }
.import-row { display: flex; align-items: center; gap: 8px; font-size: 11px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 7px; padding: 7px 10px; margin-bottom: 5px; }
.import-arrow { color: var(--blue); font-weight: 900; font-size: 12px; }
.import-val { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; border-radius: 5px; padding: 2px 7px; font-weight: 800; font-size: 10px; }

/* ── Roles ── */
.role-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: white; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.role-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.role-name { font-size: 13px; font-weight: 800; color: var(--fg); width: 120px; }
.role-desc { font-size: 12px; color: var(--fg-muted); }

/* ── Recordings ── */
.rec-player { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.rec-bar { background: var(--bg-muted); border-bottom: 1px solid var(--border); padding: 8px 14px; display: flex; align-items: center; gap: 8px; }
.rec-controls { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.play-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(45,74,101,.3); }
.progress { flex: 1; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; width: 38%; background: var(--primary); border-radius: 2px; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1.06fr 1fr; gap: 16px; align-items: start; }
.plan { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); }
.plan.featured { background: var(--primary); border-color: transparent; box-shadow: 0 24px 48px rgba(45,74,101,.24); }
.plan-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); margin-bottom: 16px; }
.plan-label.d { color: rgba(255,255,255,.45); }
.plan-price { font-size: 38px; font-weight: 900; color: var(--fg); letter-spacing: -0.03em; line-height: 1; }
.plan-price.d { color: white; }
.plan-period { font-size: 14px; font-weight: 400; }
.plan-sub { font-size: 12px; color: var(--fg-muted); margin: 6px 0 20px; }
.plan-sub.d { color: rgba(255,255,255,.4); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.plan-features li { font-size: 13px; display: flex; align-items: flex-start; gap: 8px; color: var(--fg-2); }
.plan-features li.d { color: rgba(255,255,255,.8); }
.plan-features .ok { color: var(--blue); font-weight: 700; }
.plan-features .ok-d { color: #6ee7b7; font-weight: 700; }
.plan-features .no { color: var(--fg-subtle); }
.plan-btn { display: block; padding: 12px; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 800; border: 1.5px solid var(--border); color: var(--fg); background: var(--bg-subtle); transition: all .15s; }
.plan-btn:hover { border-color: var(--primary); color: var(--primary); }
.plan-btn.d { background: white; color: var(--primary); border-color: transparent; }
.plan-btn.d:hover { background: #f0f4f8; }
.popular { display: inline-flex; align-items: center; background: #60a5fa; color: white; font-size: 9px; font-weight: 800; border-radius: 9999px; padding: 2px 8px; text-transform: uppercase; letter-spacing: .06em; margin-left: 8px; vertical-align: middle; }

/* ── Waitlist / CTA ── */
.waitlist-section { background: var(--primary); }
.waitlist-inner { max-width: 580px; margin: 0 auto; text-align: center; }
.waitlist-inner h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 900; color: white; letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.15; }
.waitlist-inner p { color: rgba(255,255,255,.6); font-size: 16px; margin-bottom: 28px; }
.wl-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.wl-input {
  flex: 1; padding: 12px 16px; border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px; background: rgba(255,255,255,.1); color: white;
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.wl-input::placeholder { color: rgba(255,255,255,.35); }
.wl-input:focus { border-color: rgba(255,255,255,.45); }
.wl-btn {
  padding: 12px 22px; background: white; color: var(--primary);
  border: none; border-radius: 10px; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.wl-btn:hover { background: #f0f4f8; transform: translateY(-1px); }
.wl-btn:disabled { opacity: .6; cursor: default; transform: none; }
.wl-note { font-size: 12px; color: rgba(255,255,255,.3); margin-top: 14px; }
.wl-error { color: #fecaca; font-size: 13px; margin-top: 12px; display: none; }

/* ── FAQ ── */
.faq-wrap { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn { width:100%; background:none; border:none; padding:18px 0; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; font-family:inherit; text-align:left; }
.faq-q { font-size:15px; font-weight:700; color:var(--fg); }
.faq-chev { color:var(--fg-muted); font-size:18px; transition:transform .25s; flex-shrink:0; }
.faq-chev.open { transform:rotate(180deg); }
.faq-ans { max-height:0; overflow:hidden; transition:max-height .32s ease; }
.faq-ans.open { max-height:240px; }
.faq-ans p { padding-bottom:18px; font-size:14px; color:var(--fg-muted); line-height:1.7; }

/* ── Footer ── */
footer { background: #1f3147; padding: 48px 0 0; }   /* markowy granat, jaśniejszy niż #0f172a — tekst czytelny */
/* 4 kolumny: brand + Produkt + Kontakt + Dokumenty (linki prawne wymagane
   przez weryfikację Google OAuth). */
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
/* Logo w stopce — biały kafelek z tą samą maską co nav (kadruje margines PNG,
   więc znak wypełnia pudełko zamiast tonąć w bieli). */
.footer-logo-mark { width: 36px; height: 36px; background: #fff; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo-mark img { width: 330%; height: auto; display: block; transform: translateY(1px); }
.footer-brand-name { color: white; font-weight: 900; font-size: 16px; }
.footer-tagline { font-size: 12px; color: #b8c4d4; max-width: 220px; line-height: 1.6; margin-top: 8px; }
.footer-col h4 { font-size: 11px; font-weight: 800; color: #8ea3bd; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: #cdd8e6; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-copy { font-size: 12px; color: #9fb0c6; }

/* ── Accessibility ── */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.waitlist-section :focus-visible { outline-color: #fff; }

/* ── Typewriter (slogan w hero) ──
   Slogan pisze się znak po znaku i zapętla. Nazwa „LingoDesk" NIE jest
   animowana — zostaje statyczna w <h1> dla weryfikacji marki Google. */
.typewriter { display:inline-block; min-height:1.1em; }
/* Kursor jak w terminalu; `currentColor` dziedziczy kolor akcentu. */
.tw-caret {
  display:inline-block; width:.06em; height:.92em;
  background:currentColor; margin-left:.06em; vertical-align:-.06em;
  animation:tw-blink 1s step-end infinite;
}
@keyframes tw-blink { 0%,100% { opacity:1 } 50% { opacity:0 } }
@media (prefers-reduced-motion: reduce) {
  /* Bez animacji: pełny slogan (jest w HTML) i żadnego migania. */
  .tw-caret { display:none; }
}

/* ── Reveal ── */
.reveal { opacity:0; transform:translateY(16px); transition:opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  html { scroll-behavior:auto; }
  .badge-dot, [style*="animation"] { animation: none !important; }
  .mock-hint.show { animation: none; } /* bez bounce; JS i tak nie pokazuje hintu przy braku auto-rotacji */
}

/* ── Moduły ── */
.mod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mod-card {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.mod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.mod-card.addon { border-color: #e9d5ff; background: linear-gradient(135deg,#faf5ff 0%,white 60%); }
.mod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mod-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.mod-pill { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: 9999px; padding: 3px 9px; white-space: nowrap; }
.mod-pill.base { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.mod-pill.paid { background: #f5f3ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.mod-card h3 { font-size: 16px; font-weight: 800; color: var(--fg); margin-bottom: 7px; letter-spacing: -0.01em; }
.mod-card p { font-size: 12.5px; color: var(--fg-muted); line-height: 1.6; flex: 1; }
.mod-card ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.mod-card li { font-size: 11.5px; color: var(--fg-2); display: flex; gap: 6px; align-items: flex-start; }
.mod-card li span { color: #059669; font-weight: 800; flex-shrink: 0; }
.mod-note { display: flex; align-items: center; gap: 8px; background: var(--blue-light); border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 18px; margin-top: 18px; }
.mod-note p { font-size: 13px; color: #1d4ed8; line-height: 1.5; }
/* pasek pokrewnych funkcji w cenie */
.mod-bonus { margin-top: 18px; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; box-shadow: var(--shadow-sm); }
.mod-bonus-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.mod-bonus-head h3 { font-size: 16px; font-weight: 800; color: var(--fg); }
.mod-bonus-head .mod-pill { margin-left: auto; }
.mod-bonus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mod-bonus-item { display: flex; gap: 12px; align-items: flex-start; }
.mod-bonus-ico { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.mod-bonus-item h4 { font-size: 14px; font-weight: 800; color: var(--fg); margin-bottom: 3px; }
.mod-bonus-item p { font-size: 12.5px; color: var(--fg-muted); line-height: 1.55; }
.mod-bonus-more { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mod-bonus-more-label { font-size: 12px; font-weight: 700; color: var(--fg-muted); margin-right: 4px; }

/* ── Migration (Przejście na LingoDesk) ── */
.mig-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.mig-steps { display: flex; flex-direction: column; gap: 14px; }
.mig-step { display: flex; gap: 16px; align-items: flex-start; }
.mig-num { width: 38px; height: 38px; border-radius: 11px; background: var(--primary); color: white; font-size: 15px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 3px 10px rgba(45,74,101,.22); }
.mig-step h3 { font-size: 16px; font-weight: 800; color: var(--fg); margin-bottom: 4px; }
.mig-step p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }
.mig-panel { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-lg); }
.mig-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.mig-bullet { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.mig-bullet svg { flex-shrink: 0; margin-top: 1px; }
.mig-bullet p { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.mig-bullet strong { color: var(--fg); font-weight: 800; }

/* ── Pricing calculator ── */
.calc { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: stretch; }
.calc-panel { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-md); }
.calc-summary { background: linear-gradient(160deg,#243d53 0%,var(--primary) 100%); border-radius: 20px; padding: 30px; box-shadow: 0 24px 48px rgba(45,74,101,.24); color: white; display: flex; flex-direction: column; }
.calc-label { font-size: 13px; font-weight: 700; color: var(--fg-2); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc-count { background: var(--blue-light); color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 8px; font-weight: 900; font-size: 16px; padding: 5px 10px; width: 76px; text-align: center; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s; -moz-appearance: textfield; appearance: textfield; }
.calc-count::-webkit-outer-spin-button, .calc-count::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-count:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.calc-range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: var(--border); outline: none; margin: 6px 0 8px; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 2px 6px rgba(45,74,101,.4); border: 3px solid white; }
.calc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 2px 6px rgba(45,74,101,.4); border: 3px solid white; }
.calc-range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--fg-subtle); font-weight: 700; }
.calc-modules-head { font-size: 13px; font-weight: 800; color: var(--fg); margin: 26px 0 12px; }
.calc-mod-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.calc-mod { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.calc-mod-name { font-size: 13px; color: var(--fg-2); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.calc-mod-price { font-size: 11px; color: var(--fg-subtle); font-weight: 700; }
/* toggle switch */
.tog { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.tog input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.tog input:disabled { cursor: not-allowed; }
.tog-slider { position: absolute; inset: 0; background: var(--border-strong); border-radius: 9999px; transition: background .18s; pointer-events: none; }
.tog-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.tog input:checked + .tog-slider { background: var(--primary); }
.tog input:checked + .tog-slider::before { transform: translateX(18px); }
.tog input:disabled + .tog-slider { background: var(--primary); opacity: .55; cursor: not-allowed; }
.tog.locked .tog-slider { cursor: not-allowed; }
.calc-mod.base-mod .calc-mod-name { color: var(--fg-2); }
.lock-ico { color: var(--fg-subtle); }
.calc-summary h3 { font-size: 16px; font-weight: 800; color: white; margin-bottom: 18px; letter-spacing: -0.01em; }
.calc-line { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.7); padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-line strong { color: white; font-weight: 800; }
.calc-total { margin-top: auto; padding-top: 20px; }
.calc-total-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.calc-total-label { font-size: 15px; font-weight: 800; color: white; }
.calc-total-val { font-size: 34px; font-weight: 900; color: white; letter-spacing: -0.03em; line-height: 1; }
.calc-net { font-size: 12px; color: rgba(255,255,255,.5); text-align: right; margin-top: 4px; }
.calc-cta { display: block; text-align: center; background: white; color: var(--primary); font-weight: 800; font-size: 14px; padding: 13px; border-radius: 11px; margin-top: 20px; transition: background .15s, transform .15s; }
.calc-cta:hover { background: #f0f4f8; transform: translateY(-1px); }

/* ── Quiz ── */
.quiz-wrap { max-width: 720px; margin: 0 auto; }
.quiz-card { background: white; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.quiz-progress-track { height: 6px; background: var(--bg-muted); }
.quiz-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg,var(--blue),var(--cyan)); transition: width .35s ease; }
.quiz-body { padding: 40px 40px 32px; }
.quiz-step { font-size: 11px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.quiz-q { font-size: 24px; font-weight: 900; color: var(--fg); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.quiz-hint { font-size: 13px; color: var(--fg-muted); margin-bottom: 24px; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--bg-subtle); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 15px 18px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--fg-2);
  cursor: pointer; transition: border-color .15s, background .15s, transform .12s; width: 100%;
}
.quiz-opt:hover { border-color: var(--primary); background: white; transform: translateX(3px); }
.quiz-opt .opt-key { width: 26px; height: 26px; border-radius: 7px; background: white; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--fg-muted); flex-shrink: 0; }
.quiz-opt:hover .opt-key { background: var(--primary); color: white; border-color: var(--primary); }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.quiz-back { font-size: 13px; font-weight: 700; color: var(--fg-muted); background: none; border: none; cursor: pointer; font-family: inherit; padding: 6px 0; }
.quiz-back:disabled { opacity: 0; pointer-events: none; }
.quiz-skip { font-size: 12px; font-weight: 600; color: var(--fg-subtle); }
/* result */
.quiz-result { padding: 40px; text-align: center; }
.quiz-result-icon { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg,var(--blue),var(--cyan)); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 8px 20px rgba(37,99,235,.3); }
.quiz-result h3 { font-size: 26px; font-weight: 900; color: var(--fg); letter-spacing: -0.02em; margin-bottom: 10px; }
.quiz-result > p { font-size: 15px; color: var(--fg-muted); line-height: 1.6; max-width: 480px; margin: 0 auto 26px; }
.quiz-auto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; margin-bottom: 28px; }
.quiz-auto { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.quiz-auto-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.quiz-auto-top svg { flex-shrink: 0; }
.quiz-auto h4 { font-size: 13px; font-weight: 800; color: var(--fg); }
.quiz-auto p { font-size: 12px; color: var(--fg-muted); line-height: 1.5; }
.quiz-restart { font-size: 13px; font-weight: 700; color: var(--blue); background: none; border: none; cursor: pointer; font-family: inherit; margin-top: 4px; }

/* ── Contact form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-left h2 { font-size: clamp(28px,3.5vw,42px); font-weight: 900; color: white; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.contact-left > p { font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.65; margin-bottom: 28px; }
.contact-bullet { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-bullet-ico { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-bullet h4 { font-size: 14px; font-weight: 800; color: white; margin-bottom: 2px; }
.contact-bullet p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; }
.contact-card { background: white; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-xl); }
.contact-card h3 { font-size: 20px; font-weight: 900; color: var(--fg); letter-spacing: -0.02em; margin-bottom: 4px; }
.contact-card .sub { font-size: 13px; color: var(--fg-muted); margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--fg-2); margin-bottom: 6px; }
.field label .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--fg); background: white; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field textarea { resize: vertical; min-height: 84px; }
.contact-submit { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 11px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; transition: background .15s, transform .15s; }
.contact-submit:hover { background: #243d53; transform: translateY(-1px); }
.contact-submit:disabled { opacity: .6; cursor: default; transform: none; }
.contact-note { font-size: 11px; color: var(--fg-subtle); text-align: center; margin-top: 12px; line-height: 1.5; }
.contact-error { color: var(--error); font-size: 13px; margin-top: 12px; display: none; text-align: center; }
.contact-success { display: none; text-align: center; padding: 20px 0; }
.contact-success-ico { width: 52px; height: 52px; border-radius: 14px; background: #d1fae5; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.contact-success h3 { font-size: 20px; font-weight: 900; color: var(--fg); margin-bottom: 8px; }
.contact-success p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .mod-grid, .calc, .mig-grid, .quiz-auto-grid, .contact-grid, .mod-bonus-grid { grid-template-columns: 1fr; }
  .calc-mod-list { grid-template-columns: 1fr; }
  .mig-grid, .contact-grid { gap: 36px; }
  .quiz-body { padding: 28px 22px 24px; }
  .quiz-q { font-size: 21px; }
  .bento, .int-grid, .step-grid, .pricing-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .stats { gap: 28px; }
  .mock-sidebar { width: 160px; }
  nav .nav-links { display: none; }
  /* CTA „Wypróbuj za darmo" w nav był za duży i zawijał się do 2 linii na
     mobile — mniejszy padding/font + nowrap + flex-shrink:0 mieści go w
     jednej linii. Desktop bez zmian. */
  /* `margin-left:auto` spycha CTA do prawej krawędzi nav (logo zostaje po
     lewej) — wcześniej `gap:12px` trzymał go tuż przy logo. */
  .nav-cta { padding: 7px 14px; font-size: 12px; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
  .nav-inner { gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .wl-form { flex-direction: column; }

  /* ── Mobile-only poprawki (desktop bez zmian) ──────────────────────── */

  /* (2) Mockup dashboardu był ucinany — sidebar + tabela KPI nie mieszczą
     się na ~360px. Pozwalamy mockupowi przewijać się poziomo w obrębie
     własnej ramki (zamiast wystawać poza viewport i ucinać prawą stronę),
     a wewnętrzny `mock-body` dostaje minimalną szerokość, żeby się nie
     zgniatał. Ramka i border zostają, treść scrolluje się w środku. */
  .mockup-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mock-body { min-width: 560px; }
  /* Hint „kliknij moduł" tylko na desktopie — na mobile mockup się przewija
     i klik w małą pozycję jest mniej oczywisty; pigułka tylko by zaśmiecała. */
  .mock-hint { display: none; }

  /* (3) Sekcja „7 ról" — inline grid 1fr 1fr (na elemencie, więc media
     query musi go nadpisać `!important`) ściskał karty ról. Składamy do
     jednej kolumny i przestawiamy `role-row` na układ pionowy: nazwa nad
     opisem, pełna szerokość, bez sztywnego `width:120px` na nazwie. */
  .section-alt .reveal[style*="grid-template-columns:1fr 1fr"],
  .section-alt .reveal[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* role-row: dot w lewej kolumnie, nazwa nad opisem w prawej. Grid
     `auto 1fr` z dotem `grid-row: span 2` daje czysty układ bez sztywnych
     szerokości — desc nie tłoczy się obok nazwy na wąskim ekranie. */
  .role-row { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 3px; align-items: start; padding: 14px 16px; }
  .role-dot { grid-row: span 2; margin-top: 6px; }
  .role-name { width: auto; }

  /* (5) Sekcja kontaktu i stopka wyglądały „dosunięte do lewej" obok
     wyśrodkowanego hero — na mobile centrujemy ich treść, żeby układ był
     spójny. Bullety kontaktu i kolumny stopki ustawiamy na środek. */
  .contact-left { text-align: center; }
  .contact-left > div[style*="inline-flex"] { /* badge „30 dni" już inline, text-align centruje */ }
  .contact-bullet { justify-content: center; text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; }
  .footer-inner { text-align: center; justify-items: center; }
  .footer-tagline { max-width: 320px; margin-left: auto; margin-right: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ── Telefony (≤480px): dociśnięcie typografii ──────────────────────── */
@media (max-width: 480px) {
  /* (6) Badge „30 dni za darmo — bez karty, bez zobowiązań" zawijał się do
     dwóch linii. Mniejsza czcionka + ciaśniejszy letter-spacing mieści go
     w jednej linii. Dotyczy hero-badge oraz analogicznego inline-badge
     w sekcji kontaktu. */
  .hero-badge { font-size: 9.5px; letter-spacing: 0.04em; padding: 5px 12px; }

  /* (4) Miesięczny koszt brutto (np. „617,21 zł") zawijał „zł" do nowej
     linii. Mniejszy font mieści całość w jednej linii; `white-space:nowrap`
     gwarantuje brak złamania. */
  .calc-total-val { font-size: 26px; white-space: nowrap; }
  .calc-total-label { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG / ARTYKUŁY / STRONY SEO — współdzielone style treściowe
   ═══════════════════════════════════════════════════════════════════ */

/* Breadcrumb (nawigacja okruszkowa — Google lubi, pokazuje ścieżkę w SERP) */
.breadcrumb { font-size: 13px; color: var(--fg-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--fg-subtle); }

/* Nagłówek artykułu */
.post-header { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.post-eyebrow { font-size: 12px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.post-header h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 900; color: var(--fg); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 16px; }
.post-meta { font-size: 14px; color: var(--fg-muted); display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-subtle); }

/* Treść artykułu — typografia czytelna, szeroka miara optymalna do czytania */
.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--fg-2); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 28px; font-weight: 800; color: var(--fg); letter-spacing: -0.02em; line-height: 1.25; margin-top: 48px; margin-bottom: 4px; }
.prose h3 { font-size: 21px; font-weight: 800; color: var(--fg); margin-top: 36px; }
.prose p { color: var(--fg-2); }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #1d4ed8; }
.prose strong { color: var(--fg); font-weight: 800; }
.prose ul, .prose ol { padding-left: 26px; }
.prose li { margin-top: 10px; }
.prose li::marker { color: var(--blue); }
.prose blockquote { border-left: 4px solid var(--blue); background: var(--blue-light); border-radius: 0 10px 10px 0; padding: 16px 22px; font-style: italic; color: var(--fg-2); }
.prose blockquote p { margin: 0; }
.prose img { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
/* Tabela porównawcza w treści */
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-subtle); font-weight: 800; color: var(--fg); }

/* Box CTA wewnątrz artykułu (konwersja czytelnika na trial) */
.post-cta { max-width: 720px; margin: 48px auto 0; background: var(--primary); border-radius: 18px; padding: 32px; text-align: center; }
.post-cta h3 { font-size: 22px; font-weight: 900; color: white; letter-spacing: -0.02em; margin-bottom: 8px; }
.post-cta p { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.post-cta .btn-primary { background: white; color: var(--primary); }
.post-cta .btn-primary:hover { background: #f0f4f8; }

/* TL;DR / key-takeaways box na górze artykułu */
.tldr { max-width: 720px; margin: 0 auto 8px; background: var(--bg-subtle); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; padding: 18px 22px; }
.tldr h2 { font-size: 13px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); margin: 0 0 8px !important; }
.tldr ul { margin: 0; padding-left: 20px; font-size: 15px; color: var(--fg-2); }
.tldr li { margin-top: 6px; }

/* ── Lista wpisów (blog/index.html) ── */
/* align-items:stretch (domyślne w grid) + flex-column na karcie sprawiają,
   że wszystkie karty w wierszu mają tę samą wysokość, a stopka karty
   (read-more + data) jest zepchnięta na dół przez margin-top:auto —
   wyrównana w jednej linii niezależnie od długości opisu. */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.blog-card { display: flex; flex-direction: column; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-strong); }
.blog-card .tag { display: inline-block; align-self: flex-start; margin-bottom: 12px; }
.blog-card h2 { font-size: 19px; font-weight: 800; color: var(--fg); letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px; }
.blog-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
/* read-more spychany na dół karty — wraz z datą tworzy wyrównaną stopkę */
.blog-card .read-more { display: inline-block; align-self: flex-start; margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 800; color: var(--blue); }
.blog-card-date { font-size: 12px; color: var(--fg-subtle); font-weight: 600; margin-top: 12px; }

@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
}
