/* ==========================================================================
   AIKA CAPITAL — design system
   Black, white, grey and one thin gold line. Poppins for everything,
   JetBrains Mono only for real code.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #0A0A0A;          /* page background */
  --panel: #111111;        /* raised surfaces */
  --rule: #232323;         /* neutral hairline */
  --rule-soft: #191919;
  --field: #0D0D0D;
  --field-line: #2C2C2C;
  --gold: #C9A86A;
  --gold-bright: #D4AF6A;
  --white: #FFFFFF;
  --grey: #9A9A9A;
  --grey-dim: #7E7E7E;
  --danger: #E5806C;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(84px, 11vw, 152px);
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  color: var(--white);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0; max-width: 65ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
strong, b { font-weight: 500; }
small { font-size: 0.8125rem; }
::selection { background: rgba(201, 168, 106, 0.35); color: var(--white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius); }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ---------- Type scale ---------- */
.t-display { font-size: clamp(40px, 8.2vw, 92px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 300; }
.t-h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.03em; }
.t-h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -0.025em; }
.t-h3 { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.35; font-weight: 400; letter-spacing: -0.01em; }
.t-lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--grey); max-width: 36em; }
.t-body { color: var(--grey); }
.t-small { font-size: 0.875rem; color: var(--grey); }
.t-micro { font-size: 0.78rem; line-height: 1.6; color: var(--grey); }
.t-white { color: var(--white); }
.t-gold { color: var(--gold); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--flush-top { padding-top: 0; }
.rule-top { border-top: 1px solid var(--rule-soft); }
.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2.25rem; }
.section-head { max-width: 40rem; }
.section-head > * + * { margin-top: 1rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .split__aside { position: sticky; top: calc(var(--header-h) + 40px); }
}
.split--form-first > .split__aside { order: 2; }
@media (min-width: 960px) { .split--form-first > .split__aside { order: 0; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 500 15px/1.25 var(--font); letter-spacing: 0.01em; text-align: center;
  cursor: pointer; text-wrap: balance; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-bright); }
.btn--ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--ghost:hover { background: rgba(201, 168, 106, 0.08); }
.btn--quiet { background: transparent; color: var(--grey); padding-inline: 4px; min-height: 44px; }
.btn--quiet:hover { color: var(--white); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

.link {
  color: var(--white);
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: color .2s var(--ease);
}
.link:hover { color: var(--gold); }
.link--grey { color: var(--grey); text-decoration-color: var(--rule); }
.link--grey:hover { color: var(--white); text-decoration-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 10, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand__kanji { height: 24px; width: auto; }
.brand__rule { width: 1px; height: 26px; background: var(--gold); opacity: .7; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__aika { font-weight: 400; font-size: 15px; letter-spacing: 0.52em; margin-right: -0.52em; color: var(--white); }
.brand__capital { font-weight: 400; font-size: 7.5px; letter-spacing: 0.68em; margin-right: -0.68em; margin-top: 6px; color: var(--white); opacity: .82; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }
.nav__link { font-size: 14px; font-weight: 400; color: var(--grey); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s var(--ease); white-space: nowrap; }
.nav__link:hover { color: var(--white); }
.nav__link[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--white); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 22px; height: 12px; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 11px; }
.nav-open .nav-toggle__bars::before { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: 6px; transform: rotate(-45deg); }

.nav-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
  background: var(--ink); padding: 28px var(--gutter) 40px;
  overflow-y: auto; display: none;
}
.nav-open .nav-panel { display: block; }
.nav-open { overflow: hidden; }
.nav-panel__list a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 22px; font-weight: 300; letter-spacing: -0.01em; color: var(--white);
}
.nav-panel__list a[aria-current="page"] { color: var(--gold); }
.nav-panel .btn { margin-top: 28px; width: 100%; }
.nav-panel__biz { display: block; margin-top: 20px; color: var(--grey); font-size: 14px; }

@media (min-width: 1120px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .nav-panel { display: none !important; }
  .nav-open { overflow: auto; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding-top: clamp(36px, 7vw, 104px); padding-bottom: clamp(28px, 6vw, 112px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; }
  .hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
}
.hero__kicker { color: var(--gold); font-size: clamp(15px, 1.4vw, 17px); font-weight: 400; letter-spacing: 0.01em; }
.hero__copy { container-type: inline-size; }
.hero__title { margin-top: 18px; font-size: clamp(40px, 8.2vw, 88px); font-size: clamp(38px, 12.4cqi, 88px); }
.hero__line {
  display: block; width: min(320px, 70%); height: 1px; margin-top: 30px;
  background: var(--gold); transform-origin: left center;
}
.hero__sub { margin-top: 28px; }
.hero__actions { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero__trust { color: var(--grey); font-size: 14.5px; letter-spacing: 0.01em; }
@media (max-width: 599px) { .hero__actions .btn { width: 100%; } }

/* One orchestrated moment: the gold line draws, then the code writes itself. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__line { transform: scaleX(0); animation: draw-line 1.1s var(--ease) .25s forwards; }
}
@keyframes draw-line { to { transform: scaleX(1); } }

/* ---------- Words → code panel ---------- */
.translate {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px 20px 20px;
}
@media (min-width: 600px) { .translate { padding: 30px 30px 26px; } }
.translate__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--grey); font-weight: 400; }
.translate__quote { margin-top: 10px; font-size: clamp(15.5px, 1.35vw, 17px); line-height: 1.6; color: var(--white); font-weight: 300; }
.translate__rule { height: 1px; background: var(--gold); margin: 22px 0 18px; transform-origin: left center; }
.translate__code {
  margin: 12px 0 0; padding: 0; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: #CFCFCF;
  -webkit-overflow-scrolling: touch; tab-size: 4;
}
@media (max-width: 599px) { .translate__code { font-size: 11.5px; } }
@media (max-width: 370px) { .translate__code { font-size: 10.5px; } }
.translate__code code { font-family: inherit; display: block; white-space: pre; }
.translate__code .ln { display: inline; }
.tok-c { color: var(--grey-dim); }
.tok-k { color: var(--gold); }
.tok-f { color: var(--white); }
.tok-s { color: var(--grey); }
.tok-n { color: var(--gold-bright); }
@media (prefers-reduced-motion: no-preference) {
  .js .translate:not(.is-written) .translate__rule { transform: scaleX(0); }
  .js .translate:not(.is-written) .ln { opacity: 0; }
  .js .translate.is-writing .translate__rule { transform: scaleX(1); transition: transform .8s var(--ease); }
  .js .translate.is-writing .ln { opacity: 1; transition: opacity .35s var(--ease); }
}

/* ---------- Steps (01 / 02 / 03) ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 56px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
.step { border-top: 1px solid var(--rule); padding-top: 26px; }
@media (min-width: 860px) { .step { padding-right: 40px; } }
.step__num { display: block; font-size: 15px; font-weight: 400; color: var(--gold); letter-spacing: 0.04em; }
.step__title { margin-top: 18px; }
.step__text { margin-top: 10px; color: var(--grey); }
@media (min-width: 640px) and (max-width: 859px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
@media (min-width: 860px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Audience trio ---------- */
.trio { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
.trio__item { padding: 28px 0; border-top: 1px solid var(--rule); }
.trio__item:last-child { border-bottom: 1px solid var(--rule); }
.trio__item p { margin-top: 10px; color: var(--grey); }
@media (min-width: 860px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trio__item, .trio__item:last-child { border: 0; border-left: 1px solid var(--rule); padding: 4px 36px 4px 28px; }
}

/* ---------- Ruled list ---------- */
.ruled-list > li { padding: 20px 0; border-top: 1px solid var(--rule); }
.ruled-list > li:last-child { border-bottom: 1px solid var(--rule); }
.ruled-list > li > strong { display: block; font-weight: 400; color: var(--white); font-size: 1.06em; }
.ruled-list > li > span { display: block; margin-top: 4px; color: var(--grey); }

/* ---------- Verdicts ---------- */
.verdicts { display: grid; gap: 1px; margin-top: 40px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 640px) { .verdicts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.verdict { background: var(--ink); padding: 22px 22px 24px; }
.verdict__word { display: block; font-size: 24px; font-weight: 300; letter-spacing: -0.02em; padding-top: 14px; border-top: 2px solid; }
.verdict--build .verdict__word { border-color: var(--gold); }
.verdict--fix .verdict__word { border-color: var(--white); }
.verdict--drop .verdict__word { border-color: var(--grey-dim); }
.verdict p { margin-top: 8px; font-size: 0.9rem; color: var(--grey); }

/* ---------- Term sheet ---------- */
.price { font-size: clamp(56px, 8vw, 96px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.price-meta { margin-top: 18px; color: var(--grey); }
.price-meta li + li { margin-top: 6px; }
.termsheet { border-top: 1px solid var(--rule); }
.termsheet__row { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .termsheet__row { grid-template-columns: 11rem minmax(0, 1fr); gap: 28px; } }
.termsheet dt { color: var(--grey); font-size: 0.9rem; padding-top: 2px; }
.termsheet dd { margin: 0; }
.termsheet dd > strong { display: block; font-weight: 400; }
.termsheet dd > span { display: block; margin-top: 4px; color: var(--grey); }
.standard-note { margin-top: 28px; padding-left: 18px; border-left: 1px solid var(--gold); color: var(--grey); }
.standard-note strong { color: var(--white); font-weight: 400; }

/* ---------- Proof stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
@media (min-width: 860px) { .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats--3 .stat:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .stats--3 .stat:first-child { grid-column: auto; } }
.stat__value { display: block; font-size: clamp(40px, 5.4vw, 64px); font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
.stats--4 .stat__value { font-size: clamp(32px, 3.6vw, 44px); }
.stat__label { display: block; margin-top: 12px; font-size: 0.875rem; color: var(--grey); max-width: 18em; }
.backtest-tag { display: block; color: var(--gold); font-size: 14px; font-weight: 400; }
.backtest-tag::before { content: ""; display: inline-block; vertical-align: middle; width: 22px; height: 1px; margin: -2px 12px 0 0; background: var(--gold); }
.proof-block { padding-top: 32px; border-top: 1px solid var(--rule); }
.proof-block + .proof-block { margin-top: 56px; }
.disclaimer { margin-top: 28px; font-size: 0.8rem; line-height: 1.65; color: var(--grey); max-width: 72ch; }
.disclaimer--caps { font-size: 0.72rem; letter-spacing: 0.01em; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 22px 0; font-size: clamp(17px, 1.5vw, 19px); font-weight: 400; letter-spacing: -0.01em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: 0 0 14px; height: 14px; margin-top: 7px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 1px; background: var(--gold); transition: transform .25s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 0 24px; color: var(--grey); }
.faq__a > * + * { margin-top: 12px; }
.faq__a a { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- Final CTA + business strip ---------- */
.cta-final__line { display: block; width: 120px; height: 1px; background: var(--gold); margin-bottom: 40px; }
.cta-final h2 { max-width: 12em; }
.cta-final .t-lead { margin-top: 20px; }
.cta-final__actions { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (max-width: 599px) { .cta-final__actions .btn { width: 100%; } }
.biz-strip { border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.biz-strip__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; padding-block: 30px; }
.biz-strip p { color: var(--grey); }

/* ---------- Inner page head ---------- */
.page-head { padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head__rule { display: block; width: 64px; height: 1px; background: var(--gold); margin-bottom: 32px; }
.page-head .t-lead { margin-top: 24px; }
.page-head__actions { margin-top: 32px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 48px; }
.timeline__item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 18px; padding-bottom: 40px; }
.timeline__item::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 1px; background: var(--rule); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:last-child::before { display: none; }
.timeline__num {
  width: 31px; height: 31px; border: 1px solid var(--gold); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 400; color: var(--gold); background: var(--ink); position: relative;
}
.timeline__when { display: block; font-size: 13px; color: var(--gold); font-weight: 400; margin-bottom: 4px; }
.timeline__title { font-size: 19px; font-weight: 400; letter-spacing: -0.01em; }
.timeline__text { margin-top: 6px; color: var(--grey); }
@media (min-width: 1024px) {
  .timeline--h { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
  .timeline--h .timeline__item { display: block; padding: 0 20px 0 0; }
  .timeline--h .timeline__item::before { left: 32px; right: 0; top: 15px; bottom: auto; width: auto; height: 1px; }
  .timeline--h .timeline__item:last-child::before { display: none; }
  .timeline--h .timeline__body { margin-top: 22px; }
  .timeline--h .timeline__title { font-size: 17px; }
  .timeline--h .timeline__text { font-size: 0.9rem; }
}

/* ---------- Agenda / numbered list ---------- */
.agenda > li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.agenda > li:last-child { border-bottom: 1px solid var(--rule); }
.agenda__time { color: var(--gold); font-size: 0.9rem; padding-top: 2px; }
.agenda li > div > strong { display: block; font-weight: 400; }
.agenda li > div > span { display: block; color: var(--grey); margin-top: 2px; }

/* ---------- Checklist ---------- */
.checklist > li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--rule); }
.checklist > li:last-child { border-bottom: 1px solid var(--rule); }
.checklist > li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 14px; border: 1px solid var(--gold); border-radius: 1px; }
.checklist--done > li::after { content: ""; position: absolute; left: 6px; top: 22px; width: 6px; height: 4px; border-left: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(-45deg); }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 40px; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font-weight: 400; color: var(--grey); font-size: 0.85rem; border-bottom-color: var(--gold); }
.compare thead th:last-child { color: var(--gold); }
.compare tbody th { font-weight: 400; color: var(--white); width: 34%; }
.compare td { color: var(--grey); }
.compare td:last-child { color: var(--white); }
.compare .dash { color: var(--grey-dim); }

/* ---------- Cards for use cases / quotes (hairline, no shadows) ---------- */
.cases { display: grid; gap: 1px; margin-top: 48px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case { background: var(--ink); padding: 28px 26px 30px; }
.case__who { display: block; font-size: 13.5px; color: var(--gold); font-weight: 400; }
.case h3 { margin-top: 14px; }
.case p { margin-top: 10px; color: var(--grey); }

.quotes { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote-card { border-top: 1px solid var(--gold); padding-top: 22px; }
.quote-card blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.quote-card figcaption { margin-top: 16px; font-size: 0.875rem; color: var(--grey); }
.quote-card figcaption strong { color: var(--white); font-weight: 400; display: block; }
.quote-card--placeholder { border-top-color: var(--rule); }
.quote-card--placeholder blockquote { color: var(--grey-dim); }

/* ---------- About ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) { .founder { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; } }
.founder__photo { aspect-ratio: 4 / 5; width: 100%; max-width: 420px; object-fit: cover; border: 1px solid var(--rule); background: var(--panel); }
.cv > li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--rule); }
.cv > li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .cv > li { grid-template-columns: 12rem minmax(0, 1fr); gap: 24px; } }
.cv__when { color: var(--grey); font-size: 0.9rem; padding-top: 2px; }
.cv li > div > strong { display: block; font-weight: 400; }
.cv li > div > span { display: block; color: var(--grey); margin-top: 4px; }
.principles { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principles li { background: var(--ink); padding: 24px; }
.principles li > strong { display: block; font-weight: 400; font-size: 1.05rem; }
.principles li > span { display: block; margin-top: 6px; color: var(--grey); }
.social-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }

/* ---------- Prose (legal) ---------- */
.prose { color: var(--grey); }
.prose h2 { color: var(--white); font-size: 1.35rem; font-weight: 400; letter-spacing: -0.01em; margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 0.9rem; }
.prose ul { padding-left: 1.1rem; list-style: disc; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.prose strong { color: var(--white); font-weight: 400; }

/* ---------- Forms ---------- */
.form-card {
  position: relative; background: var(--panel);
  border: 1px solid var(--rule); border-top: 1px solid var(--gold); border-radius: var(--radius);
  padding: 26px 20px 28px;
}
@media (min-width: 600px) { .form-card { padding: 38px 40px 40px; } }
.form-card__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 300; letter-spacing: -0.02em; }
.form-card__intro { margin-top: 8px; color: var(--grey); font-size: 0.95rem; }

.progress { margin-bottom: 26px; }
.progress__label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--grey); font-weight: 400; }
.progress__label b { color: var(--white); font-weight: 400; }
.progress__bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.progress__bar { height: 2px; background: var(--field-line); transition: background-color .3s var(--ease); }
.progress__bar.is-on { background: var(--gold); }
.form-card:not(.is-stepped) .progress { display: none; }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step + .form-step { margin-top: 28px; }
.is-stepped .form-step { display: none; }
.is-stepped .form-step.is-active { display: block; margin-top: 0; }
.form-step__legend { padding: 0; font-size: clamp(20px, 2vw, 24px); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 6px; }
.form-step__sub { color: var(--grey); font-size: 0.92rem; margin-bottom: 4px; }

.field { margin-top: 22px; }
.field__label { display: block; font-size: 15px; font-weight: 400; color: var(--white); }
.field__label .opt { color: var(--grey); font-weight: 300; }
.field__hint { display: block; margin-top: 4px; font-size: 13px; color: var(--grey); line-height: 1.5; }
.field__row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field__row--2 { grid-template-columns: 1fr 1fr; } }

.input, .select, .textarea {
  display: block; width: 100%; margin-top: 10px;
  background: var(--field); color: var(--white);
  border: 1px solid var(--field-line); border-radius: var(--radius);
  font: 300 16px/1.5 var(--font); padding: 13px 14px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 150px; resize: vertical; }
.textarea--short { min-height: 92px; }
.input::placeholder, .textarea::placeholder { color: #727272; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C9A86A' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.select:invalid { color: #7A7A7A; }
.select option { color: var(--white); background: var(--panel); }
.input:hover, .select:hover, .textarea:hover { border-color: #3A3A3A; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.16); }
.field--invalid .input, .field--invalid .select, .field--invalid .textarea { border-color: var(--danger); }
.field__error { display: block; margin-top: 8px; font-size: 13px; color: var(--danger); }
.field__error:empty { display: none; }
.counter { display: block; margin-top: 6px; font-size: 12.5px; color: var(--grey-dim); text-align: right; }
.counter.is-ok { color: var(--gold); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.form-actions .btn--gold { flex: 1 1 auto; }
@media (min-width: 600px) { .form-actions .btn--gold { flex: 0 0 auto; } }
.form-actions--end { justify-content: flex-end; }
.form-note { margin-top: 18px; font-size: 12.5px; color: var(--grey); line-height: 1.55; }
.form-note a { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.form-status {
  margin-top: 20px; padding: 14px 16px; border: 1px solid var(--danger); border-radius: var(--radius);
  font-size: 14px; color: var(--white); background: rgba(229, 128, 108, 0.06);
}
.form-status a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.booking__head > * + * { margin-top: 8px; }
.booking__done { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 14px; font-weight: 400; }
.booking__done::before { content: ""; width: 7px; height: 12px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg) translateY(-2px); }
.booking__frame { margin-top: 22px; min-height: 680px; border-top: 1px solid var(--rule); }
.booking__frame .calendly-inline-widget, .booking__frame iframe { min-width: 280px; }
.booking__placeholder { margin-top: 22px; padding: 22px; border: 1px dashed var(--field-line); border-radius: var(--radius); color: var(--grey); font-size: 0.95rem; }
.booking__placeholder > * + * { margin-top: 14px; }
.notice { margin-top: 16px; font-size: 12.5px; color: var(--gold); }

.preview-aside > * + * { margin-top: 32px; }
.mini-steps > li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--rule); }
.mini-steps > li:last-child { border-bottom: 1px solid var(--rule); }
.mini-steps__n { color: var(--gold); font-size: 14px; padding-top: 1px; }
.mini-steps li > div > strong { display: block; font-weight: 400; }
.mini-steps li > div > span { display: block; color: var(--grey); font-size: 0.92rem; margin-top: 2px; }
.assurances > li { padding-left: 20px; position: relative; color: var(--grey); font-size: 0.95rem; }
.assurances > li + li { margin-top: 10px; }
.assurances > li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 9px; height: 1px; background: var(--gold); }

/* ---------- Booking summary (thank-you) ---------- */
.booked-card { border: 1px solid var(--rule); border-left: 1px solid var(--gold); padding: 20px 22px; background: var(--panel); }
.booked-card__when { font-size: clamp(20px, 2.2vw, 24px); font-weight: 300; letter-spacing: -0.015em; }
.booked-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule-soft); padding-top: 64px; padding-bottom: 40px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 48px; } }
.footer__about p { margin-top: 20px; color: var(--grey); font-size: 0.92rem; max-width: 34ch; }
.footer__biz { display: inline-block; margin-top: 22px; font-size: 14px; }
.footer__col h2 { font-size: 13px; font-weight: 400; color: var(--grey); letter-spacing: 0.01em; }
.footer__col ul { margin-top: 14px; }
.footer__col li + li { margin-top: 10px; }
.footer__col a, .footer__col button { color: var(--white); font-size: 0.92rem; transition: color .2s var(--ease); }
.footer__col a:hover, .footer__col button:hover { color: var(--gold); }
.footer__col button { background: none; border: 0; padding: 0; font-family: inherit; font-weight: 300; cursor: pointer; text-align: left; }
.footer__compliance { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-soft); }
.footer__compliance p { font-size: 0.78rem; color: var(--grey); max-width: 90ch; }
.footer__compliance p + p { margin-top: 10px; }
.footer__compliance .risk { color: var(--white); }
.footer__copy { margin-top: 18px; font-size: 0.78rem; color: var(--grey-dim); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.94); border-top: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; min-height: 48px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
  max-width: 560px; margin-left: auto;
  background: var(--panel); border: 1px solid var(--rule); border-top: 1px solid var(--gold); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.consent p { font-size: 13.5px; color: var(--grey); }
.consent p a { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 10px; margin-top: 14px; }
.consent__actions .btn { flex: 1; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 48px; }
.only-mobile { display: block; }
.only-desktop { display: none; }
@media (min-width: 1024px) { .only-mobile { display: none; } .only-desktop { display: block; } }
.center-text { text-align: center; }
.max-36 { max-width: 13em; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Page-specific tweaks ---------- */
.page-head__title--form { max-width: 15em; }
@media (max-width: 599px) { .page-free-preview .page-head { padding-top: 32px; padding-bottom: 28px; } .page-free-preview .page-head__rule { margin-bottom: 22px; } }
@media (min-width: 860px) {
  .split .stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split .stats--3 .stat:first-child { grid-column: 1 / -1; }
}

/* ---------- Strategy template form ---------- */
@media (min-width: 600px) { .field__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 400; color: var(--white); line-height: 1.5; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.check--block { padding: 14px 16px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--field); font-weight: 300; font-size: 14px; color: #D0D0D0; }
.field--invalid .check--block { border-color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--field); cursor: pointer; font-size: 14px; font-weight: 400; color: var(--grey); user-select: none; transition: border-color .15s var(--ease), color .15s var(--ease); }
.chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.chip:has(input:checked) { border-color: var(--gold); color: var(--white); }
.chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.field--invalid .chip { border-color: var(--danger); }
.ind-row { margin-top: 16px; padding: 4px 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); }
.ind-row .field { margin-top: 14px; }
.ind-row__head { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 13px; color: var(--gold); font-weight: 400; }
.ind-row__remove { background: none; border: 0; padding: 4px 0; color: var(--grey); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ind-row__remove:hover { color: var(--white); }
.ind-add { margin-top: 16px; }
.callout { margin-top: 20px; padding: 16px 18px; border-left: 1px solid var(--gold); background: var(--field); }
.callout__title { font-size: 14px; font-weight: 400; color: var(--white); }
.callout__list { margin-top: 8px; }
.callout__list li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--grey); line-height: 1.55; }
.callout__list li + li { margin-top: 4px; }
.callout__list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--gold); }
.shot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.shot__title { font-size: 16px; font-weight: 400; color: var(--white); }
.shot > .field:first-of-type { position: relative; margin-top: 12px; }
.shot__drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 132px; padding: 18px; border: 1px dashed #3A3A3A; border-radius: var(--radius); background: var(--field); cursor: pointer; text-align: center; transition: border-color .15s var(--ease); }
.shot__drop:hover, .shot__drop.is-dragover { border-color: var(--gold); }
.shot__cta { font-size: 14.5px; font-weight: 500; color: var(--gold); }
.shot__meta { font-size: 12.5px; color: var(--grey); }
.shot__img { width: 100%; max-height: 260px; object-fit: contain; }
.shot--has-img .shot__drop { border-style: solid; border-color: var(--field-line); }
.input[list]::-webkit-calendar-picker-indicator { display: none !important; }
.shot__input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.field:has(.shot__input:focus-visible) .shot__drop { outline: 2px solid var(--gold); outline-offset: 3px; }
.field--invalid .shot__drop { border-color: var(--danger); }
.form-card--template .form-step__sub { max-width: 60ch; }

/* Talos v6 stats: 4 numbers, plus max drawdown once it's set in config.js */
.stats--talos .stat__value { font-size: clamp(32px, 3.6vw, 48px); }
.split .stats--talos:has(> .stat[data-config-show]:not([hidden])) > .stat:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .stats--talos.stats--row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* ===== DYNAMIC VISUALS ===== */
/* Candles (canvas) + equity curves (SVG) + step timelines. Logic in /assets/js/charts.js.
   Without JS, or with reduced motion, everything shows its final state. */
:root {
  --dv-black: #050505; --dv-panel: #0F0F10; --dv-line: #1E1E1E;
  --dv-gold: #C9A227; --dv-plat: #F5F5F5; --dv-ice: #A8B0B8; --dv-dd: #7A6262;
}
.dv-canvas, [data-dv-market] canvas { display: block; width: 100%; height: 100%; }
html:not(.js) [data-dv-market] { display: none; }

/* one market behind the home page (desktop): faint, fixed, never above text */
.dv-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.dv-bg ~ main, .dv-bg ~ .site-footer { position: relative; z-index: 1; }
@media (max-width: 767px), (prefers-reduced-motion: reduce) { .dv-bg { display: none; } }

/* hero: dedicated band where the chart draws at full strength */
.hero.dv-has-band { padding-bottom: 0; }
.hero.dv-has-band > .wrap { position: relative; z-index: 1; }
.dv-hero-band { position: relative; height: 150px; margin-top: 18px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
@media (min-width: 768px) { .dv-hero-band { height: 190px; margin-top: 24px; } }
@media (min-width: 1024px) {
  .hero.dv-has-band { flex-direction: column; align-items: stretch; padding-top: clamp(24px, 3.2vw, 48px); }
  .hero.dv-has-band > .wrap { flex: 1 0 auto; display: flex; align-items: center; }
  .hero.dv-has-band > .wrap > .hero__grid { width: 100%; }
  .dv-hero-band { flex: none; }
}
@media (min-width: 1024px) { .dv-hero-band { margin-top: -112px; height: clamp(150px, calc(100svh - 650px), 214px); } }
@media (min-width: 1100px) { .dv-hero-band { margin-top: -90px; height: clamp(150px, calc(100svh - 690px), 214px); } }

/* inner pages: faint band under the page head */
.page-head.dv-has-band { position: relative; padding-bottom: calc(clamp(40px, 6vw, 72px) + 46px); }
.dv-band { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; opacity: .42; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
@media (max-width: 599px) { .page-free-preview .page-head.dv-has-band { padding-bottom: 66px; } .dv-band { height: 38px; } }

/* final CTA: slow ticker along the bottom edge */
.cta-final.dv-has-ticker { position: relative; overflow: hidden; }
.cta-final.dv-has-ticker > .wrap { position: relative; z-index: 1; }
.dv-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; opacity: .16; pointer-events: none; }

/* ---- Two traders: illustrative equity curves ---- */
.dv-equity__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.dv-equity__head .t-h2 { max-width: 15em; }
.dv-toggle { display: inline-flex; border: 1px solid var(--dv-line); border-radius: 2px; }
.dv-toggle__btn { font: inherit; font-size: 13px; letter-spacing: .04em; color: var(--dv-ice); background: transparent; border: 0;
  padding: 10px 16px; min-height: 44px; cursor: pointer; transition: color .2s, background-color .2s; }
.dv-toggle__btn + .dv-toggle__btn { border-left: 1px solid var(--dv-line); }
.dv-toggle__btn:hover { color: var(--dv-plat); }
.dv-toggle__btn[aria-pressed="true"] { color: var(--dv-black); background: var(--dv-ice); }
.dv-toggle__btn[data-dv-only="sys"][aria-pressed="true"] { background: var(--dv-gold); }
.dv-toggle__btn:focus-visible { outline: 1px solid var(--dv-gold); outline-offset: 2px; }
.dv-equity__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
@media (min-width: 1024px) { .dv-equity__grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: center; } }
.dv-equity__plot { position: relative; }
.dv-eq { display: block; width: 100%; height: auto; overflow: visible; }
.dv-eq-stack { display: none; }
@media (max-width: 767px) {
  .dv-eq--wide { display: none; }
  .dv-eq-stack { display: grid; gap: 14px; }
}
.dv-eq__grid line { stroke: var(--dv-line); stroke-width: 1; }
.dv-eq__base { stroke: #2A2A2A; stroke-width: 1; stroke-dasharray: 4 6; }
.dv-eq__tag { font: 500 10.5px var(--font); letter-spacing: .14em; fill: var(--dv-ice); }
[data-curve="sys"] .dv-eq__tag, .dv-eq--panel[data-curve="sys"] .dv-eq__tag { fill: var(--dv-gold); }
.dv-eq__line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.dv-eq__line--disc { stroke: var(--dv-ice); stroke-width: 1.5; }
.dv-eq__line--sys { stroke: var(--dv-gold); stroke-width: 3; }
.dv-eq--panel .dv-eq__line--disc { stroke-width: 1.4; }
.dv-eq--panel .dv-eq__line--sys { stroke-width: 2.4; }
.dv-eq__dd--disc path { fill: var(--dv-dd); fill-opacity: .22; }
.dv-eq__dd--sys path { fill: var(--dv-gold); fill-opacity: .14; }
.dv-eq__tip--disc { fill: var(--dv-ice); }
.dv-eq__tip--sys { fill: var(--dv-gold); }
.dv-eq__hit { fill: none; stroke: transparent; stroke-width: 26; pointer-events: stroke; cursor: pointer; }
.dv-eq [data-curve], .dv-legend, .dv-eq--panel { transition: opacity .3s var(--ease); }
.dv-equity.is-only-disc [data-curve="sys"], .dv-equity.is-hover-disc [data-curve="sys"],
.dv-equity.is-only-sys [data-curve="disc"], .dv-equity.is-hover-sys [data-curve="disc"] { opacity: .16; }
.dv-equity.is-only-disc .dv-eq__hit, .dv-equity.is-only-sys .dv-eq__hit { opacity: 1; }
.dv-legend { padding: 18px 0 18px 16px; border-left: 2px solid var(--dv-ice); }
.dv-legend + .dv-legend { margin-top: 18px; }
.dv-legend--sys { border-left-color: var(--dv-gold); }
.dv-legend__name { font-size: 12px; letter-spacing: .12em; line-height: 1.6; color: var(--dv-ice); }
.dv-legend--sys .dv-legend__name { color: var(--dv-gold); }
.dv-legend__stat { margin-top: 8px; font-size: 14.5px; color: var(--dv-plat); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.dv-anim .dv-legend__stat { opacity: 0; transform: translateY(4px); }
.dv-anim .dv-legend__stat.is-on { opacity: 1; transform: none; }
.dv-meter { display: block; position: relative; width: 140px; height: 2px; margin-top: 14px; background: var(--dv-line); }
.dv-meter__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--dd, 0)); background: var(--dv-dd); }
.dv-legend--sys .dv-meter__fill { background: var(--dv-gold); }
html:not(.dv-anim) .dv-meter { display: none; }
.dv-equity__note { margin-top: 22px; font-size: 12.5px; color: var(--grey-dim); }
.dv-equity__end { position: relative; display: inline-block; margin-top: 40px; padding-bottom: 14px; font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .14em; color: var(--dv-plat); line-height: 1.5; }
.dv-equity__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--dv-gold); transform-origin: left; }
.dv-anim .dv-equity__rule { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.dv-anim .dv-equity.is-done .dv-equity__rule { transform: scaleX(1); }
.dv-equity--compact .dv-equity__head .t-h2 { font-size: clamp(24px, 2.6vw, 32px); }
@media (min-width: 1024px) { .dv-equity--compact .dv-equity__plot { max-width: 760px; } }

/* ---- Talos v6: illustrative path between the real figures ---- */
.dv-talos { margin-top: 40px; }
.dv-talos__plot { position: relative; }
.dv-talos__svg { display: block; width: 100%; height: auto; overflow: visible; }
.dv-talos__svg--narw { display: none; }
@media (max-width: 767px) { .dv-talos__svg--wide { display: none; } .dv-talos__svg--narw { display: block; } }
.dv-talos__line { fill: none; stroke: var(--dv-gold); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.dv-talos__dd { fill: var(--dv-gold); fill-opacity: .14; }
.dv-talos__peak { stroke: var(--dv-ice); stroke-width: 1; stroke-dasharray: 3 5; opacity: .6; }
.dv-talos__bracket { fill: none; stroke: var(--dv-ice); stroke-width: 1.2; }
.dv-talos__base { stroke: #2A2A2A; stroke-width: 1; stroke-dasharray: 4 6; }
.dv-talos__tip { fill: var(--dv-gold); }
.dv-talos__label { position: absolute; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--dv-plat);
  transition: opacity .4s var(--ease); }
.dv-talos__label--end { transform: translate(-100%, -170%); color: var(--dv-gold); }
.dv-talos__label--dd { left: var(--dd-x); top: var(--dd-y); transform: translate(-50%, 14px); color: var(--dv-ice); }
.dv-talos__label--start { transform: translate(0, 8px); color: var(--grey-dim); }
.dv-anim [data-dv-talos]:not(.is-dd) .dv-talos__label--dd, .dv-anim [data-dv-talos]:not(.is-end) .dv-talos__label--end { opacity: 0; }
.dv-talos__cap { margin-top: 14px; font-size: 12.5px; color: var(--grey-dim); }
@media (max-width: 767px) { .dv-talos__label { font-size: 10px; letter-spacing: .08em; } .dv-talos__label--dd { left: var(--pk-x); top: var(--pk-y); transform: translate(calc(-100% - 4px), calc(-100% - 8px)); } }

/* ---- How it works: steps light up, mini charts progress (--p: 0 → 1) ---- */
.step { position: relative; --p: 1; }
.step::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold); transform-origin: left; transform: scaleX(var(--p)); }
@media (min-width: 860px) { .steps > .step::after { right: 40px; } }
.dv-anim .step__num { opacity: calc(.45 + .55 * var(--p)); }
.dv-mini { display: block; width: 100%; max-width: 300px; height: auto; margin: 18px 0 2px; overflow: visible; }
.dv-mini text { font-family: var(--mono); font-size: 10px; }
.dv-mini__mess path { fill: none; stroke: var(--dv-ice); stroke-width: 1.1; opacity: calc(.75 - .62 * var(--p)); }
.dv-mini__lv { stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); }
.dv-mini__lv--tp { stroke: var(--dv-plat); } .dv-mini__lv--sl { stroke: var(--dv-ice); } .dv-mini__lv--entry { stroke: var(--dv-gold); stroke-width: 1.6; }
.dv-mini__txt { fill: var(--dv-ice); letter-spacing: .1em; opacity: clamp(0, calc(var(--p) * 2 - 1), 1); }
.dv-mini__txt--gold { fill: var(--dv-gold); }
.dv-mini__ln { fill: var(--dv-plat); clip-path: inset(0 calc((1 - clamp(0, calc(var(--p) * 3.4 - var(--i)), 1)) * 100%) 0 0); }
.dv-mini__axis { stroke: var(--dv-line); }
.dv-mini__eq { fill: none; stroke: var(--dv-gold); stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc(var(--p) * 2 - .6), 1)); }
.dv-mini__cal rect, .dv-mini__cal line { fill: none; stroke: var(--dv-ice); stroke-width: 1.2; }
.dv-mini__days circle { fill: #3A3A3A; }
.dv-mini__days .dv-mini__day { fill: var(--dv-gold); transform-box: fill-box; transform-origin: center; transform: scale(clamp(.4, calc(var(--p) * 1.4 - .2), 1)); }
.dv-mini__stamp { transform-box: fill-box; transform-origin: center; opacity: clamp(0, calc(var(--p) * 2.2 - 1.2), 1);
  transform: rotate(-7deg) scale(calc(1.45 - .45 * clamp(0, calc(var(--p) * 2.2 - 1.2), 1))); }
.dv-mini__stamp rect { fill: none; stroke: var(--dv-gold); stroke-width: 2; }
.dv-mini__stamp text { fill: var(--dv-gold); font-family: var(--font); font-size: 22px; font-weight: 600; letter-spacing: .22em; text-anchor: middle; }

/* ---- timelines on inner pages light up the same way ---- */
.timeline__item { --p: 1; }
.timeline__item::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 1px; background: var(--gold);
  transform-origin: top; transform: scaleY(var(--p)); }
.timeline__item:last-child::after { display: none; }
@media (min-width: 1024px) {
  .timeline--h .timeline__item::after { left: 32px; right: 0; top: 15px; bottom: auto; width: auto; height: 1px; transform-origin: left; transform: scaleX(var(--p)); }
}
.timeline__num { transition: background-color .35s var(--ease), color .35s var(--ease); }
.dv-anim .timeline__item.dv-lit .timeline__num { background: var(--gold); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .dv-legend__stat, .dv-equity__rule, .dv-talos__label, .timeline__num { transition: none !important; }
}
@media print { [data-dv-market], .dv-toggle, .dv-meter { display: none !important; } }
.dv-anim .stats--talos .stat__value { font-variant-numeric: tabular-nums; }
