/*
  Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5
  Genre: modern-minimal · tone: technical research workbench · anchor: cobalt
  Hallmark · macrostructure: Workbench · theme: Cobalt · nav: N13 · footer: Ft5
  Hallmark · contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46)
  Hallmark · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57)
*/
:root {
  --paper: #f7f9fc;
  --paper-2: #eef2f8;
  --paper-3: #e4eaf4;
  --ink: #0b1220;
  --ink-2: #29354a;
  --muted: #5b687c;
  --rule: #d3dae6;
  --rule-strong: #aab5c6;
  --accent: #315ee8;
  --accent-dark: #2549b8;
  --accent-ink: #fff;
  --accent-pale: #e7edff;
  --focus: #c2410c;
  --observed: #137a53;
  --observed-pale: #e2f4eb;
  --inferred: #9b4c08;
  --inferred-pale: #fff0db;
  --error: #b42318;
  --observed-border: #64b491;
  --observed-ink: #0e6242;
  --inferred-border: #db9e5f;
  --inferred-ink: #824005;
  --accent-border: #7f9ff9;
  --footer-muted: #a9b8d2;
  --footer-rule: #263247;
  --button-hover: #172136;
  --surface-glass: rgb(247 249 252 / 94%);
  --surface: #fff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow: 0 22px 70px rgb(11 18 32 / 13%);
  --shadow-command: 0 4px 16px rgb(11 18 32 / 6%);
  --shadow-annotation: 0 8px 24px rgb(11 18 32 / 12%);
  --shadow-featured: 0 20px 60px rgb(11 18 32 / 9%);
  --shadow-selected: 0 2px 8px rgb(11 18 32 / 8%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Arial Narrow", "Avenir Next Condensed", ui-sans-serif, sans-serif;
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 80px;
  --space-4xl: 120px;
  --space-5xl: 160px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--paper); }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.container { width: min(100% - 32px, 1200px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; inset-block-start: 8px; inset-inline-start: 8px; padding: var(--space-xs) var(--space-sm); transform: translateY(-150%); border-radius: 8px; background: var(--ink); color: var(--paper); white-space: nowrap; }
.skip-link:focus { transform: translateY(0); }

.nav-shell { position: sticky; z-index: 40; inset-block-start: 0; border-block-end: 1px solid var(--rule); background: var(--surface-glass); backdrop-filter: blur(16px); }
.nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: min(100% - 32px, 1200px); min-height: 70px; margin-inline: auto; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.025em; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.nav__rail { display: none; }
.command-pill { display: inline-flex; min-height: 44px; align-items: center; gap: var(--space-3xs); padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-xs); border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--surface); color: var(--ink-2); font-size: 11px; font-weight: 750; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-command); }
.command-pill kbd { display: none; min-width: 25px; height: 25px; padding: 0 var(--space-3xs); place-items: center; border: 1px solid var(--rule); border-block-end-color: var(--rule-strong); border-radius: 5px; background: var(--paper); color: var(--muted); font: 700 10px/1 var(--font-body); }

.hero { display: grid; gap: 44px; padding-block: clamp(40px, 4vw, 56px) clamp(56px, 6vw, 72px); }
.eyebrow { margin: 0 0 var(--space-2xs); color: var(--muted); font: 750 10px/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { min-width: 0; font-family: var(--font-display); letter-spacing: -.055em; overflow-wrap: anywhere; }
h1 { max-width: 12ch; margin: 0; font-size: clamp(48px, 7vw, 76px); line-height: .92; }
.hero__dek { max-width: 55ch; margin: var(--space-md) 0 0; color: var(--ink-2); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); margin-block-start: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: var(--space-xs) var(--space-sm); border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 780; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 100ms var(--ease-out); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: .58; }
.command-pill:active, .nav__rail a:active, .footer nav a:active { opacity: .72; }
.button--primary { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.button--secondary { border-color: var(--rule-strong); background: var(--surface); color: var(--ink); }
.button--quiet { border-color: var(--rule); background: transparent; color: var(--ink-2); }
.button--light { border-color: var(--surface); background: var(--surface); color: var(--ink); }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 620px; margin: 36px 0 0; border-block: 1px solid var(--rule-strong); }
.hero__facts div { min-width: 0; padding: var(--space-xs) var(--space-2xs) var(--space-xs) 0; }
.hero__facts div + div { padding-inline-start: var(--space-2xs); border-inline-start: 1px solid var(--rule); }
.hero__facts dt { color: var(--muted); font: 700 8px/1.3 var(--font-body); letter-spacing: .05em; text-transform: uppercase; }
.hero__facts dd { margin: var(--space-2xs) 0 0; color: var(--ink-2); font-size: 10px; font-weight: 700; }

.product-capture { margin: 0; min-width: 0; }
.capture-frame { position: relative; padding: var(--space-xs); border: 1px solid var(--rule-strong); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.capture-frame img { display: block; width: 100%; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-2); }
.product-capture figcaption { max-width: 60ch; margin-block-start: var(--space-xs); color: var(--muted); font: 600 10px/1.5 var(--font-body); }
.annotation { display: none; position: absolute; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs); border: 1px solid var(--rule-strong); border-radius: 7px; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-annotation); font: 700 9px/1 var(--font-body); white-space: nowrap; }
.annotation i { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-style: normal; }
.annotation--a { inset-block-start: 12%; inset-inline-start: -7%; }
.annotation--b { inset-block-end: 19%; inset-inline-end: -7%; }
.annotation--c { inset-block-start: 10%; inset-inline-end: -5%; }

.ticker { border-block: 1px solid var(--rule-strong); background: var(--surface); }
.ticker__row { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: var(--space-2xs); overflow: hidden; color: var(--ink-2); font: 700 9px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ticker__row i { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: var(--accent); }
.ticker__row span:nth-of-type(n+4), .ticker__row i:nth-of-type(n+3) { display: none; }

.method, .sequence { padding-block: clamp(80px, 12vw, 152px); }
.section-head { max-width: 740px; }
.section-head h2 { max-width: 13ch; margin: 0; font-size: clamp(42px, 8vw, 80px); line-height: .93; }
.section-head > p:last-child, .section-head--row > p { max-width: 52ch; margin: 20px 0 0; color: var(--ink-2); }
.diptych { display: grid; margin-block-start: 40px; border: 1px solid var(--rule-strong); border-radius: 18px; overflow: hidden; }
.diptych__side { padding: clamp(24px, 5vw, 52px); background: var(--surface); color: var(--ink); }
.diptych__side--dark { background: var(--ink); color: var(--paper); }
.diptych__side h3 { max-width: 16ch; margin: var(--space-md) 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.02; letter-spacing: -.04em; }
.diptych__side ul, .price-card ul { margin: 0; padding: 0; list-style: none; }
.diptych__side li { padding-block: var(--space-xs); border-block-start: 1px solid currentColor; font-size: 12px; opacity: .88; }
.state-label { display: inline-flex; min-height: 26px; align-items: center; padding: var(--space-3xs) var(--space-2xs); border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper); color: var(--ink-2); font: 750 9px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.state-label--observed { border-color: var(--observed-border); background: var(--observed-pale); color: var(--observed-ink); }
.state-label--inferred { border-color: var(--inferred-border); background: var(--inferred-pale); color: var(--inferred-ink); }
.state-label--accent { border-color: var(--accent-border); background: var(--accent-pale); color: var(--accent-dark); }

.features { padding-block: clamp(80px, 12vw, 152px); background: var(--paper-2); color: var(--ink); }
.section-head--row { max-width: none; }
.spec-sheet { display: grid; margin-block-start: 44px; border-block-start: 1px solid var(--rule-strong); }
.spec-sheet article { min-width: 0; padding: 24px 0; border-block-end: 1px solid var(--rule-strong); }
.spec-sheet span, .sequence li > span { color: var(--accent); font: 800 10px/1 var(--font-body); }
.spec-sheet h3 { margin: 20px 0 var(--space-2xs); font-size: 18px; letter-spacing: -.025em; }
.spec-sheet p { max-width: 38ch; margin: 0; color: var(--muted); font-size: 13px; }

.sequence ol { margin: var(--space-xl) 0 0; padding: 0; border-block-start: 1px solid var(--ink); list-style: none; }
.sequence li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-md); border-block-end: 1px solid var(--rule-strong); }
.sequence h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.sequence li p { max-width: 60ch; margin: var(--space-2xs) 0 0; color: var(--muted); font-size: 13px; }

.pricing { padding-block: clamp(80px, 12vw, 152px); border-block: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); }
.pricing-grid { display: grid; gap: var(--space-xs); margin-block-start: 44px; }
.price-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--rule-strong); border-radius: 18px; background: var(--paper); }
.price-card--featured { border-block-start: 4px solid var(--accent); background: var(--surface); box-shadow: var(--shadow-featured); }
.price-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2xs); }
.price-card__head p { margin: 0; color: var(--muted); font-size: 10px; }
.price { display: flex; align-items: baseline; gap: var(--space-2xs); margin-block: var(--space-lg) var(--space-md); }
.price strong { font-family: var(--font-display); font-size: clamp(54px, 10vw, 76px); line-height: .8; letter-spacing: -.05em; }
.price span { color: var(--muted); font-size: 11px; }
.price-card li { padding-block: var(--space-xs); border-block-start: 1px solid var(--rule); color: var(--ink-2); font-size: 12px; }
.price-card li::before { margin-inline-end: 8px; color: var(--accent); content: "✓"; }
.price-card .button { width: 100%; margin-block-start: var(--space-md); }
.price-card__note { min-height: 3em; margin: var(--space-2xs) 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.billing-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3xs); margin-block-start: var(--space-md); padding: var(--space-3xs); border: 1px solid var(--rule); border-radius: 9px; background: var(--paper); }
.billing-switch button { min-height: 40px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.billing-switch button:active { background: var(--paper-3); }
.billing-switch button:disabled { cursor: not-allowed; opacity: .55; }
.billing-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-selected); }

.final-statement { padding-block: clamp(80px, 14vw, 168px); background: var(--ink); color: var(--paper); }
.final-statement h2 { max-width: 19ch; margin: 0 0 36px; font-size: clamp(42px, 8vw, 86px); line-height: .95; }
.final-statement .eyebrow { color: var(--footer-muted); }
.footer { padding-block: 36px; border-block-start: 1px solid var(--footer-rule); background: var(--ink); color: var(--paper); }
.footer__grid { display: grid; gap: 28px; }
.footer .brand { color: var(--surface); }
.footer p { max-width: 46ch; margin: var(--space-2xs) 0 0; color: var(--footer-muted); font-size: 11px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--surface); font-size: 11px; font-weight: 700; white-space: nowrap; }

.legal { padding-block: clamp(60px, 10vw, 120px); }
.legal__head { max-width: 760px; padding-block-end: 32px; border-block-end: 1px solid var(--ink); }
.legal h1 { max-width: 14ch; font-size: clamp(46px, 9vw, 86px); }
.legal__meta { color: var(--muted); font: 700 10px/1.5 var(--font-body); }
.legal__body { max-width: 760px; margin-block-start: 44px; }
.legal__body h2 { margin: 44px 0 var(--space-xs); font-size: 29px; line-height: 1; }
.legal__body h3 { margin: 28px 0 var(--space-2xs); font-size: 17px; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body a { color: var(--accent-dark); }
.success-card { max-width: 720px; padding: clamp(24px, 5vw, 52px); border: 1px solid var(--rule-strong); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.success-card h1 { font-size: clamp(44px, 9vw, 80px); }

@media (hover: hover) and (pointer: fine) {
  .nav__rail a:hover, .footer a:hover { color: var(--accent); }
  .button:hover:not(:disabled), .command-pill:hover { transform: translateY(-1.5px); }
  .button--primary:hover:not(:disabled) { background: var(--button-hover); }
  .button--secondary:hover:not(:disabled), .button--quiet:hover:not(:disabled) { border-color: var(--ink); background: var(--paper-2); }
}

@media (min-width: 40rem) {
  .command-pill kbd { display: grid; }
  .ticker__row span:nth-of-type(n+4), .ticker__row i:nth-of-type(n+3) { display: inline; }
  .diptych { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-sheet article { padding: var(--space-lg); border-inline-start: 1px solid var(--rule-strong); }
  .spec-sheet article:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .footer__grid > p { grid-column: 1 / -1; }
}

@media (min-width: 60rem) {
  .nav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .nav__rail { display: flex; align-items: center; gap: var(--space-md); }
  .nav__rail a { color: var(--ink-2); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .command-pill { justify-self: end; }
  .hero { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: var(--space-2xl); }
  .hero__copy { min-width: 0; }
  .capture-frame { max-height: 520px; overflow: hidden; }
  .annotation { display: inline-flex; }
  .section-head--row { display: block; max-width: 740px; }
  .section-head--row > p { margin-block-start: 20px; }
  .spec-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec-sheet article, .spec-sheet article:nth-child(odd) { padding: 32px; border-inline-start: 1px solid var(--rule-strong); }
  .spec-sheet article:nth-child(3n + 1) { padding-inline-start: 0; border-inline-start: 0; }
  .sequence li { grid-template-columns: 70px minmax(0, 1fr); padding-block: 28px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) auto minmax(280px, .55fr); align-items: start; }
  .footer__grid > p { grid-column: auto; margin: 0; text-align: end; justify-self: end; }
}

.reveal-group { animation: reveal 500ms var(--ease-out) both; }
.product-capture.reveal-group { animation-delay: 100ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
