/*
  Alalvera site. One file, no build step.

  Layout, type scale, components and colour names follow Stripe's design
  language (Dusan's DESIGN-stripe.md and temp/resources/design-reference),
  rebuilt in our own code. White is the theme; dark is an option the visitor
  picks. Stripe's indigo is left out; ruby takes its place on the buttons.

  Colour carries meaning, the same on every page and in both themes:
    yellow  what the bot claimed
    orange  what the store's own site says
    red     a proven error
    lemon   worth a look (never an error)
    ruby    the one filled button in a band
*/

@font-face { font-family: "Geist"; src: url("/assets/fonts/body.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  /* Stripe's palette, by its own names. */
  --canvas: #ffffff;
  --canvas-soft: #f6f9fc;
  --canvas-cream: #f5e9d4;
  --hairline: #e3e8ee;
  --hairline-input: #a8c3de;
  --stripe-ink: #0d253d;
  --stripe-ink-2: #273951;
  --stripe-mute: #64748d;
  --ruby: #ea2261;
  --magenta: #f96bee;
  --lemon: #9b6829;
  --red: #f3432a;
  --orange: #ff6118;
  --amber: #ff9014;
  --yellow: #ffd552;
  --yellow-deep: #f9b900;

  /* Light theme (the default). */
  --bg: var(--canvas);
  --bg-soft: var(--canvas-soft);
  --surface: var(--canvas-soft);
  --surface-2: #eef2f7;
  --panel: var(--canvas);
  --line: var(--hairline);
  --line-strong: #cfd8e2;
  --ink: var(--stripe-ink);
  --ink-2: var(--stripe-ink-2);
  --mute: var(--stripe-mute);
  --faint: #8898aa;
  --primary: #e0245e;
  --primary-hover: #c91f54;
  --primary-press: #b51145;
  --on-primary: #ffffff;
  --ghost-ink: #c91f54;
  --ghost-border: rgba(224, 36, 94, 0.55);
  --accent-ink: #b51145;
  --accent-bg: rgba(234, 34, 97, 0.08);
  --error: #d8351e;
  --error-ink: #b3291a;
  --error-bg: rgba(243, 67, 42, 0.07);
  --error-line: rgba(216, 53, 30, 0.35);
  --claim-bg: rgba(255, 213, 82, 0.5);
  --claim-line: var(--yellow-deep);
  --rule-bg: rgba(255, 97, 24, 0.14);
  --rule-line: var(--orange);
  --look-ink: var(--lemon);
  --look-bg: rgba(255, 213, 82, 0.22);
  --look-line: rgba(155, 104, 41, 0.3);
  --bubble: #eef2f7;
  --bubble-bot: var(--canvas);
  --sheet: var(--canvas-cream);
  --sheet-line: #e6d5b8;
  --sheet-ink: var(--stripe-ink);
  --sheet-mute: #6b5a40;
  --inv-bg: var(--stripe-ink);
  --inv-ink: #ffffff;
  --inv-mute: #a3b3c6;
  --inv-line: rgba(255, 255, 255, 0.14);
  --inv-calc: rgba(255, 255, 255, 0.06);
  --inv-track: rgba(255, 255, 255, 0.2);
  --banner-bg: var(--stripe-ink);
  --band-dark-bg: var(--stripe-ink);
  --nav-scrolled: rgba(255, 255, 255, 0.9);
  --menu-bg: rgba(255, 255, 255, 0.97);
  --dd-bg: #ffffff;
  --dd-shadow: rgba(0, 55, 112, 0.16);
  --hero-veil: rgba(255, 255, 255, 0.9);
  --hero-clear: rgba(255, 255, 255, 0);
  --dots: rgba(13, 37, 61, 0.12);
  --lift-1: 0 1px 3px rgba(0, 55, 112, 0.08);
  --lift-2: 0 8px 24px rgba(0, 55, 112, 0.08), 0 2px 6px rgba(0, 55, 112, 0.04);
  --wash-a: 0.5;
  --selection: rgba(234, 34, 97, 0.18);
  --focus: var(--primary);

  --font: "Geist", "SF Pro Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Stripe's two curves: quick for UI, long and soft for anything that enters. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.25, 1, 0.5, 1);

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --container: 1232px;
  --gutter: 24px;
  --section: clamp(64px, 7vw, 96px);

  color-scheme: light;
}

/* Dark theme, and every dark band inside the light theme. */
[data-theme="dark"], .band-dark, .banner {
  --bg: #19191c;
  --bg-soft: #1d1d21;
  --surface: #202024;
  --surface-2: #28282d;
  --panel: #111113;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #f5f4f1;
  --ink-2: #c9c8ce;
  --mute: #8f8e99;
  --faint: #6c6b74;
  --ghost-ink: #ffffff;
  --ghost-border: rgba(255, 255, 255, 0.28);
  --accent-ink: #ff6b9a;
  --accent-bg: rgba(234, 34, 97, 0.16);
  --error: #f3432a;
  --error-ink: #ffb4a6;
  --error-bg: rgba(243, 67, 42, 0.1);
  --error-line: rgba(243, 67, 42, 0.4);
  --claim-bg: rgba(255, 213, 82, 0.24);
  --claim-line: var(--yellow);
  --rule-bg: rgba(255, 97, 24, 0.22);
  --look-ink: var(--yellow);
  --look-bg: rgba(255, 213, 82, 0.1);
  --look-line: rgba(255, 213, 82, 0.24);
  --bubble: rgba(255, 255, 255, 0.06);
  --bubble-bot: #28282d;
  --sheet: #f7f6f3;
  --sheet-line: #e2dfd8;
  --sheet-ink: #19191c;
  --sheet-mute: #66656c;
  --inv-bg: #f7f6f3;
  --inv-ink: #19191c;
  --inv-mute: #66656c;
  --inv-line: #e2dfd8;
  --inv-calc: #efede8;
  --inv-track: #d7d3cb;
  --banner-bg: #111113;
  --band-dark-bg: #111113;
  --nav-scrolled: rgba(25, 25, 28, 0.92);
  --menu-bg: rgba(17, 17, 19, 0.97);
  --dd-bg: #202024;
  --dd-shadow: rgba(0, 0, 0, 0.55);
  --hero-veil: rgba(25, 25, 28, 0.9);
  --hero-clear: rgba(25, 25, 28, 0);
  --dots: rgba(255, 255, 255, 0.08);
  --lift-1: 0 1px 3px rgba(0, 0, 0, 0.35);
  --lift-2: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  --wash-a: 0.32;
  --selection: rgba(255, 144, 20, 0.35);
  --focus: var(--amber);
  color-scheme: dark;
}
/* In the light theme the dark band is Stripe's ink navy, not grey. */
:root:not([data-theme="dark"]) .band-dark, :root:not([data-theme="dark"]) .banner {
  --bg: var(--stripe-ink);
  --band-dark-bg: var(--stripe-ink);
  --banner-bg: var(--stripe-ink);
  --surface: #13304d;
  --surface-2: #183a5c;
  --panel: #0a1d31;
  --line: rgba(255, 255, 255, 0.12);
  --mute: #a3b3c6;
  --faint: #7d93ab;
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` must win over any display set below, or a closed menu still covers the page. */
[hidden] { display: none !important; }
/* A brand's own mark sits on a white plate in both themes. Some of the marks (Zendesk's, OpenAI's) turn white by
   themselves on a dark page and would vanish on that plate, so each is always asked for its light drawing. */
img[src*="/assets/logos/"] { color-scheme: light; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5; font-weight: 400;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); }
::selection { background: var(--selection); color: var(--ink); }
/* Scroll bars, on every page and in the dashboard (Dusan, 18. 11.): the system's grey slab with arrows
   was the one part not in the brand's colours. A thin rounded thumb with no track and no arrows: the
   ink at rest, ruby under the pointer, light on dark bands, in the dark theme and on the dark code
   cards. Chromium and Safari take the ::-webkit parts; Firefox has none and takes the two standard
   properties, which stay inside @supports because setting them in Chromium switches its ::-webkit
   parts off. :where() keeps that rule at no weight, so a part that hides its bar
   (scrollbar-width: none) still hides it. */
:root { --scroll-thumb: rgba(13, 37, 61, 0.24); --scroll-thumb-on: var(--ruby); }
[data-theme="dark"], .band-dark, .banner { --scroll-thumb: rgba(245, 244, 241, 0.22); }
.code-card { --scroll-thumb: rgba(219, 230, 243, 0.26); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background-color: var(--scroll-thumb); background-clip: padding-box; }
::-webkit-scrollbar-thumb:vertical { min-height: 36px; }
::-webkit-scrollbar-thumb:horizontal { min-width: 36px; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background-color: var(--scroll-thumb-on); }
@supports not selector(::-webkit-scrollbar) {
  :where(*) { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-xs); }
.tnum { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 60;
  padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none;
  transition: transform 0.3s var(--ease-ui);
}
.skip:focus { transform: translateY(80px); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { width: min(800px, 100% - 2 * var(--gutter)); }
/* Content keeps 16px off the frame lines, everywhere, as on Stripe. */
main .container, .footer .container { padding-inline: 16px; }

/* Stripe frames the page with two hairlines at the container's edges. */
main { position: relative; }
main::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: 0; pointer-events: none;
  width: min(var(--container), 100% - 2 * var(--gutter)); translate: -50% 0;
  border-inline: 1px solid var(--line);
}
main > * { position: relative; z-index: 1; }

/* ---------- Type ---------- */

.hero-title, .page-title, .section-title, .doc-title, .card-title, .band-title { font-weight: 300; color: var(--ink); text-wrap: balance; }
.hero-title { font-size: clamp(34px, 1.3rem + 2.6vw, 56px); line-height: 1.06; letter-spacing: -0.026em; max-width: 25ch; }
.page-title { font-size: clamp(34px, 1.3rem + 2.4vw, 56px); line-height: 1.06; letter-spacing: -0.026em; margin-top: 20px; max-width: 18ch; }
.page-title.wide { max-width: 22ch; }
.doc-title { font-size: clamp(34px, 1.3rem + 2vw, 52px); line-height: 1.06; letter-spacing: -0.025em; margin-top: 20px; }
.section-title { font-size: clamp(26px, 1.1rem + 1.2vw, 36px); line-height: 1.15; letter-spacing: -0.02em; max-width: 30ch; }
.section-title.small { font-size: clamp(24px, 1rem + 0.9vw, 30px); }
.card-title { font-size: clamp(21px, 1rem + 0.4vw, 26px); line-height: 1.15; letter-spacing: -0.012em; }
.band-title { font-size: clamp(30px, 1.2rem + 2vw, 48px); line-height: 1.1; letter-spacing: -0.022em; }
/* Two tones: the statement, then the turn, as Stripe writes its headings. */
.dim { color: var(--mute); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-bg); color: var(--accent-ink);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}
.lede { font-size: clamp(17px, 1rem + 0.2vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; margin-top: 20px; }
.muted { color: var(--mute); }

/* ---------- Buttons: short and decisive, one filled per band ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: 0; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-ui), border-color 0.3s var(--ease-ui), color 0.3s var(--ease-ui), transform 0.2s var(--ease-ui);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 14px 22px; font-size: 16px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-press); }
.btn-ghost { background: transparent; color: var(--ghost-ink); border-color: var(--ghost-border); }
.btn-ghost:hover { border-color: var(--ghost-ink); }
.btn-text { background: none; border: 0; padding-inline: 4px; color: var(--ink); }

/* Stripe's arrow: a chevron that grows a stem and moves on hover. */
.arrow { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.arrow-line { opacity: 0; transition: opacity 0.2s var(--ease-ui); }
.arrow-tip { transition: transform 0.2s var(--ease-ui); }
a:hover .arrow .arrow-line, button:hover .arrow .arrow-line, a:focus-visible .arrow .arrow-line { opacity: 1; }
a:hover .arrow .arrow-tip, button:hover .arrow .arrow-tip, a:focus-visible .arrow .arrow-tip { transform: translateX(3px); }

/* ---------- Nav: one bar across the top, as on Stripe ---------- */

.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 0.3s var(--ease-ui), border-color 0.3s var(--ease-ui); }
.nav.is-scrolled { background: var(--nav-scrolled); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-bar { position: relative; width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 28px; }
.nav-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 0; }
.logo-mark { width: 20px; height: 20px; }
/* The mark is two lines that do not match: what was said, and what is written. */
.logo-claim { fill: var(--ruby); }
.logo-source { fill: var(--ink); }
/* The whole name is drawn, never set in type (docs/logo/README.md; tools/site_logo.ts writes it into the pages). 26 px
   high it is about 100 px wide; under 80 px wide a place shows the check alone. */
.logo-full { display: block; flex: none; width: auto; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-trigger { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border: 0; border-radius: var(--r-sm); background: none; font-size: 15px; color: var(--ink-2); text-decoration: none; cursor: pointer; transition: color 0.2s var(--ease-ui); }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--accent-ink); }
.chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-text { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color 0.2s var(--ease-ui); }
.nav-text:hover, .nav-text[aria-current="page"] { color: var(--accent-ink); }
.nav-cta { border-radius: 999px; background: var(--dd-bg); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--lift-1); padding-inline: 16px; }
.nav-cta:hover { border-color: var(--ghost-border); color: var(--accent-ink); }

/* One dropdown panel for every menu. It changes shape and slides from one menu to
   the next instead of closing and opening, as Stripe's does. The shape is a
   clip-path over one sheet, so the corners and the shadow never stretch. */
.mm { position: absolute; left: 0; right: 0; top: calc(100% - 8px); height: 0; pointer-events: none; --x: 0px; --w: 0px; --h: 0px; --ax: 0px; }
.mm-shadow {
  position: absolute; left: 0; right: 0; top: 0; height: 640px; opacity: 0; transform: translateY(-8px);
  filter: drop-shadow(0 22px 40px var(--dd-shadow)) drop-shadow(0 2px 6px var(--dd-shadow));
  transition: opacity 0.22s var(--ease-ui), transform 0.4s var(--ease);
}
.mm-bg {
  position: absolute; left: 0; right: 0; top: 10px; bottom: 0; background: var(--dd-bg);
  clip-path: inset(0 calc(100% - var(--x) - var(--w)) calc(100% - var(--h)) var(--x) round 12px);
}
.mm-arrow { position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border-radius: 2px; background: var(--dd-bg); transform: translateX(calc(var(--ax) - 6.5px)) rotate(45deg); }
.mm.is-morph .mm-bg { transition: clip-path 0.38s var(--ease); }
.mm.is-morph .mm-arrow { transition: transform 0.38s var(--ease); }
.mm.is-open .mm-shadow { opacity: 1; transform: none; }
.mm-section {
  position: absolute; top: 0; left: 0; padding-top: 10px; visibility: hidden; opacity: 0; transform: translateX(var(--from, 0px));
  transition: opacity 0.18s var(--ease-ui), transform 0.38s var(--ease), visibility 0s linear 0.38s;
}
.mm-section.is-active { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.26s var(--ease-ui) 0.06s, transform 0.38s var(--ease), visibility 0s; }
.mm-grid { display: grid; grid-template-columns: 296px 232px; gap: 10px; padding: 16px; }
.mm-grid.two { grid-template-columns: 296px 296px; }
.mm-grid.three { grid-template-columns: 280px 280px 232px; }
/* Tablets: the feature card goes under the two lists, so the panel fits the screen. */
@media (max-width: 1023px) { .mm-grid.three { grid-template-columns: 264px 264px; } .mm-grid.three .mm-feature { grid-column: 1 / -1; } }
.mm-col { display: grid; align-content: start; gap: 2px; }
.mm-head { padding: 6px 10px 8px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); }
.mm-item { display: flex; gap: 12px; padding: 10px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; transition: background-color 0.2s var(--ease-ui); }
.mm-item:hover, .mm-item:focus-visible { background: var(--surface); }
.mm-item b { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.mm-item small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--mute); }
.mm-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-md); background: var(--accent-bg); }
.mm-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mm-feature {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-md); text-decoration: none;
  background: var(--stripe-ink); color: #ffffff; position: relative; overflow: hidden; isolation: isolate;
}
.mm-feature::before { content: ""; position: absolute; inset: auto -30% -50% 10%; height: 90%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 97, 24, 0.5), transparent), radial-gradient(closest-side at 70% 60%, rgba(249, 107, 238, 0.4), transparent); }
.mm-feature b { font-size: 16px; font-weight: 500; }
.mm-feature small { font-size: 13px; line-height: 1.45; color: #a3b3c6; }
.mm-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 500; color: #ffd552; }
.mm-gauge svg { width: 120px; height: 70px; margin-bottom: 6px; fill: none; stroke-linecap: round; }
.mm-gauge .g-track { stroke: rgba(255, 255, 255, 0.14); stroke-width: 8; }
/* The gauge fills when its menu opens: the test's score arriving. */
.mm-gauge .g-fill { stroke: #ff9014; stroke-width: 8; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.9s var(--ease) 0.15s; }
.mm-gauge .g-tick { stroke: #ffffff; stroke-width: 2.5; transform-origin: 60px 62px; transform: rotate(-110deg); transition: transform 0.9s var(--ease) 0.15s; }
.mm-section.is-active .g-fill { stroke-dashoffset: 28; }
.mm-section.is-active .g-tick { transform: none; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); cursor: pointer; transition: color 0.2s var(--ease-ui), border-color 0.2s var(--ease-ui);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-bar > .theme-toggle { display: none; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform 0.4s var(--ease); }
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: 96px var(--gutter) 40px; background: var(--menu-bg); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity 0.35s var(--ease-ui);
}
.menu.is-open { opacity: 1; }
.menu-links { display: grid; }
.menu-links a {
  font-size: clamp(26px, 7.4vw, 40px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.3; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); padding: 8px 0;
  opacity: 0; transform: translateY(16px); transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}
.menu.is-open .menu-links a { opacity: 1; transform: none; }
.menu.is-open .menu-links a:nth-child(2) { transition-delay: 0.04s; }
.menu.is-open .menu-links a:nth-child(3) { transition-delay: 0.08s; }
.menu.is-open .menu-links a:nth-child(4) { transition-delay: 0.12s; }
.menu.is-open .menu-links a:nth-child(5) { transition-delay: 0.16s; }
.menu.is-open .menu-links a:nth-child(6) { transition-delay: 0.2s; }
.menu.is-open .menu-links a:nth-child(7) { transition-delay: 0.24s; }
.menu-links a[aria-current="page"] { color: var(--accent-ink); }
.menu .btn { align-self: flex-start; }
.menu-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cards ---------- */

.shell { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--lift-1); overflow: hidden; color: var(--ink); }
.core { height: 100%; padding: 32px; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Headlines arrive word by word; the heading itself does not move. */
.js .split[data-reveal] { opacity: 1; transform: none; }
.split .w { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 24ms + var(--d, 0) * 70ms); }
.split.is-in .w { opacity: 1; transform: none; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); border-top: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.section.flush { border-top: 0; }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lede { margin-top: 16px; }
.band-soft { --bg: var(--bg-soft); }

/* ---------- Hero ---------- */

/* The hero has its own background so the page frame lines stop at it: the veil hid one of them and the other stood alone. */
.hero { position: relative; isolation: isolate; background: var(--bg); min-height: min(92dvh, 860px); display: flex; align-items: center; padding: 140px 0 72px; overflow: hidden; }
.ribbon { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 2s var(--ease-ui); }
.ribbon.is-drawn { opacity: 1; }
.hero::before {
  /* Keeps the headline readable where the ribbon passes behind it. */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, var(--hero-veil) 38%, var(--hero-clear) 70%);
}
.hero-stat { font-size: 14px; color: var(--ink-2); margin-bottom: 28px; }
.hero-stat b { font-weight: 500; color: var(--ink); }
.hero-stat code { font-size: 13px; color: var(--mute); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Strip of what we check (Stripe's logo strip) ---------- */

.strip { position: relative; border-top: 1px solid var(--line); padding: 28px 0; overflow: hidden; background: var(--bg); }
.strip-label { text-align: center; font-size: 13px; color: var(--mute); margin-bottom: 18px; }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track ul { display: flex; flex: none; }
.marquee-track li { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-size: 19px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-2); white-space: nowrap; }
.marquee-track li::after { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--ruby); transform: rotate(45deg); }
.strip::before, .strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 1; pointer-events: none; }
.strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.strip::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Product cards (Stripe's "Flexible solutions") ---------- */

.products { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.products .shell { display: flex; flex-direction: column; }
.products .core { display: flex; flex-direction: column; gap: 14px; }
.products .card-title { max-width: 22ch; }
.products p.card-text { color: var(--mute); font-size: 15px; max-width: 44ch; }
.p-half { grid-column: span 3; }
.p-third { grid-column: span 2; }
.p-wide { grid-column: span 6; }
.mock { margin-top: auto; padding-top: 24px; }
.wash { position: relative; isolation: isolate; }
.wash::before {
  content: ""; position: absolute; inset: auto -20% -30% 30%; height: 70%; z-index: -1; pointer-events: none; opacity: var(--wash-a);
  background: radial-gradient(closest-side, rgba(255, 97, 24, 0.45), transparent), radial-gradient(closest-side at 70% 60%, rgba(249, 107, 238, 0.4), transparent), radial-gradient(closest-side at 40% 80%, rgba(234, 34, 97, 0.3), transparent);
}

mark { background: none; color: inherit; position: relative; white-space: nowrap; }
mark::before {
  content: ""; position: absolute; inset: -1px -3px; z-index: -1; border-radius: var(--r-xs);
  transform-origin: left center; transform: scaleX(0); transition: transform 0.7s var(--ease);
}
mark.claim::before { background: var(--claim-bg); box-shadow: inset 0 -2px 0 var(--claim-line); }
mark.rule::before { background: var(--rule-bg); box-shadow: inset 0 -2px 0 var(--rule-line); }
.stamp { display: inline-grid; place-items: center; flex: none; padding: 5px 9px; border-radius: var(--r-xs); background: var(--error); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* The story: one conversation on a store's own website, followed from the first
   word to the proof. The store window is someone else's site, so it keeps its own
   light look and its own brand in both themes; the audit log beside it is ours. */
.products .story-card .core { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.story-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px 48px; align-items: end; }
.story-head .card-title { max-width: 20ch; }
.story { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin: 0; }

.store-window {
  --st-ink: #1f2a24; --st-mute: #6b746e; --st-line: #e7e3da; --st-bg: #fbfaf7; --st-brand: #2f4a3a;
  border-radius: var(--r-lg); overflow: hidden; background: var(--st-bg); border: 1px solid var(--line); box-shadow: var(--lift-2);
  color: var(--st-ink); container-type: inline-size;
}
.store-chrome { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; background: #efede7; border-bottom: 1px solid var(--st-line); }
.store-dots { display: flex; gap: 6px; }
.store-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d8d4ca; }
.store-url { flex: 1; display: flex; align-items: center; gap: 6px; max-width: 380px; margin-inline: auto; padding: 4px 10px; border-radius: 6px; background: #ffffff; font-family: var(--mono); font-size: 11.5px; color: var(--st-mute); white-space: nowrap; overflow: hidden; }
.store-url svg { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; }
.store-viewport { position: relative; height: 440px; overflow: hidden; }
.store-page { position: absolute; inset: 0; transition: opacity 0.5s var(--ease-ui), transform 0.7s var(--ease); }
.store-head { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--st-line); background: #ffffff; font-size: 12px; color: var(--st-mute); }
.store-head b { margin-right: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 400; letter-spacing: 0.02em; color: var(--st-ink); }
.store-bag { margin-left: auto; }
.store-hero { position: relative; height: 168px; margin: 14px 18px 0; border-radius: 8px; overflow: hidden; background: #ece9e2; }
.store-hero img { width: 100%; height: 100%; object-fit: cover; }
.store-hero p { position: absolute; left: 18px; top: 22px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.1; color: var(--st-ink); }
.store-hero small { display: block; margin-bottom: 6px; font-family: var(--font); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--st-mute); }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 18px; }
.store-grid img { width: 100%; height: 132px; object-fit: cover; border-radius: 6px; background: #ece9e2; }
.store-grid b { display: block; margin-top: 8px; font-size: 12px; font-weight: 500; }
.store-grid span { font-size: 11.5px; color: var(--st-mute); }

.page-policy { background: var(--st-bg); opacity: 0; transform: translateX(28px); }
.policy { position: relative; isolation: isolate; max-width: 380px; padding: 24px 26px; }
.policy-crumb { font-size: 11px; color: var(--st-mute); }
.policy-title { margin: 8px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.1; }
.policy-line { margin-top: 10px; font-size: 13px; line-height: 1.6; color: #39443d; }
.policy-rule span { position: relative; isolation: isolate; }
.policy-rule mark { color: var(--st-ink); }
.policy-scan { position: absolute; left: 14px; right: 14px; top: 78px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: 0; }
.policy-stamp {
  display: inline-block; margin-top: 18px; padding: 6px 11px; border: 2px solid var(--error); border-radius: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--error); background: rgba(255, 255, 255, 0.85);
  opacity: 0; transform: rotate(-6deg) scale(1.35);
}

.chat { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: grid; justify-items: end; gap: 10px; }
.chat-launcher { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--st-brand); box-shadow: 0 6px 16px rgba(20, 30, 25, 0.22); transition: transform 0.2s var(--ease-ui); }
.chat-launcher svg { width: 20px; height: 20px; fill: none; stroke: #ffffff; stroke-width: 1.6; stroke-linejoin: round; }
.chat-panel {
  display: flex; flex-direction: column; width: 270px; height: 330px; border-radius: 14px; overflow: hidden; background: #ffffff;
  box-shadow: 0 18px 40px rgba(20, 30, 25, 0.22), 0 2px 6px rgba(20, 30, 25, 0.08); transform-origin: bottom right;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.92);
  transition: opacity 0.25s var(--ease-ui), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.chat-top { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--st-brand); color: #ffffff; }
.chat-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e9e2d0; color: var(--st-brand); font-family: Georgia, serif; font-size: 14px; }
.chat-top b { display: block; font-size: 12.5px; font-weight: 500; }
.chat-top small { display: flex; align-items: center; gap: 5px; font-size: 11px; opacity: 0.8; }
.chat-top small i { width: 6px; height: 6px; border-radius: 50%; background: #7ee0a1; }
.chat-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; overflow: hidden; background: var(--st-bg); }
.chat-hello, .chat-bot p { align-self: flex-start; max-width: 86%; padding: 8px 10px; border-radius: 12px 12px 12px 4px; border: 1px solid var(--st-line); background: #ffffff; font-size: 12.5px; line-height: 1.45; color: var(--st-ink); }
.chat-bot p { position: relative; isolation: isolate; }
.chat-msg { display: flex; align-items: flex-end; gap: 6px; }
.chat-me { justify-content: flex-end; }
.chat-me p { max-width: 76%; padding: 8px 10px; border-radius: 12px 12px 4px 12px; background: var(--st-brand); font-size: 12.5px; line-height: 1.45; color: #ffffff; }
.chat-me img { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.chat-typing { display: none; align-self: flex-start; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #ffffff; border: 1px solid var(--st-line); }
.chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--st-mute); animation: dot 1.1s var(--ease-ui) infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
.chat-input { display: flex; align-items: center; min-height: 36px; margin: 0 10px 10px; padding: 6px 6px 6px 10px; border: 1px solid var(--st-line); border-radius: 10px; background: #ffffff; font-size: 12px; color: var(--st-ink); white-space: nowrap; overflow: hidden; }
.chat-caret { width: 1px; height: 14px; margin-left: 1px; background: var(--st-ink); opacity: 0; }
.chat-send { display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto; border-radius: 6px; background: var(--st-brand); flex: none; }
.chat-send svg { width: 12px; height: 12px; fill: none; stroke: #ffffff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.story-cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 20px; height: 20px; fill: #1f2a24; stroke: #ffffff; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); opacity: 0; transform: translate(420px, 380px); transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s var(--ease-ui), scale 0.12s var(--ease-ui); }

.audit-log { display: flex; flex-direction: column; padding: 16px; border-radius: var(--r-lg); background: var(--band-dark-bg); color: #e8edf3; box-shadow: var(--lift-2); }
:root:not([data-theme="dark"]) .audit-log { background: var(--stripe-ink); }
.log-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 13.5px; font-weight: 600; }
.log-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.log-mark .logo-mark, .log-slack-icon .logo-mark { width: 14px; height: 14px; }
.audit-log .logo-source { fill: #ffffff; }
.log-live { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 11.5px; font-weight: 400; color: #9fb0c3; }
.log-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ruby); animation: live 1.6s var(--ease-ui) infinite; }
@keyframes live { 50% { opacity: 0.3; } }
.log-lines { display: grid; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; }
.log-lines li { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.log-lines .t { grid-row: span 2; color: #6f859c; }
.log-lines small { position: relative; isolation: isolate; grid-column: 2; margin-top: 2px; font-family: var(--font); font-size: 11.5px; color: #9fb0c3; overflow-wrap: anywhere; }
.log-lines mark { color: #ffffff; }
.audit-log mark.claim::before { background: rgba(255, 213, 82, 0.24); box-shadow: inset 0 -2px 0 #ffd552; transform: scaleX(1); }
.audit-log mark.rule::before { background: rgba(255, 97, 24, 0.26); box-shadow: inset 0 -2px 0 #ff6118; transform: scaleX(1); }
.log-error { color: #ffb4a6; }
.log-error .t { color: #ff8a75; }
.log-slack { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 10px; background: #ffffff; color: #1d1c1d; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.log-slack-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 6px; background: #f1f1f1; }
.log-slack .logo-source { fill: var(--stripe-ink); }
.log-slack p { font-size: 12px; line-height: 1.45; color: #616061; }
.log-slack b { color: #1d1c1d; }
.log-slack p > span { display: block; margin-top: 3px; color: #1d1c1d; }
.log-slack .stamp { padding: 2px 6px; margin-right: 6px; font-size: 9.5px; vertical-align: 1px; }

/* The sequence. story.js sets the steps as classes on the figure; all of them at once is the still frame. */
.js .story .chat-me, .js .story .chat-bot { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.js .story .log-lines li { opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.js .story .log-slack { opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 0.4s var(--ease), transform 0.7s var(--ease); }
.js .story .audit-log mark::before { transform: scaleX(0); transition: transform 0.6s var(--ease) 0.2s; }
.story .log-lines li.on { opacity: 1; transform: none; }
.story .log-lines li.on mark::before { transform: scaleX(1); }
.story.s-aim .story-cursor { opacity: 1; }
.story.s-press .story-cursor { scale: 0.86; }
.story.s-press .chat-launcher { transform: scale(0.94); }
.story.s-open .chat-panel { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease-ui), transform 0.45s var(--ease), visibility 0s; }
.story.s-typing-q .chat-caret { opacity: 1; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.story.s-sent .chat-me { opacity: 1; transform: none; }
.story.s-typing:not(.s-answer) .chat-typing { display: inline-flex; }
.story.s-answer .chat-bot { opacity: 1; transform: none; }
.story.s-claim .chat-bot mark.claim::before { transform: scaleX(1); }
.story.s-nav .page-home { opacity: 0; transform: translateX(-28px); }
.story.s-nav .page-policy { opacity: 1; transform: none; }
.story.s-scan .policy-scan { animation: scan-down 1s var(--ease-ui) both; }
@keyframes scan-down { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(150px); } }
.story.s-rule .policy-rule mark.rule::before { transform: scaleX(1); }
.story.s-verdict .policy-stamp { opacity: 1; transform: rotate(-6deg); transition: opacity 0.2s var(--ease-ui), transform 0.5s var(--ease); }
.story.s-alert .log-slack { opacity: 1; transform: none; }
.story.s-out :is(.chat-panel, .page-policy, .log-lines li, .log-slack, .policy-stamp) { opacity: 0; transition-duration: 0.45s; }

/* A narrow store window shows the chat the way phones do: over the whole page, then out of the way. */
@container (max-width: 560px) {
  .chat { inset: 0; display: block; }
  .chat-panel { width: 100%; height: 100%; border-radius: 0; }
  .chat-launcher { position: absolute; right: 12px; bottom: 12px; }
  .story.s-open .chat-launcher { opacity: 0; }
  .story.s-nav .chat-panel { opacity: 0; visibility: hidden; transform: translateY(24px); }
  .story.s-nav .chat-launcher { opacity: 1; }
  .store-head span:not(.store-bag) { display: none; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-grid div:nth-child(3) { display: none; }
}

.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars span { flex: 1; border-radius: var(--r-xs) var(--r-xs) 2px 2px; background: var(--surface-2); border: 1px solid var(--line); transform-origin: bottom; }
.bars span.err { background: linear-gradient(var(--magenta), var(--ruby)); border: 0; }
.js .bars span { transform: scaleY(0.05); transition: transform 1s var(--ease); }
.js .is-in .bars span { transform: none; }
.js .is-in .bars span:nth-child(2) { transition-delay: 0.05s; }
.js .is-in .bars span:nth-child(3) { transition-delay: 0.1s; }
.js .is-in .bars span:nth-child(4) { transition-delay: 0.15s; }
.js .is-in .bars span:nth-child(5) { transition-delay: 0.2s; }
.js .is-in .bars span:nth-child(6) { transition-delay: 0.25s; }
.js .is-in .bars span:nth-child(7) { transition-delay: 0.3s; }
.bars-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--faint); }

.timeline { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-top: 18px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--line-strong) 50%, var(--orange) 50%); }
.timeline div { padding-right: 14px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.timeline b { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.timeline .now b { color: var(--accent-ink); }

.look-list { display: grid; gap: 8px; }
.look-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.look-list .tag { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--look-ink); padding: 3px 8px; border-radius: 999px; background: var(--look-bg); white-space: nowrap; }

/* The wide card: findings as a report on paper, like Stripe's dashboard composite. */
.p-wide .core { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.p-wide .mock { margin: 0; padding: 0; }
.sheet { border-radius: var(--r-lg); background: var(--sheet); color: var(--sheet-ink); padding: 20px 22px 14px; box-shadow: var(--lift-2); }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--sheet-line); }
.sheet-title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.sheet-meta { font-size: 12px; color: var(--sheet-mute); }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { text-align: left; font-size: 12px; font-weight: 500; color: var(--sheet-mute); padding: 12px 12px 8px 0; }
.ledger td { padding: 11px 12px 11px 0; border-top: 1px solid var(--sheet-line); vertical-align: top; line-height: 1.45; position: relative; isolation: isolate; }
.ledger td:nth-child(2) { font-family: var(--mono); font-size: 13px; color: var(--sheet-ink); }
.ledger mark { color: var(--sheet-ink); }
.ledger mark::before { transform: scaleX(1); }
.ledger mark.claim::before { background: rgba(255, 213, 82, 0.6); box-shadow: inset 0 -2px 0 var(--yellow-deep); }
.ledger mark.rule::before { background: rgba(255, 97, 24, 0.18); box-shadow: inset 0 -2px 0 var(--orange); }
.verdict-cell { white-space: nowrap; }
.pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--r-xs); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.pill-error { background: #d8351e; color: #fff; }
.pill-ok { background: rgba(13, 37, 61, 0.08); color: var(--sheet-ink); }
.sev-note { display: block; margin-top: 4px; font-size: 12px; color: var(--sheet-mute); }
.js .ledger tbody tr { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.js .ledger.is-in tbody tr { opacity: 1; transform: none; }
.js .ledger.is-in tbody tr:nth-child(2) { transition-delay: 0.08s; }
.js .ledger.is-in tbody tr:nth-child(3) { transition-delay: 0.16s; }
.js .ledger.is-in tbody tr:nth-child(4) { transition-delay: 0.24s; }
.js .ledger.is-in tbody tr:nth-child(5) { transition-delay: 0.32s; }

/* ---------- Banner (Stripe's video banner) ---------- */

.banner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-md); min-height: 400px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 48px);
  background: var(--banner-bg); color: var(--ink);
}
.banner::before {
  content: ""; position: absolute; inset: -30% -10% -30% 25%; z-index: -1; pointer-events: none; filter: blur(30px);
  background:
    radial-gradient(30% 45% at 60% 38%, rgba(255, 144, 20, 0.55), transparent 70%),
    radial-gradient(35% 55% at 74% 62%, rgba(255, 97, 24, 0.8), transparent 70%),
    radial-gradient(40% 60% at 90% 30%, rgba(234, 34, 97, 0.85), transparent 70%),
    radial-gradient(30% 45% at 98% 78%, rgba(249, 107, 238, 0.7), transparent 70%),
    radial-gradient(30% 40% at 45% 75%, rgba(245, 233, 212, 0.3), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--banner-bg) 0%, color-mix(in srgb, var(--banner-bg) 55%, transparent) 45%, transparent 75%); }
@keyframes drift { to { transform: translate3d(-6%, 4%, 0) scale(1.08); } }
.banner .band-title { max-width: 16ch; }
.banner-steps { display: flex; flex-wrap: wrap; gap: 10px 28px; counter-reset: step; }
.banner-steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); counter-increment: step; }
.banner-steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; color: var(--ink); }

/* ---------- Stats (Stripe's "The backbone of global commerce") ---------- */

.stats-title { text-align: center; margin-inline: auto; max-width: 18ch; font-size: clamp(32px, 1.3rem + 2.2vw, 52px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 300; }
.stats-sub { text-align: center; color: var(--mute); max-width: 56ch; margin: 18px auto 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-block: 1px solid var(--line); position: relative; }
.stats::before { content: ""; position: absolute; left: 0; top: -1px; width: 30%; height: 1px; background: linear-gradient(90deg, var(--ruby), transparent); }
.stat { padding: 36px 16px; text-align: center; }
.stat-n { font-size: clamp(40px, 1.6rem + 2.4vw, 60px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--mute); }
.stat:first-child .stat-n { color: var(--ink); }
.stat-l { font-size: 15px; line-height: 1.4; color: var(--mute); margin: 12px auto 0; max-width: 20ch; }
.stat:first-child .stat-l { color: var(--ink-2); }

/* ---------- The seal on an agency's report (partners page) ---------- */


.seal-demo { position: relative; width: 100%; max-width: 420px; margin-bottom: 14px; }
.seal-report { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-1); }
.seal-agency { font-weight: 500; font-size: 15px; }
.seal-line { height: 8px; border-radius: 4px; background: var(--surface-2); }
.seal-line.short { width: 60%; }
.seal { position: absolute; right: 14px; bottom: -14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: var(--r-md); background: var(--canvas-cream); color: var(--stripe-ink); font-size: 13px; font-weight: 500; box-shadow: var(--lift-2); transform: rotate(-3deg); }
.seal .logo-mark { width: 16px; height: 16px; }
.seal .logo-source { fill: var(--stripe-ink); }

/* ---------- Dark band (Stripe's developer section) ---------- */

.band-dark { background: var(--band-dark-bg); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.pillars > div { padding: 32px 24px 0 0; }
.pillars > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.pillars h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }
.pillars p { color: var(--mute); font-size: 15px; margin-top: 10px; max-width: 36ch; }

/* ---------- Pricing (Stripe's pricing cards, featured tier inverted) ---------- */

.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.price-card .core { display: flex; flex-direction: column; }
.price-name { font-size: 22px; font-weight: 300; letter-spacing: -0.01em; }
.price { font-size: clamp(40px, 1.6rem + 1.8vw, 52px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin-top: 20px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.price .plus { color: var(--faint); }
.price-2 { font-size: clamp(30px, 1.2rem + 1.2vw, 38px); margin-top: 8px; }
.price-desc { color: var(--ink-2); margin-top: 18px; max-width: 46ch; font-size: 15px; }
.includes { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.includes li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.includes svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: var(--ruby); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card .includes + .btn, .price-card .calc + .btn { margin-top: 28px; }
.price-card.featured { background: var(--inv-bg); color: var(--inv-ink); border-color: transparent; }
.featured .price-name, .featured .price { color: var(--inv-ink); }
.featured .price small, .featured .price .plus { color: var(--inv-mute); }
.featured .includes { border-top-color: var(--inv-line); }
.featured .includes li { color: var(--inv-ink); opacity: 0.9; }
.featured .includes svg { stroke: var(--magenta); }
.calc { margin-top: 24px; padding: 18px; border-radius: var(--r-md); background: var(--inv-calc); }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc label { font-size: 14px; color: var(--inv-mute); }
.calc output { font-size: 14px; color: var(--inv-ink); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 10px 0 2px; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ruby) var(--fill, 20%), var(--inv-track) var(--fill, 20%)); }
.calc input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--inv-track); }
.calc input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ruby); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 1px solid rgba(13, 37, 61, 0.2); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.calc input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid rgba(13, 37, 61, 0.2); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--inv-line); }
.calc-total span { font-size: 14px; color: var(--inv-mute); font-variant-numeric: tabular-nums; }
.calc-total strong { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--inv-ink); }
.calc-note { font-size: 13px; color: var(--inv-mute); margin-top: 8px; min-height: 3em; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq dt { font-weight: 500; font-size: 17px; }
.faq dd { color: var(--mute); margin-top: 8px; max-width: 64ch; }
details.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 400; font-size: 18px; letter-spacing: -0.005em; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-3px) rotate(45deg); transition: transform 0.4s var(--ease); }
details.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details.faq-item .answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
details.faq-item[open] .answer { grid-template-rows: 1fr; }
details.faq-item .answer > p { overflow: hidden; color: var(--mute); max-width: 64ch; padding-top: 10px; }
.faq a, .lede a { color: var(--ink); text-decoration-color: var(--ruby); text-underline-offset: 3px; }

/* ---------- Closing (Stripe's "Ready to get started?") ---------- */

.closing { --bg: var(--bg-soft); background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(56px, 6vw, 80px); }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.closing h2 { font-size: clamp(28px, 1.1rem + 1.4vw, 38px); font-weight: 300; letter-spacing: -0.022em; line-height: 1.12; }
.closing p { color: var(--mute); margin-top: 14px; max-width: 46ch; }
.closing-links { display: grid; gap: 24px; }
.closing-links a { display: block; text-decoration: none; }
.closing-links b { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent-ink); }
.closing-links span { display: block; color: var(--mute); font-size: 14.5px; margin-top: 4px; }

/* ---------- Footer ---------- */

.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 40px; }
.footer-brand p { color: var(--mute); margin-top: 14px; max-width: 30ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-cols div { display: grid; gap: 10px; align-content: start; }
.footer-head { font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.footer-cols a { color: var(--mute); text-decoration: none; width: fit-content; transition: color 0.2s var(--ease-ui); }
.footer-cols a:hover { color: var(--accent-ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--faint); }
.footer-base a { color: var(--ink-2); }
/* The theme switch is there for whoever looks for it, and quiet otherwise. */

/* ---------- Talk to us: a person, one click away, once the reader is past the hero ---------- */

.talk { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; justify-items: end; gap: 10px; pointer-events: none; }
.talk-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 16px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--dd-bg); color: var(--ink); font-size: 14.5px; font-weight: 500; cursor: pointer;
  box-shadow: 0 12px 32px var(--dd-shadow), 0 2px 6px var(--dd-shadow);
  opacity: 0; transform: translateY(18px) scale(0.96); transition: opacity 0.35s var(--ease-ui), transform 0.5s var(--ease);
}
.talk.is-shown .talk-btn { opacity: 1; transform: none; pointer-events: auto; }
.talk.is-shown .talk-btn:active { transform: scale(0.97); }
.talk-face { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--stripe-ink); }
.talk-face .logo-mark { width: 17px; height: 17px; }
.talk-face .logo-source { fill: #ffffff; }
.talk-panel {
  width: min(320px, calc(100vw - 40px)); padding: 20px; border-radius: var(--r-lg); background: var(--dd-bg); border: 1px solid var(--line);
  box-shadow: 0 24px 48px var(--dd-shadow), 0 2px 8px var(--dd-shadow); transform-origin: bottom right;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.96);
  transition: opacity 0.2s var(--ease-ui), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.talk.is-open .talk-panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 0.2s var(--ease-ui), transform 0.3s var(--ease), visibility 0s; }
.talk-title { font-size: 17px; font-weight: 500; color: var(--ink); }
.talk-text { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.talk-panel .btn { margin-top: 16px; width: 100%; }
.talk-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 14px; font-size: 13.5px; }
.talk-links a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--ruby); }

/* ---------- The note on cookies and storage: said once per browser, on every page and in the dashboard ---------- */

/* The site sets no cookies, so this is a note with one button, not a choice (Dusan, 18. 11.). It is
   fixed, so nothing on the page moves for it; the band it sits in lets clicks through beside the card;
   it stays under the open phone menu and under every dialog. */
.storage-note { position: fixed; inset: auto 20px 20px; z-index: 44; display: flex; justify-content: center; pointer-events: none; }
.storage-note-card {
  pointer-events: auto; display: flex; align-items: center; gap: 16px; max-width: 640px; padding: 10px 10px 10px 18px;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--dd-bg); color: var(--ink-2); font-size: 14px; line-height: 1.45;
  box-shadow: 0 12px 32px var(--dd-shadow), 0 2px 6px var(--dd-shadow);
}
.storage-note-card a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; text-decoration-color: var(--ruby); }
.storage-note-ok {
  flex: none; min-width: 64px; min-height: 36px; padding: 8px 16px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: var(--bg);
  font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; transition: opacity 0.3s var(--ease-ui), transform 0.2s var(--ease-ui);
}
.storage-note-ok:hover { opacity: 0.86; }
.storage-note-ok:active { transform: scale(0.97); }
.storage-note.is-leaving .storage-note-card { opacity: 0; }
/* Talk to us and the dashboard's toasts live at the same edge: while the note is there they sit above it. */
.talk, .toasts { transition: translate 0.3s var(--ease-ui); }
:root:has(.storage-note:not(.is-leaving)) .toasts { translate: 0 calc(-12px - var(--storage-note-h, 64px)); }
@media (max-width: 1040px) {
  :root:has(.storage-note:not(.is-leaving)) .talk { translate: 0 calc(-12px - var(--storage-note-h, 64px)); }
}
@media (max-width: 560px) {
  .storage-note { inset: auto 12px 12px; }
  .storage-note-card { gap: 12px; padding: 10px 10px 10px 14px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .storage-note.is-entering .storage-note-card { animation: storage-note-in 0.5s var(--ease) 0.3s both; }
  .storage-note.is-leaving .storage-note-card { transform: translateY(8px); transition: opacity 0.2s var(--ease-ui), transform 0.24s var(--ease-ui); }
}
@keyframes storage-note-in { from { opacity: 0; transform: translateY(12px); } }
@media print { .storage-note { display: none; } }

/* ---------- Sub pages ---------- */

.page-hero { padding: clamp(136px, 14vw, 180px) 0 clamp(48px, 6vw, 80px); position: relative; isolation: isolate; overflow-x: clip; }
/* Every page opens on the same warm mesh, as every Stripe page opens on its own. */
.page-hero::before, .doc-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 100%; z-index: -1; pointer-events: none; filter: blur(40px); opacity: calc(var(--wash-a) * 1.6);
  background:
    radial-gradient(26% 50% at 66% 14%, rgba(255, 213, 82, 0.55), transparent 70%),
    radial-gradient(28% 55% at 80% 26%, rgba(255, 97, 24, 0.5), transparent 70%),
    radial-gradient(24% 50% at 92% 10%, rgba(234, 34, 97, 0.5), transparent 70%),
    radial-gradient(22% 45% at 100% 34%, rgba(249, 107, 238, 0.45), transparent 70%),
    radial-gradient(22% 40% at 56% 0%, rgba(245, 233, 212, 0.6), transparent 70%);
}

.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.book-action { margin-top: 36px; display: grid; gap: 16px; justify-items: start; }
.book-steps { display: grid; gap: 12px; }
.book-steps h2 { font-size: 21px; font-weight: 400; letter-spacing: -0.01em; margin-top: 6px; }
.book-steps p:not(.step-label) { color: var(--mute); margin-top: 8px; font-size: 15px; }
.book-steps .core { padding: 24px 28px; }
.book-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.step-label { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.flow-step { padding: 28px 24px 0 0; position: relative; }
.flow-step + .flow-step { border-left: 1px solid var(--line); padding-left: 16px; }
.flow-step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--ruby); }
.flow-index { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.flow-step h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; margin-top: 14px; }
.flow-step p { color: var(--mute); font-size: 15px; margin-top: 10px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento h3 { font-size: 22px; font-weight: 300; letter-spacing: -0.012em; line-height: 1.2; margin-top: 8px; }
.bento p { color: var(--mute); font-size: 15px; margin-top: 10px; }
.card-label { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink) !important; margin-top: 0 !important; }
.bento-partners .bento-a { grid-column: span 7; grid-row: span 2; }
.bento-partners .bento-b, .bento-partners .bento-c { grid-column: span 5; }
.bento-partners .bento-d { grid-column: span 12; }
.cta-band { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta-inner .hero-actions { justify-content: center; }

.form-note { font-size: 14px; color: var(--mute); }
.form-note a { color: var(--ink); }

/* Documents: bot page, privacy, terms. */
.doc-hero { padding: clamp(136px, 14vw, 180px) 0 clamp(32px, 4vw, 56px); position: relative; isolation: isolate; overflow-x: clip; }
.doc-meta { font-size: 13px; color: var(--faint); margin-top: 16px; }
.doc { padding-bottom: var(--section); }
.doc-section { padding-block: 32px; border-top: 1px solid var(--line); }
.doc-section h2 { font-size: clamp(22px, 1rem + 0.7vw, 26px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }
.doc-section p, .doc-section li { color: var(--ink-2); }
.doc-section p { margin-top: 12px; max-width: 68ch; }
.doc-section a { color: var(--ink); text-decoration-color: var(--ruby); text-underline-offset: 3px; }
.doc-section code { font-size: 0.88em; padding: 2px 6px; border-radius: var(--r-xs); background: var(--surface-2); color: var(--ink); }
.facts { display: grid; gap: 8px; margin-top: 16px; }
.facts li { position: relative; padding-left: 20px; max-width: 66ch; }
.facts li::before { content: ""; position: absolute; left: 3px; top: 0.68em; width: 6px; height: 6px; border-radius: 1px; background: var(--ruby); transform: rotate(45deg); }
.facts strong { color: var(--ink); font-weight: 500; }
.ua { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ua-label { color: var(--mute); font-size: 15px; }
.ua code { padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-strong); font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.code { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.7; overflow-x: auto; }

/* Bot page: what the bot does, shown as a store's robots.txt and the log of one visit. */
.crawl { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 12px; align-items: start; margin-top: 36px; }
.crawl-file, .crawl-log { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--lift-2); font-family: var(--mono); font-size: 13px; }
.crawl-file { padding: 14px 16px; }
.crawl-name { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--mute); }
.crawl-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--orange); }
.crawl-file pre { margin: 0; line-height: 1.85; white-space: normal; overflow-x: auto; }
.rl { position: relative; isolation: isolate; display: block; white-space: pre; color: var(--ink-2); }
.rl-no { color: var(--ink); }
.rl-no::before { content: ""; position: absolute; inset: 1px -6px; z-index: -1; border-radius: var(--r-xs); background: var(--rule-bg); box-shadow: inset 2px 0 0 var(--orange); transform-origin: left; }
.crawl-log { padding: 6px 0; }
.crawl-log li { position: relative; display: grid; grid-template-columns: 52px 38px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.crawl-log li:first-child { border-top: 0; }
.crawl-log .t { text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
.crawl-log .m { font-size: 11.5px; color: var(--mute); }
.crawl-log .p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.crawl-log .s { font-size: 11.5px; color: var(--mute); }
.crawl-log .skip-row .m, .crawl-log .skip-row .s { color: var(--error-ink); }
.crawl-log .skip-row .p { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--error); }
/* Each request lands after the one before it, never two at once: the three seconds, sped up. */
.crawl-log li::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 1px; background: var(--ruby); transform-origin: left; transform: scaleX(0); opacity: 0; }
.js .crawl .rl, .js .crawl-log li { opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.js .crawl .rl-no::before { transform: scaleX(0); transition: transform 0.6s var(--ease); }
.crawl.is-in .rl, .crawl.is-in .crawl-log li { opacity: 1; transform: none; }
.crawl.is-in .rl-no::before { transform: scaleX(1); }
.crawl.is-in .rl:nth-child(2), .crawl.is-in .rl:nth-child(2)::before { transition-delay: 0.3s; }
.crawl.is-in .rl:nth-child(3), .crawl.is-in .rl:nth-child(3)::before { transition-delay: 0.4s; }
.crawl.is-in .rl:nth-child(4), .crawl.is-in .rl:nth-child(4)::before { transition-delay: 0.5s; }
.crawl.is-in .rl:nth-child(5) { transition-delay: 0.6s; }
.crawl.is-in .crawl-log li:nth-child(1) { transition-delay: 0.9s; }
.crawl.is-in .crawl-log li:nth-child(2) { transition-delay: 1.5s; }
.crawl.is-in .crawl-log li:nth-child(3) { transition-delay: 1.8s; }
.crawl.is-in .crawl-log li:nth-child(4) { transition-delay: 2.1s; }
.crawl.is-in .crawl-log li:nth-child(5) { transition-delay: 2.7s; }
.crawl.is-in .crawl-log li:nth-child(6) { transition-delay: 3s; }
.crawl.is-in .crawl-log li:nth-child(7) { transition-delay: 3.3s; }
.crawl.is-in .crawl-log li:not(.skip-row)::after { animation: request 0.7s var(--ease) both; }
.crawl.is-in .crawl-log li:nth-child(1)::after { animation-delay: 0.9s; }
.crawl.is-in .crawl-log li:nth-child(2)::after { animation-delay: 1.5s; }
.crawl.is-in .crawl-log li:nth-child(4)::after { animation-delay: 2.1s; }
.crawl.is-in .crawl-log li:nth-child(5)::after { animation-delay: 2.7s; }
.crawl.is-in .crawl-log li:nth-child(7)::after { animation-delay: 3.3s; }
@keyframes request { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* Legal pages: contents on the side, as on Stripe's legal pages. */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--section); }
.legal-toc { position: sticky; top: 96px; font-size: 14px; }
.legal-toc p { font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.legal-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--mute); text-decoration: none; transition: color 0.2s var(--ease-ui), border-color 0.2s var(--ease-ui); }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a[aria-current="true"] { color: var(--accent-ink); border-left-color: var(--ruby); }
.legal-body { min-width: 0; max-width: 74ch; }
.legal-body .doc-section:first-child { border-top: 0; padding-top: 0; }
.doc-section h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.005em; margin-top: 22px; color: var(--ink); }
.doc-section ul.facts + p, .doc-section .table-wrap + p { margin-top: 14px; }
.glance { padding: 24px 26px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.glance h2 { font-size: 18px; font-weight: 500; letter-spacing: -0.005em; }
.glance .facts { margin-top: 12px; }
.draft-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; border-radius: var(--r-md); background: var(--look-bg); border: 1px solid var(--look-line); color: var(--ink-2); font-size: 14px; max-width: 74ch; }
.draft-note b { color: var(--look-ink); font-weight: 600; white-space: nowrap; }
/* Anything not yet decided is marked where it stands, so it cannot be missed. */
mark.todo { white-space: normal; padding: 0 5px; border-radius: var(--r-xs); background: var(--look-bg); color: var(--look-ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--look-line); }
mark.todo::before { display: none; }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal-table th { text-align: left; font-weight: 500; color: var(--ink); background: var(--surface); padding: 10px 14px; white-space: nowrap; }
.legal-table td { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; min-width: 140px; }
.legal-table td:first-child { color: var(--ink); font-weight: 500; }

/* Forms. */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 16px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input {
  min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--hairline-input); background: var(--panel); color: var(--ink);
  font-size: 16px; transition: border-color 0.2s var(--ease-ui), box-shadow 0.2s var(--ease-ui);
}
[data-theme="dark"] .field input { border-color: var(--line-strong); }
.field input::placeholder { color: var(--faint); }
.field select { font: inherit; font-size: 16px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--hairline-input); background: var(--panel); color: var(--ink); transition: border-color 0.2s var(--ease-ui), box-shadow 0.2s var(--ease-ui); }
[data-theme="dark"] .field select { border-color: var(--line-strong); }
.field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(224, 36, 94, 0.16); }
.field textarea { font: inherit; font-size: 16px; width: 100%; min-height: 88px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--hairline-input); background: var(--panel); color: var(--ink); resize: vertical; transition: border-color 0.2s var(--ease-ui), box-shadow 0.2s var(--ease-ui); }
[data-theme="dark"] .field textarea { border-color: var(--line-strong); }
.field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(224, 36, 94, 0.16); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-row.three { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.field-row > .field { min-width: 0; }
.field-row > .field + .field { margin-top: 0; }
.field .opt { font-weight: 400; color: var(--faint); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .field-row, .field-row.three { grid-template-columns: minmax(0, 1fr); } }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(224, 36, 94, 0.16); }
.field-hint { font-size: 13.5px; color: var(--mute); line-height: 1.5; }
.form-error { margin-top: 16px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--error-bg); border: 1px solid var(--error-line); color: var(--error-ink); font-size: 14px; }
.optout { margin-top: 20px; display: grid; padding: 24px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.optout .btn { margin-top: 20px; justify-self: start; }
.optout .form-note { margin-top: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); cursor: pointer; font-size: 15px; color: var(--ink-2); }
.check + .check { margin-top: 8px; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 1px 0 0; border-radius: var(--r-xs); border: 1.5px solid var(--line-strong); background: var(--panel); cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s var(--ease-ui); }
.check input::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 0.25s var(--ease); }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }

/* ---------- Try ---------- */

.try-app .core { padding: clamp(24px, 4vw, 40px); min-height: 340px; }
.try-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; counter-reset: s; }
.try-steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; font-size: 13px; color: var(--faint); border: 1px solid var(--line); }
.try-steps li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.try-steps li[aria-current="step"] { color: var(--ink); border-color: var(--line-strong); }
.try-steps li[aria-current="step"]::before { background: var(--primary); color: var(--on-primary); }
.try-form .btn, .confirm-form .btn { margin-top: 24px; }
.panel-title { font-size: clamp(26px, 1.1rem + 1.1vw, 34px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; outline: none; }
.try-panel > p { color: var(--ink-2); margin-top: 12px; max-width: 58ch; }
.try-panel strong { color: var(--ink); font-weight: 500; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.confirm-form { margin-top: 24px; }
.dev-note { margin-top: 20px !important; padding: 10px 12px; border-radius: var(--r-sm); background: var(--look-bg); border: 1px solid var(--look-line); font-family: var(--mono); font-size: 13px; }
.dev-note a { color: var(--look-ink); }
.pulse-line { height: 3px; border-radius: 3px; margin-bottom: 24px; overflow: hidden; background: var(--surface-2); position: relative; }
.pulse-line::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 3px; background: var(--ruby); animation: scan 1.4s var(--ease-ui) infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.meter { height: 8px; border-radius: 8px; background: var(--surface-2); margin-top: 24px; overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--orange), var(--ruby), var(--magenta)); transform-origin: left; transform: scaleX(0.02); transition: transform 0.8s var(--ease); }
.meter-label { font-size: 14px; color: var(--ink) !important; margin-top: 12px !important; font-variant-numeric: tabular-nums; }
.try-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 24px; }
.try-facts li { position: relative; padding-left: 18px; font-size: 14px; color: var(--mute); }
.try-facts li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 1px; background: var(--ruby); transform: rotate(45deg); }

/* The result. */
.report-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.report-title { font-size: clamp(28px, 1.1rem + 1.4vw, 38px); font-weight: 300; letter-spacing: -0.022em; line-height: 1.1; margin-top: 14px; outline: none; overflow-wrap: anywhere; }
.report-meta { font-size: 13px; color: var(--faint); margin-top: 10px; font-variant-numeric: tabular-nums; }
.report-stop { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--look-bg); border: 1px solid var(--look-line); color: var(--ink-2); font-size: 15px; }
.tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.tally-cell { padding: 14px 16px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); }
.tally dt { font-size: 13px; color: var(--mute); }
.tally dd { font-size: 38px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tally-proven dd { color: var(--error); }
.tally-suspicion dd { color: var(--look-ink); }
.tally-unchecked dd { color: var(--faint); }
.report-group { margin-top: 36px; }
.report-group-head { display: flex; align-items: center; gap: 10px; }
.report-group-head h3 { font-size: 24px; font-weight: 300; letter-spacing: -0.015em; }
.report-group-head .count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.group-proven .count { background: var(--error); color: #fff; }
.group-suspicion .count { background: var(--look-bg); color: var(--look-ink); }
.report-note { color: var(--mute); font-size: 15px; margin-top: 6px; max-width: 64ch; }
.report-list { display: grid; gap: 12px; margin-top: 16px; }
.report-empty { color: var(--faint); font-size: 15px; }
.finding { padding: 18px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 12px; }
.finding-proven { border-color: var(--error-line); }
.finding-suspicion { border-color: var(--look-line); }
.finding-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.finding-suspicion .finding-tag { color: var(--look-ink); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px; font-weight: 600; }
.sev { padding: 3px 8px; border-radius: var(--r-xs); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--error); color: #fff; }
.sev-medium { background: var(--orange); color: #141416; }
.sev-low { background: var(--surface-2); color: var(--ink); }
.exchange { display: grid; gap: 8px; }
.exchange-q { justify-self: end; max-width: 86%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--bubble); color: var(--ink-2); font-size: 15px; }
.exchange-a { max-width: 92%; padding: 10px 13px; border-radius: 12px 12px 12px 4px; background: var(--surface); color: var(--ink); font-size: 15px; box-shadow: inset 3px 0 0 var(--claim-line); }
.finding-correct .exchange-a { box-shadow: inset 3px 0 0 var(--mute); }
.evidence { padding: 12px 14px; border-radius: var(--r-md); background: var(--rule-bg); box-shadow: inset 3px 0 0 var(--orange); }
.evidence-text { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.evidence-source { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--mute); }
.evidence-source a { color: var(--ink-2); overflow-wrap: anywhere; }
.finding-why { color: var(--ink-2); font-size: 15px; }
.fix { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); }
.fix-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.fix-text { margin-top: 6px; color: var(--ink); font-size: 15px; }
.fix-note { margin-top: 6px; font-size: 13px; color: var(--faint); }
.report-cta { margin-top: 40px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-md); background: var(--inv-bg); color: var(--inv-ink); display: grid; gap: 10px; justify-items: start; }
.report-cta h3 { font-size: clamp(24px, 1rem + 1vw, 30px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.report-cta p { color: var(--inv-mute); max-width: 52ch; }
.report-cta .btn { margin-top: 8px; }

/* ---------- Motion: each section explains itself as it arrives ---------- */

/* Product cards: once a card lands, its mock-up plays its own small scene. */
.js .timeline::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) 0.3s; }
.js .is-in .timeline::before { transform: scaleX(1); }
.js .timeline div { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.js .timeline div:first-child { transition-delay: 0.5s; }
.js .timeline div:last-child { transition-delay: 1.1s; }
.js .is-in .timeline div { opacity: 1; transform: none; }
.js .look-list li { opacity: 0; transform: translateX(-12px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.js .look-list li:nth-child(1) { transition-delay: 0.4s; }
.js .look-list li:nth-child(2) { transition-delay: 0.55s; }
.js .is-in .look-list li { opacity: 1; transform: none; }
/* Each verdict lands like a stamp, after its row. */
.js .ledger .pill { opacity: 0; transform: scale(1.25) rotate(-4deg); transition: opacity 0.3s var(--ease-ui), transform 0.5s var(--ease); }
.js .ledger.is-in .pill { opacity: 1; transform: none; }
.js .ledger.is-in tr:nth-child(1) .pill { transition-delay: 0.35s; }
.js .ledger.is-in tr:nth-child(2) .pill { transition-delay: 0.45s; }
.js .ledger.is-in tr:nth-child(3) .pill { transition-delay: 0.55s; }
.js .ledger.is-in tr:nth-child(4) .pill { transition-delay: 0.65s; }
.js .ledger.is-in tr:nth-child(5) .pill { transition-delay: 0.75s; }

.js .seal { opacity: 0; transform: rotate(-12deg) scale(1.15); transition: opacity 0.4s var(--ease-ui) 0.5s, transform 0.7s var(--ease) 0.5s; }
.js .is-in .seal { opacity: 1; transform: rotate(-3deg); }

/* The stats line sweeps in before the numbers count. */
.js .stats::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s; }
.js .stats.is-in::before { transform: scaleX(1); }


/* Pricing: what is included arrives line by line. */
.js .price-card .includes li { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.js .price-card .includes li:nth-child(1) { transition-delay: 0.3s; }
.js .price-card .includes li:nth-child(2) { transition-delay: 0.4s; }
.js .price-card .includes li:nth-child(3) { transition-delay: 0.5s; }
.js .price-card .includes li:nth-child(4) { transition-delay: 0.6s; }
.js .price-card.is-in .includes li { opacity: 1; transform: none; }

/* Try: a new step rises in place of the old one; findings follow one by one. */
.try-panel:not([hidden]) { animation: rise 0.45s var(--ease) both; }
.report-list > li { animation: rise 0.6s var(--ease) both; }
.report-list > li:nth-child(2) { animation-delay: 0.08s; }
.report-list > li:nth-child(3) { animation-delay: 0.16s; }
.report-list > li:nth-child(n + 4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Cards lift a little under the pointer; their arrival keeps its own timing. */
.js .products .shell[data-reveal], .js .price-card[data-reveal] {
  transition-property: opacity, transform, translate, box-shadow;
  transition-duration: 0.9s, 1s, 0.25s, 0.25s;
  transition-timing-function: var(--ease), var(--ease), var(--ease-ui), var(--ease-ui);
  transition-delay: calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms), 0s, 0s;
}
@media (hover: hover) and (pointer: fine) {
  .products .shell:hover, .price-card:hover { translate: 0 -3px; box-shadow: var(--lift-2); }
  .strip:hover .marquee-track { animation-play-state: paused; }
}

/* Scrolling itself moves things, where the browser can do it off the main thread. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero > .container { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
    .products .mock { animation: mock-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .stats-title, .banner .band-title { animation: drift-up linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}
@keyframes hero-out { to { transform: translateY(-56px); opacity: 0.2; } }
@keyframes mock-rise { from { transform: translateY(36px); } to { transform: none; } }
@keyframes drift-up { from { transform: translateY(24px); } to { transform: none; } }

/* Moving between pages fades the content while the nav stays put. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out 0.18s var(--ease-ui) both; }
::view-transition-new(root) { animation: vt-in 0.4s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Breakpoints (Stripe: 1024, 768) ---------- */

@media (max-width: 1023px) {
  .nav-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-bar { gap: 16px; }
  .p-half, .p-third { grid-column: span 6; }
  .p-wide .core { grid-template-columns: 1fr; }
  .story, .story-head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .pillars { grid-template-columns: 1fr; }
  .pillars > div, .pillars > div + div { border-left: 0; padding-left: 0; }
  .pillars > div + div { border-top: 1px solid var(--line); margin-top: 24px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .flow-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .book-grid { grid-template-columns: 1fr; }
  .book-flow, .crawl { grid-template-columns: 1fr; }
  .closing-grid { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
  .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; column-gap: 16px; }
  .legal-toc a { padding-left: 0; border-left: 0; }
  .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 40%, var(--bg) 100%); }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  main::before { display: none; }
  main .container, .footer .container { padding-inline: 0; }
  .nav-links, .nav-actions, .mm { display: none; }
  .talk { right: 16px; bottom: 16px; }
  .nav-bar > .theme-toggle { display: inline-grid; margin-left: auto; }
  .nav-toggle { display: block; }
  .nav-bar { height: 64px; gap: 8px; }
  .hero { min-height: auto; padding: 112px 0 64px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-partners .bento-a, .bento-partners .bento-b, .bento-partners .bento-c, .bento-partners .bento-d { grid-column: span 12; grid-row: auto; }
  .flow { grid-template-columns: 1fr; }
  .flow-step, .flow-step + .flow-step { border-left: 0; padding-left: 0; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr { padding: 12px 0; border-top: 1px solid var(--sheet-line); }
  .ledger td { border: 0; padding: 3px 0; }
  .ledger td:nth-child(2)::before { content: "Your site: "; font-family: var(--font); color: var(--sheet-mute); }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .try-facts { grid-template-columns: 1fr; }
  .core { padding: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .btn { min-height: 44px; }
}

@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; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}
