/* Hallmark · shape: Framed Ledger, a mist hero in a deep blue frame over a night statement band · genre: modern-minimal · theme: custom (from the user's reference, recoloured blue) · job: sign up · idea: "One trusted account for forex, crypto and stocks, shown as the account itself" · vibe: "calm, precise, quietly premium, cool blue night"
 * paper: oklch(92.6% 0.011 250) · accent: oklch(47% 0.19 263) · display: Inter Tight · body: Inter Tight · hero: centred two tone head over a drawn circuit grid, a hand holding the app, live account cards bottom right · nav: wordmark pill with menu tile, log in and sign up at the edge · footer: night mast, wordmark over link columns, risk notice · imagery: photographs (library, cool treatment) and the product built · signature: the account cards and portfolio widgets built at full fidelity
 * axes: mist/grotesk/cobalt · posture: centred stage · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H2 E2 S2 R2 V2 · weakest: R, the reference's look is fixed by the user, so variety comes from the built widgets per market */
/* waive 38iii: two tone headings are the defining trait of the user's reference, kept by request */
/* waive 54 (hero trust line): the reference opens with a small trust line above the head; kept by the user's request for the exact layout
 * waive 67: ticker symbols such as EUR/USD are market data, written as the markets write them
 * waive 54: the small boxed section chips are in the user's reference; kept sentence case and untracked */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Frame ---------- */
:root { --gap-wide: 56px; }
html { background: var(--color-frame); }
body { background: var(--color-frame); padding: 14px; min-height: 100vh; }
.page { background: var(--color-paper); color: var(--color-ink); position: relative; isolation: isolate; }
.mono { font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-muted); }
.soft { color: var(--color-ink-2); }
.skip { position: absolute; left: 24px; top: -60px; z-index: var(--z-toast); background: var(--color-accent); color: var(--color-accent-ink); padding: 10px 14px; border-radius: var(--radius-btn); }
.skip:focus-visible { top: 24px; }

/* ---------- Icons ---------- */
.ico { width: 1em; height: 1em; flex: none; }
.mark { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 14px; left: 14px; right: 14px; z-index: var(--z-sticky-nav); pointer-events: none; }
.site-header .bar { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px; gap: 12px; }
.site-header .bar > * { pointer-events: auto; }
.brand-pill { position: relative; display: flex; align-items: center; gap: 10px; background: color-mix(in oklab, var(--color-paper-3) 72%, var(--color-paper)); border-radius: 6px; padding: 5px 5px 5px 6px; box-shadow: var(--shadow-float); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 15px; padding-right: 22px; border-radius: 4px; }
.brand-tile { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--color-night); color: var(--color-night-ink); }
.brand-tile svg { width: 15px; height: 15px; }
.menu-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 5px; background: var(--color-night); color: var(--color-night-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.menu-btn:hover { background: var(--color-accent); }
.menu-btn:active { transform: scale(0.94); }
.menu-btn .bars { display: grid; gap: 4px; }
.menu-btn .bars i { display: block; width: 13px; height: 1.5px; background: currentColor; transition: transform var(--dur-short) var(--ease-out); }
.menu-btn[aria-expanded="true"] .bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.menu-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: var(--color-card); color: var(--color-ink); border-radius: 10px; padding: 8px; box-shadow: var(--shadow-float); border: 1px solid var(--color-rule); opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility var(--dur-short); }
.menu-panel.open { opacity: 1; transform: none; visibility: visible; }
.menu-panel a { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: 6px; text-decoration: none; font-size: 15px; transition: background-color var(--dur-micro) var(--ease-out); }
.menu-panel a:hover { background: var(--color-paper); }
.menu-panel a[aria-current="page"] { color: var(--color-accent); }
.menu-panel a span { font-size: var(--text-xs); color: var(--color-muted); }
.menu-panel .menu-foot { border-top: 1px solid var(--color-rule); margin-top: 6px; padding: 10px 12px 4px; font-size: var(--text-xs); color: var(--color-muted); }
.header-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-btn); border: 0; background: color-mix(in oklab, var(--color-paper-3) 72%, var(--color-paper)); color: var(--color-ink); cursor: pointer; box-shadow: var(--shadow-float); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.icon-btn:hover { background: var(--color-card); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: var(--radius-btn); border: 1px solid transparent; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-hover); box-shadow: 0 8px 22px -10px var(--color-accent); }
.btn-light { background: var(--color-card); color: var(--color-ink); border-color: color-mix(in oklab, var(--color-rule) 60%, transparent); }
.btn-light:hover { border-color: var(--color-ink); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn-lg { min-height: 46px; padding: 0 24px; font-size: 15px; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.link { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.2em; transition: color var(--dur-micro) var(--ease-out); }
.link:hover { color: var(--color-accent-hover); }

/* ---------- Chip ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 3px; font-size: 12px; font-weight: 500; background: var(--color-card); color: var(--color-ink); border: 1px solid var(--color-rule); }
.chip svg { width: 11px; height: 11px; }
.night .chip { background: var(--color-night-ink); color: var(--color-night); border-color: transparent; }

/* ---------- Intro animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes riseSoft { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes glide { from { transform: translateX(-30%); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(130%); opacity: 0; } }
.intro { animation: rise var(--dur-intro) var(--ease-out) both; animation-delay: var(--d, 0ms); }
.intro-soft { animation: riseSoft 1100ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Circuit lines ---------- */
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; color: var(--color-line); }
.circuit path { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 2.4s var(--ease-in-out) both; animation-delay: var(--d, 200ms); }
.circuit rect { fill: var(--color-paper); stroke: currentColor; stroke-width: 1; animation: fade 900ms var(--ease-out) both; animation-delay: 1400ms; }
.circuit .dot { fill: var(--color-ink-2); animation: fade 900ms var(--ease-out) both, pulse 3.2s ease-in-out 2s infinite; }
.circuit .spark { fill: var(--color-accent); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(calc(100svh - 28px), 900px); padding: 74px var(--gutter) 0; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: clip; }
.hero-top { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; z-index: 2; }
.badge-line { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.badge-line .sq { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: var(--color-accent); color: var(--color-accent-ink); }
.badge-line .sq svg { width: 10px; height: 10px; }
.hero h1 { font-size: var(--text-display); line-height: 0.98; letter-spacing: var(--tracking-display); font-weight: 450; max-width: 13ch; }
.hero .lede { font-size: 15px; color: var(--color-muted); max-width: 34ch; line-height: 1.5; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-stage { position: relative; flex: 1; width: 100%; max-width: var(--container); min-height: 380px; margin-top: 18px; }
.hero-photo { color: var(--color-night-ink); position: absolute; left: 0; right: 0; margin-inline: auto; bottom: 0; width: clamp(260px, 28vw, 400px); aspect-ratio: 4 / 4.2; border-radius: 26px 26px 0 0; overflow: hidden; box-shadow: var(--shadow-card); background: var(--color-paper-3); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; filter: saturate(0.85) contrast(1.02); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, color-mix(in oklab, var(--color-night) 35%, transparent)); pointer-events: none; }
.hero-photo .phone-badge { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in oklab, var(--color-night) 82%, transparent); color: var(--color-night-ink); text-align: left; backdrop-filter: blur(8px); font-size: 12px; }
.phone-badge b { font-weight: 600; font-size: 13px; }
.phone-badge .up { color: var(--color-up); margin-left: auto; font-variant-numeric: tabular-nums; }
.float-tile { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--color-paper-2); color: var(--color-ink); box-shadow: var(--shadow-float); }
.float-tile svg { width: 22px; height: 22px; }
.float-tile.a { right: 9%; top: -70px; animation: rise var(--dur-intro) var(--ease-out) 700ms both, floaty 6s ease-in-out 1.6s infinite; }
.hero-info { position: absolute; left: 0; bottom: 30px; max-width: 420px; text-align: left; }
.hero-info p { font-size: clamp(1.15rem, 0.8vw + 0.85rem, 1.55rem); line-height: 1.15; letter-spacing: -0.02em; margin-top: 10px; }
.hero-cards { position: absolute; right: 0; bottom: 14px; display: flex; gap: 8px; }

/* Mini account card (dark) */
.acct { width: 220px; background: var(--color-night); color: var(--color-night-ink); border-radius: 8px; padding: 12px; text-align: left; box-shadow: var(--shadow-card); font-size: 10px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-start; }
.acct-head b { display: block; font-size: 11px; font-weight: 500; }
.acct-head small { color: var(--color-night-muted); font-size: 9px; }
.acct-tools { display: flex; gap: 4px; }
.acct-tools i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: var(--color-night-3); font-style: normal; font-size: 8px; }
.acct-tools .sel { width: auto; padding: 0 5px; background: var(--color-accent); }
.acct .amt { font-size: 18px; letter-spacing: -0.02em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.acct .delta { display: inline-flex; align-items: center; gap: 4px; }
.acct .delta i { font-style: normal; padding: 2px 5px; border-radius: 3px; background: color-mix(in oklab, var(--color-accent) 55%, var(--color-night)); }
.acct .delta span { color: var(--color-night-muted); }
.acct-body { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; margin-top: 10px; }
.donut { width: 54px; height: 54px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 7; }
.donut .track { stroke: var(--color-night-3); }
.donut .seg1 { stroke: var(--color-night-ink); }
.donut .seg2 { stroke: var(--color-accent-soft); }
.donut .seg3 { stroke: var(--color-accent); }
.acct ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.acct li { display: grid; gap: 1px; color: var(--color-night-muted); font-size: 8.5px; }
.acct li b { color: var(--color-night-ink); font-weight: 500; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.acct li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--k, var(--color-night-ink)); margin-bottom: 1px; }

/* ---------- Night statement ---------- */
.night { background: var(--color-night); color: var(--color-night-ink); }
.statement-sec { padding: var(--section-gap) 0 calc(var(--section-gap) * 0.8); text-align: center; }
.statement { font-size: var(--text-statement); line-height: 1.12; letter-spacing: -0.035em; font-weight: 400; max-width: 22ch; margin: 34px auto 0; }
.statement .dim { color: var(--color-night-faint); }
.statement .sw { transition: color 600ms var(--ease-out); }
.tiles-inline { display: inline-flex; vertical-align: middle; margin: 0 6px; transform: translateY(-4px); }
.tiles-inline i { display: grid; place-items: center; width: 0.95em; height: 0.95em; border-radius: 0.18em; background: var(--color-night-3); color: var(--color-night-ink); margin-left: -0.18em; border: 2px solid var(--color-night); }
.tiles-inline i:nth-child(2) { background: var(--color-night-muted); color: var(--color-night); }
.tiles-inline i:nth-child(3) { background: var(--color-night-ink); color: var(--color-night); }
.tiles-inline svg { width: 0.5em; height: 0.5em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-3xl); }
.stat { padding: 10px 24px; display: grid; gap: 8px; justify-items: center; }
.stat + .stat { border-left: 1px solid var(--color-night-rule); }
.stat b { font-size: var(--text-stat); font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--color-night-muted); font-size: 15px; }

/* ---------- Feature panel (satin) ---------- */
.features-wrap { padding: 0 10px 10px; }
.satin { position: relative; isolation: isolate; border-radius: var(--radius-panel); overflow: clip; padding: var(--space-3xl) var(--gutter); text-align: center; background: var(--color-night-2); }
.satin-bg { position: absolute; inset: 0; z-index: -2; }
.satin-bg img { width: 100%; height: 100%; object-fit: cover; filter: hue-rotate(28deg) saturate(1.1) brightness(0.9); }
.satin::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 0%, transparent 0%, color-mix(in oklab, var(--color-night) 55%, transparent) 55%), linear-gradient(180deg, color-mix(in oklab, var(--color-night) 70%, transparent), color-mix(in oklab, var(--color-night) 30%, transparent) 60%, color-mix(in oklab, var(--color-night) 75%, transparent)); }
.satin h2 { color: var(--color-night-ink); }
.satin .sub { color: var(--color-night-muted); margin-top: 12px; font-size: 15px; }
.section-title { font-size: var(--text-section); line-height: 1.02; letter-spacing: -0.035em; font-weight: 450; margin-top: 18px; }
.night .section-title .soft, .satin .section-title .soft { color: var(--color-night-muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1080px; margin: 48px auto 0; text-align: center; }
.f-card { background: var(--color-paper-2); color: var(--color-ink); border-radius: 6px; padding: 7px 7px 22px; box-shadow: var(--shadow-card); transition: transform var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out); }
.f-card:hover { transform: translateY(-4px); }
.f-shot { position: relative; isolation: isolate; height: 236px; border-radius: 4px; overflow: hidden; display: grid; place-items: center; padding: 16px; background: radial-gradient(70% 90% at 100% 20%, var(--color-glow) 0%, transparent 45%), radial-gradient(60% 70% at 0% 100%, color-mix(in oklab, var(--color-accent) 60%, transparent) 0%, transparent 60%), var(--color-night); }
.f-shot::after { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 210deg at 70% 40%, transparent 0deg, color-mix(in oklab, var(--color-accent-soft) 40%, transparent) 40deg, transparent 90deg); animation: fade 1s both; }
.f-card h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-top: 16px; }
.f-card p { font-size: 13px; color: var(--color-muted); max-width: 34ch; margin: 8px auto 0; line-height: 1.5; }

/* Light widget used inside shots */
.w { width: 100%; max-width: 250px; background: var(--color-white); color: var(--color-night); border-radius: 6px; padding: 12px; text-align: left; font-size: 9px; box-shadow: var(--shadow-float); }
.w-head { display: flex; justify-content: space-between; align-items: center; color: var(--color-muted); }
.w-big { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; color: var(--color-night); margin-top: 4px; font-variant-numeric: tabular-nums; }
.w-up { color: var(--color-accent); font-size: 8.5px; margin-top: 2px; }
.w-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-weight: 500; color: var(--color-night); }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.w-cell { border: 1px solid var(--color-rule); border-radius: 4px; padding: 6px; display: grid; gap: 2px; }
.w-cell .cur { display: flex; align-items: center; gap: 4px; color: var(--color-muted); }
.w-cell .cur i { width: 9px; height: 9px; border-radius: 50%; background: var(--k, var(--color-accent-soft)); }
.w-cell b { font-size: 11px; font-weight: 600; color: var(--color-night); font-variant-numeric: tabular-nums; }
.w-cell small { color: var(--color-accent); font-size: 7.5px; }
.heat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.heat i { aspect-ratio: 1; border-radius: 2px; background: var(--color-paper-3); }
.heat i.h2 { background: var(--color-accent-soft); }
.heat i.h3 { background: var(--color-accent); }
.heat i.h4 { background: var(--color-night); }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 4px; color: var(--color-muted); font-size: 6.5px; text-align: center; }
.spark-line { width: 100%; height: 64px; margin-top: 8px; }
.spark-line path { fill: none; stroke: var(--color-accent); stroke-width: 1.6; }
.spark-line .area { fill: color-mix(in oklab, var(--color-accent) 14%, transparent); stroke: none; }
.sig { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--color-rule); color: var(--color-night); }
.sig:first-of-type { border-top: 0; }
.sig em { font-style: normal; padding: 2px 6px; border-radius: 3px; background: var(--color-accent); color: var(--color-accent-ink); font-size: 8px; }
.sig em.sell { background: var(--color-night); }

/* ---------- Generic sections ---------- */
.section { padding: var(--section-gap) 0; }
.section-head { display: grid; justify-items: center; text-align: center; gap: 0; margin-bottom: 56px; }
.section-head p { color: var(--color-muted); margin-top: 14px; max-width: 52ch; font-size: 16px; }
.section-head.left { justify-items: start; text-align: left; }

/* Ticker */
.ticker { border-block: 1px solid var(--color-rule); overflow: hidden; background: var(--color-paper-2); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: flex; gap: 10px; align-items: baseline; padding: 14px 26px; border-right: 1px solid var(--color-rule); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick b { font-weight: 600; }
.tick .up { color: var(--color-pos); }
.tick .down { color: var(--color-down); }

/* Markets switcher */
.mkt-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-wide); align-items: start; }
.mkt-copy h2 { margin-top: 18px; }
.mkt-copy > p { color: var(--color-muted); margin-top: 16px; max-width: 42ch; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 6px; background: var(--color-paper-3); margin-top: 28px; }
.tab { border: 0; background: transparent; color: var(--color-muted); padding: 9px 16px; border-radius: 4px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tab:hover { color: var(--color-ink); }
.tab[aria-selected="true"] { background: var(--color-card); color: var(--color-ink); box-shadow: var(--shadow-float); }
.mkt-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.mkt-points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; }
.mkt-points svg { width: 18px; height: 18px; color: var(--color-accent); margin-top: 2px; }
.board { background: var(--color-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); border: 1px solid var(--color-rule); overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--color-rule); font-size: 14px; }
.board-head small { color: var(--color-muted); font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); animation: pulse 1.8s ease-in-out infinite; }
.board table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.board th { text-align: left; font-weight: 500; font-size: 12px; color: var(--color-muted); padding: 12px 20px; }
.board td { padding: 14px 20px; border-top: 1px solid var(--color-rule); }
.board td:first-child { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.board .sym { color: var(--color-ink); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--color-paper); font-size: 11px; font-weight: 600; }
.board .name small { display: block; font-weight: 400; color: var(--color-muted); font-size: 12px; }
.board .chg.up { color: var(--color-pos); }
.board .chg.down { color: var(--color-down); }
.board .price { transition: color var(--dur-long) var(--ease-out); }
.board .price.flash { color: var(--color-pos); }
.board td svg { width: 80px; height: 26px; }
.board td svg path { fill: none; stroke: var(--color-accent); stroke-width: 1.4; }
.board tr.down td svg path { stroke: var(--color-down); }
.board-foot { padding: 12px 20px; border-top: 1px solid var(--color-rule); font-size: 12px; color: var(--color-muted); }
.panel[hidden] { display: none; }

/* Split with photo */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-wide); align-items: center; }
.photo { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--color-paper-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); }
.photo.wide { aspect-ratio: 16 / 10; }
.photo .overlay-card { position: absolute; left: 18px; bottom: 18px; z-index: 2; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--color-rule); }
.steps li:last-child { border-bottom: 1px solid var(--color-rule); }
.steps .n { font-size: 28px; line-height: 1; letter-spacing: -0.03em; color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.steps p { color: var(--color-muted); margin-top: 6px; font-size: 15px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { color: var(--color-ink); position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius-card); background: var(--color-card); border: 1px solid var(--color-rule); box-shadow: var(--shadow-card); transition: transform var(--dur-long) var(--ease-out); }
.plan:hover { transform: translateY(-4px); }
.plan h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; }
.plan .tag { font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 3px; background: var(--color-accent); color: var(--color-accent-ink); }
.plan .price { font-size: 44px; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 14px; color: var(--color-muted); letter-spacing: 0; margin-left: 4px; }
.plan > p { color: var(--color-muted); font-size: 14px; }
.plan ul { list-style: none; padding: 18px 0 0; margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--color-rule); font-size: 14px; flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li svg { width: 15px; height: 15px; color: var(--color-accent); margin-top: 3px; }
.plan.featured { background: var(--color-night); color: var(--color-night-ink); border-color: transparent; }
.plan.featured > p, .plan.featured .price small { color: var(--color-night-muted); }
.plan.featured ul { border-color: var(--color-night-rule); }
.plan.featured li svg { color: var(--color-accent-soft); }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--color-rule); }
.compare thead th { font-weight: 500; font-size: 14px; color: var(--color-muted); }
.compare tbody th { font-weight: 500; }
.compare td { font-variant-numeric: tabular-nums; }
.compare .yes { color: var(--color-pos); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-card); border: 1px solid var(--color-rule); background: var(--color-card); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--color-rule); max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 4px; cursor: pointer; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; border-radius: 4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: currentColor; transition: transform var(--dur-short) var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--color-accent); }
.faq details p { color: var(--color-muted); padding: 0 4px 22px; max-width: 70ch; }

/* Values grid */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--color-rule); }
.value { padding: 32px 28px 8px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--color-rule); }
.value .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--color-night); color: var(--color-night-ink); }
.value .ic svg { width: 18px; height: 18px; }
.value h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-top: 20px; }
.value p { color: var(--color-muted); margin-top: 8px; font-size: 15px; }
.night .values, .night .value + .value { border-color: var(--color-night-rule); }
.night .value .ic { background: var(--color-accent); }
.night .value p { color: var(--color-night-muted); }

/* Team slots */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.member .ph { aspect-ratio: 4 / 5; border-radius: var(--radius-card); background: linear-gradient(160deg, var(--color-paper-3), var(--color-paper-2)); display: grid; place-items: center; color: var(--color-ink-2); position: relative; overflow: hidden; }
.member .ph svg { width: 48px; height: 48px; }
.member .ph span { position: absolute; bottom: 12px; left: 12px; font-size: 12px; color: var(--color-muted); }
.member h3 { font-size: 16px; font-weight: 500; margin-top: 14px; }
.member p { font-size: 14px; color: var(--color-muted); margin-top: 2px; }

/* Market overview cards on markets page */
.market-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-wide); align-items: center; padding: 56px 0; border-top: 1px solid var(--color-rule); }
.market-row:last-child { border-bottom: 1px solid var(--color-rule); }
.market-row.flip .market-text { order: 2; }
.market-text .k { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-muted); }
.market-text .k i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--color-night); color: var(--color-night-ink); font-style: normal; font-weight: 600; font-size: 13px; }
.market-text h2 { font-size: var(--text-section); letter-spacing: -0.035em; font-weight: 450; line-height: 1.02; margin-top: 18px; }
.market-text > p { color: var(--color-muted); margin-top: 16px; max-width: 46ch; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--color-rule); }
.specs div { padding: 16px 16px 0 0; display: grid; gap: 4px; }
.specs div + div { padding-left: 16px; border-left: 1px solid var(--color-rule); }
.specs b { font-size: 24px; font-weight: 450; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.specs span { font-size: 13px; color: var(--color-muted); }
.market-vis { position: relative; border-radius: var(--radius-panel); padding: 40px; min-height: 380px; display: grid; place-items: center; background: radial-gradient(70% 90% at 100% 0%, var(--color-glow) 0%, transparent 45%), radial-gradient(60% 70% at 0% 100%, color-mix(in oklab, var(--color-accent) 55%, transparent) 0%, transparent 60%), var(--color-night); overflow: hidden; }
.market-vis .w { max-width: 340px; font-size: 10.5px; }
.market-vis .w-big { font-size: 24px; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius-panel); overflow: hidden; border: 1px solid var(--color-rule); background: var(--color-card); }
.calc-in { padding: 40px; display: grid; gap: 22px; }
.calc-out { padding: 40px; background: var(--color-night); color: var(--color-night-ink); display: grid; align-content: center; gap: 10px; }
.calc-out .big { font-size: clamp(2.5rem, 3vw + 1rem, 3.75rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-out small { color: var(--color-night-muted); font-size: 14px; }
.calc-out .note { font-size: 12px; color: var(--color-night-muted); margin-top: 18px; max-width: 46ch; }

/* Forms */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--color-muted); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 6px; border: 1px solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.textarea { min-height: 140px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-ink-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 25%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--color-error); }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.err { font-size: 13px; color: var(--color-error); min-height: 0; }
.range { width: 100%; accent-color: var(--color-accent); }
.range-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.range-row b { color: var(--color-ink); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--color-muted); }
.check input { accent-color: var(--color-accent); width: 18px; height: 18px; margin-top: 2px; }
.success { display: none; padding: 16px 18px; border-radius: 8px; background: color-mix(in oklab, var(--color-accent) 12%, transparent); color: var(--color-ink); font-size: 15px; }
.success.show { display: block; animation: riseSoft 600ms var(--ease-out) both; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-wide); align-items: start; }
.card { color: var(--color-ink); background: var(--color-card); border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-card); }
.info-list { display: grid; gap: 0; }
.info-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--color-rule); }
.info-item:first-child { padding-top: 0; }
.info-item .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--color-night); color: var(--color-night-ink); }
.info-item .ic svg { width: 17px; height: 17px; }
.info-item h3 { font-size: 15px; font-weight: 500; }
.info-item p { font-size: 14px; color: var(--color-muted); margin-top: 3px; }
.info-item a { text-decoration: none; }
.info-item a:hover { color: var(--color-accent); }

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding: 150px var(--gutter) 96px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.page-hero h1 { font-size: var(--text-display); line-height: 0.98; letter-spacing: var(--tracking-display); font-weight: 450; max-width: 14ch; }
.page-hero .lede { color: var(--color-muted); max-width: 46ch; font-size: 16px; }
.crumbs { font-size: 13px; color: var(--color-muted); display: flex; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--color-accent); }

/* CTA */
.cta { position: relative; isolation: isolate; overflow: clip; border-radius: var(--radius-panel); background: var(--color-accent); color: var(--color-accent-ink); padding: 80px var(--gutter); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: end; }
.cta h2 { font-size: var(--text-section); letter-spacing: -0.035em; line-height: 1.02; font-weight: 450; max-width: 16ch; }
.cta h2 .soft { color: var(--color-accent-soft); }
.cta p { margin-top: 14px; max-width: 46ch; color: color-mix(in oklab, var(--color-accent-ink) 78%, transparent); }
.cta .btn-light { border-color: transparent; }
.cta .btn-ghost { color: var(--color-accent-ink); }
.cta .circuit { color: color-mix(in oklab, var(--color-accent-ink) 22%, transparent); }
.cta .circuit rect { fill: var(--color-accent); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Risk band */
.risk { font-size: 13px; color: var(--color-muted); border: 1px solid var(--color-rule); border-radius: 8px; padding: 16px 18px; display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.risk svg { width: 17px; height: 17px; color: var(--color-accent); margin-top: 1px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-night); color: var(--color-night-ink); padding: 96px 0 32px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-top h2 { font-family: var(--font-body); letter-spacing: 0; margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--color-night-muted); }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-top a { text-decoration: none; font-size: 15px; transition: color var(--dur-micro) var(--ease-out); }
.foot-top a:hover { color: var(--color-accent-soft); }
.foot-brand p { color: var(--color-night-muted); margin-top: 14px; max-width: 36ch; font-size: 14px; }
.foot-brand .brand { color: var(--color-night-ink); }
.foot-brand .brand-tile { background: var(--color-accent); }
.newsletter { display: flex; gap: 6px; margin-top: 22px; max-width: 380px; }
.newsletter .input { background: var(--color-night-2); border-color: var(--color-night-rule); color: var(--color-night-ink); min-height: 42px; }
.newsletter .input::placeholder { color: var(--color-night-faint); }
.wordmark { font-size: clamp(3.5rem, 13vw, 13rem); letter-spacing: -0.06em; line-height: 0.82; font-weight: 500; color: var(--color-night-2); margin: 72px 0 0; white-space: nowrap; user-select: none; }
.foot-legal { display: grid; gap: 14px; border-top: 1px solid var(--color-night-rule); padding-top: 24px; margin-top: 8px; font-size: 12.5px; color: var(--color-night-muted); }
.foot-legal .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-legal a { color: var(--color-night-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 75rem) {
  .hero-cards .acct:nth-child(2) { display: none; }
}
@media (max-width: 60rem) {
  body { padding: 8px; }
  .site-header { top: 8px; left: 8px; right: 8px; }
  .hero { min-height: auto; padding-top: 96px; }
  .hero-stage { display: grid; gap: 22px; min-height: 0; margin-top: 36px; }
  .hero-photo { position: relative; left: auto; right: auto; margin: 0 auto; width: min(100%, 380px); border-radius: 22px; order: 1; }
  .float-tile.a { display: none; }
  .hero-info { position: static; order: 2; max-width: none; }
  .hero-cards { position: static; order: 3; justify-content: center; padding-bottom: 28px; }
  .hero-cards .acct:nth-child(2) { display: block; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--color-night-rule); padding-top: 28px; }
  .feature-grid, .plans, .values { grid-template-columns: minmax(0, 1fr); }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-rule); }
  .night .value + .value { border-color: var(--color-night-rule); }
  .mkt-wrap, .split, .market-row, .contact-grid, .calc, .cta { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .market-row.flip .market-text { order: 0; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .page-hero { padding-top: 120px; padding-bottom: 72px; }
  .satin { padding-top: 72px; padding-bottom: 40px; }
}
@media (max-width: 40rem) {
  .hero-cards { flex-direction: column; align-items: center; }
  .acct { width: min(100%, 300px); }
  .board .hide-sm { display: none; }
  .board th, .board td { padding-inline: 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-rule); padding-top: 14px; }
  .calc-in, .calc-out, .card { padding: 24px; }
  .market-vis { padding: 22px; min-height: 300px; }
  .brand { padding-right: 8px; }
  .header-actions .btn-light { display: none; }
  .plan .price { font-size: 38px; }
  .faq summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro, .intro-soft, .circuit path, .circuit rect, .float-tile.a { animation-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
@media print { body { padding: 0; } .site-header { position: static; } }

/* Direction marks on price changes (drawn, no minus signs in copy) */
.chg { display: inline-flex; align-items: center; gap: 5px; }
.chg::before { content: ""; width: 0; height: 0; border-inline: 4px solid transparent; }
.chg.up::before { border-bottom: 5px solid currentColor; }
.chg.down::before { border-top: 5px solid currentColor; }

/* Photo frames: a designed ground under every picture, so a frame still reads if a photo cannot load */
.hero-photo, .photo { background: radial-gradient(70% 80% at 85% 10%, color-mix(in oklab, var(--color-glow) 70%, transparent) 0%, transparent 55%), radial-gradient(60% 70% at 0% 100%, color-mix(in oklab, var(--color-accent) 70%, transparent) 0%, transparent 60%), var(--color-night-2); }
.hero-photo img, .photo img { position: absolute; inset: 0; z-index: 1; }
.photo .overlay-card { z-index: 2; }
.hero-photo .phone-badge { z-index: 3; }
.phone-mock { position: absolute; left: 50%; top: 28px; width: 58%; aspect-ratio: 9 / 17; translate: -50% 0; border-radius: 30px; padding: 9px; background: var(--color-night); box-shadow: 0 30px 60px -20px var(--color-night), 0 0 0 1px var(--color-night-3) inset; }
.pm-screen { height: 100%; border-radius: 22px; background: var(--color-white); color: var(--color-night); padding: 16px 14px; display: grid; align-content: start; gap: 4px; text-align: left; overflow: hidden; }
.pm-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.pm-top .brand-tile { width: 22px; height: 22px; }
.pm-screen small { font-size: 10px; color: var(--color-muted); }
.pm-screen b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pm-screen svg { width: 100%; height: 70px; margin-top: 6px; }
.pm-screen svg path { fill: none; stroke: var(--color-accent); stroke-width: 2; }
.pm-screen svg .area { fill: color-mix(in oklab, var(--color-accent) 14%, transparent); stroke: none; }
.pm-rows { display: grid; gap: 0; margin-top: 8px; }
.pm-rows span { display: flex; justify-content: space-between; font-size: 10.5px; padding: 7px 0; border-top: 1px solid var(--color-rule); font-variant-numeric: tabular-nums; }
.pm-rows i { font-style: normal; color: var(--color-muted); }
.satin-bg img { position: absolute; inset: 0; }
