/* Hallmark · shape: product landing in Bevel's language (centred copy, full-width lit field, the device rising out of light, borderless cards) · genre: modern-minimal · theme: BasisTrail paper system (locked, drafts/v4) on navy and gold · redesign: full · signature: the app recoded live in a 3D iPhone 16 Pro, its own cards beside it at the phone's exact scale · job: join the TestFlight beta · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · weakest: S, the field fade hides the phone's lower half on purpose, as the reference does */
/* Hallmark · answered motion · eased entrances with no overshoot, a slow idle drift after load, paused off screen; Lenis smooth scroll; reduced motion shows everything still */
/* Hallmark · waive 29 · user named the Bevel landing as the reference · the frosted capsule nav floats over the lit field and the cards */
/* Hallmark · answered F7 · the Bevel reference uses capsules for the nav and its controls; boxes keep the card radius */
/* Hallmark · waive 24b · the hero stage overlaps the next section by a viewport share · the phone is cropped by the field, as in the Bevel reference */
/* Hallmark · waive 47b · user asked for a real iPhone 16 Pro · one device design, every screen inside it a recording of the real app */
@import url("tokens.css");
@import url("base.css");

:root {
  --color-page: #FBFAF6; --color-hi: #FFFFFF; --color-dawn-top: #D9E2EE; --color-dawn-mid: #ECEFEF; --color-dawn-bottom: #FAF5EA;
  --color-cloud: #EEF1F5; --color-ti-hi: #E4E5E7; --color-ti: #A3A6AB; --color-ti-lo: #6C7076; --color-glass: #07080A;
  --color-rb-gold: #E3B456; --color-rb-navy: #4B79B0; --color-rb-cream: #FFF2D2; --color-rb-teal: #6CC0BE; --color-rb-green: #86CDA2;
  --radius-field: 40px; --radius-card: 28px; --radius-pill: 999px; --measure: 1200px; --section: clamp(96px, 11vw, 150px);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --lift: inset 0 1px 0 var(--color-hi), 0 30px 60px -30px color-mix(in oklab, var(--color-board) 40%, transparent), 0 4px 14px -6px color-mix(in oklab, var(--color-board) 14%, transparent);
}
html, body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--color-page); color: var(--color-print); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
.page { min-height: 100vh; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stamp { display: inline-block; font-weight: 600; color: var(--color-paid); border: 2px solid currentColor; border-radius: 6px; padding: 1px var(--space-xs); line-height: 1.2; filter: url(#press); transform: rotate(-7deg); font-size: var(--text-lg); white-space: nowrap; }

.bt-icon { display: block; flex: none; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bt-icon .b { stroke: currentColor; } .bt-icon .a { stroke: var(--color-accent); }
.bt-icon .a > * { stroke-dasharray: 60; stroke-dashoffset: 0; }
.js .play .bt-icon .a > * { stroke-dashoffset: 60; }
.js .play.in .bt-icon .a > *, .js .in .play .bt-icon .a > * { animation: draw 900ms var(--ease-in-out) 300ms forwards; }
.play li:hover .bt-icon .a > *, li.play:hover .bt-icon .a > * { animation: redraw 900ms var(--ease-in-out); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes redraw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }

.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-board); color: var(--color-board-type); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 18px -8px color-mix(in oklab, var(--color-board) 55%, transparent); transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--color-board) 60%, transparent); }
.cta:active { transform: translateY(1px) scale(0.98); }
.cta:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.cta[disabled] { background: var(--color-paper-2); color: var(--color-muted); cursor: progress; box-shadow: none; transform: none; }
.cta--sm { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }

.nav-wrap { position: fixed; inset: calc(var(--space-sm) + var(--space-md)) var(--space-md) auto; z-index: 30; }
.nav { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: var(--space-xs); height: 60px; padding: 0 var(--space-xs) 0 var(--space-md); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-cotton) 78%, transparent); backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 1px 0 var(--color-hi), 0 8px 30px -14px color-mix(in oklab, var(--color-board) 30%, transparent); transition: box-shadow var(--dur-short) var(--ease-out); }
.nav.lifted { box-shadow: inset 0 1px 0 var(--color-hi), 0 12px 34px -12px color-mix(in oklab, var(--color-board) 40%, transparent); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-print); text-decoration: none; font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.02em; min-height: 44px; border-radius: var(--radius-input); }
.brand img { display: block; width: 24px; height: 26px; }
.nav-links { display: flex; gap: var(--space-2xs); margin: 0 auto; }
.nav a:not(.cta):not(.brand) { color: var(--color-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; padding: 0 var(--space-sm); border-radius: var(--radius-pill); transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.nav a:not(.cta):not(.brand):hover { color: var(--color-print); background: color-mix(in oklab, var(--color-board) 5%, transparent); }
.nav a:focus-visible, .foot a:focus-visible, .brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }

/* hero: a full-width lit field, rounded on every corner */
.hero { padding: var(--space-sm) var(--space-sm) 0; }
.hero-field { position: relative; border-radius: var(--radius-field) var(--radius-field) 0 0; overflow: hidden; isolation: isolate; -webkit-mask-image: linear-gradient(180deg, var(--color-glass) 0%, var(--color-glass) 58%, transparent 100%); mask-image: linear-gradient(180deg, var(--color-glass) 0%, var(--color-glass) 58%, transparent 100%); padding-top: clamp(112px, 10vw, 148px); background: linear-gradient(180deg, var(--color-dawn-top), var(--color-dawn-mid) 50%, var(--color-dawn-bottom)); }
.hero-copy { position: relative; z-index: 4; max-width: 860px; margin: 0 auto; padding: 0 var(--space-md); text-align: center; display: grid; justify-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 0.95; letter-spacing: -0.052em; font-weight: 600; overflow-wrap: break-word; min-width: 0; }
.lede { margin-top: var(--space-sm); font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.35; color: var(--color-muted); max-width: 30ch; }
.capsule { margin-top: var(--space-lg); display: flex; align-items: center; gap: var(--space-2xs); width: min(100%, 440px); padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-cotton); box-shadow: var(--lift); transition: box-shadow var(--dur-short) var(--ease-out); }
.capsule:focus-within { box-shadow: var(--lift), 0 0 0 2px var(--color-print); }
.capsule input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: none; padding: 0 var(--space-md); font: inherit; color: var(--color-print); }
.capsule input::placeholder { color: var(--color-muted); }
.capsule input:focus-visible { outline: none; }
.capsule--lg { width: min(100%, 520px); }
.capsule.error { box-shadow: var(--lift), 0 0 0 2px var(--color-loss); }
.capsule-note { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.capsule-note.error { color: var(--color-loss); }

/* the 3D stage: WebGL phone plus CSS3D screen and cards */
.stage3d { position: relative; z-index: 3; height: clamp(560px, 64vw, 880px); margin: var(--space-md) 0 clamp(-320px, -21vw, -150px); }
.stage3d .fallback { position: absolute; left: 50%; top: 0; width: 300px; transform: translateX(-50%); }
.bt.app-card.floatcard { filter: drop-shadow(0 34px 40px color-mix(in oklab, var(--color-board) 20%, transparent)) drop-shadow(0 6px 12px color-mix(in oklab, var(--color-board) 10%, transparent)); }

/* the stage: --phone-w drives everything, --pt is one app point at that size */
.stage { --phone-w: clamp(250px, 24vw, 340px); --pt: calc(var(--phone-w) * 0.916 / 402); position: relative; z-index: 3; height: calc(var(--phone-w) * 1.62); margin-top: var(--space-xl); }
.phone-wrap { position: absolute; left: 50%; top: 0; width: var(--phone-w); transform: translateX(-50%); }
.field-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 5; pointer-events: none; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--color-dawn-bottom) 85%, transparent) 70%, var(--color-dawn-bottom)); }

/* iPhone 16 Pro: titanium rim, black bezel, Dynamic Island, buttons */
.iphone { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 100 / 207.5; filter: drop-shadow(0 40px 50px color-mix(in oklab, var(--color-board) 22%, transparent)) drop-shadow(0 8px 14px color-mix(in oklab, var(--color-board) 14%, transparent)); }
.ip-rim { position: absolute; inset: 0; border-radius: 15.6cqw / 7.5cqw; background: linear-gradient(160deg, var(--color-ti-hi) 0%, var(--color-ti) 18%, var(--color-ti-lo) 50%, var(--color-ti) 82%, var(--color-ti-hi) 100%); padding: 1.05cqw; }
.ip-bezel { position: relative; width: 100%; height: 100%; border-radius: 14.6cqw / 7cqw; background: var(--color-glass); padding: 3.1cqw; box-shadow: inset 0 0 0 0.25cqw color-mix(in oklab, var(--color-hi) 10%, transparent); }
.ip-screen { position: relative; width: 100%; height: 100%; border-radius: 11.6cqw / 5.55cqw; overflow: hidden; background: var(--color-desk); }
.iphone.is3d { filter: none; }
.iphone.is3d > :not(.phone3d) { display: none; }
.phone3d { position: absolute; inset: -3% -40%; }
.phone3d .app-card { width: 362px; }
.ip-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.ip-screen > .app { position: absolute; top: 0; left: 0; }
.ip-btn { position: absolute; width: 0.9cqw; border-radius: 0.5cqw; background: linear-gradient(90deg, var(--color-ti-lo), var(--color-ti-hi)); }
.ip-action { left: -0.55cqw; top: 16.5%; height: 5.5%; } .ip-volup { left: -0.55cqw; top: 25%; height: 9.5%; } .ip-voldn { left: -0.55cqw; top: 36.5%; height: 9.5%; }
.ip-power { right: -0.55cqw; top: 27%; height: 15%; } .ip-cam { right: -0.55cqw; top: 58%; height: 8%; }

/* floats: the app's own cards at the phone's exact scale */
.float { position: absolute; margin: 0; z-index: 6; width: calc(var(--pts) * var(--pt)); will-change: transform; }
.float .app-card { transform-origin: top left; }
.float img { display: block; width: 100%; height: auto; border-radius: calc(8 * var(--pt)); box-shadow: var(--lift); }
.h-left { right: calc(50% + var(--phone-w) * 0.38); top: calc(var(--phone-w) * 0.62); }
.h-right { left: calc(50% + var(--phone-w) * 0.36); top: calc(var(--phone-w) * 0.2); }
.h-stamp { right: calc(50% + var(--phone-w) * 0.48); top: calc(var(--phone-w) * 1.18); width: auto; }
.h-stamp .stamp { font-size: calc(17 * var(--pt) * 1.25); background: color-mix(in oklab, var(--color-cotton) 72%, transparent); }

/* light ribbons behind the device */
.ribbons { position: absolute; left: -20%; right: -20%; top: 38%; bottom: 0; z-index: 1; pointer-events: none; }
.rb { position: absolute; left: 0; right: 0; height: 9%; border-radius: var(--radius-pill); filter: blur(28px); opacity: 0.62; animation: sweep var(--d, 14s) var(--ease-in-out) infinite alternate; }
.rb1 { top: 18%; background: linear-gradient(90deg, transparent, var(--color-rb-navy) 28%, var(--color-rb-cream) 50%, var(--color-rb-gold) 72%, transparent); --d: 13s; }
.rb2 { top: 30%; height: 6%; background: linear-gradient(90deg, transparent, var(--color-rb-gold) 22%, var(--color-rb-cream) 50%, var(--color-rb-teal) 78%, transparent); --d: 17s; animation-delay: -4s; }
.rb3 { top: 40%; height: 4%; background: linear-gradient(90deg, transparent, var(--color-rb-teal) 20%, var(--color-hi) 50%, var(--color-rb-navy) 80%, transparent); --d: 11s; animation-delay: -2s; opacity: 0.5; }
.rb4 { top: 50%; height: 8%; background: linear-gradient(90deg, transparent, var(--color-rb-cream) 30%, var(--color-rb-gold) 55%, var(--color-rb-green) 80%, transparent); --d: 19s; animation-delay: -7s; opacity: 0.45; }
.rb5 { top: 64%; height: 16%; background: linear-gradient(90deg, transparent, var(--color-rb-cream) 40%, var(--color-hi) 60%, transparent); --d: 23s; opacity: 0.8; }
.rb6 { top: 10%; height: 3%; background: linear-gradient(90deg, transparent, var(--color-rb-navy) 40%, var(--color-rb-gold) 60%, transparent); --d: 15s; animation-delay: -9s; opacity: 0.32; }
@keyframes sweep { from { transform: translateX(-5%) scaleX(1); } to { transform: translateX(5%) scaleX(1.1); } }

/* entrances: eased, no overshoot; then a slow idle drift */
.js .hero-copy > * { opacity: 0; transform: translateY(20px); }
.js .hero.in .hero-copy > * { animation: rise 1000ms var(--ease-expo) forwards; }
.js .hero.in .hero-copy > :nth-child(2) { animation-delay: 90ms; } .js .hero.in .hero-copy > :nth-child(3) { animation-delay: 170ms; } .js .hero.in .hero-copy > :nth-child(4) { animation-delay: 230ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .phone-wrap .iphone { opacity: 0; transform: translateY(90px); }
.js .hero.in .phone-wrap .iphone { animation: phone-in 1400ms var(--ease-expo) 280ms forwards, idle 8s var(--ease-in-out) 1700ms infinite alternate; }
@keyframes phone-in { to { opacity: 1; transform: none; } }
@keyframes idle { from { opacity: 1; transform: translateY(0); } to { opacity: 1; transform: translateY(-10px); } }
.js .ribbons { opacity: 0; } .js .hero.in .ribbons { animation: fade-in 1800ms var(--ease-out) 200ms forwards; }
@keyframes fade-in { to { opacity: 1; } }
.js .float > * { opacity: 0; transform: translateX(var(--fx, 0)) scale(0.96); filter: blur(6px); }
.js .in .float > *, .js .float.in > * { animation: slide-out 1200ms var(--ease-expo) var(--fd, 900ms) forwards, bob var(--bd, 7s) var(--ease-in-out) calc(var(--fd, 900ms) + 1200ms) infinite alternate; }
@keyframes slide-out { to { opacity: 1; transform: none; filter: none; } }
@keyframes bob { from { opacity: 1; filter: none; transform: translateY(0); } to { opacity: 1; filter: none; transform: translateY(-6px); } }
.h-left { --fx: 60px; --fd: 1000ms; --bd: 7.5s; } .h-right { --fx: -60px; --fd: 1150ms; --bd: 6.5s; } .h-stamp { --fx: 40px; --fd: 1500ms; --bd: 6s; }
.js .reveal { opacity: 0; transform: translateY(36px); } .js .reveal.in { animation: rise 1100ms var(--ease-expo) forwards; }
.paused, .paused * { animation-play-state: paused !important; }

/* sources, statement */
.sources { position: relative; z-index: 5; max-width: var(--measure); margin: var(--space-xl) auto 0; padding: 0 var(--space-lg); text-align: center; display: grid; justify-items: center; gap: var(--space-md); }
.sources h2 { font-size: var(--text-lg); font-weight: 600; color: var(--color-muted); }
.src-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
.src { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-pill); background: var(--color-cloud); font-size: clamp(1.1rem, 2vw, 1.44rem); font-weight: 600; letter-spacing: -0.02em; }
.facts { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.facts li { display: inline-flex; align-items: center; gap: var(--space-xs); } .facts .bt-icon { color: var(--color-print); }
.statement { max-width: var(--measure); margin: 0 auto; padding: var(--section) var(--space-lg); text-align: center; }
.say { font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; color: var(--color-muted); }
.say span { color: var(--color-print); }

/* feature cards */
.sec-title { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 600; overflow-wrap: break-word; min-width: 0; }
.features { max-width: var(--measure); margin: 0 auto; padding: 0 var(--space-lg) var(--section); }
.sec-head { text-align: center; display: grid; justify-items: center; gap: var(--space-sm); margin-bottom: var(--space-2xl); }
.sec-head p { color: var(--color-muted); font-size: var(--text-lg); }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.fcard { background: var(--color-cloud); border-radius: var(--radius-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.fcard-text { padding: var(--space-xl) var(--space-xl) 0; display: grid; gap: var(--space-xs); }
.fcard h3 { font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
.fcard p { color: var(--color-muted); line-height: 1.4; max-width: 30ch; }
.fcard-stage { container-type: inline-size; position: relative; aspect-ratio: 1 / 1.22; }
.fcard-stage, .ana-stage { --phone-w: 60cqw; --pt: calc(var(--phone-w) * 0.916 / 402); }
.card-phone { position: absolute; left: 50%; top: 10cqw; width: var(--phone-w); transform: translateX(-50%); }
/* the zoom: the same card at 1.18x, centred over its twin inside the phone */
.fc-float { --zoom: 1.18; --phone-top: 10cqw; width: calc(var(--pts) * var(--pt) * var(--zoom)); left: 50%; margin-left: calc(var(--pts) * var(--pt) * var(--zoom) / -2);
  top: calc(var(--phone-top) + var(--phone-w) * 0.0415 + var(--top-pt) * var(--pt) - var(--h-pt) * var(--pt) * (var(--zoom) - 1) / 2); --fx: 0; --fd: 450ms; }
.fc-float img { border-radius: calc(8 * var(--pt)); }

.analyst { max-width: var(--measure); margin: 0 auto; padding: 0 var(--space-lg) var(--section); }
.ana-card { position: relative; background: radial-gradient(60% 55% at 50% 72%, color-mix(in oklab, var(--color-accent) 16%, transparent), transparent 70%), var(--color-cloud); border-radius: var(--radius-card); overflow: hidden; padding-top: var(--space-2xl); }
.ana-head { text-align: center; display: grid; justify-items: center; gap: var(--space-sm); padding: 0 var(--space-lg); }
.ana-head .sec-title { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
.ana-head > p { color: var(--color-muted); font-size: var(--text-lg); line-height: 1.4; max-width: 36ch; }
.voices { display: inline-flex; gap: var(--space-3xs); padding: var(--space-3xs); margin-top: var(--space-xs); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-board) 6%, transparent); box-shadow: inset 0 1px 2px color-mix(in oklab, var(--color-board) 10%, transparent); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.voices span { padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-pill); }
.voices .on { background: var(--color-cotton); color: var(--color-print); box-shadow: 0 2px 6px color-mix(in oklab, var(--color-board) 14%, transparent); }
.ana-stage { position: relative; height: clamp(440px, 46vw, 600px); margin-top: var(--space-2xl); }
.ana-phone { position: absolute; left: 50%; top: var(--space-2xl); width: clamp(250px, 26vw, 340px); transform: translateX(-50%); }
.phase { position: absolute; z-index: 7; left: 50%; top: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-md) var(--space-2xs) var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-cotton); box-shadow: var(--lift); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.phase-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--color-board); color: var(--color-accent); }
.phase-mark svg { animation: phase-spin 2.4s var(--ease-in-out) infinite; }
.phase-t { transition: opacity var(--dur-short) var(--ease-out); } .phase-t.swap { opacity: 0; }
@keyframes phase-spin { 50% { transform: rotate(180deg) scale(0.86); } 100% { transform: rotate(360deg); } }
.asks { list-style: none; margin: 0; padding: 0; }
.ask { position: absolute; z-index: 6; display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-xs); border-radius: 18px; background: var(--color-cotton); box-shadow: var(--lift); font-weight: 500; white-space: nowrap; }
.ask-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--color-print); background: linear-gradient(160deg, color-mix(in oklab, var(--color-accent) 22%, var(--color-cotton)), var(--color-cotton)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 30%, transparent); }
.ask.l1 { right: calc(50% + clamp(150px, 15vw, 200px)); top: 22%; } .ask.l2 { right: calc(50% + clamp(170px, 17vw, 230px)); top: 50%; }
.ask.r1 { left: calc(50% + clamp(150px, 15vw, 200px)); top: 30%; } .ask.r2 { left: calc(50% + clamp(170px, 17vw, 230px)); top: 58%; }
.js .ask { opacity: 0; transform: translateY(16px); }
.js .ana-card.in .ask { opacity: 1; transform: none; transition: opacity 700ms var(--ease-expo), transform 900ms var(--ease-expo); transition-delay: calc(500ms + var(--k) * 140ms); }

.more { max-width: var(--measure); margin: 0 auto; padding: 0 var(--space-lg) var(--section); }
.more-grid { margin-top: var(--space-2xl); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.mgroup { background: var(--color-cloud); border-radius: var(--radius-card); padding: var(--space-xl) var(--space-lg) var(--space-lg); }
.mgroup h3 { font-size: var(--text-xl); letter-spacing: -0.02em; font-weight: 600; margin-bottom: var(--space-md); }
.mgroup ul { list-style: none; margin: 0; padding: var(--space-2xs) var(--space-md); border-radius: 18px; background: var(--color-cotton); box-shadow: var(--lift); }
.mgroup li { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) 0; }
.mgroup li + li { border-top: 1px solid var(--color-rule); }
.mtile { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in oklab, var(--color-accent) 22%, var(--color-cotton)), var(--color-cotton)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 30%, transparent); }
.mgroup li > span:last-child { display: grid; gap: var(--space-3xs); min-width: 0; }
.mgroup b { font-weight: 600; }
.mgroup li > span:last-child > span { color: var(--color-muted); font-size: var(--text-sm); }

.privacy { padding: 0 var(--space-sm); }
.board { border-radius: var(--radius-field); padding: var(--section) var(--space-lg); background: radial-gradient(70% 90% at 15% 0%, var(--color-board-2), transparent 60%), var(--color-board); color: var(--color-board-type); display: grid; justify-items: center; text-align: center; }
.board .sec-title { color: var(--color-board-type); }
.board .ro { color: var(--color-accent); margin-bottom: var(--space-lg); font-size: var(--text-xl); }
.priv-list { list-style: none; padding: 0; margin: var(--space-2xl) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); max-width: 980px; width: 100%; }
.priv-list li { display: grid; justify-items: center; gap: var(--space-sm); padding: var(--space-lg); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-hi) 6%, transparent); font-size: var(--text-lg); font-weight: 500; }
.priv-list .bt-icon .b { stroke: var(--color-board-type); }

.close { --phone-w: clamp(250px, 24vw, 340px); --pt: calc(var(--phone-w) * 0.916 / 402); position: relative; max-width: var(--measure); margin: 0 auto; padding: clamp(160px, 18vw, 240px) var(--space-lg); display: grid; place-items: center; text-align: center; }
.close-copy { position: relative; z-index: 5; display: grid; justify-items: center; }
.cl-a { left: 0; top: 40px; transform: rotate(-4deg); } .cl-b { right: 0; bottom: 40px; transform: rotate(3deg); }
.cl-a { --fd: 200ms; } .cl-b { --fd: 350ms; --bd: 7s; }

.foot { max-width: var(--measure); margin: 0 auto; padding: var(--space-2xl) var(--space-lg) var(--space-3xl); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: end; border-top: 1px solid var(--color-rule); padding-top: var(--space-2xl); }
.brand--lg { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; gap: var(--space-sm); } .brand--lg img { width: 40px; height: 42px; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.foot nav a { color: var(--color-print); text-decoration: none; font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; padding: 0 var(--space-sm); border-radius: var(--radius-pill); }
.foot nav a:hover { background: var(--color-cloud); }
.foot p { grid-column: 1 / -1; color: var(--color-muted); font-size: var(--text-sm); }

@media (max-width: 1100px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fgrid .fcard:last-child { grid-column: span 2; } .fgrid .fcard:last-child .fcard-stage { aspect-ratio: 1 / 0.62; --phone-w: 32cqw; } .fgrid .fcard:last-child .card-phone { top: 6cqw; } .fgrid .fcard:last-child .fc-float { --phone-top: 6cqw; } }
@media (max-width: 900px) {
  .nav-links { display: none; } .nav-signin, .nav-acct { margin-left: auto; }
  .stage { --phone-w: clamp(220px, 46vw, 320px); }
  .h-left { right: calc(50% + var(--phone-w) * 0.22); top: calc(var(--phone-w) * 0.9); } .h-right { left: calc(50% + var(--phone-w) * 0.2); top: calc(var(--phone-w) * 0.3); }
  .h-stamp { display: none; }
  .fgrid { grid-template-columns: minmax(0, 1fr); } .fgrid .fcard:last-child { grid-column: auto; } .fgrid .fcard:last-child .fcard-stage { aspect-ratio: 1 / 1.22; --phone-w: 60cqw; } .fgrid .fcard:last-child .card-phone { top: 10cqw; } .fgrid .fcard:last-child .fc-float { --phone-top: 10cqw; }
  .ana-stage { height: auto; padding-top: var(--space-3xl); } .ana-phone { position: relative; left: auto; top: auto; transform: none; margin: 0 auto -45%; } .asks { position: relative; z-index: 7; display: grid; gap: var(--space-xs); padding: 0 var(--space-md) var(--space-lg); } .ask { position: static; white-space: normal; min-width: 0; } .js .ana-card.in .ask { transition-delay: 0ms; }
  .priv-list { grid-template-columns: minmax(0, 1fr); } .more-grid { grid-template-columns: minmax(0, 1fr); } .more-grid { gap: var(--space-xl); }
  .cl-a, .cl-b { display: none; } .close { padding: var(--section) var(--space-lg); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .stage { --phone-w: 62vw; }
  .h-left { display: none; } .h-right { left: auto; right: -8px; top: calc(var(--phone-w) * 0.55); --pts: 300 !important; }
  .capsule { flex-direction: column; border-radius: 28px; } .capsule input { width: 100%; text-align: center; } .capsule .cta { width: 100%; }
  .fcard-text { padding: var(--space-lg) var(--space-lg) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ask, .phase-mark svg, .js .hero-copy > *, .js .float > *, .js .reveal, .js .ribbons, .js .phone-wrap .iphone { opacity: 1; transform: none; filter: none; animation: none !important; }
  .rb { animation: none; }
  .js .play .bt-icon .a > * { stroke-dashoffset: 0; animation: none; }
  .float { transform: none !important; }
}

/* ---- analytics choice: two equal buttons, nothing sent until one is pressed */
.consent { position: fixed; z-index: 60; left: var(--space-md); right: var(--space-md); bottom: var(--space-md); max-width: 560px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); background: var(--color-cotton); color: var(--color-print); box-shadow: inset 0 0 0 1px var(--color-rule), 0 12px 32px -16px color-mix(in oklab, var(--color-board) 40%, transparent); font-size: var(--text-sm); }
.consent p { flex: 1 1 260px; margin: 0; }
.consent a { color: inherit; }
.consent a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.consent div { display: flex; gap: var(--space-xs); }

/* ---- console gate: the workspace is not shown until the server confirms an operator */
.page-con:not([data-state="ready"]) .con-bar, .page-con:not([data-state="ready"]) #main { display: none; }
.page-con[data-state="ready"] .gate { display: none; }
.gate { min-height: 100svh; display: grid; place-items: center; padding: var(--space-lg); }
.gate-in { width: min(100%, 420px); display: grid; justify-items: center; gap: var(--space-sm); text-align: center; }
.gate-in form { justify-self: stretch; }
.gate h1 { margin: 0; font-size: var(--text-2xl); font-weight: 600; overflow-wrap: break-word; min-width: 0; }
.gate p { margin: 0; color: var(--color-muted); }
.gate form { display: grid; gap: var(--space-xs); margin-top: var(--space-sm); }
.gate input { min-height: 44px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-field); background: var(--color-hi); color: var(--color-print); font: inherit; box-shadow: inset 0 0 0 1px var(--color-rule); }
.gate input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.page-con[data-state="checking"] .gate-in > :not(.auth-mark) { visibility: hidden; }

/* ---- IBKR wizard gate (connect-ibkr.js sets the state) */
body[data-state="checking"] .wizard,
body[data-state="denied"] .wizard { display: none; }
body[data-state="ready"] .gate { display: none; }
.page-wiz .gate { min-height: 60svh; }

/* ---- first paint: the view follows the session hint set in <head>, so a signed-in
   visitor never sees the signed-out page first (and the reverse) */
:root:not([data-session="likely"]) .nav a.nav-acct { display: none; }
:root[data-session="likely"] .nav a.nav-signin:not(.nav-acct),
:root[data-session="likely"] .nav a.cta--sm:not(.nav-acct) { display: none; }
/* Sign-in with a saved session shows the check, never the form, until it resolves. */
:root[data-session="likely"] .page-auth .state[data-state="enter"] { display: none !important; }
:root[data-session="likely"] .page-auth .state[data-state="verifying"] { display: grid !important; }
/* Identity not known yet: a skeleton, never a placeholder address. */
.js [data-email]:empty, .js [data-joined]:empty, .js [data-invited]:empty { display: inline-block; min-width: 12ch; height: 0.9em; vertical-align: -0.1em; border-radius: 6px; background: linear-gradient(90deg, var(--color-cloud), var(--color-hi), var(--color-cloud)); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.js [data-email]:empty { max-width: 24ch; }
.js [data-joined]:empty, .js [data-invited]:empty { min-width: 7ch; }
.js .avatar:empty { background: var(--color-cloud); animation: shimmer 1.4s linear infinite; }
/* A button that is working says so, at once. */
.cta[aria-busy="true"], .btn[aria-busy="true"] { cursor: progress; }
.cta[aria-busy="true"]::before, .btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; margin-right: var(--space-xs); border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .js [data-email]:empty, .js [data-joined]:empty, .js [data-invited]:empty, .js .avatar:empty, .cta[aria-busy="true"]::before, .btn[aria-busy="true"]::before { animation: none; }
}

/* ---- signed-in states: profile and console in the nav, the beta status where
   the join forms were. All chosen from <html data-session data-beta data-operator>,
   set in <head> from the stored session and the cached /me. */
.nav .who { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-sm) 0 var(--space-2xs); color: var(--color-print); }
.nav .avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--color-board); color: var(--color-board-type); font-weight: 600; font-size: var(--text-sm); }
.nav .who-mail { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root:not([data-session="likely"]) .nav a.nav-op,
:root:not([data-operator="1"]) .nav a.nav-op,
:root:not([data-session="likely"]) .foot a.foot-acct,
:root[data-session="likely"] .foot a.foot-signin { display: none; }
@media (max-width: 900px) { :root[data-operator="1"] .nav a.nav-op { margin-left: auto; } :root[data-operator="1"] .nav a.nav-op + a.nav-acct { margin-left: 0; } }
@media (max-width: 560px) { .nav .who-mail { display: none; } }

.join-status { display: none; }
:root[data-session="likely"] [data-join],
:root[data-session="likely"] [data-join] + .capsule-note { display: none; }
/* Same capsule as the form it replaces, so the hero keeps its shape. */
:root[data-session="likely"] .join-status { display: flex; align-items: center; gap: var(--space-sm); margin: var(--space-lg) auto 0; width: min(100%, 520px); padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-lg); border-radius: var(--radius-pill); background: var(--color-cotton); box-shadow: var(--lift); text-align: left; }
.join-line { flex: 1; min-width: 0; margin: 0; color: var(--color-print); font-size: var(--text-sm); font-weight: 500; line-height: 1.35; }
.join-status .cta { flex: none; }
@media (max-width: 560px) {
  :root[data-session="likely"] .join-status { flex-direction: column; border-radius: 28px; padding: var(--space-md) var(--space-2xs) var(--space-2xs); text-align: center; }
  .join-status .cta { width: 100%; }
}
[data-beta-line] { display: none; }
:root[data-beta="waiting"] [data-beta-line="waiting"],
:root[data-beta="invited"] [data-beta-line="invited"],
:root[data-beta="paused"] [data-beta-line="paused"],
:root[data-beta="unknown"] [data-beta-line="unknown"] { display: inline; }
.join-skel { display: inline-block !important; width: 28ch; max-width: 80vw; height: 1em; border-radius: 6px; vertical-align: -0.15em; background: linear-gradient(90deg, var(--color-cloud), var(--color-hi), var(--color-cloud)); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
:root:not([data-beta="unknown"]) .join-skel { display: none !important; }
:root:not([data-operator="1"]) [data-op-row] { display: none; }
@media (prefers-reduced-motion: reduce) { .join-skel { animation: none; } }
@keyframes shimmer { to { background-position: -300% 0; } }
/* The mark bounces only while a gate is checking; a settled answer sits still. */
.page-con:not([data-state="checking"]) .gate .auth-mark,
.page-wiz:not([data-state="checking"]) .gate .auth-mark { animation: none; }

/* ---- how it works, pricing, FAQ: the objections a visitor has before joining */
.how, .pricing, .faq { max-width: var(--measure); margin: 0 auto; padding: var(--section) var(--space-lg) 0; }
.how .sec-title, .pricing .sec-title, .faq .sec-title { text-align: center; }
.sec-sub { max-width: 52ch; margin: var(--space-md) auto 0; text-align: center; color: var(--color-muted); font-size: var(--text-lg); line-height: 1.45; }
.how-steps { list-style: none; counter-reset: step; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.how-steps li { counter-increment: step; display: grid; align-content: start; gap: var(--space-xs); padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-card); background: var(--color-cloud); }
.how-steps li::before { content: counter(step); width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: var(--space-sm); border-radius: 50%; background: var(--color-board); color: var(--color-board-type); font-weight: 600; font-variant-numeric: tabular-nums; }
.how-steps b { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.how-steps span { color: var(--color-muted); line-height: 1.5; }
.how-steps a, .faq-item a, .plan-note a { color: var(--color-print); text-underline-offset: 3px; }
.how-steps a:focus-visible, .faq-item summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }

.plans { margin: var(--space-2xl) auto 0; max-width: 860px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.plan { display: grid; align-content: start; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-cotton); box-shadow: var(--lift); }
.plan h3 { font-size: var(--text-xl); font-weight: 600; }
.plan-price { display: grid; gap: var(--space-3xs); }
.plan-price b { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--color-muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.plan li { padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); line-height: 1.4; }
.plan--pro { background: radial-gradient(80% 90% at 15% 0%, var(--color-board-2), transparent 60%), var(--color-board); color: var(--color-board-type); }
.plan--pro .plan-price span { color: color-mix(in oklab, var(--color-board-type) 70%, transparent); }
.plan--pro li { border-top-color: color-mix(in oklab, var(--color-board-type) 18%, transparent); }
.plan-note { margin-top: var(--space-md); text-align: center; color: var(--color-muted); font-size: var(--text-sm); }

.faq-list { max-width: 820px; margin: var(--space-2xl) auto 0; border-radius: var(--radius-card); background: var(--color-cotton); box-shadow: var(--lift); padding: var(--space-2xs) var(--space-lg); }
.faq-item + .faq-item { border-top: 1px solid var(--color-rule); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 64px; padding: var(--space-sm) 0; font-size: var(--text-lg); font-weight: 500; border-radius: 8px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted); transform: rotate(45deg) translateY(-3px); transition: transform var(--dur-short) var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item summary:hover { color: var(--color-print); }
.faq-item p { margin: 0 0 var(--space-md); max-width: 68ch; color: var(--color-muted); line-height: 1.6; }

@media (max-width: 900px) { .how-steps, .plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .faq-list { padding: var(--space-2xs) var(--space-md); } .plan { padding: var(--space-lg); } }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
.plan--pro .cta { justify-self: start; background: var(--color-board-type); color: var(--color-board); box-shadow: none; }
.plan--pro .cta:focus-visible { outline: 2px solid var(--color-board-type); outline-offset: 3px; transition: none; }
.plan-founding { margin: 0; padding: var(--space-xs) var(--space-sm); border-radius: 12px; background: color-mix(in oklab, var(--color-accent) 26%, transparent); color: var(--color-board-type); font-size: var(--text-sm); }
.plan-founding b { font-weight: 600; }
