/* Pternas landing -- same paper/ink system as the dashboard (app.css), one
   electric accent, hairline rules, square corners. The demo section is always
   dark (like a terminal screen) in both themes. */

@font-face { font-family: "Aktiv Grotesk"; src: url("/assets/fonts/AktivGrotesk-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Aktiv Grotesk"; src: url("/assets/fonts/AktivGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aktiv Grotesk"; src: url("/assets/fonts/AktivGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Aktiv Grotesk"; src: url("/assets/fonts/AktivGrotesk-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F7F6F5; --bg-sunk: #EFEDEA; --rule: #D8D5D0; --rule-strong: #B7B6B5;
  --ink: #171410; --ink-2: rgba(23, 20, 16, 0.68); --ink-3: rgba(23, 20, 16, 0.46);
  --accent: #2200FF; --accent-ink: #FBFAF7; --good: #1B7A45; --bad: #C0362C;
  --dot: rgba(23, 20, 16, 0.62);
  --sans: "Aktiv Grotesk", "Inter Tight", -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121110; --bg-sunk: #0C0B0A; --rule: #2A2825; --rule-strong: #45423E;
  --ink: #EDEAE4; --ink-2: rgba(237, 234, 228, 0.68); --ink-3: rgba(237, 234, 228, 0.44);
  --accent: #7568FF; --accent-ink: #0C0B0A; --good: #43B97C; --bad: #F06A5C;
  --dot: rgba(237, 234, 228, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "kern", "liga", "tnum";
  transition: background-color .35s ease, color .35s ease;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
em { font-style: normal; color: var(--accent); }

/* ---- nav ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 1px; }
.brand-mark i { width: 5px; height: 5px; background: var(--ink); }
.brand-mark i.off { background: transparent; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme-btn { font: inherit; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: none; color: var(--ink-2); border: 1px solid var(--rule-strong); padding: 5px 10px; cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font: inherit; font-weight: 500; text-decoration: none; border: 1px solid var(--ink); padding: 11px 20px;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }

.banner { position: fixed; top: 56px; left: 0; right: 0; z-index: 49; padding: 12px 24px; text-align: center; font-size: 14px; background: var(--accent); color: var(--accent-ink); }
.banner[hidden] { display: none; }

.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow.light { color: rgba(237, 234, 228, .55); }

/* ---- hero ----------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; padding-top: 56px; display: flex; align-items: center; overflow: hidden; }
/* the undulating dot wave (herowave.js): it sets its own brightness, quiet behind the headline */
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 48px 24px 88px; }
.hero h1 { margin: 0 0 26px; font-weight: 300; letter-spacing: -0.035em; line-height: .98; font-size: clamp(52px, 10.5vw, 148px); }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line-in { display: block; }
.js-motion .line-in { transform: translateY(105%); }
.js-motion .loaded .line-in { transform: none; transition: transform 1.1s var(--ease); }
.js-motion .loaded .line:nth-child(2) .line-in { transition-delay: .14s; }
.hero-sub { max-width: 560px; margin: 0 0 32px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 13px; letter-spacing: .04em; color: var(--ink-2); }
.hero-badges li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 9px; vertical-align: 1px; }

/* plan drawer opened by "Get Pternas" */
.drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.drawer.open { grid-template-rows: 1fr; }
.drawer-in { overflow: hidden; min-height: 0; }
.drawer.open .drawer-in { padding-top: 40px; }
.drawer-title { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 22px; height: 36px; border: 1px solid var(--rule-strong); transform: translateX(-50%); z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--ink-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---- reveal-on-scroll ------------------------------------------------------ */
.js-motion [data-r] { opacity: 0; transform: translateY(26px); }
.js-motion [data-r].in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }

/* ---- scroll-driven demo (always dark) ------------------------------------------ */
/* One step is readable at a time: all four share one grid cell (so the block
   never changes height), the outgoing step fades out before the next fades
   in. The map draws in the space the copy leaves free (measured in JS). */
.demo { --d-bg: #0A0A0C; --d-ink: #EDEAE4; --d-blue: #5C6BFF; --run: 520vh; position: relative; background: var(--d-bg); color: var(--d-ink); }
/* the scroll the stage stays pinned for: the run, less the stage itself */
.demo-track { height: calc(var(--run) - 100svh); }
.demo-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
#demo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo-hud { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: min(500px, 100%); padding: 96px 32px 32px 40px; display: flex; flex-direction: column;
  background: linear-gradient(90deg, rgba(10, 10, 12, .9) 62%, rgba(10, 10, 12, 0)); pointer-events: none; }
.demo-hud .eyebrow { margin-bottom: 16px; }
.step-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 220px; margin-bottom: 22px; }
.step-rail i { display: block; height: 2px; background: rgba(237, 234, 228, .16); overflow: hidden; }
.step-rail b { display: block; height: 100%; background: var(--d-blue); transform-origin: left; transform: scaleX(0); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { grid-area: 1 / 1; display: grid; grid-template-columns: 34px 1fr; gap: 6px; opacity: 0; transform: translateY(14px);
  transition: opacity .22s ease, transform .3s ease; }
.steps li.past { transform: translateY(-14px); }
.steps li.on { opacity: 1; transform: none; transition: opacity .45s ease .2s, transform .6s var(--ease) .2s; }
.steps .n { font-size: 12px; letter-spacing: .08em; color: var(--d-blue); padding-top: 7px; }
.steps h3 { margin: 0; font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.steps p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: rgba(237, 234, 228, .78); }
.hud-foot { position: relative; margin-top: auto; }
.counters { margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 8px 26px; justify-content: start; transition: opacity .4s ease; }
.counters dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(237, 234, 228, .55); }
.counters dd { margin: 2px 0 0; font-size: 26px; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.counters div:last-child dd { color: var(--d-blue); }
.pair-card { position: absolute; left: 0; bottom: calc(100% + 22px); width: min(400px, 100%); padding: 16px 18px;
  background: rgba(14, 14, 18, .94); border: 1px solid rgba(92, 107, 255, .45);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pair-card.show { opacity: 1; transform: none; }
.pc-tag { margin: 0 0 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(237, 234, 228, .5); }
.pc-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: baseline; font-size: 14px; }
.pc-v { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(237, 234, 228, .5); }
.pc-p { font-weight: 500; font-variant-numeric: tabular-nums; }
.pc-rel { margin: 6px 0 6px 84px; font-size: 12px; color: var(--d-blue); }
.pc-out { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(237, 234, 228, .14); font-size: 13px; line-height: 1.5; color: rgba(237, 234, 228, .75); }
.pc-out b { color: var(--d-blue); font-weight: 500; }
/* short laptop screens: the card takes the counters' place instead of sitting above them */
@media (min-width: 961px) and (max-height: 700px) {
  .demo-hud { padding-top: 80px; }
  .pair-card { bottom: 0; }
  .demo-sticky.card-on .counters { opacity: 0; }
}

/* ---- content blocks ------------------------------------------------------------ */
.block { padding: clamp(80px, 12vw, 150px) 0; border-top: 1px solid var(--rule); }
.block h2 { margin: 0 0 18px; font-weight: 300; font-size: clamp(36px, 6vw, 76px); letter-spacing: -0.03em; line-height: 1.02; }
.lede { max-width: 680px; margin: 0 0 56px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); }
.idx { font-size: 12px; letter-spacing: .08em; color: var(--ink-3); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.trio article { background: var(--bg); padding: 28px 26px 32px; }
.trio h3, .priv-grid h3, .go h3 { margin: 12px 0 10px; font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.trio p, .priv-grid p, .go p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.privacy { background: var(--bg-sunk); }
.priv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.priv-grid article { background: var(--bg-sunk); padding: 26px 26px 30px; }
.priv-grid article h3 { margin-top: 0; }
.priv-grid article::before { content: ""; display: block; width: 8px; height: 8px; background: var(--accent); margin-bottom: 18px; }

/* ---- plans ------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.plan { position: relative; background: var(--bg); padding: 28px 26px 30px; display: flex; flex-direction: column; }
.plan.feat { background: var(--ink); color: var(--bg); }
.plan-tag { position: absolute; top: 0; right: 0; padding: 4px 10px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); }
.plan h3 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.plan-blurb { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); min-height: 42px; }
.plan.feat .plan-blurb, .plan.feat .plan-note { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.plan-price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; font-size: 56px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.plan-price small { font-size: 16px; letter-spacing: 0; color: var(--ink-3); }
.plan.feat .plan-price small { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.plan-note { margin: 0 0 18px; min-height: 40px; font-size: 13px; color: var(--ink-2); }
.plan ul { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: 14.5px; }
.plan.feat ul { border-color: color-mix(in srgb, var(--bg) 22%, transparent); }
.plan li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.plan li::before { content: ""; width: 7px; height: 7px; margin-top: 7px; background: var(--accent); }
.plan.feat li::before { background: color-mix(in srgb, var(--accent) 55%, white); }
.plan .btn { margin-top: auto; width: 100%; }
.plan.feat .btn-solid { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.plan.feat .btn-solid:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bill-toggle { display: inline-flex; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); margin-bottom: 14px; align-self: flex-start; }
.bill-toggle button { font: inherit; font-size: 12px; letter-spacing: .04em; background: none; color: inherit; border: 0; padding: 5px 10px; cursor: pointer; opacity: .6; }
.bill-toggle button[aria-pressed="true"] { opacity: 1; background: color-mix(in srgb, currentColor 16%, transparent); }
.plans-foot { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }

/* ---- comparison ----------------------------------------------------------------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--rule); }
.cmp { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); line-height: 1.45; color: var(--ink-2); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule-strong); }
.cmp tbody th { width: 17%; font-weight: 500; color: var(--ink); }
.cmp .us { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); color: var(--ink); border-left: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.cmp thead .us { color: var(--accent); border-top: 1px solid var(--accent); font-weight: 600; }
.cmp tbody tr:last-child .us { border-bottom: 1px solid var(--accent); }
.cmp b { font-weight: 500; }
.cmp b.y { color: var(--accent); }
.cmp b.n { color: var(--ink); }
.fine { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); max-width: 760px; }

/* ---- steps to go live / faq / footer ------------------------------------------------ */
.go { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.go li { border-top: 1px solid var(--ink); padding-top: 18px; }
.cta-end { margin-top: 56px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 20px 0; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 640px; color: var(--ink-2); line-height: 1.6; }
.foot { padding: 28px 0 40px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--ink-2); text-underline-offset: 3px; }
.foot a:hover { color: var(--accent); }
.risk { margin-top: 16px; max-width: 760px; font-size: 12px; line-height: 1.5; }

/* ---- dialog --------------------------------------------------------------------- */
dialog { width: min(440px, calc(100% - 32px)); padding: 28px; background: var(--bg); color: var(--ink); border: 1px solid var(--ink); }
dialog::backdrop { background: rgba(10, 10, 12, .55); backdrop-filter: blur(3px); }
dialog h3 { margin: 0 0 8px; font-weight: 400; font-size: 26px; letter-spacing: -0.02em; }
dialog p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
dialog label { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
dialog input { width: 100%; font: inherit; padding: 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--rule-strong); }
dialog input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-msg { min-height: 22px; margin: 10px 0 0 !important; font-size: 14px !important; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--good); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---- responsive ---------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .plans, .trio, .priv-grid, .go { grid-template-columns: 1fr; }
  .go { gap: 28px; }
  .plan-blurb, .plan-note { min-height: 0; }
  /* phones and tablets: copy on top, the map in the middle, counters (or the
     example trade) at the bottom; each band gets its own fade, so nothing
     dark sits over the map */
  .demo { --run: 480vh; }
  .demo-hud { width: 100%; padding: 0; background: none; }
  .hud-top { padding: 72px 24px 26px; background: linear-gradient(180deg, rgba(10, 10, 12, .96) 82%, rgba(10, 10, 12, 0)); }
  .demo-hud .eyebrow { margin-bottom: 12px; }
  .step-rail { max-width: none; margin-bottom: 16px; }
  .steps li { grid-template-columns: 28px 1fr; gap: 4px; }
  .steps .n { padding-top: 5px; }
  .steps h3 { font-size: 21px; }
  .steps p { margin-top: 7px; font-size: 14.5px; line-height: 1.5; }
  .hud-foot { padding: 24px 24px 18px; background: linear-gradient(0deg, rgba(10, 10, 12, .96) 70%, rgba(10, 10, 12, 0)); }
  .counters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 12px; }
  .counters dt { font-size: 9.5px; letter-spacing: .08em; }
  .counters dd { font-size: 20px; }
  .pair-card { left: 16px; right: 16px; bottom: 14px; width: auto; padding: 13px 14px; }
  .demo-sticky.card-on .counters { opacity: 0; }
  .pc-row { grid-template-columns: 70px 1fr auto; font-size: 13.5px; }
  .pc-rel { margin: 4px 0 4px 80px; }
  .pc-out { margin-top: 10px; padding-top: 9px; font-size: 12.5px; }
}
@media (max-width: 560px) {
  .hud-top { padding: 68px 16px 22px; }
  .hud-foot { padding: 22px 16px 14px; }
}
@media (max-width: 960px) and (max-height: 700px) {
  .hud-top { padding-top: 64px; }
  .demo-hud .eyebrow { display: none; }
  .steps h3 { font-size: 19px; }
  .steps p { font-size: 13.5px; }
}
@media (max-width: 560px) {
  .wrap, .nav, .hero-inner { padding-left: 16px; padding-right: 16px; }
  .theme-btn { display: none; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---- sub-pages ------------------------------------------------------------------- */
.page-head { padding: calc(56px + clamp(48px, 8vw, 96px)) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { margin: 0 0 18px; font-weight: 300; font-size: clamp(40px, 7vw, 92px); letter-spacing: -0.035em; line-height: 1; }
.page-head .lede { margin-bottom: 0; }
.crumbs { margin-bottom: 28px; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-underline-offset: 3px; }
.subpage .block { padding: clamp(48px, 7vw, 88px) 0; }
/* Pricing: the head and all three plans fit in the first screen on a desktop */
.page-head.compact { padding: calc(56px + clamp(20px, 4vh, 44px)) 0 clamp(18px, 3vh, 30px); }
.page-head.compact .crumbs { margin-bottom: 14px; }
.page-head.compact h1 { margin-bottom: 12px; font-size: clamp(36px, 5vw, 64px); }
.page-head.compact .lede { max-width: 780px; font-size: clamp(16px, 1.3vw, 18px); }
.subpage .block.plans-block { padding: 0 0 clamp(48px, 7vw, 88px); border-top: 0; }
.plans-block .plan { padding: 22px 24px 24px; }
.plans-block .plan-price { margin-top: 12px; font-size: 48px; }
.plans-block .plan-note { margin-bottom: 14px; }
.plans-block .plan ul { gap: 8px; margin-bottom: 18px; padding-top: 14px; }
@media (max-height: 820px) and (min-width: 861px) {  /* laptops: the line under the cards repeats the lede */
  .page-head.compact .lede { display: none; }
  .page-head.compact h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 0; }
  .plans-block .plan { padding: 18px 22px 20px; }
  .plans-block .plan-blurb { min-height: 0; }
  .plans-block .plan-price { margin-top: 10px; font-size: 40px; }
  .plans-block .plan ul { gap: 6px; font-size: 14px; }
}
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 44px 0 14px; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose a, .fine a { color: var(--accent); text-underline-offset: 3px; }
.prose b { color: var(--ink); font-weight: 500; }
.plan .plan-name { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.closer { text-align: center; }
.closer .lede { margin: 0 auto 28px; }
.closer h2 { font-size: clamp(32px, 5vw, 60px); }
.home-more { display: inline-block; margin-top: 28px; color: var(--accent); text-underline-offset: 3px; }
.foot nav { flex-wrap: wrap; }

/* ---- motion + the pointillist motif -------------------------------------------------- */
.block, .page-head { position: relative; overflow: hidden; }
.block > .wrap, .page-head > .wrap { position: relative; z-index: 1; }
.dots-band { position: absolute; left: 0; top: 0; width: 100%; height: 320px; display: block; pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 70%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 0%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 70%); mask-composite: intersect; }
.dots-band.flip { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%), linear-gradient(270deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%), linear-gradient(270deg, transparent 0%, #000 70%); }
#demo-dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .4; pointer-events: none; }

/* headings slide up out of a mask, like the hero */
.js-motion .split .line-in { transform: translateY(108%); }
.js-motion .split.in .line-in { transform: none; transition: transform 1.05s var(--ease); }

/* scroll progress + nav firming up */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.nav { transition: background-color .3s, box-shadow .3s, height .3s var(--ease); }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); height: 52px; box-shadow: 0 1px 0 var(--rule); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--accent); transition: right .3s var(--ease); }
.nav-links a:hover::after { right: 0; }

/* page enters */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js-motion .loaded .hero-sub { animation: rise .9s var(--ease) .45s both; }
.js-motion .loaded .hero-cta { animation: rise .9s var(--ease) .6s both; }
.js-motion .hero-sub, .js-motion .hero-cta { opacity: 0; }
.js-motion .loaded .hero-sub, .js-motion .loaded .hero-cta { opacity: 1; }

/* hover life */
.plan { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--ink) 55%, transparent); z-index: 2; }
.trio article, .priv-grid article { transition: background-color .3s, transform .35s var(--ease); }
.trio article:hover { background: var(--bg-sunk); }
.priv-grid article:hover { background: var(--bg); transform: translateY(-3px); }
.priv-grid article::before { transition: transform .4s var(--ease), width .4s var(--ease); }
.priv-grid article:hover::before { width: 28px; }
.go li { transition: border-color .3s; }
.go li:hover { border-color: var(--accent); }
.cmp tbody tr { transition: background-color .25s; }
.cmp tbody tr:hover > * { background: var(--bg-sunk); }
.cmp tbody tr:hover > .us { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.btn span[aria-hidden] { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(5px); }
.home-more { transition: letter-spacing .3s var(--ease); }
.home-more:hover { letter-spacing: .02em; }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq details[open] p { animation: rise .5s var(--ease) both; }
.brand-mark i { transition: transform .4s var(--ease); }
.brand:hover .brand-mark i:not(.off) { transform: scale(1.35); }
.plan-tag { animation: tagPulse 3s ease-in-out infinite; }
@keyframes tagPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

/* ---- live paper book (delayed 15 minutes): the curve plays forward as you scroll ---- */
/* Not a .block: .block's overflow:hidden would stop the stage sticking. */
.live { position: relative; border-top: 1px solid var(--rule); }
.live-scroll { --run: 240vh; --dwell: 50svh; position: relative; }
/* the curve's scroll, plus a dwell on the finished graph before the page moves on */
.live-track { height: calc(var(--run) - 100svh + var(--dwell)); }
.live-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.live-dots { position: absolute; left: 0; top: 0; width: 100%; height: 340px; display: block; pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%); }
.live-stage { position: relative; z-index: 1; height: 100%; max-width: 1180px; margin: 0 auto; padding: 96px 24px 40px;
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 48px; }
.live-copy { display: flex; flex-direction: column; min-width: 0; }
.live-copy .eyebrow { display: flex; align-items: center; gap: 9px; }
.live-dot { width: 7px; height: 7px; background: var(--good); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
.live h2 { margin: 0 0 14px; font-weight: 300; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.03em; line-height: 1.02; }
.live-lede { margin: 0 0 28px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.live-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.live-stats div { background: var(--bg); padding: 14px 16px; opacity: .12; transform: translateY(8px); transition: opacity .5s ease, transform .6s var(--ease); }
.live-stats div.on { opacity: 1; transform: none; }
.live-stats dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.live-stats dd { margin: 4px 0 0; font-size: 28px; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.live-stats dd.pos { color: var(--good); }
.live-stats dd.neg { color: var(--bad); }
.live-asof { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }
.live-chart { position: relative; min-height: 0; border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg-sunk) 70%, transparent); }
#live-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.live-empty { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-3); font-size: 15px; }
.live-empty[hidden] { display: none; }
.live-recent { padding-top: 56px; padding-bottom: clamp(64px, 9vw, 110px); }
.live-recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.live-recent-head h3 { margin: 0; font-weight: 400; font-size: 24px; letter-spacing: -0.02em; }
.live-delay { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--rule-strong); padding: 4px 9px; }
.live-trades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.live-trades li { background: var(--bg); padding: 16px 18px; min-width: 0; }
.live-trades li.none { grid-column: 1 / -1; color: var(--ink-3); }
.lt-leg { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 14px; }
.lt-v { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lt-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-s { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.lt-rel { margin: 4px 0 4px 92px; font-size: 12px; color: var(--accent); }
.lt-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-3); }
.lt-meta b { color: var(--accent); font-weight: 500; }
.js-motion .live-trades li { opacity: 0; transform: translateY(14px); }
.js-motion .live-trades.in li { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
@media (max-width: 960px) {
  .live-scroll { --run: 220vh; }
  .live-stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding: 72px 24px 20px; }
  .live-lede { margin-bottom: 14px; font-size: 14.5px; }
  .live h2 { font-size: 34px; margin-bottom: 12px; }
  .live-stats div { padding: 9px 12px; }
  .live-stats dd { font-size: 21px; }
  .live-asof { margin-top: 8px; font-size: 11.5px; }
  .live-trades { grid-template-columns: 1fr; }
  .live-trades li:nth-child(n+5) { display: none; }
}
@media (max-width: 560px) {
  .live-stage { padding: 68px 16px 16px; }
  .lt-leg { grid-template-columns: 70px minmax(0, 1fr) auto; font-size: 13.5px; }
  .lt-rel { margin-left: 80px; }
}
@media (max-width: 960px) and (max-height: 700px) {
  .live-stage { padding-top: 64px; gap: 12px; }
  .live h2 { font-size: 28px; margin-bottom: 8px; }
  .live-copy .eyebrow { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-sticky { position: static; height: auto; }
  .live-track, .scroll-hold, .snaps { display: none; }
  .live-chart { height: 360px; }
  .live-stats div { opacity: 1; transform: none; }
}

/* ---- no skipping the scroll-through: snap stops ------------------------------------- */
/* Invisible markers at each step of the map demo and the live book (the
   <i class="snap"> in landing.html). With scroll-snap-stop: always, a fast
   fling or wheel flick comes to rest at the next one instead of flying past
   several, and the animations (which chase the scroll at a capped speed in
   landing.js / livebook.js) play every step. `proximity`, never `mandatory`:
   the rest of the page scrolls freely and nothing traps the reader. The 64px
   offsets the page's scroll-padding-top. Reduced motion: no snapping. */
.snaps { position: absolute; left: 0; top: 0; width: 1px; height: var(--run); pointer-events: none; }
.live .snaps { height: calc(var(--run) + var(--dwell)); }
.snap { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; visibility: hidden;
  top: calc(var(--p) * (100% - 100svh) + 64px); }
/* the live book's stops follow the curve's scroll; the last one is the end of the dwell */
.live .snap { top: calc(var(--p) * (100% - 100svh - var(--dwell)) + 64px); }
.live .snap.end { top: calc(100% - 100svh + 64px); }
/* the holds (scrollhold.js): empty until a fast scroll overtakes an animation */
.scroll-hold { height: 0; }
@media (prefers-reduced-motion: no-preference) {
  html:has(.snap) { scroll-snap-type: y proximity; }
  .snap { scroll-snap-align: start; scroll-snap-stop: always; }
}

/* ---- routing: one detection, fanned out to every member account (routing.js) -------- */
/* Same stage as the map demo: always dark, step text on the left (the
   .demo-hud / .hud-top / .steps rules are shared), the diagram in the space
   the copy leaves free, a track for the pinned scroll and a hold (scrollhold.js). */
.route { --d-bg: #0A0A0C; --d-ink: #EDEAE4; --d-blue: #5C6BFF; --run: 400vh; position: relative; background: var(--d-bg); color: var(--d-ink); border-top: 1px solid rgba(237, 234, 228, .08); }
.route-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.route-track { height: calc(var(--run) - 100svh); }
#route-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#route-dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .4; pointer-events: none; }
.route-note { margin: 0; max-width: 360px; font-size: 12.5px; line-height: 1.5; color: rgba(237, 234, 228, .5); }
@media (max-width: 960px) {
  .route { --run: 380vh; }
  .route-note { max-width: none; font-size: 12px; }
}
@media (max-width: 960px) and (max-height: 700px) {
  .live-lede { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .route-track, .route .scroll-hold, .route .snaps { display: none; }
  .route-sticky { position: relative; }
}
