/* =============================================================================
   Interview Copilot — landing styles
   Dark only. Semantic tokens mirror docs/DESIGN.md so the site and the app
   read as one brand. Accent is overridable from config.mjs (build stamps a
   <style id="brand-tokens"> block in <head> that wins over the defaults below).
   Glass is used for chrome (nav) only, never for reading surfaces.
   ============================================================================= */

/* ---- Self-hosted Inter Variable (no remote fonts) ------------------------ */
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,
    U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,
    U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,
    U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --bg: #0a0a0c;
  --surface: rgba(28, 28, 30, 0.72);
  --surface-solid: #1c1c1e;
  --raised: rgba(255, 255, 255, 0.06);
  --hover: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fg: rgba(255, 255, 255, 0.92);
  --dim: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.48);

  --accent: #0a84ff;            /* overridden by brand-tokens from config */
  --accent-fill: #0071e3;       /* overridden by brand-tokens from config */
  --accent-hover: #3d9bff;
  --accent-dim: rgba(10, 132, 255, 0.18);
  --on-accent: #ffffff;
  --violet: #5e5ce6;

  --ok: #30d158;  --ok-dim: rgba(48, 209, 88, 0.16);
  --warn: #ff9f0a; --warn-dim: rgba(255, 159, 10, 0.16);
  --bad: #ff453a;  --bad-dim: rgba(255, 69, 58, 0.16);

  --font-sans: 'Inter var', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Cascadia Mono', 'Cascadia Code', Consolas, monospace;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-full: 999px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.28);
  --shadow-float: 0 1px 0 rgba(255,255,255,0.16) inset, 0 16px 48px rgba(0,0,0,0.45);

  --ease-fast: cubic-bezier(0.2, 0, 0, 1);
  --ease-base: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: 24px;
  --maxw: 1080px;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-padding-top: 88px; }

body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient layer — static radial glows, what the app background looks like. */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 8% 0%, rgba(10, 132, 255, 0.14), transparent 70%),
    radial-gradient(55% 55% at 100% 8%, rgba(94, 92, 230, 0.10), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.35)),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color 140ms var(--ease-fast); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 12px; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--surface-solid); color: var(--fg);
  padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  transition: top 140ms var(--ease-fast);
}
.skip-link:focus { top: 12px; }

/* ---- Type ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  letter-spacing: -0.005em;
}
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.1; font-weight: 640; }
.h-display { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.04; }
.h-title { font-size: clamp(1.7rem, 3.6vw, 2.35rem); font-weight: 630; }
.h-heading { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--dim); line-height: 1.55; font-weight: 400; max-width: 46ch; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.measure { max-width: 62ch; }

/* ---- Buttons (no gradients; accent fill) --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 550; font-size: 0.95rem; letter-spacing: -0.01em;
  height: 44px; padding-inline: 22px; border-radius: var(--r-full);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease-fast), background 140ms var(--ease-fast),
              border-color 140ms var(--ease-fast), color 140ms var(--ease-fast);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-secondary { background: var(--raised); color: var(--fg); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--hover); color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--raised); color: var(--fg); }
.btn-lg { height: 52px; padding-inline: 28px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; stroke-width: 1.75; }

/* ---- Nav (glass chrome) -------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.nav-menu { display: contents; } /* desktop: links + cta lay out as direct flex children */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; letter-spacing: -0.02em; font-size: 1.02rem; }
.brand:hover { color: var(--fg); }
.brand .logo { width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent-fill); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(10,132,255,0.35); }
.brand .logo svg { width: 16px; height: 16px; color: #fff; stroke-width: 2; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--dim); padding: 8px 12px; border-radius: var(--r-sm); font-size: 0.92rem; font-weight: 450; }
.nav-links a:hover { color: var(--fg); background: var(--raised); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--raised); border: 1px solid var(--line-strong); color: var(--fg); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin-inline: auto; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(32px, 5vw, 56px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--faint); max-width: 44ch; }
.hero-note svg { width: 16px; height: 16px; stroke-width: 1.75; color: var(--ok); flex: none; margin-top: 2px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding-inline: 12px;
  border-radius: var(--r-full); background: var(--accent-dim); border: 1px solid rgba(10,132,255,0.28);
  color: var(--accent-hover); font-size: 0.82rem; font-weight: 500;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---- Product mockup (mirrors the app overlay) ---------------------------- */
.mock { position: relative; }
.mock { overflow: visible; }
.mock-glow { position: absolute; inset: -12% 0 -8% 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 60% 30%, rgba(10,132,255,0.22), transparent 70%),
              radial-gradient(50% 50% at 20% 90%, rgba(94,92,230,0.16), transparent 70%); filter: blur(6px); }
.panel {
  position: relative; z-index: 1;
  background: var(--surface-solid); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-float); overflow: hidden;
}
.bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.bar .live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--dim); }
.bar .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(48,209,88,0.5); animation: pulse 2.2s var(--ease-base) infinite; }
.bar .timer { font-family: var(--font-mono); font-size: 0.82rem; color: var(--faint); }
.bar .chips { margin-left: auto; display: flex; gap: 6px; }
.bar .chip { font-size: 0.75rem; color: var(--faint); border: 1px solid var(--line); border-radius: var(--r-full); padding: 3px 9px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(48,209,88,0.5);} 70% { box-shadow: 0 0 0 8px rgba(48,209,88,0);} 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0);} }

.panel-body { padding: 18px; }
.q { font-size: 0.82rem; color: var(--faint); margin-bottom: 6px; }
.q b { color: var(--dim); font-weight: 500; }
.answer { font-size: 0.98rem; line-height: 1.6; color: var(--fg); }
.answer .kw { color: var(--accent-hover); }
.typing { display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom; background: var(--accent); margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.action { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--dim);
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; }
.action svg { width: 14px; height: 14px; stroke-width: 1.75; }
.kbd { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; background: var(--raised); }

/* ---- Logos / trust ------------------------------------------------------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; color: var(--faint); }
.trust .t-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; }
.trust .t-item svg { width: 16px; height: 16px; stroke-width: 1.75; }

/* ---- Steps (how it works) ------------------------------------------------ */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 44px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px 22px; box-shadow: var(--shadow-card);
}
.step .n { counter-increment: step; width: 34px; height: 34px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-hover);
  font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--dim); font-size: 0.95rem; }
.step .ico { width: 20px; height: 20px; stroke-width: 1.75; color: var(--accent-hover); position: absolute; top: 26px; right: 22px; opacity: 0.7; }

/* ---- Feature grid (bento, not glass) ------------------------------------- */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px 22px; box-shadow: var(--shadow-card);
  transition: border-color 220ms var(--ease-base), transform 220ms var(--ease-base);
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature .ico { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent-hover); margin-bottom: 16px; }
.feature .ico svg { width: 20px; height: 20px; stroke-width: 1.75; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--dim); font-size: 0.93rem; }
.feature.wide { grid-column: 1 / -1; }
@media (min-width: 680px) { .feature.span2 { grid-column: span 2; } }

/* ---- Pricing (reading surface, not glass) -------------------------------- */
.price-wrap { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 760px; margin: 44px auto 0; align-items: stretch; }
@media (min-width: 720px) { .price-wrap { grid-template-columns: 1fr 1.1fr; } }
.plan {
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.plan.featured { border-color: rgba(10,132,255,0.4); box-shadow: var(--shadow-card), 0 0 0 1px rgba(10,132,255,0.18); }
.plan .ptag { font-size: 0.78rem; font-weight: 500; color: var(--accent-hover); margin-bottom: 10px; }
.plan h3 { font-size: 1.25rem; font-weight: 620; }
.plan .p { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.plan .p .amt { font-size: 2.4rem; font-weight: 650; letter-spacing: -0.03em; }
.plan .p .per { color: var(--faint); font-size: 0.95rem; }
.plan .psub { color: var(--dim); font-size: 0.92rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 11px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: var(--dim); }
.plan li svg { width: 17px; height: 17px; stroke-width: 2; color: var(--ok); flex: none; margin-top: 3px; }
.plan .btn { width: 100%; margin-top: auto; }
.placeholder-note { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--warn);
  background: var(--warn-dim); border: 1px solid rgba(255,159,10,0.3); border-radius: var(--r-full); padding: 4px 11px; }
.placeholder-note svg { width: 14px; height: 14px; flex: none; stroke-width: 1.75; }

/* ---- FAQ (reading surface, not glass) ------------------------------------ */
.faq { max-width: 760px; margin: 40px auto 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface-solid); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 14px;
  font-weight: 540; font-size: 1rem; color: var(--fg); transition: background 140ms var(--ease-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--raised); }
.faq summary .chev { margin-left: auto; width: 18px; height: 18px; stroke-width: 2; color: var(--faint); transition: transform 220ms var(--ease-base); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .a { padding: 0 22px 22px; color: var(--dim); font-size: 0.95rem; line-height: 1.65; max-width: 64ch; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { text-align: center; }
.cta-card {
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 64px); box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.cta-card::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 50% -20%, rgba(10,132,255,0.16), transparent 70%); }
.cta-card > * { position: relative; z-index: 1; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px; margin-top: 24px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer .brand { margin-bottom: 12px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 550; color: var(--faint); margin-bottom: 12px; letter-spacing: 0; }
.footer-col a { display: block; color: var(--dim); font-size: 0.9rem; padding: 5px 0; font-weight: 400; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--faint); font-size: 0.85rem; }

/* ---- Prose (legal pages) ------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.3rem; margin-top: 36px; margin-bottom: 12px; }
.prose h3 { font-size: 1.05rem; margin-top: 24px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--dim); font-size: 0.97rem; line-height: 1.7; }
.prose p { margin-top: 12px; }
.prose ul { margin-top: 12px; padding-left: 22px; display: grid; gap: 8px; }
.draft-banner {
  display: flex; align-items: center; gap: 12px; background: var(--warn-dim);
  border: 1px solid rgba(255,159,10,0.35); border-radius: var(--r-md); padding: 16px 18px;
  color: var(--warn); font-size: 0.92rem; margin-bottom: 28px;
}
.draft-banner svg { width: 20px; height: 20px; stroke-width: 1.75; flex: none; }
.draft-banner b { color: var(--fg); }

/* ---- Sign-in page -------------------------------------------------------- */
.signin-screen { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: var(--gutter); }
.signin-card {
  width: 100%; max-width: 420px; text-align: center;
  background: var(--surface-solid); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); padding: 40px 32px; box-shadow: var(--shadow-float);
}
.signin-card .logo-lg { width: 52px; height: 52px; border-radius: 13px; background: var(--accent-fill);
  display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 6px 22px rgba(10,132,255,0.4); }
.signin-card .logo-lg svg { width: 28px; height: 28px; color: #fff; stroke-width: 2; }
.signin-card h1 { font-size: 1.4rem; font-weight: 620; }
.signin-card p { color: var(--dim); font-size: 0.95rem; margin-top: 10px; }
.g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  height: 48px; margin-top: 26px; border-radius: var(--r-sm); cursor: pointer; font: inherit;
  font-weight: 540; font-size: 0.97rem; background: #fff; color: #1f1f1f; border: 1px solid #dadce0;
  transition: transform 140ms var(--ease-fast), background 140ms var(--ease-fast);
}
.g-btn:hover { background: #f5f6f7; }
.g-btn:active { transform: scale(0.98); }
.g-btn:disabled { opacity: 0.6; cursor: default; }
.g-btn svg { width: 18px; height: 18px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong);
  border-top-color: var(--accent); margin: 6px auto 0; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.status-icon.ok { background: var(--ok-dim); color: var(--ok); }
.status-icon.bad { background: var(--bad-dim); color: var(--bad); }
.status-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.notice { margin-top: 22px; border-radius: var(--r-sm); padding: 14px 16px; font-size: 0.9rem; text-align: left;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.notice.bad { background: var(--bad-dim); border: 1px solid rgba(255,69,58,0.3); color: var(--fg); }
.notice.warn { background: var(--warn-dim); border: 1px solid rgba(255,159,10,0.3); color: var(--fg); }
.notice svg { width: 18px; height: 18px; stroke-width: 1.75; flex: none; margin-top: 1px; }
.notice.bad svg { color: var(--bad); } .notice.warn svg { color: var(--warn); }
.signin-foot { margin-top: 22px; font-size: 0.82rem; color: var(--faint); }
.is-hidden { display: none !important; }

/* ---- Reveal on load / scroll (motion is meaningful, degrades gracefully) -- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 560ms var(--ease-slow), transform 560ms var(--ease-slow); }

/* ---- Mobile nav ---------------------------------------------------------- */
@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-menu { display: none; }                         /* collapsed: hidden */
  .nav[data-open='true'] .nav-menu {                    /* opened: single stacked dropdown */
    display: flex; flex-direction: column; gap: 10px;
    position: absolute; left: 0; right: 0; top: 64px;
    padding: 14px var(--gutter) 18px; background: #0b0b0e;
    border-bottom: 1px solid var(--line-strong); box-shadow: var(--shadow-float);
  }
  .nav[data-open='true'] .nav-links { flex-direction: column; align-items: stretch; margin-left: 0; gap: 2px; }
  .nav[data-open='true'] .nav-links a { padding: 12px; }
  .nav[data-open='true'] .nav-cta { flex-direction: column; align-items: stretch; margin-left: 0; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
  .nav[data-open='true'] .nav-cta .btn { width: 100%; }
}

/* ---- Fallbacks (respect system settings) --------------------------------- */
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--surface-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .surface, .panel, .feature, .plan, .faq, .step, .signin-card { background: var(--surface-solid); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
