/* Supra.ai landing page. Direction: DESIGN.md (dark ground, deep green surfaces, one mint accent). */
:root {
  --bg: #040806;
  --card-1: #0b1a14;
  --card-2: #060c09;
  --line: rgba(173, 255, 219, .09);
  --line-2: rgba(173, 255, 219, .18);
  --ink: #f1f7f3;
  --text: #c3d0c8;
  --muted: #8fa197;
  --mint: #2ef2a4;
  --mint-hover: #6ef8c2;
  --mint-ink: #02170e;
  --mint-soft: rgba(46, 242, 164, .12);
  --down: #f2878a;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius: 14px;
  --pill: 999px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --nav-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; }
p, ol, ul, dl, dd, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 18px; border-radius: var(--pill); background: var(--mint); color: var(--mint-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Type */
h1 { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.03; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.07; letter-spacing: -.03em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.label { margin-bottom: 12px; color: var(--muted); font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Pill tags above section headings (kept from the reference by the owner) */
.tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 14px 6px 12px; border: 1px solid var(--line-2); border-radius: var(--pill); background: rgba(46, 242, 164, .06); color: var(--text); font-size: 13px; line-height: 1.4; }
.tag__icon { width: 15px; height: 15px; color: var(--mint); }
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

/* Buttons: pill with a trailing arrow, as in the reference */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--pill); font: 500 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn__arrow { width: 15px; height: 15px; flex: none; transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--mint, .btn--primary { background: var(--mint); color: var(--mint-ink); box-shadow: 0 10px 34px -10px rgba(46, 242, 164, .7); }
.btn--mint:hover, .btn--primary:hover { background: var(--mint-hover); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); color: var(--ink); }
.btn--ghost:hover { border-color: rgba(46, 242, 164, .45); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn-row--center { justify-content: center; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; padding-top: 12px; color: var(--mint); font-size: 14px; font-weight: 500; text-decoration: none; }
.text-link svg { width: 14px; height: 14px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* Cards: deep green fill with a mint glow from the top-left corner (owner kept glow on cards) */
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(90% 70% at 0% 0%, rgba(46, 242, 164, .14), transparent 60%), linear-gradient(180deg, var(--card-1), var(--card-2)); }
.card--glow { border-radius: var(--radius-xl); background: radial-gradient(70% 90% at 0% 0%, rgba(46, 242, 164, .26), transparent 62%), radial-gradient(60% 60% at 100% 100%, rgba(46, 242, 164, .09), transparent 70%), linear-gradient(180deg, #0c1f17, var(--card-2)); }

/* Navigation: brand left, centred capsule, the only blurred surface on the page */
.site-nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: 12px; }
.site-nav::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; background: linear-gradient(var(--bg) 35%, rgba(4, 8, 6, 0)); pointer-events: none; }
.nav__bar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; color: var(--mint); text-decoration: none; }
/* The mark is a seven-segment S, the way a price display draws it. DESIGN.md has the reasoning. */
.brand__mark { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 0 8px rgba(46, 242, 164, .45)); }
.brand__word { font: 400 15px/1 "Michroma", var(--font); letter-spacing: .06em; text-transform: uppercase; }
.mark-tile { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid rgba(46, 242, 164, .22); border-radius: 8px; background: var(--card-1); color: var(--mint); }
.mark-tile svg { width: 66%; height: 66%; }
.nav__menu { display: flex; align-items: center; gap: 2px; padding: 5px 5px 5px 14px; border: 1px solid var(--line-2); border-radius: var(--pill); background: rgba(7, 16, 12, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav__link { position: relative; padding: 10px 14px; border-radius: var(--pill); color: var(--text); font-size: 14px; text-decoration: none; transition: color .2s; }
.nav__link:hover, .nav__link[aria-current] { color: var(--ink); }
.nav__link[aria-current]::before { content: ""; position: absolute; top: -6px; left: 50%; width: 22px; height: 2px; margin-left: -11px; border-radius: 2px; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.nav__go { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 8px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); text-decoration: none; transition: background-color .2s; }
.nav__go:hover { background: var(--mint-hover); }
.nav__go-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav__toggle { display: none; justify-self: end; min-width: 76px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: var(--pill); background: rgba(7, 16, 12, .8); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }

/* Hero: centred copy over a mint glow, with the price line as the identity motif */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--nav-h) + clamp(56px, 10vw, 128px)); text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(46% 52% at 50% 16%, rgba(46, 242, 164, .2), transparent 72%), radial-gradient(40% 36% at 50% 82%, rgba(46, 242, 164, .12), transparent 72%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; z-index: -1; background: linear-gradient(rgba(4, 8, 6, 0), var(--bg)); }
.hero__copy { max-width: 780px; }
.hero__lead { max-width: 540px; margin: 22px auto 0; color: var(--text); font-size: clamp(16px, 1.6vw, 18px); }
.hero__chart { position: relative; z-index: -1; height: clamp(190px, 27vw, 380px); margin-top: clamp(-110px, -7vw, -24px); }
.hero__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__chart figcaption { position: absolute; right: var(--gutter); bottom: 22px; color: var(--muted); font: 12px/1 var(--mono); }
.hero-line { fill: none; stroke: var(--mint); stroke-opacity: .7; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(46, 242, 164, .55)); }
.hero-area { fill: url(#hero-fill); }
.hero-chart-reveal { animation: reveal 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Sections */
.section { position: relative; padding: var(--section) 0; }
.section-head { max-width: 660px; }
.section-head > p:not(.tag) { margin-top: 18px; color: var(--text); font-size: 17px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: end; gap: 32px; max-width: none; margin-bottom: 40px; }
.section-head--split > p:not(.tag) { margin-top: 0; }

/* Overview: one card split into four columns */
.section--overview::before { content: ""; position: absolute; inset: 20% 10% 10%; z-index: -1; background: radial-gradient(50% 50% at 50% 60%, rgba(46, 242, 164, .1), transparent 70%); }
.section--overview { isolation: isolate; padding-top: clamp(32px, 5vw, 64px); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 52px; }
.strip__item { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 30px 26px 24px; }
.strip__item + .strip__item { border-left: 1px solid var(--line); }
.strip__item p { color: var(--text); font-size: 15px; }
/* Each overview card opens with the demo's own figures for that job, in place of an icon. */
.readout { display: grid; gap: 6px; margin-bottom: 10px; padding: 11px 13px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4, 8, 6, .55); font-family: var(--mono); white-space: nowrap; }
.readout__label { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; line-height: 18px; }
.readout__value { color: var(--ink); font-size: 12.5px; line-height: 18px; }
.readout__value i { color: var(--muted); font-style: normal; }
.readout__value b { color: var(--mint); font-weight: 400; }
.readout__spark { width: 72px; height: 18px; flex: none; }
.readout__spark path { fill: none; stroke: var(--mint); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.readout__spark circle { fill: var(--mint); }
.readout__check { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section--overview .btn-row { margin-top: 40px; }

/* Workspace demo */
.terminal { overflow: hidden; }
.terminal__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.terminal__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.terminal__brand .mark-tile { width: 22px; height: 22px; border-radius: 6px; }
.demo-label { padding: 4px 10px; border-radius: var(--pill); background: var(--mint-soft); color: var(--mint); font-size: 12px; }
.terminal__status { margin-left: auto; color: var(--muted); }
.workspace-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; }
.watchlist { padding: 22px 16px; border-right: 1px solid var(--line); }
.watchlist .label { padding-left: 8px; }
.watchlist-buttons { display: grid; gap: 6px; }
.market-button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s; }
.market-button:hover { background: rgba(255, 255, 255, .03); }
.market-button.is-selected { border-color: rgba(46, 242, 164, .3); background: rgba(46, 242, 164, .08); }
.market-button b { display: block; color: var(--ink); font: 500 14px/1.3 var(--mono); }
.market-button small { display: block; color: var(--muted); font-size: 12px; }
.market-button__quote { text-align: right; }
.market-button__quote small { color: var(--mint); font-family: var(--mono); }
.market-button__quote small.is-down { color: var(--down); }
.market-main { min-width: 0; padding: 22px 24px 20px; }
.market-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.market-heading h3 { font-size: 22px; }
.market-heading p { color: var(--muted); font-size: 14px; }
.timeframes { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--pill); }
.timeframes button { min-width: 44px; min-height: 36px; padding: 0 10px; border: 0; border-radius: var(--pill); background: transparent; color: var(--text); font: 500 13px var(--mono); cursor: pointer; }
.timeframes button.is-selected { background: var(--mint); color: var(--mint-ink); }
.market-quote { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 10px; }
.market-quote strong { color: var(--ink); font: 500 30px/1.1 var(--mono); letter-spacing: -.02em; }
.market-quote span { color: var(--mint); font: 500 14px var(--mono); }
.market-quote span[data-trend="down"] { color: var(--down); }
.market-quote small { color: var(--muted); font-size: 12px; }
.workspace-chart { height: 280px; }
.workspace-chart svg { width: 100%; height: 100%; }
.chart-axis { display: flex; justify-content: space-between; padding-top: 8px; color: var(--muted); font: 12px var(--mono); }
.research-panel { padding: 22px 22px 24px; border-left: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.research-panel h3 { margin-bottom: 10px; }
.research-panel > p:not(.label) { color: var(--text); font-size: 15px; }
.research-levels { display: grid; gap: 2px; margin-top: 22px; }
.research-levels div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.research-levels dt { color: var(--muted); }
.research-levels dd { color: var(--ink); font-family: var(--mono); }

/* Signals feature: large glowing card, copy left, stacked cards right */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding: clamp(28px, 5.5vw, 72px); }
.ticks { display: grid; gap: 14px; margin: 26px 0 34px; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 14px; color: var(--text); }
.ticks li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 242, 164, .16); }
.review-feedback { min-height: 1.6em; margin-top: 14px; color: var(--muted); font-size: 14px; }
.feature__stack { display: grid; }
/* Subscribe section: the plan card reuses the order-review card surface. */
.plan { padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, #10271d, #08130e); box-shadow: 0 0 0 1px rgba(46, 242, 164, .16), 0 32px 60px -28px rgba(0, 0, 0, .9); }
.plan__head { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 20px; color: var(--muted); font-size: 15px; }
.plan__price b { color: var(--ink); font: 400 clamp(38px, 5vw, 52px)/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .fields dd { font-family: var(--font); }
.plan__button { width: 100%; margin-top: 22px; }
.plan__button:disabled { opacity: .6; cursor: progress; }
.plan__note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.stack-card { padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(3, 10, 7, .72); }
.stack-card--back { margin-right: 44px; padding-bottom: 50px; opacity: .78; }
.stack-card--front { position: relative; margin: -30px 0 0 44px; background: linear-gradient(180deg, #10271d, #08130e); box-shadow: 0 0 0 1px rgba(46, 242, 164, .16), 0 32px 60px -28px rgba(0, 0, 0, .9); }
.stack-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; color: var(--ink); font-weight: 500; }
.stack-card__note { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.signal-title { margin-bottom: 8px; color: var(--ink); font: 500 14px var(--mono); }
.fields div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fields dt { color: var(--muted); }
.fields dd { color: var(--ink); font-family: var(--mono); }
.stack-card__time { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 13px; }
.order-state { margin-left: auto; padding: 4px 10px; white-space: nowrap; border: 1px solid var(--line-2); border-radius: var(--pill); color: var(--text); font-size: 12px; font-weight: 400; }
.order-state[data-done="true"] { border-color: rgba(46, 242, 164, .45); background: var(--mint-soft); color: var(--mint); }

/* Risk mosaic: the planner is the main cell, the rest support it */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.cell { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 28px; }
.cell__head p { margin-top: 6px; color: var(--text); font-size: 15px; }
.cell--planner { grid-column: 1 / span 2; }
.cell--levels { grid-column: 3; grid-row: 1 / span 2; }
.planner { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 32px; }
.gauge { position: relative; width: 100%; max-width: 190px; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; }
.gauge__track { fill: none; stroke: rgba(173, 255, 219, .1); stroke-width: 8; }
.gauge__fill { fill: none; stroke: var(--mint); stroke-width: 8; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(46, 242, 164, .6)); transition: stroke-dasharray .3s; }
.gauge__value { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font: 500 26px var(--mono); }
.risk-account { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.risk-account strong { color: var(--ink); font: 500 18px var(--mono); }
.risk-input-heading { display: flex; justify-content: space-between; margin: 18px 0 6px; font-size: 14px; }
.risk-input-heading label { color: var(--text); }
.risk-input-heading output { color: var(--ink); font-family: var(--mono); }
input[type="range"] { width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(173, 255, 219, .18); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(173, 255, 219, .18); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--mint); }
input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; border: 3px solid var(--bg); border-radius: 50%; background: var(--mint); -webkit-appearance: none; appearance: none; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--bg); border-radius: 50%; background: var(--mint); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font: 12px var(--mono); }
.risk-result { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding: 14px 16px; border: 1px solid rgba(46, 242, 164, .25); border-radius: var(--radius); background: var(--mint-soft); font-size: 14px; }
.risk-result output { color: var(--mint); font: 500 22px var(--mono); }
.risk-note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.levels { width: 100%; height: auto; margin-top: auto; overflow: visible; }
.levels__line { stroke-width: 1; stroke-dasharray: 4 5; }
.levels__line--tp { stroke: var(--mint); }
.levels__line--entry { stroke: rgba(241, 247, 243, .5); }
.levels__line--sl { stroke: var(--down); }
.levels__price { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(46, 242, 164, .5)); }
.levels__dot { fill: var(--mint); }
.levels text { fill: var(--text); font: 12px var(--mono); }
.flow-chips { display: flex; align-items: center; margin-top: auto; padding: 0; list-style: none; }
.flow-chips li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--pill); color: var(--text); font-size: 13px; white-space: nowrap; }
.flow-chips li + li { position: relative; margin-left: 26px; }
.flow-chips li + li::before { content: ""; position: absolute; top: 50%; right: 100%; width: 26px; height: 1px; background: var(--line-2); }
.flow-chips .is-end { border-color: rgba(46, 242, 164, .5); background: var(--mint-soft); color: var(--mint); }
.unplugged { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 13px; }
.unplugged > span:not(.unplugged__gap) { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--pill); color: var(--text); white-space: nowrap; }
.unplugged__gap { flex: 1; min-width: 0; padding-bottom: 6px; border-bottom: 1px dashed var(--muted); color: var(--muted); font: 11px var(--mono); text-align: center; }

/* Questions: a vertical line with one marker per question */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); }
.faq__intro > p:not(.tag) { margin-top: 18px; color: var(--text); font-size: 17px; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 7px; width: 1px; background: linear-gradient(var(--mint), rgba(46, 242, 164, .08)); }
.timeline li { position: relative; padding: 0 0 34px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: 0; width: 15px; height: 15px; border: 2px solid var(--mint); border-radius: 50%; background: var(--bg); box-shadow: 0 0 12px rgba(46, 242, 164, .45); }
.timeline h3 { font-size: 18px; }
.timeline p { margin-top: 6px; color: var(--text); }

/* Closing card with the waitlist form */
.section--closing { padding-top: clamp(24px, 4vw, 48px); }
.closing { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 40px; padding: clamp(28px, 5.5vw, 72px); overflow: hidden; }
.closing__copy > p:not(.tag) { margin-top: 16px; color: var(--text); font-size: 17px; }
.waitlist-form { position: relative; max-width: 540px; }
.waitlist-form > label { display: block; margin: 30px 0 10px; color: var(--text); font-size: 14px; }
.email-row { display: flex; gap: 10px; }
.email-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: var(--pill); background: rgba(0, 0, 0, .4); color: var(--ink); }
.email-row input::placeholder { color: var(--muted); }
.email-row input:focus-visible { border-color: var(--mint); }
.email-row .btn { min-height: 48px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.form-note a, .form-status a { color: var(--text); text-underline-offset: 3px; }
.form-status { min-height: 1.5em; margin-top: 10px; color: var(--mint); font-size: 14px; }
.form-status[data-error="true"] { color: var(--down); }
.closing__art { display: grid; place-items: center; }
/* The closing mark drawn in characters: face glyphs, a dim extruded edge and a few lit blocks. app.js builds it from #i-supra. */
.ascii-mark { margin: 0; color: rgba(46, 242, 164, .16); font: 400 9px/10px var(--mono); letter-spacing: 2.6px; white-space: pre; user-select: none; }
.ascii-mark .t1 { color: rgba(46, 242, 164, .42); }
.ascii-mark .t2 { color: rgba(46, 242, 164, .7); }
.ascii-mark .t3 { color: var(--mint); text-shadow: 0 0 8px rgba(46, 242, 164, .55); }
.ascii-mark .te { color: var(--mint-hover); }
.ascii-mark .th { background: var(--mint); color: var(--mint-ink); box-shadow: 0 0 12px rgba(46, 242, 164, .55); }

/* Footer */
.footer { overflow: hidden; padding: clamp(32px, 4vw, 48px) 0 32px; border-top: 1px solid var(--line); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; color: var(--muted); font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.trademark-note { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* Legal pages (privacy.html, terms.html) */
.legal-page { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 96px; }
.legal-page .nav__logo { display: inline-flex; gap: 10px; min-height: 44px; align-items: center; margin-bottom: 40px; color: var(--mint); text-decoration: none; }
.legal-page h1 { margin-bottom: 12px; font-size: clamp(36px, 6vw, 56px); }
.legal-page h2 { margin: 40px 0 10px; font-size: 24px; letter-spacing: -.015em; }
.legal-page p, .legal-page li { color: var(--text); }
.legal-page p + p { margin-top: 12px; }
.legal-page a { color: var(--mint); text-underline-offset: 3px; }
.legal-page form { margin: 18px 0 20px; }
.legal-page .form-status { color: var(--text); }

/* Below 1080px: workspace and mosaic regroup */
@media (max-width: 1079px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .watchlist { border-right: 0; border-bottom: 1px solid var(--line); }
  .watchlist-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .research-panel { border-left: 0; border-top: 1px solid var(--line); }
  .research-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .research-levels div { flex-direction: column; gap: 2px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--planner { grid-column: 1 / -1; }
  .cell--levels { grid-column: 1; grid-row: auto; }
  .cell--mt5 { grid-column: 2; }
  .cell--demo { grid-column: 1 / -1; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__item:nth-child(3) { border-left: 0; }
  .strip__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Below 860px: the capsule nav becomes a Menu panel, two-column cards stack */
@media (max-width: 859px) {
  :root { --nav-h: 68px; }
  .nav__bar { grid-template-columns: 1fr auto; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__menu { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border-radius: 20px; background: rgba(7, 16, 12, .96); }
  .site-nav[data-open="true"] .nav__menu { display: flex; }
  .nav__link { padding: 13px 16px; border-radius: 12px; font-size: 16px; }
  .nav__link[aria-current] { background: rgba(46, 242, 164, .08); }
  .nav__link[aria-current]::before { display: none; }
  .nav__go { display: flex; justify-content: center; align-items: center; gap: 10px; width: auto; height: 50px; margin: 6px 0 0; padding: 0 18px; border-radius: 14px; font-weight: 600; }
  .nav__go-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .section-head--split > p:not(.tag) { margin-top: 16px; }
  .feature, .closing, .faq { grid-template-columns: minmax(0, 1fr); }
  .closing__art { display: none; }
  .planner { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
}

/* Below 620px: phone layout */
@media (max-width: 619px) {
  body { font-size: 15px; }
  .hero__lead { font-size: 16px; }
  .btn-row--center .btn { flex: 1 1 100%; }
  .strip { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .strip__item { padding: 24px 22px 18px; }
  .strip__item + .strip__item { border-left: 0; border-top: 1px solid var(--line); }
  .watchlist-buttons { grid-template-columns: minmax(0, 1fr); }
  .market-main { padding: 18px 16px; }
  .market-heading { flex-direction: column; }
  .workspace-chart { height: 200px; }
  .research-levels { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .research-levels div { flex-direction: row; }
  .terminal__status { margin-left: 0; }
  .stack-card--back { margin-right: 18px; }
  .stack-card--front { margin-left: 18px; }
  .bento { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .cell--levels, .cell--mt5 { grid-column: 1; }
  .cell { padding: 22px; }
  .planner { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .gauge { max-width: 150px; }
  .planner__controls { width: 100%; }
  .flow-chips li + li { margin-left: 16px; }
  .flow-chips li + li::before { width: 16px; }
  .email-row { flex-direction: column; }
  .email-row .btn { width: 100%; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
