/* Layout: left-aligned editorial pages on a cool white ground, navy "ink" bands for proof
   moments, and the Stack mark's attendance row (dot + pill) reused as the page's motif. */
:root {
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-2: #EEF0F8;
  --line: #DDE1EE;
  --fg: #141A36;
  --muted: #565D7E;
  --navy: #273472;
  --navy-ink: #1B2558;
  --red: #D01D22;
  --pink: #D1ADB6;
  --accent: #D01D22;          /* the one thing that matters on screen */
  --btn-bg: #273472;
  --btn-fg: #FFFFFF;
  --ink-bg: #1B2558;          /* navy bands */
  --ink-fg: #F3F4FA;
  --ink-muted: #B9BFDD;
  --ink-line: #34407A;
  --ink-accent: #D1ADB6;
  --ok: #1F8A5B;
  --glow: rgba(39, 52, 114, 0.10);
  --shadow: 0 1px 2px rgba(20, 26, 54, .06), 0 12px 32px -12px rgba(20, 26, 54, .18);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --s-hero: clamp(2.6rem, 6.2vw, 4.6rem);
  --s-h2: clamp(1.9rem, 3.8vw, 2.9rem);
  --s-h3: 1.25rem;
  --s-body: 1.0625rem;
  --s-small: .875rem;
  --s-label: .75rem;

  --wrap: 1180px;
  --r: 14px;
  --r-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1128; --surface: #151A38; --surface-2: #1C2247; --line: #2A3264;
    --fg: #ECEEF8; --muted: #A4AACB; --accent: #F1A7B4; --btn-bg: #ECEEF8; --btn-fg: #141A36;
    --ink-bg: #121842; --ink-fg: #F3F4FA; --ink-muted: #B9BFDD; --ink-line: #2E3874; --ink-accent: #D1ADB6;
    --ok: #4CC38A; --glow: rgba(209, 173, 182, 0.10);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1128; --surface: #151A38; --surface-2: #1C2247; --line: #2A3264;
  --fg: #ECEEF8; --muted: #A4AACB; --accent: #F1A7B4; --btn-bg: #ECEEF8; --btn-fg: #141A36;
  --ink-bg: #121842; --ink-fg: #F3F4FA; --ink-muted: #B9BFDD; --ink-line: #2E3874; --ink-accent: #D1ADB6;
  --ok: #4CC38A; --glow: rgba(209, 173, 182, 0.10);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden]:not([hidden="until-found" i]) { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--s-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
::selection { background: var(--pink); color: #141A36; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (max-width: 420px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 600 var(--s-hero)/1.02 var(--f-display); letter-spacing: -.025em; font-variation-settings: "opsz" 144; }
h2 { font: 600 var(--s-h2)/1.08 var(--f-display); letter-spacing: -.02em; font-variation-settings: "opsz" 120; }
h3 { font: 600 var(--s-h3)/1.3 var(--f-body); letter-spacing: -.005em; }
p { margin: 0; }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 36em; }
.label {
  font: 500 var(--s-label)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
em.hl { font-style: italic; color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer;
  font: 600 1rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn .ar { display: inline-block; transition: transform .25s ease; }
.btn:hover .ar, .link-ar:hover .ar { transform: translateX(4px); }
.link-ar { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-ar:hover { border-color: var(--fg); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.wordmark { font: 600 1.375rem/1 var(--f-display); letter-spacing: -.01em; color: var(--navy); }
.wordmark b { font-weight: 600; color: var(--red); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark { color: #FFFFFF; } :root:not([data-theme="light"]) .wordmark b { color: var(--pink); } }
:root[data-theme="dark"] .wordmark { color: #FFFFFF; }
:root[data-theme="dark"] .wordmark b { color: var(--pink); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  text-decoration: none; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 500; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-end .btn { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer;
}
.icon-btn:hover { border-color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.mobile-panel { display: none; }
@media (max-width: 880px) {
  .nav-links, .nav-end .btn { display: none; }
  .menu-btn { display: grid; }
  .mobile-panel { display: block; border-top: 1px solid var(--line); background: var(--bg); }
  .mobile-panel[hidden] { display: none !important; }
  .mobile-panel nav { display: grid; padding-block: 12px 20px; }
  .mobile-panel a.m-link { padding: 14px 0; font: 600 1.25rem/1.2 var(--f-display); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-panel .btn { margin-top: 16px; justify-content: center; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(72px, 10vw, 128px); }
.sec.tight { padding-block: clamp(56px, 7vw, 88px); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.ink { background: var(--ink-bg); color: var(--ink-fg); }
.ink .label, .ink .muted, .ink .lede { color: var(--ink-muted); }
.ink .label::before { background: var(--ink-accent); }
.ink em.hl { color: var(--ink-accent); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 104px); }
.hero-glow {
  position: absolute; width: 720px; height: 720px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  left: var(--gx, 70%); top: var(--gy, 40%); transform: translate(-50%, -50%);
  transition: left .9s cubic-bezier(.2,.7,.2,1), top .9s cubic-bezier(.2,.7,.2,1);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .lede { font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-note { font-size: var(--s-small); color: var(--muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- live check-in demo ---------- */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden; min-width: 0;
}
.demo-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.demo-top .ev { display: grid; gap: 2px; min-width: 0; }
.demo-top .ev b { font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-top .ev span { font: 500 .75rem/1.2 var(--f-mono); color: var(--muted); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 .75rem/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.demo-tabs { display: flex; gap: 6px; padding: 12px 14px 0; }
.demo-tab {
  border: 0; background: transparent; color: var(--muted); font: 600 .875rem/1 var(--f-body);
  padding: 10px 14px; border-radius: var(--r-pill); cursor: pointer;
}
.demo-tab[aria-selected="true"] { background: var(--surface-2); color: var(--fg); }
.demo-body { padding: 14px 18px 18px; display: grid; gap: 12px; }
.demo-search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; border-radius: 12px;
  background: var(--surface-2); color: var(--muted); font-size: .9375rem;
}
.demo-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; outline: none; }
.meter { display: grid; gap: 8px; }
.meter-row { display: flex; justify-content: space-between; font-size: var(--s-small); color: var(--muted); }
.meter-row b { color: var(--fg); font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.track { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 6px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .track i { background: var(--pink); } }
:root[data-theme="dark"] .track i { background: var(--pink); }
.people { display: grid; gap: 8px; }
.person {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; transition: border-color .25s, background-color .25s;
}
.person .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: all .25s; }
.person .dot svg { width: 12px; height: 12px; opacity: 0; transition: opacity .2s; color: #fff; }
.person .who { display: grid; min-width: 0; flex: 1; }
.person .who b { font-size: .9375rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .who span { font: 400 .75rem/1.3 var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person button {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer;
  font: 600 .8125rem/1 var(--f-body); padding: 9px 12px; border-radius: var(--r-pill); min-width: 92px;
}
.person button:hover { border-color: var(--fg); }
.person.in { background: color-mix(in srgb, var(--ok) 7%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.person.in .dot { background: var(--ok); border-color: var(--ok); }
.person.in .dot svg { opacity: 1; }
.person.in button { color: var(--muted); }
.person[hidden] { display: none; }
.demo-empty { font-size: var(--s-small); color: var(--muted); padding: 8px 2px; }
.demo-foot { font: 500 .75rem/1.4 var(--f-mono); color: var(--muted); }
.self { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; }
.qr { width: 132px; height: 132px; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 10px; }
.self-steps { display: grid; gap: 10px; }
.self-step { display: flex; gap: 10px; align-items: center; font-size: .9375rem; color: var(--muted); transition: color .3s; }
.self-step i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: all .3s; }
.self-step.done { color: var(--fg); }
.self-step.done i { background: var(--ok); border-color: var(--ok); }
.self-step.now i { border-color: var(--accent); }
@media (max-width: 460px) { .self { grid-template-columns: minmax(0,1fr); } .qr { width: 120px; height: 120px; } }

/* ---------- use-case switcher ---------- */
.switch-h { font: 600 var(--s-h2)/1.12 var(--f-display); letter-spacing: -.02em; }
.switch-pick {
  font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer;
  border-bottom: 3px solid currentColor; line-height: 1.05; font-style: italic;
}
.case-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer;
  padding: 10px 16px; border-radius: var(--r-pill); font: 500 .9375rem/1 var(--f-body);
}
.chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.outcome { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; transition: opacity .25s, transform .25s; }
.outcome .k { font: 500 .75rem/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.outcome p { color: var(--muted); }
.outcomes.swap .outcome { opacity: .2; transform: translateY(6px); }
@media (max-width: 860px) { .outcomes { grid-template-columns: minmax(0,1fr); } }

/* ---------- lifecycle ---------- */
.life { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.life-list { display: grid; gap: 0; border-top: 1px solid var(--ink-line); }
.life-item {
  text-align: left; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink-line);
  color: var(--ink-muted); cursor: pointer; padding: 22px 0; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 4px 12px;
  font: inherit; transition: color .25s;
}
.life-item .n { font: 500 .8125rem/1.9 var(--f-mono); color: var(--ink-muted); grid-row: span 2; }
.life-item .t { font: 600 1.75rem/1.15 var(--f-display); letter-spacing: -.01em; }
.life-item .d { display: block; font-size: 1rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s ease; }
.life-item[aria-selected="true"] { color: var(--ink-fg); }
.life-item[aria-selected="true"] .n { color: var(--ink-accent); }
.life-item[aria-selected="true"] .d { max-height: 8em; opacity: 1; color: var(--ink-muted); }
.life-item:hover { color: var(--ink-fg); }
.scene {
  background: color-mix(in srgb, var(--ink-fg) 6%, transparent); border: 1px solid var(--ink-line);
  border-radius: 22px; padding: clamp(18px, 3vw, 28px); min-height: 380px; display: grid; min-width: 0;
}
.scene-pane { display: grid; gap: 14px; align-content: start; min-width: 0; }
.scene-pane[hidden] { display: none; }
.scene-cap { font: 500 .75rem/1.4 var(--f-mono); color: var(--ink-muted); letter-spacing: .04em; }
.srcs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.src { border: 1px solid var(--ink-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; min-width: 0; }
.src b { font-size: .9375rem; }
.src span { font: 400 .75rem/1.3 var(--f-mono); color: var(--ink-muted); }
.funnel { display: grid; place-items: center; color: var(--ink-accent); font: 500 .75rem/1 var(--f-mono); letter-spacing: .06em; padding: 4px 0; }
.list-card { background: var(--ink-fg); color: #141A36; border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.list-card .row { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; border-bottom: 1px solid #E3E6F0; padding-bottom: 8px; min-width: 0; }
.list-card .row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-card .row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.list-card .row span:last-child { font: 500 .75rem/1.6 var(--f-mono); color: #565D7E; white-space: nowrap; }
.tag-new { color: #D01D22 !important; }
.big-num { font: 600 clamp(3rem, 7vw, 4.5rem)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.door-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.door { border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px; display: grid; gap: 6px; }
.door b { font-size: .9375rem; }
.door span { font: 400 .75rem/1.4 var(--f-mono); color: var(--ink-muted); }
.att { display: grid; gap: 10px; }
.att-row { display: grid; grid-template-columns: minmax(0, 120px) minmax(0,1fr) 48px; gap: 12px; align-items: center; font-size: .9375rem; }
.att-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-cells { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 4px; }
.att-cells i { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--ink-fg) 12%, transparent); max-width: 100%; }
.att-cells i.on { background: var(--ink-accent); }
.att-row .pct { font: 500 .8125rem/1 var(--f-mono); text-align: right; color: var(--ink-muted); }
@media (max-width: 960px) { .life { grid-template-columns: minmax(0,1fr); } .scene { min-height: 0; } }
@media (max-width: 520px) { .door-grid { grid-template-columns: minmax(0,1fr); } .srcs { grid-template-columns: minmax(0,1fr); } .att-row { grid-template-columns: minmax(0, 76px) minmax(0,1fr) 40px; gap: 8px; } }

/* ---------- one record ---------- */
.record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.rec-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 28px); display: grid; gap: 18px; min-width: 0; }
.rec-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 1.125rem/1 var(--f-display); flex: none; }
.rec-head b { font-size: 1.125rem; display: block; }
.rec-head div span { font: 400 .8125rem/1.4 var(--f-mono); color: var(--muted); }
.rec-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.rec-stats div { background: var(--surface-2); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.rec-stats b { font: 600 1.5rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.rec-stats span { font-size: .8125rem; color: var(--muted); }
.timeline { display: grid; gap: 0; position: relative; }
.tl { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 10px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl:first-child::before { top: 18px; }
.tl:last-child::before { bottom: calc(100% - 18px); }
.tl i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); position: relative; z-index: 1; }
.tl.on i { background: var(--navy); border-color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl.on i, :root:not([data-theme="light"]) .avatar { background: var(--pink); border-color: var(--pink); color: #141A36; } }
:root[data-theme="dark"] .tl.on i, :root[data-theme="dark"] .avatar { background: var(--pink); border-color: var(--pink); color: #141A36; }
.tl b { font-size: .9375rem; display: block; }
.tl span { font-size: .8125rem; color: var(--muted); }
.tl time { font: 500 .75rem/1.6 var(--f-mono); color: var(--muted); white-space: nowrap; }
.points { display: grid; gap: 20px; margin-top: 28px; }
.point { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 14px; }
.point svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.point p { color: var(--muted); }
@media (max-width: 900px) { .record { grid-template-columns: minmax(0,1fr); } }

/* ---------- proof ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(20px, 4vw, 48px); }
.stat { border-top: 1px solid var(--ink-line); padding-top: 20px; display: grid; gap: 8px; }
.stat .big-num { color: var(--ink-fg); }
.stat span { color: var(--ink-muted); }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.story { border: 1px solid var(--ink-line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.story .k { font: 600 2rem/1 var(--f-display); color: var(--ink-accent); font-variant-numeric: tabular-nums; }
.story b { font-size: 1.0625rem; }
.story p { color: var(--ink-muted); font-size: .9375rem; }
.footnote { margin-top: 20px; font: 400 .75rem/1.5 var(--f-mono); color: var(--ink-muted); }
@media (max-width: 860px) { .stories { grid-template-columns: minmax(0,1fr); } .stats { grid-template-columns: minmax(0,1fr); } }

/* ---------- stances (accordion) ---------- */
.stances { border-top: 1px solid var(--line); }
.stance { border-bottom: 1px solid var(--line); }
.stance button {
  width: 100%; text-align: left; background: none; border: 0; color: var(--fg); cursor: pointer;
  display: grid; grid-template-columns: minmax(0,1fr) 28px; gap: 16px; align-items: center; padding: 22px 0;
  font: 600 clamp(1.25rem, 2.4vw, 1.6rem)/1.25 var(--f-display); letter-spacing: -.01em; transition: transform .25s ease;
}
.stance button:hover { transform: translateX(6px); }
.stance .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .3s ease; }
.stance .pm svg { width: 12px; height: 12px; }
.stance button[aria-expanded="true"] .pm { transform: rotate(45deg); }
.stance-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.stance-body > div { overflow: hidden; }
.stance-body p { color: var(--muted); max-width: 44em; padding-bottom: 24px; }
.stance button[aria-expanded="true"] + .stance-body { grid-template-rows: 1fr; }

/* ---------- integrations ---------- */
.integrations { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.integ { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 18px; display: grid; gap: 6px; align-content: start; }
.integ b { font-size: 1rem; }
.integ span { font-size: .8125rem; color: var(--muted); }
@media (max-width: 900px) { .integrations { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 420px) { .integrations { grid-template-columns: minmax(0,1fr); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 28px 28px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font: 500 .8125rem/1 var(--f-mono); color: var(--accent); }
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0,1fr); } .step, .step + .step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* ---------- FAQ split ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq-qs { display: grid; gap: 4px; }
.faq-q {
  text-align: left; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 14px 16px; border-radius: 12px;
  font: 500 1.0625rem/1.4 var(--f-body); display: flex; gap: 12px; align-items: baseline;
}
.faq-q:hover { color: var(--fg); background: var(--surface-2); }
.faq-q[aria-selected="true"] { color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.faq-q .ar { margin-left: auto; opacity: 0; transition: opacity .2s, transform .2s; }
.faq-q[aria-selected="true"] .ar { opacity: 1; transform: translateX(2px); }
.faq-a { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 36px); position: sticky; top: 96px; display: grid; gap: 14px; min-width: 0; }
.faq-a h3 { font: 600 1.5rem/1.2 var(--f-display); letter-spacing: -.01em; }
.faq-a p { color: var(--muted); }
.faq-a[hidden] { display: none; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0,1fr); } .faq-a { position: static; } }

/* ---------- closing CTA ---------- */
.closing { display: grid; gap: 28px; justify-items: start; }
.closing h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; max-width: 14ch; }
.ink .btn-primary { background: #FFFFFF; color: #141A36; }
.ink .btn-ghost { color: var(--ink-fg); border-color: var(--ink-line); }
.ink .btn-ghost:hover { border-color: var(--ink-fg); }
.email-copy { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.email-copy code { font: 500 1rem/1 var(--f-mono); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); user-select: all; }
.ink .email-copy code { border-color: var(--ink-line); }
.copy-btn { border: 0; background: transparent; color: inherit; font: 600 .875rem/1 var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }

/* ---------- footer ---------- */
.foot { background: var(--ink-bg); color: var(--ink-fg); padding-block: 64px 32px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { margin: 0 0 14px; font: 500 .75rem/1 var(--f-mono); color: var(--ink-muted); letter-spacing: .08em; text-transform: uppercase; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--ink-fg); opacity: .85; }
.foot-grid a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot-grid p { color: var(--ink-muted); max-width: 30em; }
.foot-word {
  font: 600 clamp(4.5rem, 19vw, 15rem)/.8 var(--f-display); letter-spacing: -.04em; margin-top: 56px;
  color: color-mix(in srgb, var(--ink-fg) 10%, transparent); transition: color .5s ease; user-select: none; white-space: nowrap;
}
.foot-word b { font-weight: 600; transition: color .5s ease; }
.foot-word:hover { color: color-mix(in srgb, var(--ink-fg) 22%, transparent); }
.foot-word:hover b { color: var(--ink-accent); }
.foot-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--ink-line); padding-top: 20px; margin-top: 8px; font-size: var(--s-small); color: var(--ink-muted); }
.to-top { width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-fg); cursor: pointer; position: relative; display: grid; place-items: center; }
.to-top svg.ring { position: absolute; inset: 0; width: 46px; height: 46px; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke-width: 2; }
.to-top .arr { width: 16px; height: 16px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- product pages ---------- */
.p-hero { padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.p-hero .hero-grid { align-items: center; }
.crumb { font: 500 .8125rem/1 var(--f-mono); color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.crumb:hover { color: var(--fg); }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: background-color .25s; }
.feat:hover { background: var(--surface); }
.feat svg { width: 24px; height: 24px; color: var(--accent); }
.feat p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: minmax(0,1fr); } }
.next-page { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; text-decoration: none; padding-block: 40px; border-top: 1px solid var(--line); }
.next-page .label { margin-bottom: 12px; }
.next-page h2 { transition: color .25s; }
.next-page:hover h2 { color: var(--accent); }
.next-page .big-ar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.5rem; transition: transform .3s, border-color .3s; }
.next-page:hover .big-ar { transform: translateX(6px); border-color: var(--fg); }

/* form-builder scene */
.builder { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.builder-grid { display: grid; grid-template-columns: 190px minmax(0,1fr); min-height: 380px; }
.palette { border-right: 1px solid var(--line); padding: 14px; display: grid; gap: 4px; align-content: start; background: var(--surface-2); }
.palette .pl { font: 500 .6875rem/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 6px 4px 8px; }
.ftype { display: flex; gap: 10px; align-items: center; border: 0; background: transparent; color: var(--fg); text-align: left; cursor: pointer; padding: 8px 10px; border-radius: 8px; font: 500 .875rem/1.2 var(--f-body); }
.ftype:hover { background: var(--surface); }
.ftype i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--muted); flex: none; }
.canvas { padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.canvas .ftitle { font: 600 1.125rem/1.2 var(--f-display); }
.fld { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; animation: drop .35s cubic-bezier(.2,.7,.2,1); }
.fld label { font-size: .8125rem; font-weight: 600; }
.fld .ph { height: 36px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; padding: 0 10px; font-size: .8125rem; color: var(--muted); gap: 8px; overflow: hidden; white-space: nowrap; }
.fld .ph.split { background: none; padding: 0; gap: 8px; }
.fld .ph.split span { flex: 1; height: 36px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; padding: 0 10px; min-width: 0; }
@keyframes drop { from { transform: translateY(-8px); opacity: .3; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) { .builder-grid { grid-template-columns: minmax(0,1fr); } .palette { grid-template-columns: repeat(2, minmax(0,1fr)); border-right: 0; border-bottom: 1px solid var(--line); } .palette .pl { grid-column: 1 / -1; } }

/* phone mock */
.phone { width: min(300px, 100%); margin-inline: auto; border-radius: 38px; padding: 12px; background: #141A36; box-shadow: var(--shadow); }
.phone-scr { background: #F7F8FC; color: #141A36; border-radius: 28px; min-height: 520px; padding: 22px 18px; display: grid; gap: 14px; align-content: start; overflow: hidden; }
.phone-scr .pt { font: 600 1.125rem/1.2 var(--f-display); }
.phone-scr .ps { font-size: .8125rem; color: #565D7E; }
.phone-scr .pbtn { height: 44px; border-radius: 999px; background: #273472; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9375rem; border: 0; width: 100%; cursor: pointer; }
.phone-scr .pfield { height: 44px; border-radius: 12px; background: #fff; border: 1px solid #DDE1EE; display: flex; align-items: center; padding: 0 12px; font-size: .875rem; color: #141A36; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; }
.otp span { height: 44px; border-radius: 10px; background: #fff; border: 1px solid #DDE1EE; display: grid; place-items: center; font: 600 1rem/1 var(--f-mono); }
.okmark { width: 72px; height: 72px; border-radius: 50%; background: #1F8A5B; color: #fff; display: grid; place-items: center; margin: 24px auto 4px; }
.okmark svg { width: 34px; height: 34px; }
.mode-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.modes { display: grid; gap: 10px; }
.mode { text-align: left; border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: var(--r); padding: 18px 20px; cursor: pointer; display: grid; gap: 6px; font: inherit; transition: border-color .2s, background-color .2s; }
.mode .t { font-size: 1.125rem; font-weight: 600; }
.mode .d { color: var(--muted); font-size: .9375rem; }
.mode[aria-selected="true"] { border-color: var(--fg); background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 860px) { .mode-row { grid-template-columns: minmax(0,1fr); } }

/* email preview */
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.mail-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-size: .875rem; }
.mail-h span { color: var(--muted); }
.mail-b { padding: 22px 20px; display: grid; gap: 12px; font-size: .9375rem; }
.tagx { font: 500 .8125rem/1 var(--f-mono); background: var(--surface-2); border: 1px dashed var(--line); padding: 3px 6px; border-radius: 6px; color: var(--accent); white-space: nowrap; }
.mail-toggle { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: var(--r-pill); padding: 4px; }
.mail-toggle button { border: 0; background: transparent; color: var(--muted); font: 600 .8125rem/1 var(--f-body); padding: 8px 12px; border-radius: var(--r-pill); cursor: pointer; }
.mail-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ask-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ask-list li { list-style: none; padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; }
.ask-list ul { margin: 0; padding: 0; }
.ask-list .n { font: 500 .8125rem/1.6 var(--f-mono); color: var(--accent); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0,1fr); } }
