/* Corro marketing site. One stylesheet, no build step.
   Colours come from the app's brand tokens (web/v2/css/design.css) so the site and the product read as one.
   Contrast pairs used for text are AA at their sizes; see the comment on each token. */

/* ------------------------------------------------------------------ fonts */
/* Source Serif 4 (SIL OFL 1.1, assets/fonts/OFL.txt), latin subset as served by Google Fonts, self-hosted.
   Headings only; body text uses the system sans, so there is one font file to fetch. */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so the swap does not move the layout: widths measured against
   Liberation Serif Bold (metric twin of Times New Roman Bold) at 100 px, 0.961. */
@font-face {
  font-family: "Source Serif Fallback";
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("LiberationSerif-Bold");
  font-weight: 600;
  size-adjust: 96%;
  ascent-override: 107.9%;
  descent-override: 34.9%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif Fallback", Georgia, "Times New Roman", serif;

  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-tint: #f1f5fe;
  --surface: #ffffff;
  --ink: #14181f;          /* 17.9:1 on --bg */
  --ink-2: #3a414d;        /* body copy, 10.5:1 on --bg, 9.8:1 on --bg-soft */
  --muted: #555e6d;        /* small print, 6.6:1 on --bg, 6.2:1 on --bg-soft */
  --line: #e2e5ea;
  --line-strong: #cdd2da;
  --accent: #1f4fd8;       /* links and buttons, 6.4:1 on --bg, 5.9:1 on --bg-soft */
  --accent-strong: #1a43b8;
  --accent-soft: #e9effd;
  --on-accent: #ffffff;    /* 6.4:1 on --accent */
  --ok: #17775a; --ok-soft: #e3f4ed;
  --warn: #8f5200; --warn-soft: #fcf0d9;
  --bad: #b3261e; --bad-soft: #fbe9e7;
  --mark: #ffe58f;
  --band: #14181f;         /* the closing band */
  --band-ink: #f2f4f7;
  --band-muted: #b4bcc8;   /* 9.4:1 on --band */
  --shadow-1: 0 1px 2px rgba(20, 24, 31, .06);
  --shadow-2: 0 1px 2px rgba(20, 24, 31, .05), 0 12px 32px rgba(20, 24, 31, .08);
  --shadow-3: 0 2px 6px rgba(20, 24, 31, .06), 0 32px 80px rgba(20, 24, 31, .16);

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --gutter: 16px;
  --max: 1180px;
  --section: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hit: 44px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --bg-soft: #141820;
    --bg-tint: #131a2a;
    --surface: #171c24;
    --ink: #f2f4f7;          /* 17.0:1 on --bg */
    --ink-2: #ccd2db;        /* 12.4:1 on --bg */
    --muted: #a5aebb;        /* 8.3:1 on --bg, 7.4:1 on --surface */
    --line: #29303b;
    --line-strong: #3a4250;
    --accent: #8db3ff;       /* 8.7:1 on --bg */
    --accent-strong: #b0caff;
    --accent-soft: #1b2640;
    --on-accent: #0e1116;    /* 8.7:1 on --accent */
    --ok: #6fd3ae; --ok-soft: #12302a;
    --warn: #f2bd6b; --warn-soft: #33270f;
    --bad: #ff9d94; --bad-soft: #3a1a18;
    --mark: #5a4a12;
    --band: #171c24;
    --band-ink: #f2f4f7;
    --band-muted: #a5aebb;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-3: 0 2px 6px rgba(0, 0, 0, .4), 0 32px 80px rgba(0, 0, 0, .5);
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
h1, h2, .display { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 1.55rem + 3.6vw, 4.25rem); line-height: 1.04; }
h2 { font-size: clamp(1.875rem, 1.35rem + 2vw, 2.875rem); line-height: 1.1; }
h3 { font: 650 1.1875rem/1.3 var(--sans); letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); font-weight: 650; }
ul, ol { margin: 0; padding: 0; }
code { font: .92em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: .1em .35em; }
::selection { background: var(--accent-soft); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--surface); color: var(--accent); padding: 10px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow-2); font-weight: 600; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font: 650 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, var(--shadow-1); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost-light { color: var(--band-ink); border-color: rgba(242, 244, 247, .36); background: transparent; }
.btn-ghost-light:hover { border-color: var(--band-ink); color: var(--band-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 68px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 1.3125rem/1 var(--sans); letter-spacing: -.02em; margin-right: auto; min-height: var(--hit); }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
.nav-main { display: none; }
.nav-main ul { list-style: none; display: flex; gap: 4px; }
.nav-main a, .nav-login {
  display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 12px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .9688rem;
}
.nav-main a:hover, .nav-login:hover { color: var(--ink); background: var(--bg-soft); }
.nav-main a[aria-current="page"] { color: var(--ink); text-decoration: underline 2px var(--accent); text-underline-offset: 10px; }
.nav-login { display: none; }
.menu-btn {
  display: inline-grid; place-items: center; width: var(--hit); height: var(--hit); margin-right: -8px;
  border: 0; background: transparent; color: var(--ink); border-radius: var(--r-sm); cursor: pointer; text-decoration: none;
}
.menu-btn:hover { background: var(--bg-soft); color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-panel { display: none; border-top: 1px solid var(--line); padding-block: 8px 20px; }
.menu-panel.open { display: block; }
.menu-panel ul { list-style: none; }
.menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 550; border-bottom: 1px solid var(--line); }
.menu-panel .btn { margin-top: 16px; width: 100%; }
@media (min-width: 420px) { .nav-login { display: inline-flex; } }
@media (min-width: 900px) {
  .nav-main { display: block; margin-right: auto; margin-left: 20px; }
  .brand { margin-right: 0; }
  .menu-btn, .menu-panel, .menu-panel.open { display: none; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(48px, 7vw, 96px); background:
  radial-gradient(1100px 520px at 85% -10%, var(--bg-tint), transparent 70%),
  var(--bg); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .9063rem; font-weight: 600; color: var(--accent); letter-spacing: .01em; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero h1 { max-width: 19ch; }
.hero .lede { margin-top: 24px; max-width: 40rem; font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); }
.hero .actions { margin-top: 32px; }
.hero .fine { margin-top: 16px; font-size: .9375rem; color: var(--muted); }
.hero-grid { display: grid; gap: 40px; }

/* ------------------------------------------------------------------ demo video */
.demo { margin: clamp(40px, 6vw, 72px) 0 0; }
.demo-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: #0e1116; box-shadow: var(--shadow-2); border: 1px solid var(--line);
}
.demo-frame picture, .demo-frame img, .demo-frame video { width: 100%; height: 100%; object-fit: cover; }
.demo-play { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.demo-play:hover { color: #fff; }
.demo-play[hidden] { display: none; }
.demo-play:focus-visible { outline-offset: -6px; outline-color: #fff; }
.play-chip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 12px; border-radius: var(--r-pill);
  background: rgba(14, 17, 22, .78); color: #fff; font: 650 1rem/1 var(--sans);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); white-space: nowrap;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.play-chip .disc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #1f4fd8; }
.play-chip .disc svg { width: 18px; height: 18px; margin-left: 3px; }
.demo-play:hover .play-chip { background: rgba(31, 79, 216, .92); }
.demo figcaption { margin-top: 14px; font-size: .9375rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
.demo-msg { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: var(--r-md); background: rgba(14, 17, 22, .86); color: #fff; font-size: .9375rem; }
.demo-msg:empty { display: none; }
.transcript { margin-top: 8px; }
.transcript summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9375rem; min-height: var(--hit); display: inline-flex; align-items: center; }
.transcript ol { margin: 8px 0 0 1.25em; color: var(--ink-2); font-size: .9688rem; }
.transcript li + li { margin-top: 4px; }
@media (max-width: 479px) {
  .play-chip { padding: 8px 16px 8px 8px; font-size: .9375rem; }
  .play-chip .disc { width: 36px; height: 36px; }
}

/* ------------------------------------------------------------------ sections */
.section { padding-block: var(--section); }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .kicker { display: block; font: 650 .875rem/1.2 var(--sans); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.section-head p { margin-top: 18px; font-size: 1.125rem; }
.center { text-align: center; margin-inline: auto; }

/* three pillars */
.pillars { list-style: none; display: grid; gap: 16px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-1); }
.pillar .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.pillar .ico svg { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: 10px; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* how it works */
.steps { list-style: none; counter-reset: step; display: grid; gap: 28px; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong);
  font: 600 1.25rem/1 var(--serif); color: var(--ink);
}
.step h3 { margin-bottom: 8px; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { padding: 64px 0 0; }
  .step::before { top: 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 60px; right: -16px; height: 1px; background: var(--line-strong); }
}

/* feature rows */
.feature { display: grid; gap: 36px; align-items: center; }
.feature + .feature { margin-top: var(--section); }
.feature-copy h2 { margin-bottom: 18px; }
.feature-copy .kicker { display: block; font: 650 .875rem/1.2 var(--sans); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fd8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; min-height: var(--hit); }
.feature .more { margin-top: 24px; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 1fr 1.08fr; gap: 64px; }
  .feature.flip .feature-copy { order: 2; }
}

/* illustrations (decorative; their content is said in the copy beside them) */
.ill {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-2); padding: clamp(18px, 3vw, 28px); font-size: .9375rem; color: var(--ink-2);
  min-width: 0;
}
.ill-label { position: absolute; top: -11px; right: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 10px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.section-soft .ill-label { background: var(--bg-soft); }
.ill-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.ill-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: .8125rem; font-weight: 650; white-space: nowrap; background: var(--bg-soft); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.blue { background: var(--accent-soft); color: var(--accent); }

/* checker illustration */
.draft { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; line-height: 1.7; color: var(--ink); background: var(--bg); }
.draft mark { background: var(--bad-soft); color: var(--ink); box-shadow: inset 0 -2px 0 var(--bad); padding: 1px 2px; border-radius: 2px; }
.draft mark.ok { background: var(--ok-soft); box-shadow: inset 0 -2px 0 var(--ok); }
.verdict { margin-top: 14px; border: 1px solid var(--line); border-left: 3px solid var(--bad); border-radius: var(--r-md); padding: 14px 16px; background: var(--surface); }
.verdict-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.verdict blockquote { margin: 8px 0 0; padding-left: 12px; border-left: 2px solid var(--line-strong); font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.verdict .src { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: .875rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* graph illustration */
.graph-ill svg { width: 100%; height: auto; }
.graph-ill .edge { stroke: var(--line-strong); stroke-width: 1.4; }
.graph-ill .edge.hot { stroke: var(--accent); stroke-width: 2; }
.graph-ill .node { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.graph-ill .node.doc { fill: var(--bg-soft); }
.graph-ill .node.hot { fill: var(--accent); stroke: var(--accent); }
.graph-ill .halo { fill: var(--accent); opacity: .14; }
.graph-ill .search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 8px 14px; margin-bottom: 14px; color: var(--ink); background: var(--bg); }
.graph-ill .search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.graph-ill .search .count { margin-left: auto; color: var(--muted); font-size: .8125rem; }

/* Cory illustration */
.cards-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: var(--bg); min-width: 0; }
.mini b { display: block; color: var(--ink); font-size: .875rem; margin-bottom: 8px; }
.mini .bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 6px; }
.mini .bar.w70 { width: 70%; } .mini .bar.w45 { width: 45%; } .mini .bar.w85 { width: 85%; } .mini .bar.w60 { width: 60%; }
.mini .bar.fill { background: var(--accent); opacity: .75; }
.mini.target { border: 2px dashed var(--accent); background: var(--accent-soft); }
.cory-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-weight: 650; font-size: .875rem; box-shadow: var(--shadow-2); top: 96px; left: 44%; transform: rotate(-4deg); }
.cory-chip .face { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; }
.cory-chip .face svg { width: 14px; height: 14px; }
.answer { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--bg); color: var(--ink); }
.answer .who { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: .875rem; margin-bottom: 6px; }
.cite { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin: 0 2px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; vertical-align: 1px; }

/* providers illustration */
.share-ill { display: grid; gap: 14px; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.share-row:last-child { border-bottom: 0; }
.share-row small { display: block; color: var(--muted); font-size: .8125rem; }
.switch { flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line-strong); position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch.on { background: var(--ok); }
.switch.on::after { left: 19px; }
.switch.locked { background: var(--line); }
.portal { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); padding: 14px 16px; }
.portal-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-weight: 650; color: var(--ink); }
.portal dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .875rem; }
.portal dt { color: var(--muted); }
.portal dd { margin: 0; color: var(--ink); }

/* security grid */
.sec-grid { list-style: none; display: grid; gap: 16px; }
.sec-item { border-top: 2px solid var(--ink); padding-top: 18px; }
.sec-item h3 { margin-bottom: 8px; }
@media (min-width: 720px) { .sec-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; } }
@media (min-width: 1100px) { .sec-grid.four { grid-template-columns: repeat(4, 1fr); } }

/* price teaser and plan */
.price-band { display: grid; gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-2); }
@media (min-width: 900px) { .price-band { grid-template-columns: 1.2fr 1fr; } }
.price { display: flex; align-items: baseline; align-content: flex-start; flex-wrap: wrap; gap: 4px 10px; height: 5.25rem; margin: 0; } /* fixed height: the amount is filled in by script, so nothing below may move */
.price-amount { font: 600 clamp(2.5rem, 2rem + 2vw, 3.25rem)/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.price-amount.pending { font: 650 1.25rem/1.3 var(--sans); letter-spacing: 0; color: var(--ink); }
.price-unit { color: var(--muted); font-size: 1rem; }
.guarantee { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); background: var(--ok-soft); color: var(--ink); }
.guarantee svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }

.plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1.25fr; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow-1); }
.plan.main { border: 2px solid var(--accent); box-shadow: var(--shadow-2); }
.plan h2 { font-size: 1.75rem; }
.plan .sub { margin-top: 8px; color: var(--muted); }
.plan .price { margin-top: 22px; }
.plan .btn { width: 100%; margin-top: 24px; }
.plan .ticks { margin-top: 24px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; min-height: 64px; color: var(--ink); font: 650 1.0625rem/1.4 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555e6d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer-body { padding: 0 0 22px; max-width: 46rem; }
@media (prefers-color-scheme: dark) {
  .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5aebb' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E"); }
  .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238db3ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
}

/* closing band */
.band { background: var(--band); color: var(--band-muted); padding-block: clamp(72px, 9vw, 120px); }
.band h2 { color: var(--band-ink); max-width: 18ch; }
.band p { margin-top: 18px; max-width: 38rem; font-size: 1.125rem; }
.band .actions { margin-top: 32px; }
.band .btn-primary { background: #ffffff; color: #14181f; }
.band .btn-primary:hover { background: #e9effd; color: #14181f; }
.band a:not(.btn) { color: var(--band-ink); }

/* ------------------------------------------------------------------ inner pages */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); background: radial-gradient(900px 400px at 90% -20%, var(--bg-tint), transparent 70%), var(--bg); }
.page-head h1 { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem); max-width: 20ch; }
.page-head .lede { margin-top: 20px; max-width: 42rem; font-size: 1.1875rem; }
.draft-banner {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; max-width: 46rem;
  border: 1px solid var(--warn); border-radius: var(--r-md); background: var(--warn-soft); color: var(--ink);
}
.draft-banner svg { width: 20px; height: 20px; flex: none; color: var(--warn); margin-top: 2px; }
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 14px 0; }
.prose li + li { margin-top: 8px; }
.prose p + ul, .prose p + ol { margin-top: 14px; }
.prose .note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--line-strong); background: var(--bg-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .9688rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .9688rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 650; }
.table-scroll { overflow-x: auto; }
.toc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); text-decoration: none; color: var(--ink-2); font-size: .9375rem; font-weight: 550; }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.two-col { display: grid; gap: 24px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 40px; } }
.box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--surface); }
.box h3 { margin-bottom: 12px; }
.box.no { background: var(--bg-soft); }
.crosses { list-style: none; display: grid; gap: 12px; }
.crosses li { position: relative; padding-left: 30px; }
.crosses li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--line); }
.crosses li::after { content: ""; position: absolute; left: 5px; top: calc(.32em + 8px); width: 8px; height: 2px; background: var(--muted); }

/* 404 */
.notfound { min-height: 56vh; display: grid; align-content: center; padding-block: 96px; }
.notfound .code { font: 600 1rem/1 var(--sans); color: var(--accent); letter-spacing: .08em; margin-bottom: 16px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; max-width: 22rem; }
.footer-brand p { margin-top: 12px; color: var(--muted); }
.site-footer h2 { font: 650 .875rem/1.2 var(--sans); color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .875rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .footer-brand { grid-column: auto; } }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .band, .demo, .skip { display: none !important; }
  body { color: #000; background: #fff; }
}
.actions.after-grid, .sec-grid + p { margin-top: 40px; }
.lede-sm { margin-top: 14px; font-size: 1.0625rem; }
.price-band .actions { margin-top: 28px; }

/* ------------------------------------------------------------------ hero illustration (wide screens only) */
.hero-ill { display: none; }
.ill-bar .ill-title { margin-left: 8px; color: var(--ink); }
.hero-ill .figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fig { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; background: var(--bg); display: grid; gap: 4px; min-width: 0; }
.fig.hot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fig-l { font-size: .75rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fig-v { font: 700 1.375rem/1.15 var(--sans); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chip { justify-self: start; font-size: .6875rem; font-weight: 650; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.src-pop { position: relative; margin: 12px 0 0 calc(33.3% + 4px); width: min(300px, 64%); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-3); padding: 12px 14px; display: grid; gap: 4px; font-size: .8125rem; color: var(--ink); }
.src-pop::before { content: ""; position: absolute; top: -7px; left: 28px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.src-pop .src-h { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.src-pop q { font-family: var(--serif); font-size: .9375rem; quotes: "\201C" "\201D"; }
.src-pop .src { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 650; }
.src-pop .src svg { width: 14px; height: 14px; }
.since { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.since-h { display: block; font-size: .75rem; font-weight: 650; color: var(--muted); margin-bottom: 8px; }
.since ul { list-style: none; display: grid; gap: 8px; font-size: .8125rem; color: var(--ink); }
.since li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.since .pill { height: 22px; font-size: .6875rem; flex: none; min-width: 64px; justify-content: center; }
.agenda { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.agenda .pill { height: 24px; font-size: .75rem; }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }
  .hero-ill { display: block; }
  .hero h1 { font-size: clamp(2.75rem, 1rem + 2.9vw, 3.75rem); max-width: 14ch; }
}
.band { text-align: center; }
.band h2 { max-width: 22ch; margin-inline: auto; }
.band p { margin-inline: auto; }
.band .actions { justify-content: center; }
.price { height: auto; min-height: 3.5rem; }
.price-ticks { margin-top: 12px; }
.price-ticks li { font-size: 1rem; }
.page-head + .section { padding-top: clamp(8px, 2vw, 24px); }

/* review fixes */
.plan .sample-btn { margin-top: auto; }
.plan .ticks + .sample-btn { margin-top: 24px; }
.plan.sample .ticks { flex: 1; align-content: start; }
.feature-copy p, .pillar p, .section-head p { max-width: 65ch; }
.box h2 { font-size: 1.5rem; margin-bottom: 16px; }
.site-header:has(.menu-panel.open) { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.menu-open { overflow: hidden; }
.menu-panel.open { max-height: calc(100vh - 68px); overflow-y: auto; }
.band :focus-visible { outline-color: var(--band-ink); }
.nowrap { white-space: nowrap; }
@media (max-width: 479px) { .hero .actions .btn { flex: 1 1 100%; } }
.page-narrow .wrap { max-width: calc(40rem + 2 * var(--gutter)); }
.provider-next { margin-top: 40px; }
@media (prefers-color-scheme: dark) { :root { --band: #102049; --band-muted: #b8c3d6; } }
.mini-line { display: block; font-size: .8125rem; color: var(--ink-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-line strong { color: var(--ink); }

/* player: the whole frame fits under the sticky header (68 px + 30 px of breathing room), and caption text
   never drops below 14 px on a phone (Chrome scales cues to the video's height). Cue placement stays in the .vtt. */
.demo-frame { max-width: calc((100svh - 100px) * 16 / 9); margin-inline: auto; container-type: inline-size; }
.demo-frame video::cue { font-size: max(14px, 2.4cqw); }
