/* O8EN Trading website
   Layout: one left-aligned 1180px column, hairline rules, long quiet sections; the single bold moment is the hero chart.
   Colour carries meaning: each system has one hue, benchmarks are grey, the UI itself stays neutral.
   Tokens come from the dashboard design system (ui/style.py): ink #0C0D10, panel #101216, text #ECEAE3, cyan accent. */

:root {
  --bg: #0C0D10;
  --bg-2: #101216;
  --bg-3: #15181D;
  --line: #22252B;
  --line-2: #33363D;
  --grid: #1A1D23;
  --text: #ECEAE3;
  --text-2: #C9C6BD;
  --muted: #98958C;
  --accent: #38D5F2;
  --accent-hi: #7FE3F6;

  --auto: #9085E9;
  --auto-hi: #B7AEF4;
  --auto-dim: #6A64A6;
  --invest: #C98500;
  --invest-hi: #E8B04A;
  --radar: #2FB5D6;
  --radar-hi: #7FE3F6;
  --buy: #3DBE8B;
  --buy-hi: #86E3B9;
  --sell: #E8675A;
  --plan: #2FB5D6;
  --plan-lo: #1D7C93;
  --bench: #8B8F98;
  --bench-2: #5C6068;
  --ink: #ECEAE3;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gut: 16px;
  --nav-h: 64px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gut: 28px; } }
@media (min-width: 1024px) { :root { --gut: 40px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 70;
  background: var(--bg);
}

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}

/* ---------- type ---------- */
.h-display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; line-height: 1.02;
  font-size: clamp(46px, 7.4vw, 100px); text-wrap: balance;
}
.h-section {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.06;
  font-size: clamp(34px, 4.6vw, 58px); text-wrap: balance;
}
.h-sub { font: 500 21px/1.35 var(--sans); letter-spacing: -0.005em; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
.body-2 { color: var(--text-2); max-width: 62ch; text-wrap: pretty; }
.small { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: #FFFFFF; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--muted); background: var(--bg-2); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 9px; }

.link {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2);
  text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color .15s, color .15s;
}
.link:hover { text-decoration-color: var(--text); }
.link--lg { font-size: 17px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: rgba(12, 13, 16, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.brand { --h: 34px; --fs: 11.5px; display: inline-flex; align-items: flex-end; gap: 11px; flex: 0 0 auto; text-decoration: none; }
.brand img { display: block; height: var(--h); width: auto; }
/* "Trading" sits on the same baseline as the O8EN letters. The letters' baseline is 22% of the logo height above its bottom edge;
   with line-height 0 the text baseline falls about .375em below the (zero-height) box, so the box is lifted by both amounts. */
.brand__name { font: 600 var(--fs)/0 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
  margin-bottom: calc(var(--h) * .22 + var(--fs) * .375); transition: color .15s; }
.brand:hover .brand__name { color: var(--text); }
.brand--foot { --h: 40px; --fs: 13px; }
@media (max-width: 349px) { .brand__name { display: none; } }
.nav__links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__link, .dd__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 8px;
  font: 500 15.5px/1 var(--sans); color: var(--text-2); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color .15s, background-color .15s;
}
.nav__link:hover, .dd__btn:hover, .dd__btn[aria-expanded="true"] { color: var(--text); background: var(--bg-2); }
.nav__link[aria-current="page"], .dd__btn[data-current="true"] { color: var(--text); }
.dd { position: relative; }
.dd__btn svg { width: 12px; height: 12px; transition: transform .15s; }
.dd__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd__panel {
  position: absolute; left: -8px; top: calc(100% + 10px); width: min(640px, 92vw);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55);
}
.dd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dd__item {
  display: grid; grid-template-columns: 10px 1fr; column-gap: 14px; padding: 14px 14px 14px 16px; border-radius: 10px; text-decoration: none;
  transition: background-color .12s;
}
.dd__item:hover { background: var(--bg-3); }
.dd__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; background: var(--c, var(--muted)); }
.dd__name { font: 600 16px/1.3 var(--sans); color: var(--text); }
.dd__desc { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.dd__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px 6px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.nav__cta { flex: 0 0 auto; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--text); margin: 5px auto; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mnav { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__in { gap: 12px; }
  .nav__cta { margin-left: auto; }
  .burger { display: block; }
  .mnav {
    position: fixed; z-index: 55; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    background: var(--bg); overflow-y: auto; padding-block: 12px 40px;
  }
  .mnav[hidden] { display: none; }
  .mnav:not([hidden]) { display: block; }
  .mnav__group { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .mnav__label { font-size: 14px; color: var(--muted); padding: 6px 0 10px; }
  .mnav a { display: grid; grid-template-columns: 10px 1fr; column-gap: 14px; padding: 12px 0; text-decoration: none; }
  .mnav a .dd__name { font-size: 19px; }
  .mnav .mnav__plain { display: block; font: 500 20px/1.2 var(--sans); padding: 16px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
@media (max-width: 860px) { .section__head--split { grid-template-columns: 1fr; } }

/* ---------- status chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); background: var(--bg-2);
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero__top { display: grid; gap: 28px; }
.hero__title { margin-top: 8px; }
.hero__lead-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 8px; }
.hero__fig { margin-top: clamp(40px, 5vw, 64px); }

.page-hero { padding-top: clamp(44px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 88px); align-items: center; }
.page-hero__copy { display: grid; gap: 24px; align-content: start; }
.page-hero__tag { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-hero__name { font-family: var(--serif); font-weight: 400; font-size: clamp(58px, 9vw, 120px); line-height: .95; letter-spacing: -0.02em; }
.page-hero__tagline { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.12; color: var(--text); text-wrap: balance; letter-spacing: -0.005em; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* ---------- figures and charts ---------- */
.fig { margin: 0; }
.fig__panel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(16px, 2.4vw, 28px); --surface: var(--bg-2);
}
.fig__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.fig__title { font: 500 17px/1.35 var(--sans); color: var(--text); }
.fig__sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.fig__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--text-2); }
.fig__legend li { display: inline-flex; align-items: center; gap: 9px; }
.key { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--c); border-radius: 2px; }
.key--bar { width: 10px; height: 10px; border: 0; border-radius: 3px; background: var(--c); }
.fig__plot { position: relative; width: 100%; touch-action: pan-y; }
.fig__plot:focus-visible { outline-offset: 6px; border-radius: 8px; }
.fig__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig__cap { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 90ch; }
.fig__cap b { color: var(--text-2); font-weight: 500; }
.fig--image .fig__cap { margin-top: 12px; }

.viz-axis { fill: var(--muted); font: 400 11.5px/1 var(--mono); }
.viz-axis--x { text-anchor: middle; }
.viz-axis--y { text-anchor: end; }
.viz-grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.viz-base { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.viz-cross { stroke: var(--bench-2); stroke-width: 1; shape-rendering: crispEdges; }
.viz-leader { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.viz-lab { fill: var(--text); font: 500 12.5px/1 var(--sans); }
.viz-lab--sub { fill: var(--muted); font: 400 12px/1 var(--sans); }
.viz-note { fill: var(--text-2); font: 400 12px/1.2 var(--sans); }
.viz-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-dot { stroke: var(--surface); stroke-width: 2; }
.viz-hit { fill: transparent; cursor: crosshair; }
.viz-bar { transition: opacity .12s, filter .12s; }
.viz-bar.is-dim { opacity: .45; }

.viz-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 168px; max-width: 280px;
  background: #171A20; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5); font-size: 13.5px; line-height: 1.35; color: var(--text-2);
}
.viz-tip[hidden] { display: none; }
.viz-tip__h { font: 500 12.5px/1.2 var(--mono); color: var(--muted); margin-bottom: 8px; }
.viz-tip__r { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 0 8px; padding: 2px 0; }
.viz-tip__k { display: block; width: 14px; height: 0; border-top: 2px solid var(--c); }
.viz-tip__k--bar { height: 10px; width: 10px; border: 0; border-radius: 3px; background: var(--c); }
.viz-tip__n { color: var(--text-2); }
.viz-tip__v { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.viz-table { margin-top: 14px; }
.viz-table summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--muted);
  list-style: none; padding: 6px 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px;
}
.viz-table summary::-webkit-details-marker { display: none; }
.viz-table summary:hover { color: var(--text); }
.viz-table .tbl-wrap { margin-top: 10px; max-height: 340px; overflow: auto; }

/* ---------- tables ---------- */
.tbl-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; font-size: 15px; line-height: 1.45; }
.tbl th, .tbl td { padding: 13px 16px 13px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 500; color: var(--muted); font-size: 13.5px; white-space: nowrap; position: sticky; top: 0; background: var(--bg-2); }
.tbl td { color: var(--text-2); }
.tbl td:first-child, .tbl th:first-child { color: var(--text); }
.tbl .r { text-align: right; padding-right: 0; padding-left: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody th { position: static; background: transparent; font-size: inherit; font-weight: 500; color: var(--text); white-space: normal; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl--page th { background: var(--bg); }
.tbl .strong { color: var(--text); font-weight: 600; }
.sysname { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; white-space: nowrap; text-decoration: none; }
a.sysname:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.sysname i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; }

/* a table that becomes a stack of small cards on phones (labels come from data-label) */
@media (max-width: 700px) {
  .tbl--stack, .tbl--stack tbody { display: block; }
  .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl--stack tbody { display: grid; gap: 12px; }
  .tbl--stack tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 18px 18px 16px;
    border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2);
  }
  .tbl--stack tbody th { grid-column: 1 / -1; display: block; padding: 0; border: 0; font-size: 17px; }
  .tbl--stack tbody td, .tbl--stack tbody td.r {
    display: grid; gap: 3px; padding: 0; border: 0; text-align: left; white-space: normal; font-size: 18px; color: var(--text);
  }
  .tbl--stack td::before { content: attr(data-label); font-size: 13px; line-height: 1.35; color: var(--muted); }
}

/* chart twin tables stay compact on phones; the stacked ones sit in a box that grows instead of scrolling */
@media (max-width: 560px) {
  .tbl--page { font-size: 14px; }
  .tbl--page th, .tbl--page td { padding: 10px 8px 10px 0; }
  .tbl--page th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
  .tbl--page .r { padding-left: 8px; }
}
@media (max-width: 700px) { .viz-table .tbl-wrap.tbl-wrap--stack { max-height: none; overflow: visible; } }

.tbl--compare { min-width: 860px; }
.syscards { display: none; }
@media (max-width: 860px) {
  .tbl-wrap--compare { display: none; }
  .syscards { display: grid; gap: 16px; }
  .syscard { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); padding: 20px 20px 6px; }
  .syscard h3 { font-size: 20px; margin-bottom: 6px; }
  .syscard h3 .sysname { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.01em; }
  .syscard dl { margin: 0; }
  .syscard dl > div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
  .syscard dt { font-size: 13px; color: var(--muted); }
  .syscard dd { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
}
.tbl--compare th, .tbl--compare td { padding-right: 24px; }
.tbl--compare thead th { font-size: 15px; color: var(--text); padding-bottom: 16px; border-bottom-color: var(--line-2); }
.tbl--compare tbody th { color: var(--muted); font-weight: 400; font-size: 14.5px; white-space: nowrap; background: transparent; position: static; width: 150px; }

/* ---------- key numbers ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-block: 1px solid var(--line); }
.kpi { padding: 28px 24px 26px 0; display: grid; gap: 6px; align-content: start; }
.kpi + .kpi { border-left: 1px solid var(--line); padding-left: 28px; }
.kpi__v { font: 500 clamp(32px, 3.8vw, 46px)/1.05 var(--sans); letter-spacing: -0.025em; }
.kpi__l { font-size: 15px; color: var(--text-2); line-height: 1.4; }
.kpi__n { font-size: 13px; color: var(--muted); line-height: 1.4; }
.kpi__cmp { font-size: 13.5px; color: var(--muted); }
@media (max-width: 1000px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 22px 16px 20px 0; }
  .kpi + .kpi { border-left: 0; padding-left: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--line); padding-left: 18px; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- system list (home) ---------- */
.syslist { border-bottom: 1px solid var(--line); }
.sys {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3.4fr); gap: 20px clamp(24px, 4vw, 56px);
  align-items: center; padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line); text-decoration: none;
  transition: background-color .2s;
}
.sys:hover { background: linear-gradient(90deg, rgba(255,255,255,.02), transparent 70%); }
.sys__main { display: grid; gap: 10px; align-content: center; }
.sys__tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.sys__tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.sys__name { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.015em; }
.sys__line { color: var(--text-2); font-size: 18px; line-height: 1.45; max-width: 36ch; }
.sys__go { margin-top: 6px; font-size: 15.5px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; width: fit-content; }
.sys:hover .sys__go { text-decoration-color: var(--text); }
.sys__facts { display: grid; gap: 14px; }
.sys__fact { display: grid; grid-template-columns: 1fr; gap: 1px; font-size: 15.5px; line-height: 1.4; color: var(--text-2); }
.sys__fact b { font: 500 22px/1.15 var(--sans); letter-spacing: -0.015em; color: var(--text); }
.sys__thumb { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 10; position: relative; }
.sys__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.sys__thumb svg { width: 100%; height: 100%; display: block; }
@media (max-width: 960px) {
  .sys { grid-template-columns: 1fr 1fr; }
  .sys__main { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .sys { grid-template-columns: 1fr; } }

/* ---------- pillars (three columns, no cards) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 32px 36px 8px 0; display: grid; gap: 12px; align-content: start; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar p { color: var(--text-2); max-width: 36ch; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 26px 0 24px; }
  .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- feature blocks ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.feature--flip .feature__copy { order: 2; }
.feature__copy { display: grid; gap: 16px; align-content: start; }
.feature__copy .h-feat { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.feature__list { display: grid; gap: 10px; margin-top: 4px; }
.feature__list li { position: relative; padding-left: 20px; color: var(--text-2); max-width: 54ch; }
.feature__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1.5px; background: var(--c, var(--accent)); }
.feature--wide { grid-template-columns: 1fr; }
/* a feature that opens a section already has the section's own spacing and divider above it */
.section > .wrap:first-child > .feature { border-top: 0; padding-top: 0; }
.section > .wrap:last-child > .feature:last-child { padding-bottom: 0; }
/* neighbouring sections on the same background read as one flow, so they share the spacing */
.section:not(.section--panel):has(+ .section:not(.section--panel)) { padding-bottom: 48px; }
.section:not(.section--panel) + .section:not(.section--panel) { padding-top: 48px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 0; }
}

/* ---------- annotated image figure ---------- */
.shot { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #0A0A0A; }
.shot img { width: 100%; height: auto; }
.pin {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: var(--text); color: var(--bg); font: 600 13px/26px var(--sans); text-align: center;
  box-shadow: 0 0 0 3px rgba(12, 13, 16, .75);
}
.legend-list { display: grid; gap: 14px; counter-reset: pin; }
.legend-list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; color: var(--text-2); }
.legend-list li::before {
  counter-increment: pin; content: counter(pin); width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--bg);
  font: 600 13px/26px var(--sans); text-align: center; margin-top: 1px;
}
.legend-list b { color: var(--text); font-weight: 500; display: block; }

/* ---------- sequence steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.step { padding: 28px 32px 8px 0; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step::before { content: counter(step); font: 500 15px/1 var(--mono); color: var(--muted); }
.step p { color: var(--text-2); max-width: 34ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px 0; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- engines (wealth plan) ---------- */
.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.engine { padding: 28px clamp(20px, 2.4vw, 32px) 30px; display: grid; gap: 14px; align-content: start; }
.engine + .engine { border-left: 1px solid var(--line); }
.engine__role { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.engine__role i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.engine__role i + i { margin-left: -4px; }
.engine__name { font-family: var(--serif); font-size: clamp(32px, 3.2vw, 42px); line-height: 1; letter-spacing: -0.01em; }
.engine__sys { font: 500 15.5px/1.3 var(--sans); color: var(--text); }
.engine__row { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.engine__row span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) {
  .engines { grid-template-columns: 1fr; }
  .engine + .engine { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; }
.calc__form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field .field__l { font-size: 14.5px; color: var(--text-2); display: flex; justify-content: space-between; gap: 12px; }
.field output { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.field input[type="number"] {
  width: 100%; height: 46px; padding: 0 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px;
  font: 500 17px/1 var(--sans); font-variant-numeric: tabular-nums;
}
.field input[type="number"]:focus-visible { outline-offset: 2px; }
.field input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; background: transparent; }
.calc__mix { display: grid; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc__assume { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-block: 1px solid var(--line); margin-bottom: 22px; }
.result { padding: 18px 18px 16px 0; display: grid; gap: 4px; }
.result + .result { border-left: 1px solid var(--line); padding-left: 18px; }
.result__v { font: 500 clamp(24px, 2.6vw, 32px)/1.1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result__l { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.result__n { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .results { grid-template-columns: 1fr 1fr; }
  .result:nth-child(odd) { border-left: 0; padding-left: 0; }
  .result:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .result:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 500 18px/1.4 var(--sans); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 26px; color: var(--text-2); max-width: 68ch; display: grid; gap: 12px; }

/* ---------- notes (footnotes) ---------- */
.notes { display: grid; gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 100ch; }
.notes b { color: var(--text-2); font-weight: 500; }
.dag { color: var(--muted); text-decoration: none; font-size: .8em; vertical-align: super; line-height: 0; padding-left: 2px; }
.dag:hover { color: var(--text); }

/* ---------- cta band ---------- */
.cta { border-top: 1px solid var(--line); background: var(--bg-2); }
.cta__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.cta__side { display: grid; gap: 18px; justify-items: start; }
@media (max-width: 860px) { .cta__in { grid-template-columns: 1fr; } }

/* ---------- next / prev system links ---------- */
.nextrow { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.nextrow a { padding: 28px 0; text-decoration: none; display: grid; gap: 6px; }
.nextrow a + a { border-left: 1px solid var(--line); padding-left: clamp(20px, 4vw, 48px); }
.nextrow small { font-size: 14px; color: var(--muted); }
.nextrow span { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; }
.nextrow a:hover span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nextrow .r { text-align: right; justify-items: end; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 36px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot__brand { display: grid; gap: 16px; align-content: start; }
.foot__brand p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.foot__col h4 { font: 500 14px/1.2 var(--sans); color: var(--muted); margin-bottom: 14px; }
.foot__col ul { display: grid; gap: 10px; }
.foot__col a { text-decoration: none; color: var(--text-2); font-size: 15.5px; }
.foot__col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.foot__legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 110ch; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ---------- about ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; }
.portrait { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.portrait img { width: 100%; height: auto; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .portrait { max-width: 360px; } }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.photos { align-items: start; }
.photos .portrait { max-width: none; aspect-ratio: 3 / 4; }
.photos .portrait img { width: 100%; height: 100%; object-fit: cover; }
.photos figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .photos { grid-template-columns: 1fr 1fr; } .photos > :last-child { display: none; } }
.photos--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
@media (max-width: 760px) { .photos--pair > :last-child { display: block; } .photos--pair { gap: 12px; } }
.namemark { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 88px); align-items: center; }
.namemark__logo { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
@media (max-width: 860px) { .namemark { grid-template-columns: 1fr; } .namemark__logo { max-width: 420px; } }

.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 88px); border-top: 1px solid var(--line); }
.method li { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.method li b { font: 500 18px/1.35 var(--sans); color: var(--text); }
.method li span { color: var(--text-2); max-width: 52ch; }
@media (max-width: 760px) { .method { grid-template-columns: 1fr; } }

/* ---------- access ---------- */
.accessgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
@media (max-width: 860px) { .accessgrid { grid-template-columns: 1fr; } }

/* ---------- prose (disclosures) ---------- */
.prose { display: grid; gap: 18px; max-width: 72ch; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin-top: 28px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { display: grid; gap: 10px; padding-left: 20px; list-style: disc; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 500; }

/* ---------- 404 ---------- */
.lost { min-height: 56vh; display: grid; align-content: center; gap: 24px; padding-block: 80px; }

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

/* ======================================================================
   Additions (components used by the page generator)
   ====================================================================== */
.dd__name, .dd__desc { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nw { white-space: nowrap; }

/* comparison bars (horizontal) */
.cmp { display: block; }
.cmp .fig__head { margin-bottom: 8px; }
.cmp__row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 10px 22px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.cmp__label { font-size: 15px; line-height: 1.35; color: var(--text-2); }
.cmp__bars { display: grid; gap: 9px; }
.cmp__bar { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.cmp__name { color: var(--muted); white-space: nowrap; }
.cmp__track { position: relative; height: 12px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.cmp__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--c); border-radius: 4px; }
.cmp__val { min-width: 64px; text-align: right; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) {
  .cmp__row { grid-template-columns: 1fr; gap: 8px; }
  .cmp__bar { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
}

/* stacked example allocation */
.stack { display: flex; gap: 3px; height: 68px; border-radius: 12px; overflow: hidden; }
.stack__seg { flex: var(--w) 1 0; min-width: 0; background: var(--c); color: #0C0D10; padding: 10px 14px; display: flex; flex-direction: column; justify-content: space-between; font: 600 15px/1.2 var(--sans); white-space: nowrap; overflow: hidden; }
.stack__seg small { font: 500 13px/1.2 var(--sans); opacity: .82; }
.stack__cap { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.stack__seg small b { font-weight: 600; }
.stack__legend { display: none; }
@media (max-width: 700px) {
  .stack { height: 46px; }
  .stack__seg { padding: 0 10px; justify-content: center; }
  .stack__n, .stack__s { display: none; }
  .stack__seg small { font-size: 14px; opacity: 1; }
  .stack__legend { display: grid; gap: 8px; margin-top: 14px; }
  .stack__legend li { display: grid; grid-template-columns: 12px auto 1fr; align-items: center; gap: 4px 10px; font-size: 14.5px; color: var(--text-2); }
  .stack__legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
  .stack__legend b { font-weight: 500; color: var(--text); }
  .stack__legend span { color: var(--muted); }
}

/* home founder strip */
.founder--home { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); align-items: center; }
.founder--home .portrait { max-width: 240px; }
@media (max-width: 860px) { .founder--home { grid-template-columns: 1fr; } }
.founder__copy { display: grid; gap: 18px; align-content: start; }

/* quiet callout */
.callout { border-left: 2px solid var(--c, var(--line-2)); padding: 2px 0 2px 22px; display: grid; gap: 8px; max-width: 70ch; }
.callout b { font: 500 17px/1.4 var(--sans); color: var(--text); }
.callout p { color: var(--text-2); }

/* two figures side by side */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 960px) { .pair { grid-template-columns: 1fr; } }

/* gallery of annotated screenshots */
.gallery { display: grid; gap: clamp(36px, 5vw, 64px); }
.gallery__item { display: grid; gap: 16px; }
.gallery__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.gallery__head h3 { font: 500 21px/1.3 var(--sans); }
.gallery__head span { font-size: 14px; color: var(--muted); }
.gallery__item p { color: var(--text-2); max-width: 74ch; }
.gallery__item .shot { background: #0A0A0A; }

/* rating scale (entries and exits) */
.scale { display: grid; gap: 16px; }
.scale__row { display: grid; grid-template-columns: 78px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.scale__lab { display: flex; align-items: center; font-size: 14px; color: var(--muted); }
.scale__step { display: flex; align-items: center; gap: 10px; padding: 14px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); font-size: 15px; color: var(--text); min-width: 0; }
.scale__step i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--c); }
.scale__step--hi { background: var(--bg-3); font-weight: 600; }
@media (max-width: 560px) { .scale__row { grid-template-columns: 1fr 1fr 1fr; } .scale__lab { grid-column: 1 / -1; } .scale__step { padding: 12px 10px; font-size: 14px; } }

/* compact legend under a hero screenshot */
.legend-list--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 20px; font-size: 14.5px; line-height: 1.45; }
.legend-list--compact li { gap: 12px; grid-template-columns: 24px 1fr; }
.legend-list--compact li::before { width: 24px; height: 24px; font-size: 12.5px; line-height: 24px; }
@media (max-width: 560px) { .legend-list--compact { grid-template-columns: 1fr; } }

/* plan card rows */
.plan-rows { display: grid; }
.plan-rows > div { display: grid; grid-template-columns: 14px 128px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.plan-rows > div:first-child { border-top: 0; padding-top: 4px; }
.plan-rows i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); align-self: center; }
.plan-rows b { font-weight: 500; color: var(--text); }
.plan-rows span { color: var(--text-2); }
@media (max-width: 560px) { .plan-rows > div { grid-template-columns: 14px 1fr; } .plan-rows span { grid-column: 2; } }

/* weekly cadence + simple stat rows */
.facts--wide div { grid-template-columns: minmax(150px, 280px) 1fr; }
@media (max-width: 560px) { .facts--wide div { grid-template-columns: 1fr; gap: 2px; } }

/* hero actions row under the lead */
.hero .actions { margin-top: 6px; }

/* four-up pillars */
.pillars--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillars--4 .pillar { padding-right: 24px; }
.pillars--4 .pillar + .pillar { padding-left: 24px; }
@media (max-width: 1000px) { .pillars--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillars--4 .pillar:nth-child(odd) { padding-left: 0; border-left: 0; } .pillars--4 .pillar:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .pillars--4 { grid-template-columns: 1fr; } .pillars--4 .pillar { padding: 22px 0; } .pillars--4 .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.pillar h3 { font: 500 20px/1.3 var(--sans); }
.pillar .pillar__k { font-size: 14.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 9px; }
.pillar .pillar__k i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

/* print-safe small caps label used in tables */
.tbl .muted { color: var(--muted); }
.tbl-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* header spacing helpers */
.stack-sm > * + * { margin-top: 14px; }
.mt-lg { margin-top: clamp(40px, 5vw, 64px); }
.mt-md { margin-top: 28px; }

/* medium display heading (about page) */
.h-display--md { font-size: clamp(40px, 5.4vw, 76px); }
.ol-steps { display: grid; gap: 12px; padding-left: 22px; list-style: decimal; color: var(--text-2); }
.ol-steps li::marker { color: var(--muted); font-family: var(--mono); font-size: .9em; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }
.panel .actions { margin-top: 6px; }
.calc__out { min-width: 0; }
.calc .fig__panel { padding: clamp(14px, 2vw, 24px); }
.field__hint { font-size: 13px; color: var(--muted); }
details.assume { margin-top: 4px; }
details.assume summary { cursor: pointer; font-size: 14px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; list-style: none; }
details.assume summary::-webkit-details-marker { display: none; }
details.assume ul { margin-top: 12px; display: grid; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ======================================================================
   Round 2 additions
   ====================================================================== */

/* shaded stretch on a chart: the years used to build the rules */
.viz-band { fill: var(--auto); fill-opacity: .07; }
.viz-note--band { fill: var(--muted); font-size: 12px; }

/* quick-pick chips (calculator) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn {
  height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg);
  color: var(--text-2); font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.chipbtn:hover { border-color: var(--muted); color: var(--text); }
.chipbtn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.calc__facts { display: grid; margin: 0 0 4px; border-top: 1px solid var(--line); }
.calc__facts > div { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr); gap: 4px 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.calc__facts dt { color: var(--muted); }
.calc__facts dd { margin: 0; color: var(--text); }
.calc__range { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); max-width: 72ch; }
@media (max-width: 560px) { .calc__facts > div { grid-template-columns: 1fr; } }

/* O8Radar demonstration picture: a wide version for screens and a taller one for phones */
.radarfig { position: relative; }
.radarfig svg { display: block; width: 100%; height: auto; max-width: none; }
.radarfig--compact { display: none; }
@media (max-width: 640px) { .radarfig--wide { display: none; } .radarfig--compact { display: block; } }
.radarcap { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* signal chips, the same look as on the chart */
.sig {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--buy); color: #0C0D10;
  font: 600 12.5px/1 var(--mono); letter-spacing: .02em; white-space: nowrap;
}
.sig--sell { background: var(--sell); }
.sig--soft { background: transparent; color: var(--buy-hi); box-shadow: inset 0 0 0 1px rgba(61, 190, 139, .6); }
.sig--soft.sig--sell { color: #F08F85; box-shadow: inset 0 0 0 1px rgba(232, 103, 90, .65); }
.sig--ring { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 4.5px rgba(61, 190, 139, .6); }
.sig--ring.sig--sell { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 4.5px rgba(232, 103, 90, .6); }
.sigrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.siggroup { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.siggroup:first-child { border-top: 0; padding-top: 4px; }
.siggroup__l { font-size: 14px; color: var(--muted); }
.siggroup p { font-size: 14.5px; line-height: 1.55; color: var(--text-2); max-width: 54ch; }

/* volume profile illustration */
.vp { display: grid; gap: 3px; padding-block: 4px; }
.vp__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 14px; }
.vp__px { font: 400 11.5px/1 var(--mono); color: var(--muted); text-align: right; }
.vp__bar { width: var(--w); height: 11px; border-radius: 2px; background: #56606E; opacity: .6; }
.vp__row.is-va .vp__bar { background: #7C8CA0; opacity: .78; }
.vp__row.is-poc .vp__bar { background: var(--accent); opacity: 1; }

/* daily and 4-hour views */
.tf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tf__card { display: grid; gap: 10px; align-content: start; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg); }
.tf__chip {
  width: fit-content; height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 7px; border: 1px solid var(--line-2);
  font: 600 13px/1 var(--mono); color: var(--text-2);
}
.tf__card--hi .tf__chip { border-color: var(--accent); background: #1B2A30; color: var(--accent-hi); }
.tf__card b { font: 500 17px/1.3 var(--sans); color: var(--text); }
.tf__card span { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 480px) { .tf { grid-template-columns: 1fr; } }

/* a risk / reward bar under the plan card */
.rr { display: grid; gap: 8px; margin-top: 18px; }
.rr__bar { display: flex; height: 14px; border-radius: 5px; overflow: hidden; gap: 2px; }
.rr__bar i { display: block; height: 100%; }
.rr__bar .rr__risk { flex: 1 1 0; background: var(--sell); }
.rr__bar .rr__gain { flex: 2.4 1 0; background: var(--buy); }
.rr__key { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--muted); }

/* engines with their own numbers (wealth plan) */
.engine__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.engine__stat b { display: block; font: 500 clamp(24px, 2.4vw, 30px)/1.1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.engine__stat span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.engine__go { margin-top: 2px; font-size: 15.5px; width: fit-content; }

/* how to use: four short steps */
.howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: how; border-top: 1px solid var(--line); }
.howto li { counter-increment: how; display: grid; gap: 10px; align-content: start; padding: 28px 24px 8px 0; }
.howto li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.howto li::before {
  content: counter(how); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  font: 500 14px/1 var(--mono); color: var(--text-2);
}
.howto b { font: 500 19px/1.3 var(--sans); color: var(--text); }
.howto span { color: var(--text-2); max-width: 32ch; }
@media (max-width: 1000px) {
  .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howto li { padding: 26px 24px 24px 0; }
  .howto li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .howto li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .howto li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .howto { grid-template-columns: 1fr; }
  .howto li, .howto li:nth-child(odd), .howto li:nth-child(even) { padding: 22px 0; border-left: 0; }
  .howto li + li { border-top: 1px solid var(--line); }
}

/* Instagram */
.btn--ig { gap: 10px; }
.btn--ig .ig { flex: 0 0 auto; }
.follow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.follow .panel { gap: 14px; display: flex; flex-direction: column; }
.follow .panel .actions { margin-top: auto; padding-top: 6px; }
.follow__who { font-size: 14px; color: var(--muted); }
.follow__handle { font: 500 clamp(22px, 2.6vw, 30px)/1.15 var(--sans); letter-spacing: -0.01em; overflow-wrap: anywhere; }
@media (max-width: 860px) { .follow { grid-template-columns: 1fr; } }

/* a short row of proof points under a hero */
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.proof b { color: var(--text); font-weight: 500; }
