/* siftraq.com — the public website's styles. Light, editorial, the product shown as it is.
   Every colour, shadow and radius is a token here, in this one block (the app's tokens live in
   public/css/tokens.css; the website has its own, lighter palette from the same brand kit). */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  /* Brand kit v2 */
  --navy: #042C53;
  --blue: #185FA5;
  --sky: #378ADD;
  --mist: #B5D4F4;
  /* Paper and ink */
  --paper: #F8F7F3;
  --paper-2: #F1EFE8;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #0C1726;
  --ink-2: #3B4757;
  --muted: #687384;
  --rule: #E4E1D8;
  --rule-strong: #CDC9BD;
  /* Accents */
  --accent: #185FA5;
  --accent-hover: #124C86;
  --accent-soft: #E7F0FA;
  --accent-line: #B5D4F4;
  --warm: #B4530F;
  --warm-soft: #FBEEE3;
  --good: #1E7342;
  --good-soft: #E5F3EA;
  --plan: #5F6B7C;
  --plan-soft: #EEEDE8;
  --critical: #A8321F;
  /* Series in product panels */
  --s1: #185FA5;
  --s2: #378ADD;
  --s3: #7FB2E8;
  --s4: #B4530F;
  --s5: #9AA3B2;
  --s6: #042C53;
  /* Depth */
  --shadow-card: 0 1px 2px rgba(12, 23, 38, 0.05), 0 12px 32px -18px rgba(12, 23, 38, 0.22);
  --shadow-menu: 0 2px 6px rgba(12, 23, 38, 0.06), 0 22px 48px -20px rgba(12, 23, 38, 0.30);
  --focus: 0 0 0 3px rgba(24, 95, 165, 0.28);
  --statement-dot: rgba(4, 44, 83, 0.13);
  --statement-sheen: rgba(255, 255, 255, 0.55);
  --shadow-mark: 0 12px 30px -10px rgba(4, 44, 83, 0.55);
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 12px; }

/* ── Type ─────────────────────────────────────────────────────────────── */
h1, h2, h3 { color: var(--ink); font-weight: 560; letter-spacing: -0.032em; line-height: 1.04; }
h1 { font-size: clamp(42px, 6.2vw, 74px); }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--rule-strong); }
.eyebrow.plain::before { display: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15.5px; font-weight: 560; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--navy); color: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14.5px; }
.arrow { transition: transform .15s; }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 560; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; height: 72px; gap: 28px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo svg { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a, .nav-trigger {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  background: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--ink); background: var(--paper-2); }
.nav > a[aria-current="page"] { color: var(--ink); }
.nav-trigger .chev { width: 10px; height: 10px; transition: transform .15s; }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-item { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 460px; padding: 10px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-menu);
  display: none;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* keeps hover across the gap */
.nav-item.open .nav-menu { display: block; }
.nav-menu a { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--paper); }
.nav-menu strong { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.nav-menu a > div > span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.nav-menu .tag { display: inline-block; font-style: normal; margin-left: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 99px; vertical-align: 2px; }
.prod-mark { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--rule); background: var(--surface-2); }
.prod-mark svg { width: 22px; height: 22px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .signin { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 8px 10px; }
.nav-actions .signin:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--rule-strong); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.menu-toggle svg { width: 18px; height: 18px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: 112px 0; }
section.tight { padding: 80px 0; }
.band { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-2 { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin-top: 18px; max-width: 13em; }
.section-head .lede { justify-self: end; }
.section-head.stacked { grid-template-columns: 1fr; gap: 20px; }
.section-head.stacked .lede { justify-self: start; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 104px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { margin: 22px 0 24px; max-width: 12em; font-size: clamp(40px, 4.4vw, 62px); line-height: 1.03; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.assurances { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { width: 15px; height: 15px; color: var(--good); flex: none; }
.hero-simple .wrap { grid-template-columns: 1fr; }
.hero-simple h1 { max-width: 14em; }
.panel > .compare-table th:first-child, .panel > .compare-table td:first-child { padding-left: 18px; }
.panel > .compare-table th:last-child, .panel > .compare-table td:last-child { padding-right: 18px; }
.panel > .compare-table tr:last-child > * { border-bottom: 0; }

/* ── Product panels (drawn like the app, on paper) ────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.panel-title { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.panel-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.panel-body { padding: 18px; }
.panel-foot { padding: 12px 18px; border-top: 1px solid var(--rule); background: var(--surface-2); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-foot strong { color: var(--ink); font-weight: 600; }
.figure-caption { margin-top: 14px; font-size: 13px; color: var(--muted); display: block; }
.figure-caption b { color: var(--ink-2); font-weight: 600; }

.models { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; margin-bottom: 18px; }
.models button {
  flex: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); background: none; border: 0;
  padding: 7px 11px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.models button:hover { color: var(--ink); }
.models button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(12, 23, 38, 0.10); font-weight: 600; }
.credit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.credit-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; padding: 0 0 8px; }
.credit-table th:last-child, .credit-table td:last-child { text-align: right; }
.credit-table td { padding: 9px 0; border-top: 1px solid var(--rule); vertical-align: middle; }
.credit-table .ch { display: flex; align-items: center; gap: 9px; white-space: nowrap; padding-right: 14px; }
.credit-table .dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.credit-table .bar-cell { width: 46%; padding-right: 14px; }
.bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.bar i[data-w], .track i[data-w] { width: 0; transition-duration: 1.1s; }
.credit-table .val { font-variant-numeric: tabular-nums; font-weight: 560; white-space: nowrap; }
.credit-table .share { color: var(--muted); font-weight: 400; margin-left: 6px; display: inline-block; min-width: 3.2em; }

/* ── The gaps table (GA4 vs Siftraq) ──────────────────────────────────── */
.gaps { border-top: 1px solid var(--ink); }
.gap { display: grid; grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.gap-n { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.gap h3 { font-size: 20px; }
.gap-col { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.gap-col .label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 6px; }
@media (min-width: 881px) { .gap-col .label { display: none; } }
.gap-col.before .label { color: var(--warm); }
.gap-col.after .label { color: var(--accent); }
.gaps-head { display: grid; grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* ── Cards ────────────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 19px; }
.card p { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.card .panel { box-shadow: none; margin-top: auto; }
.card-visual { margin-top: 10px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 99px; align-self: flex-start; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.status.live { color: var(--good); background: var(--good-soft); }
.status.next { color: var(--accent); background: var(--accent-soft); }
.status.planned { color: var(--plan); background: var(--plan-soft); }

/* Timeline (visitor journey) */
.journey { list-style: none; display: grid; gap: 0; }
.journey li { display: grid; grid-template-columns: 92px 14px 1fr; gap: 12px; align-items: start; font-size: 13.5px; }
.journey .when { color: var(--muted); text-align: right; padding: 8px 0; font-variant-numeric: tabular-nums; }
.journey .pin { position: relative; height: 100%; }
.journey .pin::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--rule-strong); }
.journey li:first-child .pin::before { top: 14px; }
.journey li:last-child .pin::before { bottom: calc(100% - 14px); }
.journey .pin::after { content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 9px; border-radius: 99px; background: var(--surface); border: 2px solid var(--sky); }
.journey li:last-child .pin::after { background: var(--accent); border-color: var(--accent); }
.journey .what { padding: 8px 0; }
.journey .what b { font-weight: 600; display: block; }
.journey .what span { color: var(--muted); }

/* Funnel */
.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 96px 1fr 52px; gap: 12px; align-items: center; font-size: 13.5px; }
.funnel-row .bar { height: 10px; }
.funnel-row .bar i { background: var(--s2); }
.funnel-row b { text-align: right; font-weight: 560; font-variant-numeric: tabular-nums; }

/* Tracking audit (two sources side by side) */
.compare { display: grid; gap: 12px; }
.compare-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13.5px; }
.compare-row .bar { grid-column: 1 / -1; height: 10px; }
.compare-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.compare-gap { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13.5px; }
.compare-gap b { color: var(--warm); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Raw event → rebuilt session */
.rebuild { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: 0; }
.rebuild .code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
  background: var(--surface-2); padding: 18px; white-space: pre; overflow-x: auto; margin: 0;
}
.rebuild .code .k { color: var(--accent); }
.rebuild .code .s { color: var(--warm); }
.rebuild .code .c { color: var(--muted); }
.rebuild-arrow { display: grid; place-items: center; color: var(--muted); }
.rebuild-arrow svg { width: 28px; height: 28px; }
.session-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.session-row div { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.session-row div:nth-child(odd) { border-right: 1px solid var(--rule); }
.session-row dt { font-size: 12px; color: var(--muted); }
.session-row dd { font-size: 15px; font-weight: 560; font-variant-numeric: tabular-nums; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); counter-reset: step; margin-bottom: 64px; }
.step { padding: 28px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--rule); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15.5px; color: var(--ink-2); }

/* Principles (a layer, not a replacement) */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.principle { padding: 26px 26px 0 0; }
.principle + .principle { padding-left: 26px; border-left: 1px solid var(--rule); }
.principle svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 16px; }
.principle h3 { font-size: 18px; margin-bottom: 8px; }
.principle p { font-size: 15px; color: var(--ink-2); }

/* Permissions list */
.perms { list-style: none; border-top: 1px solid var(--rule-strong); }
.perms li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) auto; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.perms strong { font-weight: 600; font-size: 16px; }
.perms p { font-size: 15.5px; color: var(--ink-2); }
.perms .when { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare-table thead th { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.compare-table tbody th { font-weight: 600; width: 22%; }
.compare-table td { color: var(--ink-2); width: 39%; }

/* Roadmap list */
.roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; list-style: none; border-top: 1px solid var(--rule-strong); }
.roadmap li { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.roadmap li.lead { grid-column: 1 / -1; }
.roadmap li.lead p { max-width: 62em; }
.roadmap strong { font-weight: 600; }
.roadmap p { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); }

/* The other product */
.crosslink { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 32px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); }
.crosslink .prod-mark { width: 52px; height: 52px; border-radius: 12px; }
.crosslink .prod-mark svg { width: 28px; height: 28px; }
.crosslink h3 { margin-bottom: 6px; }
.crosslink p { color: var(--ink-2); font-size: 15.5px; max-width: 46em; }

/* ── Panels from the first landing page (public/home.html), on paper ─────
   The order panel (one order, four visits, the credit moving between them), and the feature
   panels: same drawings and the same motion, in the website's palette. */
[hidden] { display: none !important; }
.badge { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--rule); background: var(--surface); white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px var(--accent-soft); }

.order-panel { position: relative; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-card), -30px 40px 80px -48px rgba(12, 23, 38, 0.35);
  transform: perspective(1700px) rotateY(-7deg) rotateX(2.5deg); transform-origin: 20% 50%; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.order-panel:hover, .order-panel:focus-within { transform: perspective(1700px) rotateY(-1.5deg) rotateX(0.5deg); }
.order-panel .op-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.order-panel .op-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.order-panel .op-title small { margin-left: 8px; font-weight: 400; font-size: 13px; color: var(--muted); }
.order-panel .models { margin-bottom: 18px; }
.op-journey { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 132px; column-gap: 84px; align-items: center; }
.op-touches { display: grid; gap: 10px; }
.op-touch { position: relative; z-index: 1; padding: 11px 14px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--rule); transition: border-color 0.4s, background-color 0.4s; }
.op-touch.on { border-color: var(--accent-line); background: var(--surface); }
.op-touch-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.op-touch-name { font-size: 14px; font-weight: 500; }
.op-touch-when { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.op-touch-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.track { flex: 1; height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.track > i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--s1); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.op-touch-num { min-width: 96px; text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.op-touch-num b { font-weight: 600; color: var(--ink); }
.op-order { position: relative; z-index: 1; padding: 16px 12px; border-radius: 18px; text-align: center; background: var(--accent-soft); border: 1px solid var(--accent-line); box-shadow: 0 18px 40px -18px rgba(24, 95, 165, 0.45); }
.op-order svg { width: 22px; height: 22px; margin: 0 auto; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.op-order-amt { margin-top: 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.op-order-id { font-size: 12.5px; color: var(--ink-2); }
.op-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.op-links path { fill: none; stroke: var(--sky); stroke-linecap: round; transition: stroke-width 0.6s, opacity 0.6s; }
.op-links path.flow { stroke: var(--accent); stroke-dasharray: 3 15; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.op-verdict { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.55; color: var(--ink-2); min-height: 58px; }
.op-verdict b { font-weight: 600; color: var(--ink); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.b4 { grid-column: span 4; } .b5 { grid-column: span 5; } .b6 { grid-column: span 6; } .b7 { grid-column: span 7; } .b12 { grid-column: span 12; }
.feature { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.feature-head { display: flex; gap: 14px; align-items: flex-start; }
.feature h3 { font-size: 19px; }
.feature p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.viz { flex: 1; margin-top: 20px; padding: 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 10px; height: 10px; border-radius: 3px; }
i.s1 { background: var(--s1); } i.s2 { background: var(--s4); }
.hub { display: block; width: 100%; height: auto; }
.hub path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.hub .out { stroke: var(--s1); stroke-dasharray: 3 9; animation: hubflow 1.1s linear infinite; }
.hub .back { stroke: var(--s4); stroke-dasharray: 3 9; animation: hubflow 1.4s linear infinite; }
@keyframes hubflow { to { stroke-dashoffset: -24; } }
.hub rect { fill: var(--surface); stroke: var(--rule-strong); }
.hub text { fill: var(--ink); font-size: 13px; font-family: inherit; }
.bf-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.bf-top b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.months i { height: 20px; border-radius: 5px; background: var(--paper-2); }
.months i.done { background: var(--s1); }
.months i.now { background: var(--s1); animation: nowPulse 1.6s ease-in-out infinite; }
@keyframes nowPulse { 50% { opacity: 0.35; } }
.bf-foot { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.stitch { display: grid; align-content: start; }
.st-box { padding: 11px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink); }
.st-box small, .st-box em { display: block; font-size: 12.5px; font-style: normal; color: var(--muted); }
.st-link { position: relative; display: grid; place-items: center; height: 46px; }
.st-link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--accent-line); }
.st-link .chip { position: relative; }
.st-link .chip .dot { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.segs { display: flex; gap: 2px; height: 14px; }
.segs i { display: block; min-width: 3px; }
.segs i:first-child { border-radius: 4px 0 0 4px; } .segs i:last-child { border-radius: 0 4px 4px 0; }
i.c-base { background: var(--s6); } i.c-gain { background: var(--s2); } i.c-none { background: var(--rule-strong); }
.seg-key { display: grid; gap: 9px; margin-top: 16px; }
.seg-key span { display: flex; align-items: center; gap: 8px; }
.seg-key i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.seg-key b { margin-left: auto; font-weight: 600; color: var(--ink); }
.chat { display: grid; gap: 10px; align-content: start; }
.bubble { padding: 10px 13px; border-radius: 16px; max-width: 92%; font-size: 14px; line-height: 1.5; color: var(--ink); }
.bubble.q { margin-left: auto; background: var(--accent-soft); border: 1px solid var(--accent-line); border-bottom-right-radius: 6px; }
.bubble.a { background: var(--surface); border: 1px solid var(--rule); border-bottom-left-radius: 6px; }
.bubble small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.people { width: 100%; border-collapse: collapse; }
.people th, .people td { padding: 9px 8px; text-align: left; white-space: nowrap; }
.people th { font-weight: 500; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--rule-strong); }
.people td { color: var(--ink); border-bottom: 1px solid var(--rule); }
.people tr:last-child td { border-bottom: 0; }
.people .num { text-align: right; }
.who { display: inline-flex; align-items: center; gap: 9px; }
.who i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 600; color: var(--surface); background: linear-gradient(160deg, var(--blue), var(--navy)); }
.models-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.model { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 14px 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2); text-align: center; font-size: 13.5px; line-height: 1.3; }
.model svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.model.more { border-style: dashed; color: var(--muted); background: transparent; }
.model.more svg { stroke: var(--muted); }
.feed { display: grid; align-content: start; min-height: 128px; overflow: hidden; }
.feed-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--ink); }
.feed-row + .feed-row { border-top: 1px solid var(--rule); }
.feed-row span:last-child { color: var(--muted); white-space: nowrap; }
.feed-row em { font-style: normal; color: var(--ink-2); }
.feed-row.new { animation: feedIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.fn { display: grid; grid-template-columns: 96px minmax(0, 1fr) 48px; gap: 10px; align-items: center; padding: 6px 0; }
.fn b { text-align: right; font-weight: 600; color: var(--ink); }
.fn .track > i { transition-duration: 1.1s; }
.exits { display: grid; gap: 2px; }
.exit-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; gap: 12px; align-items: center; padding: 7px 0; }
.exit-row + .exit-row { border-top: 1px solid var(--rule); }
.exit-row code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--ink); }
.exit-row b { text-align: right; font-weight: 600; color: var(--ink); }
.exit-row .track > i { background: var(--s4); transition-duration: 1.1s; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* The statement band: one sentence that fills in, word by word, as it scrolls into view. */
.statement { padding: 84px 40px 72px; border-radius: 28px; text-align: center; color: var(--navy);
  background-color: var(--mist);
  background-image: radial-gradient(circle, var(--statement-dot) 1px, transparent 1.6px), linear-gradient(160deg, var(--statement-sheen), transparent 60%);
  background-size: 26px 26px, 100% 100%; box-shadow: var(--shadow-card); }
.statement-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.statement-text { max-width: 900px; margin: 18px auto 30px; font-size: clamp(30px, 4.1vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--navy); }
.js .statement-text span { opacity: 0.2; transition: opacity 0.4s ease; }
.js .statement-text span.lit { opacity: 1; }
.statement img { margin: 0 auto; border-radius: 13px; box-shadow: var(--shadow-mark); }

/* Sections ease in; bars grow when they come into view (site.js adds .js and .in). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
.signup h2 { margin: 18px 0 20px; }
.form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-card); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: 14px; font-weight: 560; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); width: 100%;
  border: 1px solid var(--rule-strong); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset.field { border: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 99px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.choices input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.choices input:focus-visible + span { box-shadow: var(--focus); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .fine { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-status { font-size: 14.5px; border-radius: 10px; padding: 12px 14px; display: none; }
.form-status.ok { display: block; background: var(--good-soft); color: var(--good); }
.form-status.err { display: block; background: var(--warm-soft); color: var(--critical); }
.form button[disabled] { opacity: .6; cursor: progress; }
.signup-points { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.signup-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.signup-points svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

/* ── Legal documents ──────────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 32px 112px; }
.doc .eyebrow { margin-bottom: 18px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 14px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.doc .summary { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 44px; }
.doc .summary h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: -0.01em; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 52px 0 14px; line-height: 1.2; }
.doc h3 { font-size: 18px; margin: 30px 0 10px; }
.doc p, .doc li { font-size: 16.5px; color: var(--ink-2); line-height: 1.68; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.doc .summary ul { margin-bottom: 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .tbl { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc .tbl th, .doc .tbl td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.doc .tbl th { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--rule); padding: 64px 0 40px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid p { font-size: 14.5px; color: var(--muted); margin-top: 16px; max-width: 26em; }
.footer-grid h4 { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }

/* ── Narrower screens ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .order-panel, .order-panel:hover, .order-panel:focus-within { transform: none; }
  .bento > * { grid-column: span 12; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { max-width: 13em; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { margin-top: 28px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 880px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  section { padding: 80px 0; }
  section.tight { padding: 60px 0; }
  .hero { padding: 40px 0 72px; }
  .nav, .nav-actions .signin { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  body.menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; inset: 72px 0 0 0; background: var(--paper); padding: 16px 20px 32px; overflow-y: auto; z-index: 49;
  }
  body.menu-open .nav > a, body.menu-open .nav-trigger { font-size: 18px; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--rule); width: 100%; justify-content: space-between; }
  body.menu-open .nav-menu { position: static; width: auto; display: block; box-shadow: none; border: 0; padding: 4px 0 8px; background: transparent; }
  body.menu-open .nav-menu a { padding: 12px 4px; }
  body.menu-open .nav .mobile-signin { display: flex; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .section-head .lede { justify-self: start; }
  .gaps-head { display: none; }
  .gap { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .gap-n { padding: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--rule); }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0 0; border-left: 0; margin-top: 0; }
  .perms li { grid-template-columns: 1fr; gap: 4px; }
  .roadmap { grid-template-columns: 1fr; }
  .rebuild { grid-template-columns: 1fr; }
  .rebuild-arrow { transform: rotate(90deg); padding: 10px 0; }
  .crosslink { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .compare-table thead { display: none; }
  .compare-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .compare-table tbody th { grid-column: 1 / -1; width: auto; border: 0; padding: 4px 0 8px; }
  .compare-table td { width: auto; border: 0; padding: 0 14px 4px 0; font-size: 14.5px; }
  .compare-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}
@media (max-width: 520px) {
  .op-journey { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .op-links { display: none; }
  .models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { padding: 22px; }
  .statement { padding: 56px 22px 48px; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .journey li { grid-template-columns: 78px 14px 1fr; gap: 10px; }
  .credit-table .bar-cell { width: 34%; }
  .credit-table .share { display: none; }
  .doc { padding: 40px 20px 80px; }
}
.mobile-signin { display: none; margin-top: 18px; gap: 10px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } * { transition: none !important; }
  .op-links path.flow, .hub .out, .hub .back, .months i.now, .feed-row.new { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .statement-text span { opacity: 1; }
}
