/* ==========================================================================
   SiteSitter landing page
   Plain CSS, no framework. Light + dark themes via custom properties.
   ========================================================================== */

/* ---- Design tokens: light (default) ----
   Kontrasty policzone wg WCAG 2.1 — pełne tabele w sitesitter-fe/docs/brand-guide.md.
   Tekst ≥ 4.5:1, grafika i ramki pól ≥ 3:1. Nie zmieniaj odcieni bez przeliczenia.
   Motyw: ręczny wybór (przełącznik w nagłówku → data-theme na <html>) wygrywa z ustawieniem systemu. */
:root {
  color-scheme: light;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #0f172a;              /* 16.75:1 na --bg */
  --muted: #51607a;             /* 5.65:1 na --surface-2 (najgorszy przypadek) */
  --border: #e2e8f0;            /* dekoracyjna — karty, separatory */
  --border-strong: #cbd5e1;     /* dekoracyjna — przyciski ghost, przełącznik języka */
  --field-border: #768399;      /* ramka pola formularza: 3.41:1 (wymagane 3:1) */

  --brand: #0d9488;             /* TYLKO grafika: ✓, belki, fokus, paski (3.33–3.74:1). Nie jako tło tekstu. */
  --brand-strong: #0f766e;      /* tekst i linki: 5.14:1 na --bg */
  --brand-contrast: #ffffff;
  --brand-tint: #e2fbf5;
  --brand-tint-text: #0f766e;   /* 5.04:1 na --brand-tint */
  --cta-bg: #0f766e;            /* tło przycisku z tekstem: biały 5.47:1 */
  --cta-bg-hover: #115e59;      /* biały 7.58:1 */

  --ok-text: #157238;           /* 5.34:1 na --surface-2, 5.47:1 na --ok-tint */
  --ok-tint: #dcfce7;
  --warn: #c2710c;              /* grafika (pasek incydentu): 3.30:1 na --surface-2 */
  --error-text: #dc2626;        /* komunikat błędu formularza: 4.83:1 na --surface */
  --logo-filter: none;          /* logo „powered by Blaze IT" ma stałe granatowe wypełnienie */
  --autofill-bg: #e2fbf5;       /* pole wypełnione przez przeglądarkę: tint marki zamiast niebieskiego Chrome */

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --maxw-narrow: 720px;
}

/* ---- Design tokens: dark ----
   Dwa bloki z IDENTYCZNYMI wartościami: ręczny wybór trybu ciemnego oraz ustawienie systemu,
   gdy użytkownik nie wybrał jasnego. Zmieniasz odcień → zmień w obu (i przelicz kontrast). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111a2b;
  --surface-2: #0e1626;
  --text: #e6ecf5;
  --muted: #98a6bd;
  --border: #1e293b;
  --border-strong: #2a3852;
  --field-border: #64748b;      /* 3.66:1 na --surface */

  --brand: #2dd4bf;             /* 9.35:1 na --surface */
  --brand-strong: #14b8a6;      /* 6.99:1 na --surface */
  --brand-contrast: #05231e;
  --brand-tint: rgba(45, 212, 191, .12);
  --brand-tint-text: #5eead4;   /* 9.34:1 na tincie nad --surface */
  --cta-bg: #2dd4bf;            /* ciemny tekst 8.91:1 */
  --cta-bg-hover: #14b8a6;      /* ciemny tekst 6.67:1 */

  --ok-text: #4ade80;
  --ok-tint: rgba(34, 197, 94, .14);
  --warn: #fbbf24;
  --error-text: #f87171;        /* 6.29:1 na --surface */
  --logo-filter: invert(1) hue-rotate(180deg) saturate(1.15);
  --autofill-bg: #132534;       /* tint marki 6% nad --surface: ramka pola 3.29:1 */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #111a2b;
    --surface-2: #0e1626;
    --text: #e6ecf5;
    --muted: #98a6bd;
    --border: #1e293b;
    --border-strong: #2a3852;
    --field-border: #64748b;      /* 3.66:1 na --surface */

    --brand: #2dd4bf;             /* 9.35:1 na --surface */
    --brand-strong: #14b8a6;      /* 6.99:1 na --surface */
    --brand-contrast: #05231e;
    --brand-tint: rgba(45, 212, 191, .12);
    --brand-tint-text: #5eead4;   /* 9.34:1 na tincie nad --surface */
    --cta-bg: #2dd4bf;            /* ciemny tekst 8.91:1 */
    --cta-bg-hover: #14b8a6;      /* ciemny tekst 6.67:1 */

    --ok-text: #4ade80;
    --ok-tint: rgba(34, 197, 94, .14);
    --warn: #fbbf24;
    --error-text: #f87171;        /* 6.29:1 na --surface */
    --logo-filter: invert(1) hue-rotate(180deg) saturate(1.15);
    --autofill-bg: #132534;       /* tint marki 6% nad --surface: ramka pola 3.29:1 */

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--brand-strong); }
img, svg { max-width: 100%; }
strong { font-weight: 700; }

/* ---- Utilities ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cta-bg); color: var(--brand-contrast);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button, summary, input, [tabindex="-1"]):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.25em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta-bg); color: var(--brand-contrast); }
.btn-primary:hover { background: var(--cta-bg-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-sm { padding: .5em .95em; font-size: .95rem; }
.btn-lg { padding: .85em 1.5em; font-size: 1.03rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

/* ---- Eyebrow / section headings ---- */
.eyebrow {
  display: inline-block; margin: 0 0 .6em;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-tint-text);
  background: var(--brand-tint); padding: .3em .8em; border-radius: 999px;
}
.eyebrow.center { display: block; width: max-content; margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--surface-2); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-sub { color: var(--muted); max-width: 620px; }
.section-sub.center { margin-inline: auto; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  /* Glif w kolorze --brand-contrast: biały na jasnym (3.74–5.47:1), ciemny na jasnym turkusie w dark (6.67–8.91:1).
     Biały w dark miał tylko ~1.7:1. */
  background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: var(--brand-contrast);
  box-shadow: var(--shadow-sm);
}
.primary-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.primary-nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.primary-nav a:hover { color: var(--text); background: var(--surface-2); }
.primary-nav a.btn { color: var(--brand-contrast); }
.primary-nav a.btn:hover { background: var(--cta-bg-hover); }
.primary-nav .lang-switch {
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 6px 12px; font-size: .88rem; letter-spacing: .04em;
}
.primary-nav .lang-switch:hover { border-color: var(--brand); color: var(--brand-strong); background: transparent; }

/* Przełącznik jasny/ciemny. Ikona pokazuje tryb, na który się przełączysz (księżyc w jasnym, słońce w ciemnym).
   Ikona w --muted: 5.96:1 (jasny) / 7.60:1 (ciemny) na tle nagłówka — grafika wymaga 3:1. */
.theme-toggle {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border-strong); border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--brand); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong);
  background: var(--surface); border-radius: 12px; cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px; transform: translate(-50%, -50%);
}
.nav-toggle-bars::before { transform: translate(-50%, -8px); }
.nav-toggle-bars::after { transform: translate(-50%, 6px); }

@media (max-width: 820px) {
  /* Na telefonie nawigacja wypada z przepływu — hamburger i przełącznik motywu lądują razem po prawej. */
  .nav-toggle { display: inline-block; margin-left: auto; }
  .header-inner { gap: 10px; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 22px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px; }
  .primary-nav a.btn { margin-top: 6px; justify-content: center; }
}

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 640px; height: 640px;
  background: radial-gradient(circle at 70% 30%, var(--brand-tint), transparent 62%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 820; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1.2em; }
.trust-row {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--muted); font-size: .95rem; font-weight: 600;
}
.trust-row li { display: flex; align-items: center; gap: .5em; }
.trust-row li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ---- Hero report card ---- */
.hero-visual { position: relative; }
.report-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; max-width: 420px; margin-inline: auto;
}
.report-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.report-brand { display: flex; align-items: center; gap: 10px; }
.report-logo {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text); font-weight: 800; font-size: .85rem;
  border: 1px solid var(--border);
}
.report-brand strong { display: block; font-size: .98rem; }
.report-brand small { color: var(--muted); font-size: .8rem; }
.pill { font-size: .78rem; font-weight: 700; padding: .32em .7em; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--ok-tint); color: var(--ok-text); }

.report-site { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); }
.report-site-name { font-weight: 700; font-size: 1.05rem; }
.report-period { color: var(--muted); font-size: .9rem; }

.report-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
.metric { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 10px; text-align: center; }
.metric dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.metric dd { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.metric .unit { font-size: .9rem; font-weight: 700; color: var(--muted); margin-left: 1px; }
.metric-ok { color: var(--ok-text); font-size: 1.1rem !important; }

.report-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.foot-item { display: inline-flex; align-items: center; gap: .45em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot-ok { background: var(--ok-text); }

/* ---- Free quick check ---- */
.check-form { display: grid; gap: 12px; max-width: 640px; margin: 32px auto 0; }
.check-form[hidden] { display: none; }
.check-form-row { display: flex; gap: 10px; }
.check-form-row .btn { flex-shrink: 0; }
.check-noscript { color: var(--muted); text-align: center; margin: 16px 0 0; }

/* Wyniki wychodzą poza wąski kontener formularza: na komputerze szerokie karty i czytelne wiersze.
   100vw zawiera pasek przewijania, więc odejmujemy margines boczny — strona nie przewija się w poziomie. */
.check-results {
  margin-top: 40px; position: relative; left: 50%; transform: translateX(-50%);
  width: min(1140px, calc(100vw - 32px));
}
.check-results-title { font-size: 1.3rem; margin-bottom: .5em; word-break: break-word; }
.check-results-url { color: var(--brand-strong); }
.check-cached-note { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.check-alert {
  background: color-mix(in srgb, var(--error-text) 10%, var(--surface));
  border: 1px solid var(--error-text); border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 20px; color: var(--error-text); font-weight: 650;
}
.check-alert p { margin: 0; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 8px; }
.check-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
/* Karta jest kolorowana kreską po lewej — tylko dekoracyjnie; stan zawsze niesie też ikona + tekst w odznace. */
.check-card-good { border-left-color: var(--ok-text); }
.check-card-warn { border-left-color: var(--warn); }
.check-card-bad { border-left-color: var(--error-text); }
.check-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.check-card-head h3 { font-size: 1.05rem; margin: 0; }
.check-card-note { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }

/* Odznaka stanu: zawsze ikona + słowo, nigdy sam kolor (WCAG 1.4.1).
   --warn ma tylko 3.3:1 na jasnym tle (patrz tokeny) — za mało na tekst, więc tekst odznaki „warn" zostaje
   neutralny; kolor --warn trafia wyłącznie do ikony (grafika, wymaga 3:1). */
.status-badge {
  display: inline-flex; align-items: center; gap: .4em; flex-shrink: 0;
  font-size: .78rem; font-weight: 700; padding: .3em .7em .3em .5em; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.status-badge-sm { font-size: .74rem; padding: .22em .6em .22em .4em; }
.status-icon {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  font-size: .66rem; line-height: 1; background: var(--surface); color: inherit;
}
.status-good { color: var(--ok-text); }
.status-good .status-icon { background: var(--ok-tint); color: var(--ok-text); }
.status-warn .status-icon { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
.status-bad { color: var(--error-text); }
.status-bad .status-icon { background: color-mix(in srgb, var(--error-text) 16%, transparent); color: var(--error-text); }
.status-neutral .status-icon { color: var(--muted); }

.check-stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.check-stat {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px;
  padding: 9px 0; border-top: 1px solid var(--border); position: relative;
}
.check-stat:first-child { border-top: 0; padding-top: 0; }
.check-stat-label { font-weight: 600; color: var(--text); flex: 1 1 auto; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.check-stat-value { color: var(--muted); margin-left: auto; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* Pomoc „?" przy pomiarach bez oceny (zamiast odznaki „Info"): dymek na hover, focus klawiatury i dotyk (.is-open).
   Dymek w odwróconych kolorach tokenów (tekst na tle), więc kontrast jest ten sam w jasnym i ciemnym motywie. */
/* Dymek zakotwiczony w wierszu pomiaru, nie w „?” — nie wystaje poza kartę w prawej kolumnie. */
.check-help { display: inline-flex; flex-shrink: 0; }
.check-help-btn {
  display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted);
  font: inherit; font-size: .78rem; font-weight: 700; line-height: 1; cursor: help;
}
.check-help-btn:hover, .check-help-btn:focus-visible, .check-help.is-open .check-help-btn { color: var(--text); border-color: var(--brand); }
.check-help-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.check-help-tip {
  position: absolute; left: 0; bottom: calc(100% - 2px); z-index: 20;
  width: max-content; max-width: min(260px, 100%); padding: 8px 10px; border-radius: var(--radius);
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-md);
  font-size: .8rem; font-weight: 500; line-height: 1.45; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.check-help:hover .check-help-tip,
.check-help-btn:focus-visible + .check-help-tip,
.check-help.is-open .check-help-tip { opacity: 1; visibility: visible; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .check-help-tip { transition: none; } }

.check-upsell {
  margin-top: 36px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px);
}
.check-upsell h3 { font-size: 1.15rem; margin-bottom: .6em; }
.check-upsell-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.check-upsell-list li { position: relative; padding-left: 28px; color: var(--muted); }
.check-upsell-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.check-upsell-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- How it works: steps ---- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand-tint-text); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.18rem; }
.step p { color: var(--muted); margin: 0; }

/* ---- Checklist ---- */
.checklist { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 26px; }
.checklist li { position: relative; padding-left: 42px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-tint-text); font-weight: 800; font-size: .95rem;
}
.checklist h3 { font-size: 1.08rem; margin-bottom: .25em; }
.checklist p { color: var(--muted); margin: 0; }

/* ---- Why agencies ---- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.why-copy p { color: var(--muted); }
.why-outcome { color: var(--text) !important; font-weight: 600; }
.feature-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--muted); margin: 0; }

/* ---- Pricing ---- */
/* Przełącznik miesięcznie/rocznie: app.js podmienia .amount/.per z data-monthly/data-yearly.
   Bez JS zostaje stan z HTML (miesięczny) — progressive enhancement. */
.price-toggle {
  display: flex; width: max-content; margin: 28px auto 0; padding: 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
}
.price-toggle-btn {
  font: inherit; font-weight: 650; font-size: .92rem; color: var(--muted);
  background: transparent; border: none; border-radius: 999px; padding: .55em 1.2em;
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.price-toggle-btn:hover { color: var(--text); }
.price-toggle-btn.is-active { background: var(--cta-bg); color: var(--brand-contrast); }

/* minmax(0, 1fr): kolumny nie rozpychają się do min-content treści (przyczyna poziomego scrolla). */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.price-card-featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cta-bg); color: var(--brand-contrast); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: .3em .8em; border-radius: 999px; white-space: nowrap;
}
.price-name { font-size: 1.15rem; margin-bottom: .2em; }
.price { margin: 0 0 .2em; }
.price .amount { font-size: 2.1rem; font-weight: 850; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-weight: 600; }
.price-note { color: var(--muted); font-size: .82rem; margin: 0 0 1em; }
.price-note:empty { display: none; }
.price-for { color: var(--muted); font-size: .92rem; margin-bottom: 1em; }
.price-feats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.price-feats li { position: relative; padding-left: 26px; color: var(--muted); font-size: .96rem; }
.price-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.price-card .btn { margin-top: auto; white-space: normal; text-align: center; }

/* ---- FAQ ---- */
.faq-list { margin-top: 36px; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 650; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--brand-strong); line-height: 1; transition: transform .18s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--brand-strong); }
.faq-answer { padding: 0 20px 18px; }
.faq-answer p { color: var(--muted); margin: 0; }

/* ---- Early access ---- */
.section-cta { background: var(--surface-2); }
.ea-card {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-md);
}
.ea-copy p { color: var(--muted); }
.ea-copy .section-title { margin-bottom: .3em; }
.ea-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: .95rem; }
.field input, .check-form-row input {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--field-border); border-radius: 12px; padding: .7em .85em; width: 100%; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.check-form-row input { flex: 1; }
.field input::placeholder, .check-form-row input::placeholder { color: var(--muted); opacity: 1; }
/* Autouzupełnianie: Chrome maluje pole jasnoniebieskim tłem (UA !important) — przykrywamy je cieniem inset w tincie marki. */
.field input:-webkit-autofill, .check-form-row input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--autofill-bg) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}
.field input:focus, .check-form-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.ea-form .btn { margin-top: 4px; }
.form-note { color: var(--muted); font-size: .85rem; margin: 0; text-align: center; }
.form-status { margin: 0; font-size: .95rem; font-weight: 600; min-height: 1.2em; }
.form-status.is-pending { color: var(--muted); }
.form-status.is-success { color: var(--ok-text); }
.form-status.is-error { color: var(--error-text); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.footer-brand { display: flex; align-items: center; gap: .6em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: var(--text); }
.footer-meta {
  color: var(--muted); font-size: .88rem; margin: 0; width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
}
.powered-by { display: inline-flex; align-items: center; opacity: .7; transition: opacity .15s ease; }
.powered-by:hover { opacity: 1; }
/* Logo ma stałe granatowe wypełnienie — w ciemnym motywie odwracamy (--logo-filter), żeby było czytelne. */
.powered-by img { height: 18px; width: auto; display: block; filter: var(--logo-filter); }

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .why-grid { grid-template-columns: 1fr; }
  .ea-card { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Cztery karty cennika mieszczą przycisk w jednej linii dopiero od ~1100 px. */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .checklist { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1; }
  .report-card { padding: 18px; }
  .check-grid { grid-template-columns: minmax(0, 1fr); }
  .check-form-row { flex-direction: column; }
  .check-form-row .btn { width: 100%; }
  .check-stat-label { flex-basis: 100%; }
}

/* ---- Rejestracja pod wynikami darmowego testu ---- */
.check-signup-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.check-signup-banner p { margin: 0; color: var(--brand-tint-text); font-weight: 650; }
.check-signup {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 44px); align-items: start;
  margin-top: 36px; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius-lg);
  background: var(--surface); border: 2px solid var(--brand); box-shadow: var(--shadow-md);
  scroll-margin-top: 90px;
}
.check-signup-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: .2em 0 .7em; line-height: 1.25; }
.check-signup-copy .check-upsell-list { margin-bottom: 0; }
.check-signup-panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); }
.check-signup-form { display: grid; gap: 14px; }
.check-signup-password { display: flex; gap: 8px; }
.check-signup-password input { flex: 1 1 auto; min-width: 0; }
.check-signup-toggle {
  flex-shrink: 0; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--field-border);
  background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.check-signup-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.check-signup-terms { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--text); cursor: pointer; }
.check-signup-terms input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.check-signup-status { margin: 0; min-height: 1.4em; font-size: .92rem; color: var(--muted); }
.check-signup-status.is-error { color: var(--error-text); font-weight: 600; }
.check-signup-alt { margin: 0; font-size: .9rem; color: var(--muted); }
.check-signup-done { text-align: center; outline: none; }
.check-signup-done-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--ok-tint); color: var(--ok-text); font-size: 1.6rem; font-weight: 800;
}
.check-signup-done h4 { font-size: 1.2rem; margin: 0 0 .4em; }
.check-signup-done p { color: var(--muted); }
@media (max-width: 880px) {
  .check-signup { grid-template-columns: 1fr; }
}
