/* Captcher marketing site.
   Brand Guide v1, softened (UI v2): the same tokens as captcher_app/static/shadowcapture.css.
   No purple, ever. Indigo leads; Sky = Show me; Coral = recording; Mint = success. The four-colour stripe (coral / sky / mint / indigo) is the site's accent.
   DM Sans body, Outfit 600 headings. Radii 12 / 18 / 24, pills for chips.
   Squares appear in the logo mark only. Captured screens stay square inside their frame. */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('assets/fonts/dm-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/outfit-latin-900.woff2') format('woff2'); }

:root {
  --indigo: #3B49C6;
  --indigo-press: #2F3BA8;
  --sky: #29B6FF;
  --sky-deep: #0A6FA8;
  --mint: #3ECFA2;
  --mint-deep: #0B7A5A;
  --coral: #FF6A5C;
  --coral-deep: #B83227;
  --ink: #14151A;

  --bg: #FAFAF9;            /* Paper */
  --bg-alt: #F2F3F7;        /* Mist */
  --surface: #FFFFFF;
  --text: #14151A;
  --text-soft: #4B4F5A;     /* Slate */
  --muted: #6B6F7B;         /* Steel */
  --border: #E6E7EC;        /* Line */
  --border-strong: #C9CBD3;
  --button-edge: #D9DBE3;
  --primary: var(--indigo);
  --primary-hover: var(--ink);
  --on-primary: #FFFFFF;
  --link: var(--indigo);
  --showme: var(--sky-deep);
  --youtry: var(--indigo);
  --success: var(--mint-deep);
  --info: var(--sky-deep);
  --rec: var(--coral-deep);
  --tint-accent: #EEF0FC;
  --tint-hint: #EAF7FF;
  --tint-success: #ECFAF5;
  --tint-rec: #FFF1EF;
  --hatch: repeating-linear-gradient(45deg, #EEF0F6 0 10px, #E4E7F0 10px 20px);
  --hero-wash: #EEF8FF;
  --stripe: linear-gradient(90deg, var(--coral) 0 25%, var(--sky) 25% 50%, var(--mint) 50% 75%, var(--indigo) 75% 100%);
  --shadow-soft: 0 1px 2px rgba(20, 21, 26, .04), 0 8px 24px rgba(20, 21, 26, .06);
  --shadow-pop: 0 24px 60px rgba(20, 21, 26, .14), 0 2px 6px rgba(20, 21, 26, .05);
  --focus-ring: 0 0 0 4px rgba(59, 73, 198, .22);

  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --r-control: 12px;
  --r-card: 18px;
  --r-panel: 24px;
  --r-pill: 999px;
  --content: 1180px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, 0, .2, 1);
  color-scheme: light;
}

/* Dark: the app's derived palette (#0F1117 ground). Follows the system unless the toggle set a theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1117; --bg-alt: #171A22; --surface: #171A22;
    --text: #F4F5F8; --text-soft: #B9BCC7; --muted: #9296A6;
    --border: #2A2E3A; --border-strong: #3A3F4D; --button-edge: #3A3F4D;
    --primary: var(--indigo); --primary-hover: #4F5DE0;
    --link: #9AA3FF; --showme: var(--sky); --youtry: #9AA3FF;
    --success: var(--mint); --info: var(--sky); --rec: #FF8A7E;
    --tint-accent: #1D2140; --tint-hint: #132636; --tint-success: #12281F; --tint-rec: #2C1A1A;
    --hatch: repeating-linear-gradient(45deg, #1B1F29 0 10px, #171A22 10px 20px);
    --hero-wash: #111B26;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-pop: 0 24px 60px rgba(0, 0, 0, .45);
    --focus-ring: 0 0 0 4px rgba(124, 135, 245, .32);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1117; --bg-alt: #171A22; --surface: #171A22;
  --text: #F4F5F8; --text-soft: #B9BCC7; --muted: #9296A6;
  --border: #2A2E3A; --border-strong: #3A3F4D; --button-edge: #3A3F4D;
  --primary: var(--indigo); --primary-hover: #4F5DE0;
  --link: #9AA3FF; --showme: var(--sky); --youtry: #9AA3FF;
  --success: var(--mint); --info: var(--sky); --rec: #FF8A7E;
  --tint-accent: #1D2140; --tint-hint: #132636; --tint-success: #12281F; --tint-rec: #2C1A1A;
  --hatch: repeating-linear-gradient(45deg, #1B1F29 0 10px, #171A22 10px 20px);
  --hero-wash: #111B26;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, .45);
  --focus-ring: 0 0 0 4px rgba(124, 135, 245, .32);
  color-scheme: dark;
}

/* ---- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text-soft);
  font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--text); margin: 0; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: var(--r-control); z-index: 100; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Buttons & chips -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--r-control);
  font: 600 16px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 120ms var(--ease), border-color 120ms var(--ease), transform 120ms var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--button-edge); }
.btn-secondary:hover { border-color: var(--border-strong); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; }

.chip {
  justify-self: start; width: fit-content;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: var(--r-pill); font: 600 13px/1.2 var(--font-sans);
  background: var(--tint-accent); color: var(--link);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.chip-sky { background: var(--tint-hint); color: var(--showme); }
.chip-coral { background: var(--tint-rec); color: var(--rec); }
.chip-mint { background: var(--tint-success); color: var(--success); }
.chip-rec { background: var(--tint-rec); color: var(--rec); }
.eyebrow, .section-head .eyebrow { font: 600 13px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--link); }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 160ms var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; color: var(--text); flex: none; }
.brand svg { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-right: auto; margin-left: 12px; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-signin { color: var(--text); font-weight: 600; font-size: 15px; padding: 8px 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--button-edge);
  background: var(--surface); color: var(--text-soft); display: inline-grid; place-items: center; cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* ---- Sections --------------------------------------------------------- */
section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); }
.section-head p { font-size: 19px; color: var(--text-soft); }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 820px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--hero-wash), transparent 70%);
}
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; display: grid; gap: 22px; justify-items: center; }
.hero-copy .chip, .section-head .chip, .cta-band .chip { justify-self: center; }
.nowrap { white-space: nowrap; }
.hero h1 { margin-bottom: 10px; font-size: clamp(42px, 7vw, 76px); letter-spacing: -.03em; line-height: 1.02; }
.hero h1 em {
  font-style: normal; color: var(--link);
  background: var(--stripe) no-repeat 0 100% / 100% .13em; padding-bottom: .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* In dark mode the light indigo reads lavender, so the headline accent goes white and the stripe carries the colour. */
:root[data-theme="dark"] .hero h1 em { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--text); } }
.stripe { height: 6px; border-radius: var(--r-pill); background: var(--stripe); }
.hero-sub { font-size: clamp(18px, 2vw, 21px); max-width: 660px; color: var(--text-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; margin: 64px auto 0; max-width: 1080px; }
.hero-visual .browser { box-shadow: var(--shadow-pop); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 12px 16px; box-shadow: var(--shadow-soft); font-size: 14px; color: var(--text);
  font-weight: 600; line-height: 1.3;
}
.float-card small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.float-card .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 18px; height: 18px; }
.float-1 { left: -28px; top: 22%; }
.float-2 { right: -28px; bottom: 16%; }
.ic-indigo { background: var(--tint-accent); color: var(--youtry); }
.ic-mint { background: var(--tint-success); color: var(--success); }
.ic-sky { background: var(--tint-hint); color: var(--info); }
.ic-coral { background: var(--tint-rec); color: var(--rec); }

/* ---- Browser frame + screenshot placeholders -------------------------- */
.browser {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.browser-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser-bar .url {
  flex: 1; max-width: 420px; margin: 0 auto; height: 24px; border-radius: var(--r-pill); background: var(--bg-alt);
  font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 12px;
}
.browser-bar .spacer { width: 42px; }

/* A placeholder is a <div class="shot">. To drop a real screenshot in, replace the div's
   contents with <img src="assets/screens/NAME.png" alt="…"> (see README.md). */
.shot {
  position: relative; aspect-ratio: 16 / 10; background: var(--hatch);
  display: grid; place-items: center; text-align: center; overflow: hidden;
}
.shot > img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-label {
  display: grid; gap: 4px; justify-items: center; padding: 14px 20px; margin: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px dashed var(--border-strong);
  border-radius: var(--r-control); max-width: 90%;
}
.shot-label b { font: 600 14px/1.3 var(--font-sans); color: var(--text); }
.shot-label span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.shot-label svg { width: 22px; height: 22px; color: var(--muted); margin-bottom: 2px; }
.shot-tall { aspect-ratio: 4 / 3; }
.shot-wide { aspect-ratio: 16 / 9; }
.shot-square { aspect-ratio: 1 / 1; }
.card .shot, .step .shot { border-radius: var(--r-control); border: 1px solid var(--border); }

/* ---- How it works ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel);
  padding: 16px 16px 28px; display: grid; gap: 18px; align-content: start;
}
.step-body { display: grid; gap: 10px; padding: 0 10px; }
.step-num {
  display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-sans);
  letter-spacing: .06em; text-transform: uppercase;
}
.step-num b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; letter-spacing: 0; }
.step:nth-child(1) .step-num { color: var(--rec); } .step:nth-child(1) .step-num b { background: var(--coral-deep); }
.step:nth-child(2) .step-num { color: var(--info); } .step:nth-child(2) .step-num b { background: var(--sky-deep); }
.step:nth-child(3) .step-num { color: var(--success); } .step:nth-child(3) .step-num b { background: var(--mint-deep); }
.step h3 { font-size: 24px; }
.step p { font-size: 16px; }

/* ---- Modes (Show me / You try) --------------------------------------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mode { display: grid; gap: 20px; align-content: start; }
.mode-head { display: grid; gap: 10px; }
.mode h3 { font-size: 28px; }
.mode p { font-size: 17px; }
.mode .browser { border-width: 2px; }
.mode-show .browser { border-color: color-mix(in srgb, var(--sky) 60%, var(--border)); }
.mode-try .browser { border-color: color-mix(in srgb, var(--indigo) 55%, var(--border)); }
.modes-note { margin-top: 40px; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 15px; color: var(--muted); }
.modes-note span { display: inline-flex; align-items: center; gap: 8px; }
.modes-note svg { width: 18px; height: 18px; color: var(--success); }

/* ---- Feature grid ----------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 26px; display: grid; gap: 12px; align-content: start;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 20px; margin-top: 4px; }
.card p { font-size: 15.5px; }
.card .shot { margin-top: 8px; }
.card-wide { grid-column: span 2; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; }
.card-wide .card-copy { display: grid; gap: 12px; }
.card-wide .shot { margin-top: 0; }

/* ---- Use cases -------------------------------------------------------- */
.usecase { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.usecase + .usecase { margin-top: 96px; }
.usecase.flip { grid-template-columns: 1.15fr 1fr; }
.usecase.flip .usecase-copy { order: 2; }
.usecase-copy { display: grid; gap: 18px; align-content: start; }
.usecase-copy h3 { font-size: clamp(28px, 3.4vw, 38px); }
.usecase-copy > p { font-size: 18px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; color: var(--text-soft); }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks svg { width: 22px; height: 22px; color: var(--success); margin-top: 1px; }
.usecase-visual { position: relative; }
.usecase-visual .float-card { bottom: -22px; left: 24px; }
.flip .usecase-visual .float-card { left: auto; right: 24px; }

/* ---- FAQ -------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 600 18px/1.35 var(--font-display); color: var(--text); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform 160ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--link); }
.faq summary:focus-visible { border-radius: var(--r-card); }
.faq .answer { padding: 0 24px 22px; font-size: 16px; }

/* ---- Final CTA -------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--indigo); color: #FFFFFF;
  border-radius: 28px; padding: 72px 40px 78px; text-align: center; display: grid; gap: 20px; justify-items: center;
}
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: linear-gradient(90deg, var(--coral) 0 33.33%, var(--sky) 33.33% 66.66%, var(--mint) 66.66% 100%); } /* indigo segment would vanish on the indigo band */
.cta-band h2 { color: #FFFFFF; font-size: clamp(32px, 4.6vw, 52px); max-width: 760px; }
.cta-band p { color: rgba(255, 255, 255, .86); font-size: 18px; max-width: 580px; }
.cta-band .chip { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.cta-band .chip .dot { background: var(--mint); }
.cta-band .btn-primary { background: #FFFFFF; color: var(--ink); }
.cta-band .btn-primary:hover { background: #E6E7EC; }
.cta-band .btn-ghost { color: #FFFFFF; border-color: rgba(255, 255, 255, .45); background: transparent; }
.cta-band .btn-ghost:hover { border-color: #FFFFFF; }
.cta-band .hero-ctas { margin-top: 8px; }
.cta-band small { color: rgba(255, 255, 255, .8); font-size: 14px; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { padding: 56px 0 48px; border-top: 1px solid var(--border); margin-top: 104px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer-row .brand svg { height: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: var(--text-soft); font-size: 15px; }
.footer-meta { margin-top: 28px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---- Legal pages    --------------------------------------------------- */
.legal-intro { max-width: 780px; padding: 64px 0 56px; }
.legal-back { display: inline-block; margin-bottom: 40px; font-size: 15px; }
.legal-intro h1 { margin: 18px 0 24px; font-size: clamp(42px, 6vw, 72px); }
.legal-intro h1 span { color: var(--link); }
.legal-lead { max-width: 560px; font-size: 20px; }
.legal-date { margin-top: 24px; font-size: 14px; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 64px; align-items: start; border-top: 1px solid var(--border); padding-top: 48px; }
.legal-toc { position: sticky; top: 104px; }
.legal-toc ol { list-style: none; padding: 0; margin: 20px 0 0; }
.legal-toc li + li { margin-top: 6px; }
.legal-toc a { display: block; padding: 6px 0; font-size: 15px; color: var(--text-soft); }
.legal-toc a:hover { color: var(--link); }
.legal-content section { padding: 0; }
.legal-content section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.legal-content h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.25; margin-bottom: 20px; }
.legal-content p + p { margin-top: 16px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content ul { margin: 16px 0; padding-left: 22px; }
.legal-content li + li { margin-top: 14px; }
.legal-content p a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-callout { margin-top: 24px; padding: 24px; background: var(--tint-hint); border-radius: var(--r-card); border-left: 3px solid var(--sky); }
.legal-callout p { margin-top: 8px; }
.legal-contact { margin-top: 24px; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { position: static; }
  .legal-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
  .legal-toc li + li { margin-top: 0; }
  .legal-content { max-width: 720px; }
}
@media (max-width: 480px) {
  .legal-intro { padding: 40px 0; }
  .legal-back { margin-bottom: 28px; }
  .legal-lead { font-size: 18px; }
  .legal-layout { padding-top: 32px; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-callout { padding: 20px; }
}

/* ---- Contact --------------------------------------------------------- */
.contact-intro { max-width: 840px; }
.contact-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h2 { font-size: 26px; line-height: 1.2; }
.contact-card p { flex: 1; }
.contact-card .btn { max-width: 100%; }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0; margin-top: 56px; border-top: 1px solid var(--border); }
.contact-details h2 { margin: 16px 0; font-size: 30px; }
.contact-email { display: inline-block; font-size: clamp(22px, 3vw, 30px); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; max-width: 100%; }
.contact-email-note { max-width: 460px; margin-top: 16px; font-size: 15px; }
.contact-context { padding: 28px; border-radius: var(--r-card); background: var(--tint-hint); }
.contact-context h3 { margin-bottom: 16px; font-size: 22px; }
.contact-context p + p { margin-top: 16px; }
.contact-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--border); padding-top: 28px; font-size: 15px; }
.contact-bottom strong { color: var(--text); font-weight: 600; }
.contact-bottom nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
@media (max-width: 960px) {
  .contact-options { grid-template-columns: 1fr; }
  .contact-details { gap: 32px; }
}
@media (max-width: 720px) {
  .contact-card { padding: 24px; }
  .contact-details { grid-template-columns: 1fr; padding: 40px 0; margin-top: 40px; }
  .contact-context { padding: 24px; }
}

/* ---- Reveal on scroll (motion-safe only) ------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .float-1 { left: 12px; top: 18%; }
  .float-2 { right: 12px; bottom: 10%; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .step:last-child { grid-column: span 2; }
  .card-wide { grid-column: span 2; }
  .usecase, .usecase.flip { grid-template-columns: 1fr; gap: 36px; }
  .usecase.flip .usecase-copy { order: 0; }
  section { padding: 80px 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-signin { display: none; }
  .brand svg { height: 26px; }
  .hero { padding: 48px 0 64px; }
  .hero-visual { margin-top: 44px; }
  .float-card { display: none; }
  .steps, .features, .modes { grid-template-columns: 1fr; }
  .step:last-child, .card-wide { grid-column: auto; }
  .card-wide { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
  .usecase + .usecase { margin-top: 72px; }
  .cta-band { padding: 56px 22px; border-radius: 22px; }
  .browser-bar .url { font-size: 11px; }
  .browser-bar .spacer { display: none; }
  .shot-label { padding: 10px 14px; margin: 10px; }
  .hero-ctas .btn { width: 100%; }
  .site-footer { margin-top: 80px; }
}
