:root {
  /* Palette B (v0.9.71, DEC-0143): navy, blue-teal and gold */
  --bg: #f4f7fa;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #4a5a70;
  --line: #dbe3ec;
  --brand: #0e6f93;
  --brand-ink: #ffffff;
  --gold: #8a6100;
  --loss: #c42f43;
  --ghost: #a6b3c2;
  --header: rgba(244, 247, 250, 0.92);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1220; --surface: #111c2e; --ink: #e8eef7; --muted: #a9b8cc; --line: #22314a;
    --brand: #22a7c9; --brand-ink: #06121c; --gold: #f2b544; --loss: #ff5c6c; --ghost: #3d5170;
    --header: rgba(10, 18, 32, 0.9); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1220; --surface: #111c2e; --ink: #e8eef7; --muted: #a9b8cc; --line: #22314a;
  --brand: #22a7c9; --brand-ink: #06121c; --gold: #f2b544; --loss: #ff5c6c; --ghost: #3d5170;
  --header: rgba(10, 18, 32, 0.9); color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--header); backdrop-filter: blur(8px);
}
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  background: var(--header); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand b { color: var(--gold); }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 16px; }
.signin { color: var(--ink); font-size: 15px; text-decoration: none; }
.btn {
  display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px;
  padding: 9px 16px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 860px) { .top nav { display: none; } .top-actions { margin-left: auto; } }
@media (max-width: 440px) { .signin { display: none; } .top .btn { white-space: nowrap; } }
@media (max-width: 600px) {
  .tick, .limit-label, .ghost-label, .alert text, .stop text { font-size: 20px; }
}

/* Hero */
main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.hero { display: grid; grid-template-columns: 1fr; gap: 32px; padding: clamp(40px, 8vw, 88px) 0 40px; align-items: center; }
@media (min-width: 940px) { .hero { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 20px; font-weight: 700; max-width: 20ch; text-wrap: balance; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 46ch; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.link { font-weight: 600; text-decoration: none; }
.fine { font-size: 14px; color: var(--muted); max-width: 70ch; }
.hero .fine { margin-top: 20px; }

.hero-chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 12px; }
.hero-chart svg { display: block; width: 100%; height: auto; font-family: inherit; }
.hero-chart figcaption { font-size: 13px; color: var(--muted); padding: 6px 4px 0; }
.axis { stroke: var(--line); stroke-width: 1.5; }
.tick { fill: var(--muted); font-size: 15px; }
.limit { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 7 6; }
.limit-label { fill: var(--gold); font-size: 15px; font-weight: 600; }
.pnl { fill: none; stroke: var(--loss); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.ghost { fill: none; stroke: var(--ghost); stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.ghost-label { fill: var(--muted); font-size: 15px; }
.alert circle { fill: var(--surface); stroke: var(--gold); stroke-width: 3; }
.alert text { fill: var(--ink); font-size: 15px; font-weight: 500; }
.stop circle { fill: var(--brand); stroke: var(--surface); stroke-width: 3; }
.stop text { fill: var(--ink); font-size: 15px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .pnl { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s ease-out 0.3s forwards; }
  .alert, .stop, .ghost, .ghost-label { opacity: 0; animation: appear 0.4s ease-out forwards; }
  .alert:nth-of-type(1) { animation-delay: 1.5s; }
  .alert:nth-of-type(2) { animation-delay: 1.9s; }
  .stop { animation-delay: 2.2s; }
  .ghost, .ghost-label { animation-delay: 2.7s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

.brokers { color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 8px 0 0; }
.brokers strong { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding: clamp(48px, 7vw, 80px) 0 0; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-intro { color: var(--muted); max-width: 62ch; margin: 0 0 28px; }

.controls { display: grid; grid-template-columns: 1fr; margin: 0; column-gap: 48px; }
@media (min-width: 760px) { .controls { grid-template-columns: 1fr 1fr; } }
.controls div { border-top: 1px solid var(--line); padding: 18px 0 20px; }
.controls dt { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.controls dd { margin: 0; color: var(--muted); max-width: 52ch; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0 14px; }
.plans { max-width: 560px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: transparent; }
.plan-now { border: 2px solid var(--gold); background: var(--surface); }
.plan h3 { margin: 0; font-size: 18px; }
.price { font-size: 32px; font-weight: 700; margin: 6px 0 8px; }
.price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan p { color: var(--muted); }
.plan-now p { color: var(--ink); }

.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; max-width: 72ch; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 20px;
  background: var(--brand); clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%); }

details { border-top: 1px solid var(--line); padding: 14px 0; max-width: 78ch; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }

/* Join */
.join { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 72px; }
@media (min-width: 900px) { .join { grid-template-columns: 1fr 1fr; gap: 56px; } }
.join-copy p { color: var(--muted); }
.contact { color: var(--ink); font-weight: 500; }
#waitlist { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; }
#waitlist label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
#waitlist input:not([type="checkbox"]), #waitlist select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
#waitlist fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
#waitlist legend { font-weight: 500; font-size: 15px; margin-bottom: 6px; }
#waitlist label.inline { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
#waitlist label.inline input { margin-top: 5px; accent-color: var(--brand); }
.consent { font-size: 14px; color: var(--muted); }
.opt { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.6em; font-size: 15px; }
.form-status.ok { color: var(--brand); font-weight: 600; }
.form-status.err { color: var(--loss); }

.foot { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 48px) 36px; color: var(--muted); font-size: 14px; }
.foot p { max-width: 96ch; margin: 0 auto 10px; }
.foot strong { color: var(--ink); }

/* Legal pages and footer links (v0.9.70) */
.doc { max-width: 76ch; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 48px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; margin: 8px 0 4px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc-version { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; background: var(--bg); }
.doc tr:last-child td { border-bottom: 0; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; max-width: 96ch; margin: 0 auto 12px; }
.legal-links a { color: var(--muted); font-size: 14px; }
.legal-links a:hover { color: var(--ink); }
