/* tabs.market
   Scene: a store owner at their desk in the evening, deciding whether to trust a private club
   with their checkout. Warm paper, near-black ink, one brass accent, and the Spartan in framed
   dark rooms. Serif display type over a quiet sans. Few cards; mostly rules, ledgers and a table. */

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 86%; ascent-override: 98%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Sans Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 103%; ascent-override: 94%; descent-override: 24%; line-gap-override: 0%; }

:root {
  /* Neutrals derived from the brass hue */
  --bg: oklch(0.968 0.012 85);
  --bg-2: oklch(0.94 0.017 85);
  --surface: oklch(0.992 0.005 85);
  --text: oklch(0.17 0.012 70);
  --text-2: oklch(0.4 0.016 70);
  --text-3: oklch(0.5 0.016 70);
  --dark: oklch(0.135 0.008 70);
  --on-dark: oklch(0.955 0.013 85);
  --on-dark-2: oklch(0.955 0.013 85 / 0.66);
  --accent: oklch(0.68 0.09 78);
  --accent-deep: oklch(0.46 0.08 72);
  --hair: oklch(0.17 0.012 70 / 0.1);
  --hair-2: oklch(0.17 0.012 70 / 0.18);
  --hair-dark: oklch(0.955 0.013 85 / 0.14);
  --danger: oklch(0.47 0.16 30);
  --ok: oklch(0.43 0.09 155);
  --card-blue: oklch(0.36 0.11 262);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "Instrument Serif", "Serif Fallback", Georgia, serif;
  --sans: "Geist", "Sans Fallback", system-ui, sans-serif;

  --gutter: 20px;
  --frame: 8px;
  --r-stage: 24px;
  --z: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

/* Wide desktops: the whole composition scales in proportion. */
@media (min-width: 1600px) { :root { --z: 1.1; } }
@media (min-width: 1760px) { :root { --z: 1.2; } }
@media (min-width: 1920px) { :root { --z: 1.3; } }
@media (min-width: 2240px) { :root { --z: 1.5; } }
@media (min-width: 2560px) { :root { --z: 1.75; } }
@media (min-width: 3200px) { :root { --z: 2.2; } }
@media (min-width: 3840px) { :root { --z: 2.6; } }
@media (min-width: 1600px) { body { zoom: var(--z); } }

h1, h2, h3, h4, p, ul, ol, dl, dd, dt { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.022em; text-wrap: balance; }
h3, h4 { font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
p, dd { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.stage :focus-visible, .nav:not(.scrolled) :focus-visible, .menu :focus-visible { outline-color: var(--on-dark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: fixed; left: 16px; top: 0; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: 8px; transform: translateY(-120%); transition: transform 300ms var(--ease); }
.skip:focus { transform: translateY(16px); }

.icon, .logo {
  display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.icon-xl { width: 56px; height: 56px; color: var(--accent-deep); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 6px 6px 24px;
  border: 0; border-radius: 9999px; cursor: pointer; white-space: nowrap;
  font-size: 15px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; transition: transform 400ms var(--ease); }
.btn-cream { background: var(--on-dark); color: var(--text); }
.btn-cream .btn-ico { background: oklch(0.17 0.012 70 / 0.09); }
.btn-ink { background: var(--text); color: var(--bg); }
.btn-ink .btn-ico { background: oklch(0.955 0.013 85 / 0.14); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; line-height: 20px; background: var(--on-dark); color: var(--text); }
.btn-block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media (hover: hover) {
  .btn:hover .btn-ico, .demo-btn:hover .btn-ico { transform: translate(3px, -1px); }
  .btn-cream:hover { background: oklch(0.99 0.006 85); }
  .btn-ink:hover { background: oklch(0.1 0.01 70); }
}
.link-quiet { font-size: 15px; font-weight: 500; color: var(--on-dark-2); padding: 12px 2px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: color 180ms var(--ease); }
.link-quiet:hover { color: var(--on-dark); }

/* Header: transparent over the hero, condenses once you scroll */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; color: var(--on-dark); transition: transform 500ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); opacity: 0; transition: opacity 300ms var(--ease); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 72px; padding-top: var(--frame); transition: height 400ms var(--ease), padding 400ms var(--ease); }
.nav.scrolled { color: var(--text); background: oklch(0.968 0.012 85 / 0.82); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.nav.scrolled::after { opacity: 1; }
.nav.scrolled .nav-in { height: 60px; padding-top: 0; }
.nav.scrolled .btn-sm { background: var(--text); color: var(--bg); }
.menu-open .nav { color: var(--on-dark); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .nav::after { opacity: 0; }
.nav.away { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; line-height: 24px; letter-spacing: -0.02em; }
.brand-mark { width: 16px; height: 16px; border-radius: 50%; border: 4px solid currentColor; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.footer .brand-logo { width: 28px; height: 28px; }
.nav-links { display: none; gap: 32px; font-size: 14px; line-height: 20px; }
.nav-links a { opacity: 0.66; padding: 12px 0; transition: opacity 180ms var(--ease); }
.nav-links a:hover, .nav-links a.is-current { opacity: 1; }
.nav-cta { display: none; }
.burger { position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; color: inherit; }
.burger span { position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 500ms var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; padding: 96px var(--gutter) 48px;
  background: oklch(0.135 0.008 70 / 0.94); color: var(--on-dark);
  -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px);
  opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease), visibility 0s linear 400ms;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease), visibility 0s; }
.menu nav { display: grid; gap: 4px; width: 100%; }
.menu .mask { overflow: hidden; }
.menu a { display: block; font-family: var(--serif); font-size: 52px; line-height: 1.1; letter-spacing: -0.02em; padding: 4px 0; transform: translateY(100%); transition: transform 300ms var(--ease); }
.menu-open .menu a { transform: none; transition-duration: 700ms; }
.menu-open .menu .mask:nth-child(2) a { transition-delay: 50ms; }
.menu-open .menu .mask:nth-child(3) a { transition-delay: 100ms; }
.menu-open .menu .mask:nth-child(4) a { transition-delay: 150ms; }
.menu-open .menu .mask:nth-child(5) a { transition-delay: 200ms; }
.menu .menu-cta { color: var(--accent); }

/* Reveal: transform and opacity only; media travels further than text */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 800ms var(--ease); transition-delay: var(--d, 0ms); }
.video.reveal, .demo.reveal, .form-card.reveal, .table-wrap.reveal, .start-tile.reveal { transform: translateY(44px); }
.reveal.in { opacity: 1; transform: none; }

/* Stages: framed dark rooms for the Spartan */
.stage { position: relative; margin: var(--frame); border-radius: var(--r-stage); background: var(--dark); color: var(--on-dark); overflow: hidden; }
.art { position: absolute; overflow: hidden; }
.art img { position: absolute; width: auto; max-width: none; }

/* Hero */
.hero { min-height: calc((100dvh - 2 * var(--frame)) / var(--z)); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-art { top: 0; left: 0; right: 0; height: 56svh; -webkit-mask-image: linear-gradient(#000 58%, transparent); mask-image: linear-gradient(#000 58%, transparent); }
.hero-art img { top: 0; left: 50%; height: 100%; transform: translateX(-51%); }
.hero-copy { position: relative; padding-top: 47svh; padding-bottom: 32px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: var(--on-dark-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { margin-top: 16px; font-size: 80px; line-height: 0.9; letter-spacing: -0.03em; }
.lede { margin-top: 20px; font-size: 17px; line-height: 28px; color: var(--on-dark-2); max-width: 520px; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.hero-proof { margin-top: 32px; padding-top: 20px; font-size: 14px; line-height: 22px; color: var(--on-dark-2); box-shadow: inset 0 1px 0 var(--hair-dark); }

/* Platforms */
.strip { padding: 36px 0 0; }
.platforms { display: grid; gap: 16px; }
.platforms-label { font-size: 14px; line-height: 20px; color: var(--text-3); text-align: center; }
.logos { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text-2); font-size: 17px; letter-spacing: -0.02em; }
.logos span { display: flex; align-items: center; gap: 10px; }
.logos b { font-weight: 500; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.logo { width: 36px; height: 36px; }
.logo-wide { width: 64px; -webkit-mask-size: 100% auto; mask-size: 100% auto; }

/* Sections */
.sec { padding: 88px 0; }
.sec-tint { background: var(--bg-2); }
.head { display: grid; gap: 20px; margin-bottom: 48px; }
.sec h2, .final h2 { font-size: 48px; line-height: 0.98; }
.head-sub { font-size: 17px; line-height: 28px; color: var(--text-2); max-width: 520px; }
.stage .head-sub { color: var(--on-dark-2); }
.sec h3 { font-size: 22px; line-height: 28px; }

/* Video: media, not a card */
.video { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--dark); box-shadow: 0 40px 80px -40px oklch(0.17 0.012 70 / 0.45); }
.video video { width: 100%; height: 100%; object-fit: cover; }

.card { background: var(--surface); border-radius: 24px; box-shadow: 0 0 0 1px var(--hair), 0 40px 80px -48px oklch(0.17 0.012 70 / 0.4); }

/* Benefits: a sentence and a ledger, no cards */
.benefits { display: grid; gap: 48px; }
.sale { margin-top: 28px; font-size: 20px; line-height: 32px; color: var(--text-2); max-width: 460px; }
.sale b { font-weight: 500; color: var(--text); white-space: nowrap; }
.sale .z { color: var(--accent-deep); }
.ledger-row { display: grid; gap: 8px; padding: 28px 0; box-shadow: inset 0 1px 0 var(--hair-2); }
.ledger-row:last-child { box-shadow: inset 0 1px 0 var(--hair-2), inset 0 -1px 0 var(--hair-2); }
.ledger dt { font-family: var(--serif); font-size: 72px; line-height: 0.85; letter-spacing: -0.03em; white-space: nowrap; }
.ledger dd { font-size: 15px; line-height: 24px; color: var(--text-2); }
.ledger dd b { display: block; font-weight: 500; font-size: 18px; line-height: 28px; color: var(--text); }

/* Redeem: a real table, then the path to the bank */
.table-wrap { overflow-x: auto; }
.options { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; line-height: 24px; }
.options th, .options td { padding: 18px 16px 18px 0; vertical-align: baseline; box-shadow: inset 0 -1px 0 var(--hair); }
.options thead th { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.05; letter-spacing: -0.02em; padding-bottom: 20px; box-shadow: inset 0 -1px 0 var(--hair-2); }
.options tbody th { font-weight: 400; color: var(--text-3); width: 30%; }
.options td b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.options tbody tr:first-child td:first-of-type b { color: var(--accent-deep); }
/* Get started: two ways to create an Onli ID */
.start { display: grid; gap: 40px; }
.start-tile { margin: 0; }
.start-tile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 40px 80px -48px oklch(0.17 0.012 70 / 0.45); }
.start-tile figcaption { display: grid; gap: 8px; margin-top: 24px; }
.start-tile b { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.start-tile span { font-size: 16px; line-height: 26px; color: var(--text-2); max-width: 460px; }
@media (min-width: 768px) {
  .start { grid-template-columns: 1fr 1fr; gap: 32px; }
  .start-tile img { border-radius: 28px; }
  .start-tile b { font-size: 40px; }
  .start-tile:nth-child(2) { margin-top: 64px; }
}

/* Join */
.join { display: grid; gap: 40px; }
.join .head-sub { margin-top: 20px; }
.path { margin-top: 24px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--hair-2); font-size: 15px; line-height: 26px; color: var(--text-2); max-width: 480px; }
.form-card { padding: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 12px;
  background: var(--bg); font-size: 16px; line-height: 24px;
  box-shadow: inset 0 0 0 1px var(--hair-2); transition: box-shadow 180ms var(--ease);
}
.field input::placeholder { color: var(--text-3); }
.field input:hover { box-shadow: inset 0 0 0 1px oklch(0.17 0.012 70 / 0.34); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--text); }
.field.bad input { box-shadow: inset 0 0 0 2px var(--danger); }
.err { color: var(--danger); font-size: 14px; line-height: 20px; margin-top: 6px; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { margin-top: 8px; }
.form-err { color: var(--danger); font-size: 14px; line-height: 20px; margin-top: 12px; }
.form-err:empty { display: none; }
.form-fine { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--text-3); text-align: center; }
.form-fine a { text-decoration: underline; text-underline-offset: 3px; }
.form-done { padding: 32px 8px; text-align: center; }
.form-done .icon { margin: 0 auto; display: block; }
.form-done h3 { margin-top: 24px; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; }
.form-done p { margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 26px; }
.form-done b { color: var(--text); font-weight: 500; word-break: break-word; }

/* FAQ */
.faq { display: grid; gap: 32px; }
details { box-shadow: inset 0 -1px 0 var(--hair-2); }
details:first-child { box-shadow: inset 0 -1px 0 var(--hair-2), inset 0 1px 0 var(--hair-2); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 44px; font-size: 18px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
.q-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; color: var(--accent-deep); transition: transform 500ms var(--ease); }
.q-ico .icon { width: 22px; height: 22px; }
details[open] .q-ico { transform: rotate(45deg); }
details p { padding: 0 48px 24px 0; color: var(--text-2); font-size: 16px; line-height: 28px; max-width: 640px; }

/* Close */
.final { padding: 0 0 72px; }
.final-art { position: relative; display: block; height: 340px; margin-bottom: 8px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.final-art img { top: 0; left: 50%; height: 150%; transform: translate(-58%, -8%); }
.final-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.final .head-sub { margin-top: 20px; }
.final .btn { margin-top: 32px; }

/* Footer: minimal utility */
.footer { padding: 28px 0 40px; color: var(--text-3); font-size: 14px; line-height: 20px; }
.footer-in { display: grid; gap: 12px; }
.footer .brand { color: var(--text); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer nav a { padding: 12px 0; transition: color 180ms var(--ease); }
.footer nav a:hover { color: var(--text); }

/* Simple pages (legal, 404) */
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.page main { flex: 1; padding: 176px 0 96px; }
.page h1 { font-size: 64px; line-height: 0.95; }
.page .prose { max-width: 680px; }
.page .prose p { margin-top: 24px; color: var(--text-2); font-size: 18px; line-height: 30px; }
.page .prose .btn { margin-top: 32px; padding: 6px 24px; background: var(--text); color: var(--bg); }
.page .nav { position: absolute; color: var(--text); }
.page .nav-pill { display: flex; align-items: center; height: 72px; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) !important; }

/* ---------- 768 and up ---------- */
@media (min-width: 768px) {
  :root { --gutter: 40px; --frame: 12px; --r-stage: 32px; }
  .nav.away { transform: none; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger, .menu { display: none; }

  .hero { height: calc((100dvh - 2 * var(--frame)) / var(--z)); }
  .hero-art { height: 66%; }
  .hero-copy { padding-top: 0; padding-bottom: 48px; }
  .hero h1 { font-size: 128px; }
  .lede { font-size: 19px; line-height: 30px; }
  .hero-proof { max-width: 520px; }

  .strip { padding-top: 48px; }
  .platforms { gap: 28px; }
  .logos { font-size: 26px; }
  .logos span { gap: 14px; }
  .logo { width: 44px; height: 44px; }
  .logo-wide { width: 96px; }
  .logos b { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }

  .sec { padding: 144px 0; }
  .head { grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: end; margin-bottom: 72px; }
  .sec h2, .final h2 { font-size: 76px; line-height: 0.95; }
  .head-sub { font-size: 18px; line-height: 30px; }
  .video { border-radius: 28px; }
  .sec h3 { font-size: 26px; line-height: 32px; }


  .benefits { gap: 72px; }
  .sale { font-size: 22px; line-height: 34px; }
  .ledger-row { grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; padding: 32px 0; }
  .ledger dt { font-size: 104px; }
  .ledger dd { font-size: 16px; line-height: 26px; padding-bottom: 6px; }

  .options { font-size: 17px; line-height: 28px; }
  .options th, .options td { padding: 22px 24px 22px 0; }
  .options thead th { font-size: 36px; padding-bottom: 24px; }
  .options td b { font-size: 64px; }


  .join { gap: 56px; }
  .form-card { padding: 40px; max-width: 600px; }

  .faq { gap: 48px; }
  summary { padding: 26px 0; font-size: 20px; }

  .final { padding-bottom: 96px; }
  .final-art { height: 460px; }
  .footer { padding: 36px 0 56px; }
  .footer-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
}

/* ---------- Landscape desktop ---------- */
@media (min-width: 960px) and (min-aspect-ratio: 5/4) {
  .hero { justify-content: center; }
  .hero-art { height: 100%; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
  .hero-art img { left: 80%; transform: translateX(-50%); }
  .hero-copy { padding-top: 72px; padding-bottom: 0; }
  .hero-copy > * { max-width: min(560px, 40%); }
  .hero h1 { font-size: 104px; }


  .benefits { grid-template-columns: 0.9fr 1.1fr; gap: 96px; align-items: start; }
  .benefits-head { position: sticky; top: 120px; }
  .ledger-row { grid-template-columns: 0.9fr 1.1fr; }

  .join { grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
  .form-card { justify-self: end; width: 100%; max-width: 560px; }
  .faq { grid-template-columns: 0.7fr 1.3fr; gap: 96px; align-items: start; }
  .faq > h2 { position: sticky; top: 120px; }

  .final { min-height: 640px; padding: 96px 0; display: flex; align-items: center; }
  .final-art { position: absolute; top: 0; bottom: 0; right: 0; width: 62%; height: auto; margin: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
  .final-art img { top: 50%; left: 62%; height: 150%; transform: translate(-50%, -46%); }
  .final-body > * { max-width: 580px; }
}

@media (min-width: 1280px) and (min-aspect-ratio: 5/4) {
  .hero h1 { font-size: 148px; }
  .sec h2, .final h2 { font-size: 92px; }
  .ledger dt { font-size: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .video.reveal, .demo.reveal, .form-card.reveal, .table-wrap.reveal { transform: none; transition: opacity 200ms ease; }
  .dot { animation: none; }
  .menu a { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu { background: var(--dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
}


/* ================= How a sale works: pinned, one card per step ================= */
.how { margin-top: 56px; min-height: calc(330dvh / var(--z)); }
.how-pin { position: sticky; top: 0; height: calc(100dvh / var(--z)); padding: 72px 0 24px; display: grid; grid-template-rows: auto 1fr; gap: 20px; align-content: center; }
.how h3 { margin-bottom: 8px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.steps { position: relative; padding-left: 20px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--hair-2); }
.steps::after { background: var(--text); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 10px 0; opacity: 0.4; transition: opacity 500ms var(--ease); }
.step.active { opacity: 1; }
.step-n { font-family: var(--serif); font-size: 22px; line-height: 26px; color: var(--accent-deep); }
.step h4 { font-size: 17px; line-height: 26px; }
.step p { display: none; margin-top: 2px; font-size: 15px; line-height: 24px; color: var(--text-2); max-width: 440px; }
.step.active p { display: block; }
.how .text-link { display: none; }

.shots { display: grid; align-items: center; min-height: 0; }
.shot { grid-area: 1 / 1; padding: 20px; opacity: 0; transform: translateY(48px) scale(0.97); transition: opacity 500ms var(--ease), transform 700ms var(--ease); will-change: transform, opacity; }
.shot.active { opacity: 1; transform: none; }
.shot.past { transform: translateY(-40px) scale(0.97); }
.shot-head { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 20px; color: var(--text-3); margin-bottom: 4px; }
.shot-head span:first-child { color: var(--text); font-weight: 500; }
.shot-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--hair); font-size: 15px; line-height: 24px; }
.shot-row span:first-child { color: var(--text-2); }
.shot-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0 16px; font-size: 15px; }
.shot-total-top { padding-top: 12px; box-shadow: inset 0 -1px 0 var(--hair); }
.shot-total b { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 0.9; letter-spacing: -0.03em; }
.shot-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-top: 16px; padding: 6px 6px 6px 24px; border-radius: 9999px; background: var(--text); color: var(--bg); font-weight: 500; font-size: 15px; }
.shot-btn .btn-ico { width: 44px; height: 44px; background: oklch(0.955 0.013 85 / 0.14); }
.shot-btn-fund { background: var(--card-blue); }
.shot.active .shot-btn { animation: press 2.4s var(--ease) 600ms infinite; }
@keyframes press { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(0.97); } }
.shot-dark { background: var(--dark); color: var(--on-dark); box-shadow: 0 40px 80px -48px oklch(0.17 0.012 70 / 0.6); }
.shot-dark .shot-head, .shot-dark .shot-row span:first-child { color: var(--on-dark-2); }
.shot-dark .shot-head span:first-child { color: var(--on-dark); }
.shot-dark .shot-row, .shot-dark .shot-total-top { box-shadow: inset 0 -1px 0 var(--hair-dark); }
.shot-dark .shot-total b { color: var(--accent); }
.shot-status { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; font-weight: 500; }
.shot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.shot-act { display: grid; place-items: center; min-height: 48px; border-radius: 9999px; font-size: 15px; font-weight: 500; color: var(--on-dark); box-shadow: inset 0 0 0 1px oklch(0.955 0.013 85 / 0.32); }
.shot-act-fill { background: var(--on-dark); color: var(--text); box-shadow: none; }

.how.static { min-height: 0; }
.how.static .how-pin { position: static; height: auto; padding: 0; }
.how.static .step { opacity: 1; }
.how.static .step p { display: block; }
.how.static .shots { gap: 16px; }
.how.static .shot { grid-area: auto; opacity: 1; transform: none; }

/* ================= Redeem flow: a dark panel with the path running through it ================= */
.flow { margin-top: 64px; padding: 32px 24px; border-radius: 24px; background: var(--dark); color: var(--on-dark); }
.flow-title { font-size: 15px; line-height: 24px; color: var(--on-dark-2); }
.flow-stops { position: relative; display: grid; gap: 36px; margin-top: 32px; padding-left: 36px; }
.flow-track { position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--hair-dark); }
.flow-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); transition: transform 1800ms var(--ease) 200ms; }
.flow.go .flow-fill { transform: scaleY(1); }
.flow-dot { position: absolute; inset: 0; opacity: 0; }
.flow-dot::after { content: ""; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--on-dark); }
.flow.go .flow-dot { animation: flowY 3.2s var(--ease) 2.2s infinite; }
@keyframes flowY { 0% { transform: translateY(0); opacity: 0; } 10%, 85% { opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }
@keyframes flowX { 0% { transform: translateX(0); opacity: 0; } 10%, 85% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
.flow .stop { position: relative; display: grid; gap: 6px; opacity: 0.3; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.flow .stop::before { content: ""; position: absolute; left: -36px; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--dark); box-shadow: inset 0 0 0 1px var(--accent); transition: background-color 500ms var(--ease); transition-delay: inherit; }
.flow.go .stop { opacity: 1; transform: none; }
.flow.go .stop::before { background: var(--accent); }
.flow.go .stop:nth-of-type(2) { transition-delay: 300ms; }
.flow.go .stop:nth-of-type(3) { transition-delay: 1000ms; }
.flow.go .stop:nth-of-type(4) { transition-delay: 1700ms; }
.flow .stop-v { font-family: var(--serif); font-size: 56px; line-height: 0.92; letter-spacing: -0.025em; color: var(--on-dark); }
.flow .stop-k { font-size: 15px; line-height: 24px; color: var(--on-dark-2); }
.flow-note { margin-top: 36px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--hair-dark); font-size: 15px; line-height: 26px; color: var(--on-dark-2); max-width: 620px; }

/* ================= Statement: the halo draws as the lines arrive ================= */
.statement { overflow: clip; min-height: calc(300dvh / var(--z)); }
.statement-pin { position: sticky; top: 0; height: calc((100dvh - 2 * var(--frame)) / var(--z)); display: grid; place-items: center; }
.ring { position: absolute; top: 50%; left: 50%; height: min(92%, 150vw); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-90deg) scale(0.94); transition: transform 1400ms var(--ease), opacity 900ms var(--ease); opacity: 0.55; }
.ring circle { fill: none; }
.ring-base { stroke: var(--hair-dark); stroke-width: 0.12; }
.ring-draw { stroke: var(--on-dark); stroke-width: 0.28; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.statement.done .ring { transform: translate(-50%, -50%) rotate(-90deg) scale(1); opacity: 1; }
.statement-body { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.statement-text { font-family: var(--serif); font-size: 34px; line-height: 1.02; letter-spacing: -0.024em; max-width: 1080px; }
.statement-text .line { display: block; text-wrap: balance; opacity: 0.999; }
.statement-text .line + .line { margin-top: 0.32em; }
.statement-text .w { display: inline-block; }
.statement-text .w span { display: inline-block; opacity: 0.12; transform: translateY(0.22em); transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
.statement-text .w.on span { opacity: 1; transform: none; }
.statement-cta { position: absolute; top: 100%; left: 50%; margin-top: 32px; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 600ms var(--ease) 150ms, transform 800ms var(--ease) 150ms, background-color 180ms var(--ease); }
.statement.done .statement-cta { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

@media (min-width: 768px) {
  .how { margin-top: 96px; }
  .how-pin { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 96px 0 48px; }
  .how h3 { margin-bottom: 28px; font-size: 48px; }
  .steps { padding-left: 28px; }
  .step { grid-template-columns: 32px 1fr; gap: 16px; padding: 18px 0; }
  .step-n { font-size: 26px; line-height: 30px; }
  .step h4 { font-size: 20px; line-height: 30px; }
  .step p { display: block; font-size: 16px; line-height: 26px; }
  .how .text-link { display: inline-flex; margin-left: 28px; }
  .shot { padding: 32px; }
  .shot-total b { font-size: 72px; }

  .flow { margin-top: 96px; padding: 56px; border-radius: 32px; }
  .flow .stop-v { font-size: 72px; }
  .ring { height: min(94%, 94vw); }
  .statement-text { font-size: 52px; max-width: 640px; }
}

@media (min-width: 960px) and (min-aspect-ratio: 5/4) {
  .how-pin { grid-template-columns: 1.1fr 0.9fr; gap: 96px; }
  .shots { justify-self: end; width: 100%; max-width: 460px; }

  .flow { padding: 72px 72px 64px; }
  .flow-stops { grid-template-columns: 1fr 1fr 1.5fr; gap: 0; margin-top: 48px; padding: 56px 0 0; }
  .flow-track { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 1px; }
  .flow-fill { transform-origin: left; transform: scaleX(0); }
  .flow.go .flow-fill { transform: scaleX(1); }
  .flow.go .flow-dot { animation-name: flowX; }
  .flow .stop::before { left: 0; top: -56px; }
  .flow .stop { padding-right: 32px; }
  .flow .stop-v { font-size: 80px; }
  .flow .stop-k { font-size: 16px; }
  .flow-note { margin-top: 64px; }
}

@media (min-width: 1280px) and (min-aspect-ratio: 5/4) {
  .statement-text { font-size: 60px; max-width: 720px; }
  .flow .stop-v { font-size: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .statement { min-height: 0; padding: 96px 0; }
  .statement-pin { position: static; height: auto; }
  .ring { display: none; }
  .statement-text .w span { opacity: 1; transform: none; transition: none; }
  .statement-cta { position: static; margin-top: 32px; opacity: 1; transform: none; pointer-events: auto; }
  .flow .stop, .flow-fill { opacity: 1; transform: none; transition: none; }
  .flow.go .flow-dot, .shot.active .shot-btn { animation: none; }
}
