/* Hallmark · genre: modern-minimal · macrostructure: Marquee Hero · nav: N1b (centered links, blur backdrop) · footer: Ft1 mast-headed + statement closing
 * theme: studied-DNA (source: url https://www.sim.ai/ — white paper, zero-chroma greys, black pill CTAs, 500-weight tight display, textured grey product frame)
 * paper oklch(100% 0 0) · ink oklch(21% 0 0) · accent oklch(51% 0.23 277) ≈ brand #4f46e5 (focus ring + live dot only)
 * display: Geist 500 · body: Geist 400 · mono: Geist Mono (machine-data role: stream rows, audit values)
 * observed-fonts (source): system grotesk · observed-paper: #F8F8F8 / #FFFFFF · observed-ink: #1A1A1A / #3B3B3B · rhythm: generous (screenshots)
 * enrichment: Tier-A CSS texture frame (gradient + SVG grain) · live simulated decision stream · vertical flow figure · audit record
 * studied: yes · DNA-source: url (public reference for the user's own brand)
 * Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4
 * Tokens live in /tokens.css — every color and font below references a named token.
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
/* no translucent tap flash over block links (citation rows, footer columns) on touch devices */
a, button { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-tint); color: var(--ink); }

strong { color: var(--ink); font-weight: 500; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
  min-width: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-input);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ————————————————————————————————————————————————
   Nav · N1b three-section, sticky, blur backdrop, no rule
   ———————————————————————————————————————————————— */
.topnav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.topnav-inner {
  max-width: var(--bleed-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-lg);
}
.logo { display: inline-flex; align-items: center; color: var(--ink); justify-self: start; }
.logo-img { height: 28px; width: auto; }
.logo-tagline {
  font-size: var(--text-sm);
  color: var(--ink-mid);
  margin-left: var(--space-sm);
  padding-left: var(--space-sm);
  border-left: var(--rule-hair) solid var(--rule);
  line-height: 1.3;
  white-space: nowrap;
}
.topnav-links {
  display: flex;
  gap: var(--space-xl);
  justify-self: center;
}
.topnav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: var(--space-xs) 0;
  transition: color var(--dur-micro) var(--ease-out);
}
.topnav-links a:hover { color: var(--ink); }
.topnav-links a[aria-current="page"] { color: var(--ink); }

/* Phone menu — hamburger shows below 60rem and opens a native popover panel under the nav */
.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: var(--rule-hair) solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-menu-btn svg { width: 18px; height: 18px; }
.nav-menu-btn:hover { background: var(--bg-soft); }
.nav-menu {
  position: fixed;
  inset: 68px var(--page-gutter) auto;
  width: auto;
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  margin: 0;
  padding: var(--space-sm);
  border: var(--rule-hair) solid var(--rule);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.12);
}
.nav-menu::backdrop { background: rgb(0 0 0 / 0.12); }
.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-sm);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--bg-soft); }
.nav-menu ul { list-style: none; margin: 0 0 var(--space-2xs) var(--space-sm); padding-left: var(--space-sm); border-left: var(--rule-hair) solid var(--rule); }
.nav-menu ul a { min-height: 40px; font-size: 15px; font-weight: 400; color: var(--ink-mid); }
.nav-menu .nav-menu-signin { margin-top: var(--space-2xs); border-top: var(--rule-hair) solid var(--rule-soft); border-radius: 0 0 10px 10px; color: var(--ink-mid); }

/* Solutions sub-menu — opens on hover and keyboard focus; the label links to the overview */
.nav-drop { position: relative; }
.nav-drop-label { display: inline-flex; align-items: center; gap: var(--space-3xs); }
.nav-caret { width: 12px; height: 12px; transition: transform var(--dur-short) var(--ease-out); }
.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 340px;
  padding-top: var(--space-sm); /* hover bridge between label and panel */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility var(--dur-short);
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop:hover .nav-caret,
.nav-drop:focus-within .nav-caret { transform: rotate(180deg); }
.nav-drop-panel > ul,
.nav-drop-panel > .nav-drop-all { background: var(--card); }
.nav-drop-panel > ul {
  list-style: none;
  padding: var(--space-xs);
  border: var(--rule-hair) solid var(--rule);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 24px 48px -24px oklch(0% 0 0 / 0.25);
}
.topnav-links .nav-drop-panel li a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm);
  border-radius: 10px;
  white-space: normal;
}
.topnav-links .nav-drop-panel li a:hover { background: var(--bg-soft); }
.nav-drop-panel li strong { font-size: 15px; }
.nav-drop-panel li span { font-size: 13px; font-weight: 400; color: var(--ink-mid); }
.topnav-links .nav-drop-all {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: 14px;
  border: var(--rule-hair) solid var(--rule);
  border-top-color: var(--rule-soft);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 24px 48px -24px oklch(0% 0 0 / 0.25);
}
.nav-drop-all:hover { background: var(--bg-soft); }
@media (prefers-reduced-motion: reduce) { .nav-drop-panel { transform: translate(-50%, 0); } }

.topnav-actions { display: inline-flex; align-items: center; gap: var(--space-xs); justify-self: end; }
.topnav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  font-weight: 500;
  height: 36px;
  padding: 0 var(--space-md);
  background: var(--ink);
  color: var(--bg);
  border: var(--rule-hair) solid var(--ink);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--dur-micro) var(--ease-out), transform 100ms var(--ease-out);
}
.topnav-cta:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.topnav-cta:active { transform: translateY(1px); }
.topnav-cta--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.topnav-cta--ghost:hover { background: var(--bg-soft); border-color: var(--rule); color: var(--ink); }
/* invisible tap-target extension — compact visuals, 44px+ hit area */
.topnav-cta::after { content: ""; position: absolute; inset: -5px; }

/* ————————————————————————————————————————————————
   Frames
   ———————————————————————————————————————————————— */
.page { position: relative; }
.section-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}
.stage { padding-block-start: var(--space-4xl); scroll-margin-top: 80px; }

/* ————————————————————————————————————————————————
   Buttons · pill pair (black fill / white outline) · 8-state contract
   ———————————————————————————————————————————————— */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  min-height: 48px;
  padding: 0 var(--space-lg);
  background: var(--ink);
  color: var(--bg);
  border: var(--rule-hair) solid var(--ink);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-micro) var(--ease-out),
              border-color var(--dur-micro) var(--ease-out),
              transform 100ms var(--ease-out);
}
.cta-btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.cta-btn:active { transform: translateY(1px); }
.cta-btn:disabled { opacity: 0.55; cursor: wait; transform: none; }
.cta-btn--ghost { background: var(--card); color: var(--ink); border-color: var(--rule); }
.cta-btn--ghost:hover { background: var(--bg-soft); border-color: var(--rule); color: var(--ink); }
.chev { width: 12px; height: 12px; flex-shrink: 0; }

/* ————————————————————————————————————————————————
   Hero · statement left, lede + actions right, product frame below
   ———————————————————————————————————————————————— */
.hero { padding-block-start: var(--space-3xl); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-2xl);
  align-items: center;
}
.hero h1 {
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
/* Rotating headline term — unbreakable so the fixed words never reflow;
   .flap cells are the per-letter split-flap tiles while a word changes */
.rotate { display: inline-block; white-space: nowrap; perspective: 800px; }
.rotate .flap { display: inline-block; text-align: center; }
.hero-side { padding-block-start: var(--space-md); }
.hero-lede {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: var(--space-sm);
  text-wrap: pretty;
}
/* Who it is for + the two ways in; sits between the lede and the buttons */
.hero-who { font-size: var(--text-sm); line-height: 1.6; color: var(--ink-mid); max-width: 40ch; margin-bottom: var(--space-lg); text-wrap: pretty; }
.hero-watch { font-size: 15px; font-weight: 500; margin-inline-start: var(--space-2xs); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

/* The product frame — textured grey stage, artifact centered inside */
.frame {
  position: relative;
  max-width: var(--bleed-max);
  margin: var(--space-3xl) auto 0;
  padding: clamp(2rem, 6vw, 5.5rem) var(--page-gutter);
  border-radius: var(--radius-frame);
  background: var(--frame-bg);
  overflow: hidden;
  isolation: isolate;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.frame > * { position: relative; }
@media (min-width: 60.001rem) {
  .frame { margin-inline: max(var(--page-gutter), calc((100% - var(--bleed-max)) / 2)); }
}

/* Overview video — centered dialog */
.video-modal {
  margin: auto;
  border: 0;
  padding: 0;
  width: min(92vw, 1120px);
  max-width: none;
  max-height: none;
  background: var(--term-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.video-modal::backdrop { background: oklch(15% 0 0 / 0.9); }
.video-modal video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ————————————————————————————————————————————————
   Decision stream — simulated live feed, the hero artifact
   ———————————————————————————————————————————————— */
.stream {
  display: flex;
  flex-direction: column;
  max-width: 780px;
  margin: 0 auto;
  height: 440px; /* fixed: rows animate inside, the frame never resizes */
  background: var(--card);
  border: var(--rule-hair) solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 1px 2px oklch(0% 0 0 / 0.06), 0 40px 80px -40px oklch(0% 0 0 / 0.35);
  overflow: hidden;
}
.stream-head {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--rule-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
}
.stream-list {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-block: var(--space-2xs);
}
/* Rows animate height via grid-template-rows so the feed physically
   pushes down on arrival and collapses on exit — no layout snapping. */
.stream-row {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s var(--ease-out), opacity 0.35s var(--ease-out);
}
.stream-row.is-live { grid-template-rows: 1fr; opacity: 1; }
.stream-row.is-exit { grid-template-rows: 0fr; opacity: 0; }
.stream-row-inner { overflow: hidden; min-height: 0; }
.stream-row-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--mono);
  font-size: 13px;
  border-bottom: var(--rule-hair) solid var(--rule-soft);
  transition: background 0.35s var(--ease-out);
}
.stream-time { color: var(--ink-faint); font-size: 12px; }
.stream-call { display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-weight: 500; min-width: 0; }
.stream-call em {
  font-style: normal;
  font-family: var(--font-body);
  color: var(--ink-mid);
  font-size: 13px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream .pill-wait {
  display: inline-block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  color: var(--ink-faint);
  background: var(--bg-soft);
  border: var(--rule-hair) solid var(--rule-soft);
}
.stream .pill-wait, .stream .pill-allow, .stream .pill-deny { min-width: 76px; text-align: center; }
.stream .pill-allow, .stream .pill-deny { animation: stamp 0.3s var(--ease-out) backwards; }
.stream-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: breathe 2.4s var(--ease-in-out) infinite;
}

/* decision pills — color + glyph, never color alone */
.pill-allow, .pill-deny {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
}
.pill-allow { color: var(--allow-deep); background: var(--allow-bg); border: var(--rule-hair) solid var(--allow); }
.pill-deny { color: var(--deny-deep); background: var(--deny-bg); border: var(--rule-hair) solid var(--deny); }
.deny-row { background: var(--deny-bg); }

/* ————————————————————————————————————————————————
   Compare — the same three calls, without Wicket and with it
   ———————————————————————————————————————————————— */
#compare .value-head { max-width: 30ch; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.compare-label { font-weight: 500; color: var(--ink); font-size: var(--text-md); margin-bottom: var(--space-sm); }
.compare-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-lg);
  border-radius: 16px;
  background: var(--frame-bg);
}
.compare-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.compare-stage > * { position: relative; }
.compare-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--card);
  border: var(--rule-hair) solid var(--rule);
  border-radius: 14px;
}
.compare-why {
  margin-top: var(--space-xs);
  padding-top: var(--space-sm);
  border-top: var(--rule-hair) solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}
.compare-why--on { color: var(--ink); }
.compare-cap { text-align: center; font-size: 14px; font-weight: 500; color: var(--ink-faint); margin-top: var(--space-sm); }
.compare-actions { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); margin-top: var(--space-xl); }
@media (max-width: 40rem) {
  .compare { grid-template-columns: 1fr; }
  .compare-stage { padding: var(--space-sm); }
  .compare .cf-body em { white-space: normal; }
  .compare .pill-allow, .compare .pill-deny { min-width: 0; }
}

/* ————————————————————————————————————————————————
   Logo wall — one quiet grey row, two tracks slide left
   ———————————————————————————————————————————————— */
.works-with { padding-block: var(--space-3xl) 0; }
.works-label { text-align: center; font-size: 14px; font-weight: 500; color: var(--ink-faint); margin-bottom: var(--space-lg); }
.marquee {
  display: flex;
  gap: var(--space-2xl);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  list-style: none;
  display: flex;
  gap: var(--space-2xl);
  flex-shrink: 0;
  animation: marquee 140s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink-mid);
  white-space: nowrap;
}
.marquee-track img { width: 22px; height: 22px; flex-shrink: 0; filter: grayscale(1); opacity: 0.6; }
.lg-mono {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-mid);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  opacity: 0.7;
}
@keyframes marquee { to { transform: translateX(calc(-100% - var(--space-2xl))); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { display: block; overflow: visible; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
  .marquee-track[aria-hidden] { display: none; }
}

/* ————————————————————————————————————————————————
   Section heads — centered (platform) and left/split (rail, grid)
   ———————————————————————————————————————————————— */
.value-head {
  font-size: var(--text-display-s);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
  max-width: 22ch;
  margin-bottom: var(--space-md);
}
.value-line {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 48ch;
}
.value-line strong { font-weight: 500; }
.center-head { text-align: center; margin-bottom: var(--space-2xl); }
.center-head .value-head, .center-head .value-line { margin-inline: auto; }
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-2xl);
  align-items: end;
  margin-bottom: var(--space-2xl);
}
.split-head .value-head { margin-bottom: 0; }

/* ————————————————————————————————————————————————
   Platform — two cards: light (decide) + dark (explain)
   ———————————————————————————————————————————————— */
.duo-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}
.pcard {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xl);
  border-radius: var(--radius-card);
  min-height: 560px;
}
.pcard--light { background: var(--bg-soft); }
.pcard--dark { background: var(--dark); color: var(--dark-dim); }
.pcard--dark h3 { color: var(--dark-ink); }
.pcard-icon { width: 56px; height: 56px; color: var(--ink-mid); margin-bottom: var(--space-lg); }
.pcard--dark .pcard-icon { color: var(--dark-dim); }
.pcard h3 { font-size: var(--text-xl); letter-spacing: -0.025em; line-height: 1.1; }
.pcard p { font-size: var(--text-base); line-height: 1.5; max-width: 38ch; }
.pcard-art { margin-top: auto; padding-top: var(--space-xl); }

/* Flow — the request path, stacked vertically inside the light card */
.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}
.flow-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xs);
  padding: var(--space-sm) var(--space-lg);
  background: var(--card);
  border: var(--rule-hair) solid var(--rule);
  border-radius: 14px;
  text-align: center;
  flex-shrink: 0;
}
.flow-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.flow-tag { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.flow-node--proxy { background: var(--ink); border-color: var(--ink); }
.flow-node--proxy .flow-name { color: var(--bg); }
.flow-node--proxy .flow-tag { color: var(--dark-dim); }
.flow-node--allow { border-color: var(--allow); background: var(--allow-bg); }
.flow-node--allow .flow-name { color: var(--allow-deep); font-size: var(--text-sm); }
.flow-node--deny { border-color: var(--deny); background: var(--deny-bg); }
.flow-node--deny .flow-name { color: var(--deny-deep); font-size: var(--text-sm); }
.flow-link {
  position: relative;
  width: var(--rule-hair);
  height: 28px;
  background: var(--ink-faint);
}
.flow-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--ink-faint);
}
.flow-fork { width: min(100%, 320px); height: auto; color: var(--ink-faint); }
.flow-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  width: min(100%, 320px);
}
.flow-out { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); min-width: 0; }
.flow-out .flow-node { width: 100%; padding: var(--space-sm); }
.flow-out .flow-name { white-space: normal; text-wrap: balance; line-height: 1.25; }

/* Audit record — one decision, on the record (inside the dark card) */
.audit-card {
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 14px;
  overflow: hidden;
}
.ac-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--rule-soft);
  background: var(--bg-soft);
}
.ac-id { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: 0.04em; }
.ac-rows > div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
}
.ac-rows > div + div { border-top: var(--rule-hair) solid var(--rule-soft); }
.ac-rows dt { font-size: 12px; font-weight: 500; color: var(--ink-faint); padding-top: 2px; }
.ac-rows dd { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); overflow-wrap: anywhere; }
.ac-rows dd strong { color: var(--ink); font-weight: 500; }

/* ————————————————————————————————————————————————
   Use cases — grey panel, centered head, one scenario at a time
   ———————————————————————————————————————————————— */
.panel {
  background: var(--bg-soft);
  border-radius: var(--radius-frame);
  padding: clamp(2.5rem, 6vw, 5rem) var(--page-gutter);
  text-align: center;
}
.cases, .figcard {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  background: var(--card);
  border: var(--rule-hair) solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 1px 2px oklch(0% 0 0 / 0.05), 0 24px 48px -32px oklch(0% 0 0 / 0.25);
  overflow: hidden;
}
.case { flex: 0 0 100%; scroll-snap-align: start; padding: var(--space-lg); }
.case-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-faint); margin-bottom: var(--space-xs); }
.case-scenario { font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin-bottom: var(--space-md); }
.case-policy {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mid);
}
.case-policy strong { color: var(--ink); margin-right: var(--space-xs); }
.cf-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--rule);
  border-radius: 12px;
  background: var(--bg);
}
.cf-step--deny { background: var(--deny-bg); border-color: var(--deny); }
.cf-step--allow { background: var(--allow-bg); border-color: var(--allow); }
.cf-step img { width: 22px; height: 22px; opacity: 0.85; }
.cf-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 14px; }
.cf-body strong { color: var(--ink); font-weight: 500; }
.cf-body em { font-style: normal; color: var(--ink-mid); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-link {
  height: 44px;
  margin-left: calc(var(--space-md) + 11px);
  border-left: 2px solid var(--ink);
  display: flex;
  align-items: center;
}
.cf-memo {
  margin-left: var(--space-sm);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--bg-tint);
  border-radius: var(--radius-pill);
  padding: var(--space-3xs) var(--space-sm);
  white-space: nowrap;
}

/* Carousel chrome — circular arrows, dots, meta */
.shots-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shots-track::-webkit-scrollbar { display: none; }
.shots-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-top: var(--rule-hair) solid var(--rule-soft);
}
.circ-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  background: var(--card);
  color: var(--ink);
  border: var(--rule-hair) solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out);
}
.circ-btn:hover { border-color: var(--ink-mid); background: var(--bg-soft); }
.circ-btn:active { transform: translateY(1px); }
.circ-btn svg { width: 16px; height: 16px; }
.shots-dots { display: inline-flex; gap: var(--space-xs); margin-inline: auto; }
.shots-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); transition: background var(--dur-short) var(--ease-out); }
.shots-dot.is-on { background: var(--ink); }

/* ————————————————————————————————————————————————
   Policy figures — same card pattern as the use cases, wider
   ———————————————————————————————————————————————— */
.figcard { max-width: 960px; }
.figcard .shots-meta { padding: var(--space-lg) var(--space-lg) var(--space-md); }
.shot {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0 var(--space-lg) var(--space-lg);
  cursor: zoom-in;
}
.shot-wire { width: 100%; height: auto; border: var(--rule-hair) solid var(--rule); border-radius: 10px; }
.shots-meta { display: flex; flex-direction: column; min-width: 0; }
.shots-label { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.shots-caption { font-size: 15px; color: var(--ink-mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tap-to-enlarge lightbox — portrait phones rotate the figure 90° */
.shot-zoom {
  border: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: transparent;
}
.shot-zoom::backdrop { background: oklch(15% 0 0 / 0.9); }
.shot-zoom-body { position: fixed; inset: 0; overflow: hidden; background: oklch(15% 0 0 / 0.92); }
.shot-zoom-body .shot-wire,
.shot-zoom-body img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 1280px);
  height: auto;
  background: var(--card);
  border-radius: 10px;
}
.shot-zoom-close {
  position: fixed;
  top: max(var(--space-md), env(safe-area-inset-top));
  right: max(var(--space-md), env(safe-area-inset-right));
  z-index: var(--z-raised);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--term-ink);
  background: oklch(30% 0 0 / 0.5);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
@media (orientation: portrait) {
  .shot-zoom-body .shot-wire,
  .shot-zoom-body img {
    width: 88vh;
    width: 88dvh;
    max-width: none;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

/* ————————————————————————————————————————————————
   Trust grid — 3 × 2 hairline cells
   ———————————————————————————————————————————————— */
.grid6 {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--rule-hair) solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.grid6 li {
  padding: var(--space-xl);
  border-right: var(--rule-hair) solid var(--rule);
  border-bottom: var(--rule-hair) solid var(--rule);
}
.grid6 li:nth-child(3n) { border-right: 0; }
.grid6 li:nth-last-child(-n+3) { border-bottom: 0; }
.grid6 svg { width: 28px; height: 28px; color: var(--ink); margin-bottom: var(--space-lg); }
.grid6 h3 { font-size: var(--text-md); letter-spacing: -0.01em; margin-bottom: var(--space-2xs); }
.grid6 p { font-size: 15px; line-height: 1.5; color: var(--ink-mid); }

/* ————————————————————————————————————————————————
   Contact — statement left, form right
   ———————————————————————————————————————————————— */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-3xl);
  align-items: start;
}
#contact { scroll-margin-top: 80px; }
.contact-band .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}
.contact-band .field { margin-bottom: var(--space-md); }
.contact-band .field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: var(--space-xs);
}
.contact-band .field .opt { color: var(--ink-faint); font-weight: 400; }
.contact-band .field input,
.contact-band .field select,
.contact-band .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--rule);
  border-radius: var(--radius-input);
  background: var(--card);
  color: var(--ink);
  transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.contact-band .field input:hover,
.contact-band .field select:hover,
.contact-band .field textarea:hover { border-color: var(--ink-faint); }
.contact-band .field input::placeholder,
.contact-band .field textarea::placeholder { color: var(--ink-faint); }
.contact-band .field textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
.form-error {
  font-size: var(--text-sm);
  color: var(--deny-deep);
  margin-top: var(--space-sm);
  flex-basis: 100%;
}

/* ————————————————————————————————————————————————
   Closing — statement over the textured stage, then the mast footer
   ———————————————————————————————————————————————— */
.closing {
  position: relative;
  margin-top: var(--space-4xl);
  padding-block: var(--space-3xl) clamp(12rem, 26vw, 22rem);
  text-align: center;
  background: var(--frame-bg);
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 80px;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 18%, transparent 72%);
  pointer-events: none;
}
.closing .section-inner { position: relative; z-index: 1; }
.closing h2 {
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 16ch;
  margin: 0 auto var(--space-xl);
  text-wrap: balance;
}
.closing .hero-actions { justify-content: center; }

.site-foot { border-top: var(--rule-hair) solid var(--rule); padding-block: var(--space-2xl) var(--space-lg); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-lg);
}
.foot-col h4 { font-size: 15px; margin-bottom: var(--space-md); }
.foot-col a { display: block; font-size: 15px; color: var(--ink-mid); padding-block: var(--space-2xs); white-space: nowrap; transition: color var(--dur-micro) var(--ease-out); }
.foot-col a:hover { color: var(--ink); }
.foot-mark { width: min(360px, 60%); height: auto; margin: var(--space-3xl) auto var(--space-2xl); }
.colophon {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--rule);
  font-size: 13px;
  color: var(--ink-mid);
}
.colophon a:hover { color: var(--ink); }

/* ————————————————————————————————————————————————
   Sub-pages — contact, thanks, legal (same chrome, narrower measure)
   ———————————————————————————————————————————————— */
.sub { padding-block: var(--space-3xl) var(--space-4xl); }
.sub-narrow { max-width: 800px; }
.kicker { font-size: 14px; font-weight: 500; color: var(--ink-faint); margin-bottom: var(--space-md); }
.sub h1 {
  font-size: var(--text-display-s);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
  margin-bottom: var(--space-md);
}
.sub-lede { font-size: var(--text-md); line-height: 1.5; color: var(--ink-soft); max-width: 52ch; }
.sub-lede strong { font-weight: 500; }
.sub .hero-actions { margin-top: var(--space-xl); }
.sub-fine { margin-top: var(--space-lg); font-size: 14px; line-height: 1.6; color: var(--ink-mid); }
.sub-fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.sub-fine a:hover { text-decoration-color: var(--ink); }
.contact-form .sub-fine { margin-top: var(--space-md); }
.sub-dates { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: 14px; color: var(--ink-faint); margin-top: var(--space-sm); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
.tabs a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--space-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border: var(--rule-hair) solid var(--rule);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.tabs a:hover { border-color: var(--ink-mid); color: var(--ink); }
.tabs a.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* long-form document body (legal pages) */
.doc { margin-top: var(--space-2xl); padding-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--rule); }
.doc h2 { font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.15; margin: var(--space-2xl) 0 var(--space-sm); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: var(--text-md); margin: var(--space-lg) 0 var(--space-xs); }
.doc p, .doc li { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.doc p { margin-bottom: var(--space-md); }
.doc ul, .doc ol { margin: 0 0 var(--space-md) var(--space-lg); }
.doc li { margin-bottom: var(--space-xs); }
.doc strong { color: var(--ink); font-weight: 500; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.doc a:hover { text-decoration-color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: var(--space-sm) 0 var(--space-lg); font-size: 15px; }
.doc th, .doc td { text-align: left; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--rule); vertical-align: top; }
.doc th { background: var(--bg-soft); font-weight: 500; color: var(--ink); }
.doc .placeholder { background: var(--bg-tint); padding: 0 0.25em; border-radius: 4px; color: var(--ink); font-weight: 500; }
.doc .note { font-size: 15px; color: var(--ink-mid); border-left: 2px solid var(--rule); padding-left: var(--space-md); margin-bottom: var(--space-lg); }

.sub-foot { margin-top: var(--space-2xl); padding-bottom: var(--space-lg); }

@media (max-width: 40rem) {
  .sub { padding-block: var(--space-2xl) var(--space-3xl); }
  .sub .hero-actions .cta-btn { flex: 1 1 100%; }
  .doc { margin-top: var(--space-xl); padding-top: var(--space-xl); }
  .doc table { display: block; overflow-x: auto; }
}

/* Solutions — one-pager per industry: copy left, the three-call card (compare chrome) right */
.sol-head { margin-bottom: var(--space-xl); }
.sol {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: center;
  padding-block: var(--space-3xl);
  border-top: var(--rule-hair) solid var(--rule);
  scroll-margin-top: 80px;
}
.sol .value-head { max-width: 14ch; }
.sol .value-line { margin-bottom: var(--space-lg); }
.sol-rows > div {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-sm);
  border-top: var(--rule-hair) solid var(--rule-soft);
}
.sol-rows > div:last-child { border-bottom: var(--rule-hair) solid var(--rule-soft); }
.sol-rows dt { font-size: 13px; font-weight: 500; color: var(--ink-faint); padding-top: 2px; }
.sol-rows dd { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.sol .hero-actions { margin-top: var(--space-lg); }
.sol-fine { max-width: 64ch; margin-inline: auto; margin-top: var(--space-2xl); text-align: center; }
@media (max-width: 60rem) {
  .sol { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding-block: var(--space-2xl); align-items: start; }
}
.sol .value-head a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Solution pages — /solutions/<id> */
.vp { padding-bottom: 0; }
.sol--hero { border-top: 0; padding-block: 0; }
.sol--hero .kicker a:hover { color: var(--ink); }
.uc-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  text-align: left;
}
.uc {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--card);
  border: var(--rule-hair) solid var(--rule);
  border-radius: 16px;
}
.uc .cf-step { grid-template-columns: auto minmax(0, 1fr); }
.uc .cf-step .pill-allow, .uc .cf-step .pill-deny { grid-column: 2; justify-self: start; }
.uc .cf-body em { white-space: normal; }
.uc .cf-link { height: 24px; }
.uc .case-policy { margin-top: auto; padding-top: var(--space-md); }
.uc .cf-step--deny { margin-bottom: var(--space-md); }
.vp-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: var(--rule-hair) solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.vp-steps li { padding: var(--space-xl) var(--space-lg); border-right: var(--rule-hair) solid var(--rule); }
.vp-steps li:last-child { border-right: 0; }
.vp-n { display: block; font-family: var(--mono); font-size: 13px; color: var(--ink-faint); margin-bottom: var(--space-lg); }
.vp-steps h3 { font-size: var(--text-md); letter-spacing: -0.01em; margin-bottom: var(--space-2xs); }
.vp-steps p { font-size: 15px; line-height: 1.5; color: var(--ink-mid); }
.vp-record { align-items: center; }
.vp-record .compare-stage { padding: var(--space-xl); }
.vp-others {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
.vp-others a {
  display: block;
  height: 100%;
  padding: var(--space-lg);
  border: var(--rule-hair) solid var(--rule);
  border-radius: 16px;
  transition: border-color var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out);
}
.vp-others a:hover { border-color: var(--ink-mid); background: var(--bg-soft); }
.vp-others .kicker { display: block; margin-bottom: var(--space-xs); }
.vp-others strong { font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: -0.02em; line-height: 1.2; }
.vp-cta { text-align: center; margin-top: var(--space-3xl); }
.vp-cta .value-head { margin-inline: auto; }
.vp-cta .hero-actions { justify-content: center; }
@media (max-width: 60rem) {
  .uc-grid, .vp-others { grid-template-columns: minmax(0, 1fr); }
  .vp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-steps li:nth-child(2n) { border-right: 0; }
  .vp-steps li:nth-child(-n+2) { border-bottom: var(--rule-hair) solid var(--rule); }
}

@media (max-width: 40rem) {
  .vp-steps { grid-template-columns: minmax(0, 1fr); }
  .vp-steps li { border-right: 0; border-bottom: var(--rule-hair) solid var(--rule); padding: var(--space-lg); }
  .vp-steps li:last-child { border-bottom: 0; }
  .vp-record .compare-stage { padding: var(--space-sm); }
  .uc { padding: var(--space-md); }
  .vp-cta .hero-actions .cta-btn { flex: 1 1 100%; }
  .sol-rows > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .sol .compare-stage { padding: var(--space-sm); }
  .sol .cf-body em { white-space: normal; }
  .sol .pill-allow, .sol .pill-deny { min-width: 0; }
}

/* ————————————————————————————————————————————————
   Pricing — tier cards (bleed width), upgrade ladder, comparison table, FAQ
   ———————————————————————————————————————————————— */
.topnav-links a[aria-current="page"] { color: var(--ink); }
.pricing { padding-bottom: 0; }
.pricing .center-head { margin-bottom: var(--space-2xl); }
.pricing .center-head .sub-lede { margin-inline: auto; }
.pricing h1 { max-width: 20ch; margin-inline: auto; }
.pricing .stage { padding-block-start: var(--space-3xl); }
.billing-toggle { display: inline-flex; gap: var(--space-2xs); padding: var(--space-2xs); margin: var(--space-lg) 0 0; border: var(--rule-hair) solid var(--rule); border-radius: 12px; }
.billing-toggle[hidden] { display: none; }
.billing-toggle label { position: relative; cursor: pointer; }
.billing-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.billing-toggle label > span { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 44px; padding: var(--space-xs) var(--space-md); border-radius: 8px; font-size: 14px; color: var(--ink); }
.billing-toggle input:checked + span { background: var(--dark); color: var(--dark-ink); }
.billing-toggle input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.billing-toggle label:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.billing-saving { font-size: 12px; font-weight: 600; }
.billing-status { max-width: 60ch; min-height: 3em; margin: var(--space-sm) auto 0; font-size: 14px; color: var(--ink-mid); }
.tier-billing { font-size: 13px; color: var(--ink-mid); margin-top: calc(-1 * var(--space-xs)); }
.tier--featured .tier-billing { color: var(--dark-dim); }
.billing-caption { display: block; font-size: 12px; font-weight: 400; color: var(--ink-mid); }
.inline-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.inline-link:hover { text-decoration-color: var(--ink); }

.tiers-wrap { max-width: var(--bleed-max); margin: 0 auto; padding-inline: var(--page-gutter); }
.tiers {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  align-items: stretch;
}
.tier {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-soft);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-card);
  scroll-margin-top: 96px;
}
.tier--featured { background: var(--dark); color: var(--dark-dim); }
.tier--featured .tier-name, .tier--featured .tier-amount, .tier--featured .tier-promise { color: var(--dark-ink); }
.tier--featured .tier-per, .tier--featured .tier-inherits, .tier--featured dt { color: var(--dark-dim); }
.tier--featured .cta-btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.tier--featured .cta-btn:hover { background: var(--bg-tint); border-color: var(--bg-tint); }
.tier--featured .tier-features li::before { color: var(--dark-ink); }
.tier--featured .tier-capacity { border-color: var(--term-rule); }
.tier--featured .tier-capacity dd { color: var(--dark-ink); }
.tier-top { min-height: 7.5rem; }
.tier-name { font-size: 15px; font-weight: 500; color: var(--ink-mid); margin-bottom: var(--space-xs); }
.tier-promise {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.tier-price { display: flex; align-items: baseline; gap: var(--space-2xs); }
.tier-amount { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.tier-per { font-size: 14px; color: var(--ink-mid); }
.tier-trial { font-size: 13px; font-weight: 500; color: var(--ink); margin-top: calc(-1 * var(--space-xs)); }
.tier--featured .tier-trial { color: var(--dark-ink); }
.tier-summary { font-size: 14px; line-height: 1.5; min-height: 4.5em; }
.tier .cta-btn { width: 100%; min-height: 44px; padding-inline: var(--space-md); }
.tier-inherits { font-size: 13px; font-weight: 500; color: var(--ink-faint); margin-top: var(--space-xs); }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: var(--space-xs); font-size: 14px; line-height: 1.4; margin-top: calc(-1 * var(--space-xs)); }
.tier-features li { position: relative; padding-left: 1.4em; }
.tier-features li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.4em;
  width: 0.7em;
  height: 0.4em;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  color: var(--ink);
}
.tier-capacity {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--rule);
  display: grid;
  gap: var(--space-2xs);
  font-size: 13px;
}
.tier-capacity div { display: flex; justify-content: space-between; gap: var(--space-sm); }
.tier-capacity dt { color: var(--ink-faint); }
.tier-capacity dd { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.tiers-note { margin-top: var(--space-lg); font-size: 14px; line-height: 1.6; color: var(--ink-mid); text-align: center; max-width: 72ch; margin-inline: auto; }
.tiers-note span { display: block; color: var(--ink-faint); }

/* upgrade ladder — three plans, left to right */
.ladder {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--rule-hair) solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.ladder li { position: relative; padding: var(--space-lg); border-right: var(--rule-hair) solid var(--rule); display: flex; flex-direction: column; gap: var(--space-2xs); }
.ladder li:last-child { border-right: 0; }
.ladder li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -6px;
  top: calc(var(--space-lg) + 4px);
  width: 10px;
  height: 10px;
  background: var(--bg);
  border-top: var(--rule-hair) solid var(--ink-faint);
  border-right: var(--rule-hair) solid var(--ink-faint);
  transform: rotate(45deg);
  z-index: 1;
}
.ladder-step { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.ladder-name { font-family: var(--font-display); font-size: var(--text-md); font-weight: 500; color: var(--ink); }
.ladder-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.ladder-price { font-size: 13px; color: var(--ink-mid); }
.ladder p { margin-top: var(--space-sm); font-size: 15px; line-height: 1.45; color: var(--ink-soft); }

/* comparison table — sticky feature column when it scrolls */
.plan-table-scroll { overflow-x: auto; border: var(--rule-hair) solid var(--rule); border-radius: 16px; }
.plan-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.plan-table th, .plan-table td { padding: var(--space-sm) var(--space-md); text-align: left; vertical-align: middle; border-bottom: var(--rule-hair) solid var(--rule-soft); }
.plan-table thead th { background: var(--card); border-bottom: var(--rule-hair) solid var(--rule); padding-block: var(--space-md); vertical-align: bottom; }
.plan-table thead th:first-child, .plan-table tbody th[scope="row"] { position: sticky; left: 0; background: var(--card); z-index: 1; }
.plan-table tbody th[scope="row"] { font-weight: 400; color: var(--ink-soft); width: 28%; }
.plan-table-name { display: block; font-family: var(--font-display); font-size: var(--text-base); font-weight: 500; color: var(--ink); }
.plan-table-price { display: block; font-size: 13px; font-weight: 400; color: var(--ink-mid); }
.plan-table-group th { padding-top: var(--space-lg); font-size: 13px; font-weight: 500; color: var(--ink-faint); background: var(--card); border-bottom-color: var(--rule); position: sticky; left: 0; }
.plan-table td { color: var(--ink); width: 18%; }
.plan-table td svg { width: 16px; height: 16px; color: var(--ink); }
.plan-table .c-no { color: var(--ink-faint); }
.plan-table tbody:last-child tr:last-child th, .plan-table tbody:last-child tr:last-child td { border-bottom: 0; }
.plan-table tbody:last-of-type td { font-family: var(--mono); font-size: 13px; }

/* FAQ — two-column hairline list */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-2xl); }
.faq > div { padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--rule); }
.faq dt { font-family: var(--font-display); font-size: var(--text-md); font-weight: 500; color: var(--ink); margin-bottom: var(--space-xs); }
.faq dd { font-size: 15px; line-height: 1.55; color: var(--ink-mid); max-width: 52ch; }

.closing--sub { margin-top: var(--space-3xl); padding-bottom: clamp(8rem, 18vw, 14rem); }
.closing--sub h2 { font-size: var(--text-display-s); max-width: 18ch; }

@media (max-width: 75rem) {
  .tier-top, .tier-summary { min-height: 0; }
}
@media (max-width: 60rem) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .ladder { grid-template-columns: minmax(0, 1fr); }
  .ladder li { border-right: 0; border-bottom: var(--rule-hair) solid var(--rule); display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: baseline; gap: 0 var(--space-sm); }
  .ladder li:last-child { border-bottom: 0; }
  .ladder li::after { display: none; }
  .ladder p { grid-column: 2 / -1; margin-top: var(--space-2xs); }
  .ladder .billing-caption { grid-column: 2 / -1; }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .plan-table-group th { font-size: 12px; }
  .plan-table tbody th[scope="row"] { width: 40%; min-width: 11rem; }
}

/* ————————————————————————————————————————————————
   Animation layer — page-load rise, flow choreography, stream stamps
   ———————————————————————————————————————————————— */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes rise-card { from { opacity: 0; transform: translateY(18px); } }
@keyframes stamp { from { opacity: 0; transform: scale(1.4); } }
@keyframes breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise 0.6s var(--ease-out) 60ms backwards; }
  .hero-side { animation: rise 0.55s var(--ease-out) 160ms backwards; }
  .frame { animation: rise-card 0.7s var(--ease-out) 260ms backwards; }
  .works-with { animation: rise 0.55s var(--ease-out) 420ms backwards; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 40rem) {
  /* flow choreography — pipeline assembles top to bottom */
  html.js .flow[data-animate-seq] .flow-node {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  }
  html.js .flow[data-animate-seq] .flow-link {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s var(--ease-out);
  }
  html.js .flow[data-animate-seq] .flow-out,
  html.js .flow[data-animate-seq] .flow-fork {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  }
  html.js .flow[data-animate-seq].is-inview .flow-fork { opacity: 1; transform: none; transition-delay: 500ms; }
  html.js .flow[data-animate-seq].is-inview .flow-node { opacity: 1; transform: none; }
  html.js .flow[data-animate-seq].is-inview .flow-link { transform: none; transition-delay: 150ms; }
  html.js .flow[data-animate-seq].is-inview .flow-out { opacity: 1; transform: none; }
  html.js .flow[data-animate-seq].is-inview .flow-node--proxy { transition-delay: 300ms; }
  html.js .flow[data-animate-seq].is-inview .flow-out:nth-child(1) { transition-delay: 650ms; }
  html.js .flow[data-animate-seq].is-inview .flow-out:nth-child(2) { transition-delay: 800ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .cta-btn:active, .topnav-cta:active, .circ-btn:active { transform: none; }
}

/* ————————————————————————————————————————————————
   Responsive · 60rem layout breakpoint, 40rem typography breakpoint
   ———————————————————————————————————————————————— */
/* five links + the CTA pair: tighten the links and drop the video button before they collide */
@media (max-width: 80rem) { .topnav-links { gap: var(--space-lg); } }
@media (max-width: 68rem) { .topnav-links { gap: var(--space-md); } }

@media (max-width: 60rem) {
  .topnav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .topnav-inner { grid-template-columns: auto 1fr; }
  .topnav-actions { grid-column: 2; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero-side { padding-block-start: 0; }
  .frame { margin-inline: var(--page-gutter); }
  .duo-cards { grid-template-columns: minmax(0, 1fr); }
  .pcard { min-height: 0; }
  .split-head { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-items: start; }
  .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid6 li:nth-child(3n) { border-right: var(--rule-hair) solid var(--rule); }
  .grid6 li:nth-child(2n) { border-right: 0; }
  .grid6 li:nth-last-child(-n+3) { border-bottom: var(--rule-hair) solid var(--rule); }
  .grid6 li:nth-last-child(-n+2) { border-bottom: 0; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid .logo { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
  body { font-size: 16px; }
  .topnav-inner { height: 56px; }
  .logo-img { height: 24px; }
  .logo-tagline { display: none; }
  .topnav-cta--ghost { display: none; }
  .topnav-cta { font-size: 13px; padding: 0 var(--space-sm); }

  .hero { padding-block-start: var(--space-xl); }
  .stream-row-line { grid-template-columns: minmax(0, 1fr) auto; }
  .stream-time { display: none; }
  .hero-actions .cta-btn { flex: 1 1 100%; }
  .frame { margin-top: var(--space-xl); padding: var(--space-md); border-radius: 16px; }
  .stream { height: 400px; border-radius: 12px; }
  .stream-row-line { padding-inline: var(--space-md); gap: var(--space-sm); }
  .works-with { padding-block-start: var(--space-2xl); }
  .marquee-track li { font-size: var(--text-base); }

  .stage { padding-block-start: var(--space-3xl); }
  .pcard { padding: var(--space-lg); }
  .panel { padding: var(--space-xl) var(--space-md); border-radius: 16px; }
  .case { padding: var(--space-md); }
  .case .cf-step { grid-template-columns: auto minmax(0, 1fr); }
  .case .cf-step .pill-allow, .case .cf-step .pill-deny { grid-column: 2; justify-self: start; }
  .case .cf-body em { white-space: normal; }
  .cf-memo { white-space: normal; }
  .shot { padding: 0 var(--space-md) var(--space-md); }
  .figcard .shots-meta { padding: var(--space-md) var(--space-md) var(--space-sm); }
  .shots-caption { white-space: normal; }
  .grid6 { grid-template-columns: minmax(0, 1fr); }
  .grid6 li { border-right: 0 !important; border-bottom: var(--rule-hair) solid var(--rule) !important; padding: var(--space-lg); }
  .grid6 li:last-child { border-bottom: 0 !important; }
  .contact-band .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .closing { margin-top: var(--space-3xl); padding-block: var(--space-2xl) clamp(8rem, 40vw, 12rem); }
  .closing .hero-actions .cta-btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-mark { width: 60%; margin-block: var(--space-2xl) var(--space-xl); }
}
