/* Nexus partner preview. No inline styles: the page CSP allows only this file. */
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F2EDE4; --bg-alt: #EAE3D7; --surface: #F8F5EF; --line: #DED5C8;
  --ink: #2E1F35; --body: #4A3F52; --muted: #6F6478;
  --accent: #6B4C7A; --accent-soft: #EFE6F4; --accent-line: #CFC0E0; --lavender: #B8A6D4;
  --sand: #D3A455; --sky: #93ACCC; --lime: #96AB2A; --lime-soft: #EEF4C4;
  --dealer: #B07A22; --nexus: #6B4C7A; --ok: #5B7A1E;
  --button: #2E1F35; --button-ink: #F8F5EF;
  --screen: #FBF9F5; --screen-card: #FFFFFF; --screen-line: #ECE5DA;
  --phone: linear-gradient(150deg, #43304C 0%, #1E1424 55%, #2E1F35 100%);
  --shadow: 0 1px 2px rgba(46, 31, 53, .06), 0 24px 60px -24px rgba(46, 31, 53, .35);
  --shadow-phone: 0 2px 4px rgba(46, 31, 53, .1), 0 40px 90px -30px rgba(46, 31, 53, .55);
  --topbar: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1220; --bg-alt: #221728; --surface: #2A1D31; --line: #3E2E47;
    --ink: #F4EFE8; --body: #D8CEDF; --muted: #A898B4;
    --accent: #CDB8EA; --accent-soft: #34233F; --accent-line: #57416A; --lavender: #B8A6D4;
    --lime-soft: #2F3314; --dealer: #D9A24A; --nexus: #B8A6D4; --ok: #C2D463;
    --button: #F2EDE4; --button-ink: #2E1F35;
    --screen: #231829; --screen-card: #2E2035; --screen-line: #3B2B44;
    --phone: linear-gradient(150deg, #5A4166 0%, #140D18 55%, #2E1F35 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 60px -24px rgba(0, 0, 0, .7);
    --shadow-phone: 0 2px 4px rgba(0, 0, 0, .4), 0 40px 90px -30px rgba(0, 0, 0, .85);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 400 1.0625rem/1.6 var(--sans); font-synthesis: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: .2em; }
b { color: var(--ink); font-weight: 600; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--button); color: var(--button-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(16px, min(5vw, 40px)); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.fine { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 34em; }

/* Buttons and pills */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--button); color: var(--button-ink);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(46, 31, 53, .55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(46, 31, 53, .6); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: progress; opacity: .7; transform: none; }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.button-small { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.pill, .arrives {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line);
  font-weight: 600; letter-spacing: 0; text-transform: none;
}
.pill { padding: 7px 14px; font-size: .875rem; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.arrives { padding: 3px 10px; font-size: .78rem; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.linklike { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; color: var(--ink); }
.brand-name { font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; }
.topnav { display: none; gap: 4px; margin-left: auto; }
.topnav a { color: var(--body); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 10px 14px; border-radius: 999px; }
.topnav a:hover { color: var(--ink); background: var(--accent-soft); }
.topbar .button-small { margin-left: auto; }
@media (min-width: 820px) { .topnav { display: flex; } .topbar .button-small { margin-left: 8px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lavender) 34%, transparent), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(2.7rem, 11.2vw, 4.9rem); line-height: .98; letter-spacing: -.035em; }
.hero-line { display: block; }
.hero h1 .serif { display: block; font-size: 1.1em; line-height: .95; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-art { justify-self: center; width: min(100%, 560px); }
.still { width: 100%; height: auto; overflow: visible; }
@media (prefers-color-scheme: dark) {
  .piece-ring circle:first-child, .plum-stroke { stroke: url(#g-ring-night); }
  .plum-fill { fill: url(#g-ring-night); }
}
@media (min-width: 900px) {
  .hero { min-height: calc(100svh - var(--topbar)); display: grid; align-items: center; }
  .hero-inner { grid-template-columns: 1.12fr .88fr; gap: 40px; }
  .hero h1 { font-size: clamp(3.4rem, 5.6vw, 4.9rem); }
  .hero-line, .hero h1 .serif { white-space: nowrap; }
  .hero-art { width: 100%; }
}

/* Chapters */
.chapter { position: relative; padding-block: clamp(80px, 12vw, 150px); }
.chapter-alt { background: var(--bg-alt); }
.chapter-grid { display: grid; gap: 48px; align-items: center; }
.chapter-copy { display: grid; gap: 18px; max-width: 36rem; }
.chapter-copy-wide { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.chapter h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -.028em; }
.chapter h2 .serif { font-size: 1.1em; color: var(--accent); }
.chapter h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.ticks { display: grid; gap: 10px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line);
}
.ticks li::after {
  content: ""; position: absolute; left: 6.5px; top: calc(.28em + 5px); width: 6px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@media (min-width: 900px) {
  .chapter-grid { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(48px, 7vw, 110px); }
  .chapter-grid-flip > .device { order: -1; }
}

/* The spread */
.spread-card {
  display: grid; gap: 22px; padding: clamp(24px, 4vw, 40px); border-radius: 28px;
  background: var(--surface); box-shadow: var(--shadow); width: 100%; max-width: 520px; justify-self: center;
}
.card-kicker { font-weight: 600; color: var(--ink); }
.bar-row { display: grid; gap: 10px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.bar-label b { font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 22px; border-radius: 999px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; transform-origin: left center; }
.bar-dealer { width: 80%; background: linear-gradient(90deg, color-mix(in srgb, var(--dealer) 70%, transparent), var(--dealer)); }
.bar-nexus { width: 90.25%; background: linear-gradient(90deg, var(--lavender), var(--nexus)); }
.spread-gain { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); --delay: 1.1s; }
.gain-number { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 600; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gain-label { color: var(--muted); }

/* The loop */
.loop { display: grid; gap: 14px; counter-reset: step; }
.loop-step {
  position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: start; align-content: start;
  padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); counter-increment: step;
}
.loop-icon { width: 64px; height: 64px; grid-row: span 2; }
.loop-step h3 { display: flex; align-items: baseline; gap: 8px; }
.loop-step h3::before { content: counter(step, decimal-leading-zero); font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.loop-step p { font-size: .9375rem; }
@media (min-width: 900px) {
  .loop { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .loop-step { grid-template-columns: 1fr; row-gap: 10px; padding: 24px 20px 26px; }
  .loop-icon { width: 88px; height: 88px; grid-row: auto; margin-bottom: 6px; }
  .loop-step:not(:last-child)::after {
    content: ""; position: absolute; top: 64px; right: -13px; width: 10px; height: 10px; z-index: 1;
    border: solid var(--accent-line); border-width: 2px 2px 0 0; transform: rotate(45deg);
  }
}

/* Phone mockups */
.device { display: flex; justify-content: center; }
.phone {
  container-type: inline-size; position: relative; width: min(336px, 86vw); aspect-ratio: 9 / 18.6;
  padding: 11px; border-radius: 52px; background: var(--phone); box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
}
.phone::after { content: ""; position: absolute; top: 120px; right: -3px; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: #3A2842; }
.screen {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 42px;
  background: var(--screen); color: var(--body); font-size: 13px; font-size: 4.25cqi; line-height: 1.4;
}
.screen::before { content: ""; position: absolute; top: 2.9%; left: 50%; width: 30%; height: 3.4%; border-radius: 999px; background: #140D18; transform: translateX(-50%); z-index: 2; }
.screen-night { --screen: #1E1424; --screen-card: #2A1D31; --screen-line: #3A2B43; color: #D8CEDF; }
.screen-night b, .screen-night .recap-big { color: #F4EFE8; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 1.35em 2.2em .5em; font-weight: 600; font-size: .92em; color: var(--ink); }
.screen-night .status, .screen-night .app-bar { color: #F4EFE8; }
.status-dots { display: inline-flex; gap: .25em; align-items: end; }
.status-dots i { display: block; width: .3em; border-radius: 1px; background: currentColor; }
.status-dots i:nth-child(1) { height: .45em; } .status-dots i:nth-child(2) { height: .65em; } .status-dots i:nth-child(3) { height: .85em; }
.app-bar { display: flex; align-items: center; gap: .6em; padding: .7em 1.3em .9em; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--screen-line); }
.app-mark { width: 1.7em; height: 1.7em; color: var(--ink); }
.screen-night .app-mark { color: #F4EFE8; }
.app-avatar { width: 2em; height: 2em; margin-left: auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F0D9A8, #B8A6D4 70%); }
.higsby-mark {
  display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%;
  background: linear-gradient(150deg, #B8A6D4, #6B4C7A); color: #fff; font-family: var(--serif); font-style: italic; font-size: 1.05em;
}
.screen-body { flex: 1; display: flex; flex-direction: column; gap: .85em; padding: 1em 1.2em; min-height: 0; }
.screen-foot { padding: .8em 1.2em 1.9em; font-size: .85em; color: var(--muted); text-align: center; border-top: 1px solid var(--screen-line); }

/* Account screen */
.record-head { display: flex; gap: .9em; align-items: center; }
.record-slab { width: 4.6em; height: auto; filter: drop-shadow(0 .4em .6em rgba(46, 31, 53, .22)); }
.record-meta { display: grid; gap: .25em; }
.record-title { font-weight: 600; color: var(--ink); font-size: 1.12em; }
.record-sub { color: var(--muted); font-size: .92em; }
.chips { display: flex; gap: .4em; flex-wrap: wrap; margin-top: .2em; }
.chip { padding: .2em .65em; border-radius: 999px; font-size: .82em; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.chip-ok { background: var(--lime-soft); color: var(--ok); }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45em; }
.photo { display: grid; place-items: center; aspect-ratio: 1; border-radius: .7em; background: var(--screen-card); box-shadow: inset 0 0 0 1px var(--screen-line); overflow: hidden; }
.photo svg { width: 58%; height: auto; }
.photo-back::before { content: ""; width: 58%; aspect-ratio: 300 / 420; border-radius: .35em; background: linear-gradient(180deg, #DADADA 0 23%, #F5F1EA 23%); box-shadow: 0 0 0 1px rgba(46, 31, 53, .1); }
.photo-label { align-content: center; gap: .3em; background: linear-gradient(135deg, #EFEFEF, #BEBEBE); }
.photo-label i { display: block; width: 2.6em; height: .32em; border-radius: 1em; background: rgba(80, 80, 80, .45); }
.photo-label i + i { width: 1.7em; }
.photo-scale { background: #1E1424; color: #C2D463; font-weight: 600; font-size: .92em; font-variant-numeric: tabular-nums; }
.checks { display: grid; gap: .45em; padding: .8em .9em; border-radius: 1.1em; background: var(--screen-card); box-shadow: inset 0 0 0 1px var(--screen-line); }
.checks li { display: flex; align-items: center; gap: .6em; font-size: .95em; }
.tick-dot { position: relative; flex: none; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--lime); }
.tick-dot::after { content: ""; position: absolute; left: .42em; top: .22em; width: .32em; height: .6em; border: solid #fff; border-width: 0 .14em .14em 0; transform: rotate(45deg); }
.money { padding: .9em 1em; border-radius: 1.1em; background: linear-gradient(160deg, var(--accent-soft), var(--screen-card)); box-shadow: inset 0 0 0 1px var(--accent-line); }
.money-plain { background: var(--screen-card); box-shadow: inset 0 0 0 1px var(--screen-line); }
.money-label { display: flex; align-items: center; justify-content: space-between; gap: .5em; font-size: .88em; color: var(--muted); }
.est { font-size: .9em; font-weight: 600; color: var(--accent); }
.money-value { font-size: 2.35em; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.confidence { display: flex; align-items: center; gap: .5em; font-size: .9em; }
.badge { padding: .12em .55em; border-radius: 999px; background: var(--lime-soft); color: var(--ok); font-weight: 600; font-size: .9em; }
.timeline { display: grid; gap: .35em; padding-left: .9em; border-left: 2px solid var(--accent-line); font-size: .9em; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-.9em - 5px); top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline b { margin-right: .3em; }
.verified-strip { display: flex; align-items: center; gap: .55em; margin-top: auto; padding: .7em .85em; border-radius: .9em; background: var(--screen-card); box-shadow: inset 0 0 0 1px var(--screen-line); font-weight: 600; color: var(--ink); font-size: .92em; }
.verified-strip svg { width: 1.6em; height: 1.6em; flex: none; }

/* Higsby screen */
.chat { gap: .8em; }
.msg { max-width: 88%; padding: .75em .95em; border-radius: 1.2em; }
.msg-me { align-self: flex-end; background: var(--button); color: var(--button-ink); border-bottom-right-radius: .35em; }
.attach { display: inline-flex; align-items: center; gap: .4em; margin-top: .5em; padding: .25em .6em; border-radius: .6em; background: rgba(255, 255, 255, .14); font-size: .85em; font-weight: 600; }
.attach::before { content: ""; width: .9em; height: .7em; border-radius: .15em; background: linear-gradient(135deg, var(--sky), var(--sand)); }
.msg-bot { align-self: flex-start; background: var(--screen-card); box-shadow: inset 0 0 0 1px var(--screen-line); border-bottom-left-radius: .35em; }
.bot-name { font-weight: 600; color: var(--accent); font-size: .9em; margin-bottom: .45em; }
.draft { display: grid; gap: .4em; }
.draft li { display: flex; justify-content: space-between; gap: .8em; font-size: .93em; }
.draft li span { color: var(--muted); }
.draft li b { text-align: right; font-variant-numeric: tabular-nums; }
.draft-note { margin-top: .6em; padding-top: .6em; border-top: 1px dashed var(--screen-line); font-size: .9em; }
.draft-quiet { padding: .8em .95em; border-radius: 1.1em; background: var(--screen-card); box-shadow: inset 0 0 0 1px var(--screen-line); }
.draft-night { padding: .8em .95em; border-radius: 1.1em; background: var(--screen-card); }
.draft-night li span { color: #A898B4; }
.msg-typing { display: none; overflow: hidden; }
.typing { display: flex; gap: .3em; }
.typing i { width: .5em; height: .5em; border-radius: 50%; background: var(--muted); opacity: .5; }
.msg-actions { display: flex; gap: .5em; align-self: flex-start; }
.fake-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6em; padding: 0 1.3em; border-radius: 999px; font-weight: 600; font-size: .95em; }
.fake-solid { background: var(--button); color: var(--button-ink); }
.fake-ghost { box-shadow: inset 0 0 0 1px var(--screen-line); color: var(--ink); background: var(--screen-card); }
.fake-wide { width: 100%; margin-top: auto; min-height: 3em; }
.approved { align-self: flex-start; display: inline-flex; align-items: center; gap: .45em; font-size: .88em; font-weight: 600; color: var(--ok); }
.approved::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--lime); }

/* Network screen */
.store-sub { font-size: .9em; color: var(--muted); }
.tabs { display: flex; gap: .4em; }
.tab { padding: .3em .8em; border-radius: 999px; font-size: .85em; font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1px var(--screen-line); }
.tab-on { background: var(--button); color: var(--button-ink); box-shadow: none; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.tile { display: grid; gap: .35em; padding: .45em .45em .55em; border-radius: .9em; background: var(--screen-card); box-shadow: inset 0 0 0 1px var(--screen-line); }
.tile svg { width: 100%; height: auto; }
.tile p { display: grid; font-size: .8em; line-height: 1.25; }
.tile p span { color: var(--muted); font-size: .92em; }
.toast {
  display: grid; gap: .1em; margin-top: auto; padding: .85em 1em; border-radius: 1.1em;
  background: var(--button); color: var(--button-ink); box-shadow: 0 1em 2em -1em rgba(46, 31, 53, .6);
}
.toast-title { font-weight: 600; display: flex; align-items: center; gap: .5em; }
.toast-title::before { content: ""; width: .65em; height: .65em; border-radius: 50%; background: #C2D463; box-shadow: 0 0 0 .22em rgba(194, 212, 99, .3); }
.toast-sub { font-size: .88em; opacity: .8; }
.toast-earn { font-size: 1.25em; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.stat-row div { padding: 14px 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stat-row dt { font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.stat-row dd { margin: 4px 0 0; font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 600; color: var(--ink); letter-spacing: -.02em; }

/* Calculator */
.calc { margin-top: clamp(48px, 7vw, 88px); padding: clamp(22px, 4vw, 40px); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 26px; }
.calc-head { display: grid; gap: 6px; }
.calc-head h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -.02em; }
.calc-grid { display: grid; gap: 28px; }
.calc-item { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: end; }
.calc-item label { font-weight: 500; color: var(--ink); }
.calc-value { font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-item input, .calc-result { grid-column: 1 / -1; }
.calc-result { color: var(--body); }
.calc-result b { font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
input[type="range"] { --fill: 20%; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line) var(--fill)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--surface); border: 0; box-shadow: 0 0 0 2px var(--accent), 0 4px 12px rgba(46, 31, 53, .3); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 0; box-shadow: 0 0 0 2px var(--accent), 0 4px 12px rgba(46, 31, 53, .3); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px var(--accent-line); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px var(--accent-line); }

/* Credit */
.facts { display: grid; gap: 12px; margin-top: 6px; }
.fact { padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fact h3 { font-size: 1rem; margin-bottom: 4px; }
.fact p { font-size: .9375rem; }
.meter { height: .6em; margin: .7em 0 .45em; border-radius: 999px; background: var(--screen-line); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 30%; border-radius: inherit; background: linear-gradient(90deg, var(--lavender), var(--accent)); transform-origin: left center; }
.meter-note { font-size: .85em; color: var(--muted); }
.case { display: grid; gap: .65em; padding: .8em .95em .95em; border-radius: 1.1em; background: var(--screen-card); box-shadow: inset 0 0 0 1px var(--screen-line); }
.case-head { display: flex; justify-content: space-between; gap: .5em; font-size: .93em; }
.case-head span { color: var(--muted); }
.case-slabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4em; }
.case-slabs svg { width: 100%; height: auto; filter: drop-shadow(0 .2em .3em rgba(46, 31, 53, .2)); }
.meter-night { background: #3A2B43; }
.meter-fill-tier { width: 72%; background: linear-gradient(90deg, #E6F09E, #96AB2A); }

/* League */
.league { display: grid; gap: 12px; margin-top: 6px; }
.league-item { padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.league-item h3 { font-size: 1rem; margin-bottom: 4px; }
.league-item p { font-size: .9375rem; }
@media (min-width: 620px) { .league, .facts { grid-template-columns: 1fr 1fr; } .facts .fact:last-child { grid-column: 1 / -1; } }
.recap { gap: 1em; }
.recap-kicker { font-size: .85em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #B8A6D4; }
.recap-big { font-family: var(--serif); font-size: 2.05em; line-height: 1.12; letter-spacing: -.01em; }
.recap-big b { font-family: var(--sans); font-weight: 600; font-size: .92em; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.standings { display: grid; gap: .15em; padding: .6em .8em; border-radius: 1.1em; background: #2A1D31; }
.standings li { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: center; gap: .4em; padding: .3em .35em; border-radius: .6em; font-size: .92em; }
.standings .standings-head { display: flex; justify-content: space-between; font-size: .8em; letter-spacing: .06em; text-transform: uppercase; color: #A898B4; }
.standings .rank { color: #A898B4; font-variant-numeric: tabular-nums; }
.standings .me { background: rgba(184, 166, 212, .16); box-shadow: inset 0 0 0 1px rgba(184, 166, 212, .35); }
.standings .me .who { color: #F4EFE8; font-weight: 600; }
.standings b { font-variant-numeric: tabular-nums; }
.tier { display: grid; gap: .2em; margin-top: auto; padding: .9em 1em; border-radius: 1.1em; background: #2A1D31; }
.tier p { display: flex; justify-content: space-between; font-size: .9em; }
.tier p span { color: #A898B4; }

/* Timeline */
.seasons { display: grid; gap: 14px; }
.season { position: relative; padding: 24px 22px 26px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; overflow: hidden; }
.season::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; }
.season:nth-child(1)::before { background: linear-gradient(90deg, #E6F09E, #96AB2A); }
.season:nth-child(2)::before { background: linear-gradient(90deg, var(--lavender), var(--accent)); }
.season:nth-child(3)::before { background: linear-gradient(90deg, #F0D9A8, var(--sand)); }
.season-when { font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.season h3 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); letter-spacing: -.02em; }
@media (min-width: 900px) { .seasons { grid-template-columns: repeat(3, 1fr); gap: 18px; } .season { padding: 30px 28px 32px; } }

/* Trust */
.trust { display: grid; gap: 14px; }
.trust-item { padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; align-content: start; }
.trust-item h3 { display: flex; align-items: center; gap: 10px; }
.trust-item h3::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #DACDEC, #6B4C7A); }
.trust-item p { font-size: .9375rem; }
@media (min-width: 620px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* Apply */
.chapter-apply { background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--lavender) 26%, transparent), transparent 60%), var(--bg); padding-bottom: clamp(96px, 14vw, 170px); }
.apply-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .apply-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 100px); } .apply-grid .chapter-copy { position: sticky; top: calc(var(--topbar) + 40px); } }
.apply-card {
  position: relative; padding: clamp(22px, 4vw, 40px); border-radius: 30px; background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--accent-line) 60%, transparent);
}
.apply-form { display: grid; gap: 22px; }
.apply-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.apply-dots { display: flex; gap: 6px; }
.apply-dots span { width: 26px; height: 5px; border-radius: 999px; background: var(--line); transition: background-color .4s var(--ease), width .4s var(--ease); }
.apply-dots span.on { background: var(--accent); width: 38px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.step legend { padding: 0; margin-bottom: 18px; font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.field { display: grid; gap: 8px; }
.field > label, .label { font-weight: 600; color: var(--ink); font-size: .9375rem; }
.optional { font-weight: 500; color: var(--muted); font-size: .8125rem; margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 0; background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 1rem; transition: box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #B3261E !important; }
.prefixed { position: relative; }
.prefixed span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.prefixed input[type="text"] { padding-left: 36px; }
.hint { font-size: .8125rem; color: var(--muted); }
.field-error, .form-error { font-size: .875rem; font-weight: 600; color: #B3261E; }
.form-error { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #B3261E 10%, transparent); }
@media (prefers-color-scheme: dark) {
  .field-error, .form-error { color: #F2B8B5; }
  .field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #F2B8B5 !important; }
}
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-weight: 500;
  transition: box-shadow .2s, background-color .2s, color .2s;
}
.choice span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); transition: background-color .2s, box-shadow .2s; }
.choice input[type="checkbox"] + span::before { border-radius: 3px; }
.choice:hover span { box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.choice input:checked + span { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); color: var(--ink); }
.choice input:checked + span::before { background: var(--accent); box-shadow: none; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.choice input[aria-invalid="true"] + span { box-shadow: inset 0 0 0 2px #B3261E; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.field-consent .hint, .field-consent .field-error { padding-left: 34px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply-actions { display: flex; gap: 12px; justify-content: flex-end; }
.apply-actions .button { min-width: 0; padding: 0 22px; }
#step-next, #step-submit { flex: 1 1 auto; max-width: 280px; }
#step-submit { background: linear-gradient(135deg, #3C2A46, #2E1F35 55%, #54396A); color: #F8F5EF; }
@media (prefers-color-scheme: dark) { #step-submit { background: linear-gradient(135deg, #F4EFE8, #E3D7F0); color: #2E1F35; } }

/* Receipt */
.receipt { display: grid; gap: 16px; justify-items: start; outline: none; }
.receipt-kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.receipt .receipt-ref { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; line-height: 1.1; }
.receipt-ref-label { display: block; margin-bottom: 4px; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
#receipt-ref { display: block; font-size: clamp(2.6rem, 9vw, 3.4rem); font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: nowrap; }
.status-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent-line); }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.next { display: grid; gap: 12px; counter-reset: next; margin: 6px 0 4px; }
.next li { position: relative; padding-left: 40px; counter-increment: next; }
.next li::before {
  content: counter(next); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8125rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line);
}
.seal { position: relative; width: 132px; height: 150px; margin: 4px 0 6px; }
.seal-slab { position: absolute; left: 28px; top: 14px; width: 76px; height: auto; filter: drop-shadow(0 8px 12px rgba(46, 31, 53, .25)); }
.seal-bag { position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 12px 30px -14px rgba(46, 31, 53, .4); }
@media (prefers-color-scheme: dark) { .seal-bag { background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); } }
.seal-strip { position: absolute; left: 0; right: 0; top: 0; height: 18px; border-radius: 16px 16px 4px 4px; background: linear-gradient(90deg, #B8A6D4, #6B4C7A); transform-origin: left center; }
.seal-strip::after { content: "NX SEALED"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; font-weight: 700; letter-spacing: .2em; color: #fff; }

/* Footer */
.footer { padding: 44px 0 120px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 14px; max-width: 760px; margin-left: 0; }
.footer .brand-mark { width: 26px; height: 26px; }
.brand-footer { min-height: 0; }

/* Motion. Final states are the defaults; scripts opt in to the starting states. */
.d-1 { --delay: .15s; } .d-2 { --delay: .5s; } .d-3 { --delay: .85s; } .d-4 { --delay: 1.2s; }
.d-5 { --delay: 1.55s; } .d-6 { --delay: 1.9s; } .d-7 { --delay: 2.25s; } .d-8 { --delay: 2.6s; }
.d-9 { --delay: 2.95s; } .d-10 { --delay: 3.3s; } .d-11 { --delay: 3.65s; } .d-12 { --delay: 4s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.92); } 70% { opacity: 1; transform: translateY(-2px) scale(1.02); } 100% { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tick { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes toast-in { 0% { opacity: 0; transform: translateY(120%); } 60% { opacity: 1; transform: translateY(-6%); } 100% { opacity: 1; transform: none; } }
@keyframes typing { 0%, 100% { opacity: 0; max-height: 0; padding-block: 0; margin-bottom: -.8em; } 15%, 85% { opacity: 1; max-height: 3em; padding-block: .75em; margin-bottom: 0; } }
@keyframes blink { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-.15em); } }
@keyframes press { 0%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(107, 76, 122, 0); } 40% { transform: scale(.94); box-shadow: 0 0 0 .5em rgba(184, 166, 212, .45); } }
@keyframes drop { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes ring { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes seal-in { 0% { opacity: 0; transform: translateY(-70px) rotate(-8deg); } 60% { opacity: 1; transform: translateY(6px) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }

@media (prefers-reduced-motion: no-preference) {
  .js-motion [data-play]:not(.has-played) [data-anim] { opacity: 0; }
  .js-motion [data-play].is-resetting [data-anim] { animation: fade-out .4s ease both; }
  .js-motion [data-play].is-playing [data-anim] { animation: rise .7s var(--ease) var(--delay, 0s) both; }
  .js-motion [data-play].is-playing .tile[data-anim], .js-motion [data-play].is-playing .chip[data-anim] { animation-name: pop; animation-duration: .55s; }
  .js-motion [data-play].is-playing .toast[data-anim] { animation: toast-in .8s var(--ease) var(--delay) both; }
  .js-motion [data-play].is-playing .bar-fill { animation: grow 1.3s var(--ease) both; }
  .js-motion [data-play].is-playing .bar-nexus { animation-delay: .45s; }
  .js-motion [data-play].is-playing .meter-fill { animation: grow 1.4s var(--ease) .35s both; }
  .js-motion [data-play].is-playing .meter-fill-tier { animation-delay: 3.1s; }
  .js-motion [data-play].is-playing .checks .tick-dot { animation: tick .45s var(--ease) calc(var(--delay) + .15s) both; }
  .js-motion [data-play].is-playing .msg-typing { display: block; animation: typing 1.5s ease .75s both; }
  .js-motion [data-play].is-playing .typing i { animation: blink .9s ease-in-out 2; }
  .js-motion [data-play].is-playing .typing i:nth-child(2) { animation-delay: .15s; }
  .js-motion [data-play].is-playing .typing i:nth-child(3) { animation-delay: .3s; }
  .js-motion [data-play].is-playing .msg-bot .bot-name,
  .js-motion [data-play].is-playing .msg-bot .draft li,
  .js-motion [data-play].is-playing .msg-bot .draft-note { animation: rise .45s var(--ease) both; animation-delay: calc(var(--delay) + .15s); }
  .js-motion [data-play].is-playing .msg-bot .draft li:nth-child(1) { animation-delay: calc(var(--delay) + .3s); }
  .js-motion [data-play].is-playing .msg-bot .draft li:nth-child(2) { animation-delay: calc(var(--delay) + .45s); }
  .js-motion [data-play].is-playing .msg-bot .draft li:nth-child(3) { animation-delay: calc(var(--delay) + .6s); }
  .js-motion [data-play].is-playing .msg-bot .draft li:nth-child(4) { animation-delay: calc(var(--delay) + .75s); }
  .js-motion [data-play].is-playing .msg-bot .draft li:nth-child(5) { animation-delay: calc(var(--delay) + .9s); }
  .js-motion [data-play].is-playing .msg-bot .draft-note { animation-delay: calc(var(--delay) + 1.1s); }
  .js-motion [data-play].is-playing .msg-actions[data-anim] { --delay: 3.7s; }
  .js-motion [data-play].is-playing .tap { animation: press .7s ease 4.5s both; }
  .js-motion [data-play].is-playing .approved[data-anim] { --delay: 5.1s; }

  .hero .piece { animation: drop 1.1s var(--ease) both; }
  .hero .piece-ring { animation-delay: .05s; }
  .hero .piece-slab1 { animation-delay: .25s; }
  .hero .piece-slab2 { animation-delay: .4s; }
  .hero .piece-slab3 { animation-delay: .55s; }
  .hero .piece-stone { animation-delay: .7s; }
  .hero .piece-lav { animation-delay: .85s; }
  .hero .piece-lime { animation-delay: 1s; }
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .2s; }
  .hero-copy > :nth-child(4) { animation-delay: .3s; }
  .hero-copy > :nth-child(5) { animation-delay: .4s; }
  .hero-art .still { animation: float 5s ease-in-out 2.2s infinite alternate; }

  .pulse::after { animation: ring 2.4s ease-out infinite; }
  .receipt.is-sealing .seal-slab { animation: seal-in .9s var(--ease) both; }
  .receipt.is-sealing .seal-bag { animation: fade .5s ease .5s both; }
  .receipt.is-sealing .seal-strip { animation: grow .6s var(--ease) 1s both; }
  .receipt.is-sealing > :not(.seal) { animation: rise .7s var(--ease) both; animation-delay: 1.5s; }
  .receipt.is-sealing > :nth-child(3) { animation-delay: 1.65s; }
  .receipt.is-sealing > :nth-child(4) { animation-delay: 1.8s; }
  .receipt.is-sealing > :nth-child(5) { animation-delay: 2s; }
  .receipt.is-sealing > :nth-child(6) { animation-delay: 2.2s; }
  .step.is-entering { animation: rise .5s var(--ease) both; }
}
/* The idle bob repaints the still life, so it runs only on larger screens. */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) and (hover: hover) {
  .hero .piece-lav { animation: drop 1.1s var(--ease) .85s both, bob 4.5s ease-in-out 2s infinite alternate; }
  .hero .piece-lime { animation: drop 1.1s var(--ease) 1s both, bob 3.8s ease-in-out 2.2s infinite alternate; }
}

@media print {
  .topbar, .hero-actions, .skip { display: none !important; }
  .chapter { break-inside: avoid; padding-block: 32px; }
}
