/* ZTEN homepage. Dark only, as designed. Fonts: Archivo (variable width) + JetBrains Mono. */
:root {
  --bg: #0c0b09; --fg: #f3efe6; --gold: #e3b44a; --gold-hi: #f3d58a;
  --muted: #c9c3b6; --muted2: #b9b3a6; --dim: #9a958a; --dim2: #8a857a; --dim3: #6f6a60;
  --line: #1f1d19; --line2: #2a2720; --line3: #3a362e; --grid: #17150f;
  --mono: 'JetBrains Mono', monospace;
  --gutter: clamp(18px, 4vw, 48px);
}
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'Archivo', sans-serif; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
img { max-width: 100%; }
@keyframes zpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.wrap { max-width: 1320px; margin: 0 auto; }
.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.grid-bg { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.thin { color: var(--gold); font-stretch: 72%; font-weight: 300; letter-spacing: -.01em; }

/* buttons */
.btn { display: inline-block; padding: 16px 24px; border-radius: 4px; font-size: 16px; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--bg); font-weight: 700; }
.btn-gold:hover { background: var(--gold-hi); color: var(--bg); }
.btn-line { border: 1px solid var(--line3); color: var(--fg); font-weight: 500; }
.btn-line:hover { border-color: var(--gold); color: var(--fg); }
.btn-dark { background: var(--bg); color: var(--gold); font-weight: 700; margin-top: 36px; }
.btn-dark:hover { background: var(--line); color: var(--gold-hi); }
.btn-sm { padding: 10px 16px; font-size: inherit; }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ctas-center { justify-content: center; margin-top: 40px; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gutter); background: rgba(12, 11, 9, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.logo { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.wordmark { font-family: 'DM Sans', sans-serif; font-weight: 750; font-size: 24px; letter-spacing: 0; }
.nav-right, .nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav-right { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { color: var(--muted2); }
.nav-links a:hover { color: var(--fg); }
.nav-toggle { display: none; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s, background-color .2s; }
.nav-toggle span { position: relative; margin: 0 auto; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background-color: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 999px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
}

/* hero */
.hero { position: relative; min-height: 100vh; padding: clamp(110px, 14vh, 160px) var(--gutter) 64px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-grid { max-width: 1400px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 5vw, 80px); align-items: center; }
.kicker-hero { color: var(--gold); margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 8px; background: var(--gold); animation: zpulse 1.6s ease-in-out infinite; flex-shrink: 0; }
.hero-title { margin: 0; font-weight: 900; font-stretch: 118%; font-size: clamp(52px, 8.4vw, 132px); line-height: .9; letter-spacing: -.03em; text-transform: uppercase; }
.hero-title span { display: block; }
.hero-lede { max-width: 520px; margin: 36px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* payoff chart */
.payoff { position: relative; font-family: var(--mono); min-width: 0; }
.payoff-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pf-status { border: 1px solid currentColor; padding: 4px 8px; border-radius: 3px; transition: color .3s; }
.payoff-svg { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-composite: intersect; }
.payoff-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 14px 18px; font-size: 12px; color: var(--muted); }
.payoff-foot b { color: var(--fg); font-weight: 700; }
.pf-pnl { font-weight: 700; }
.payoff-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 18px 16px; font-size: 11px; color: var(--dim2); }
.payoff-legend span { display: flex; align-items: center; gap: 6px; }
.payoff-legend i { width: 14px; display: inline-block; }
.lg-now { height: 3px; background: var(--gold); }
.lg-exp { height: 0; border-top: 2px dashed var(--dim3); }
.lg-gain { height: 8px; background: linear-gradient(rgba(63, 208, 138, .33), rgba(63, 208, 138, .03)); }
.lg-loss { height: 8px; background: linear-gradient(rgba(232, 93, 74, .03), rgba(232, 93, 74, .27)); }
/* price-in-range inset: half size, glass card, partly over the payoff's top-left corner */
.inset { position: absolute; width: 46%; top: 40px; left: -9%; padding: 8px 8px 4px; border: 1px solid var(--line2); border-radius: 8px; background: rgba(12, 11, 9, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 20px 48px rgba(0, 0, 0, .6); pointer-events: none; }
.inset-head { display: flex; justify-content: space-between; padding: 2px 4px 6px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim2); }
.inset svg { display: block; width: 100%; height: auto; }
@media (max-width: 699px) { .inset { left: 0; top: 46px; width: 50%; } }

/* strategy engine: 3 stages pinned while the section scrolls */
.engine { position: relative; height: 320vh; border-top: 1px solid var(--line); }
.engine-sticky { position: sticky; top: 0; height: 100vh; padding: calc(76px + 3vh) var(--gutter) 4vh; display: flex; flex-direction: row; gap: clamp(24px, 4vw, 64px); max-width: 1440px; margin: 0 auto; }
.engine-left { flex: 0 0 400px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.kicker-engine { color: var(--gold); margin-bottom: 18px; }
.stage { padding: 14px 0 14px 20px; border-left: 2px solid var(--line2); transition: all .4s ease; }
.stage.on { border-left-color: var(--gold); }
.stage-head { display: flex; align-items: baseline; gap: 14px; }
.stage-num { font-family: var(--mono); font-size: 13px; color: var(--dim3); }
.stage.on .stage-num { color: var(--gold); }
.stage-title { font-weight: 800; font-stretch: 112%; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.01em; text-transform: uppercase; color: #5f5a52; transition: color .4s; }
.stage.on .stage-title { color: var(--fg); }
.stage-body { display: none; margin-top: 12px; }
.stage.on .stage-body { display: block; }
.stage-product { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.stage-desc { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 440px; text-wrap: pretty; }
.shots { flex: 1 1 auto; min-height: 0; position: relative; }
.shot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.shot.past { transform: translateY(-24px); }
.shot.on { opacity: 1; transform: none; }
.shot-img { flex: 1 1 auto; min-height: 0; width: 100%; background-size: contain; background-position: center; background-repeat: no-repeat; }
.shot-cap { font-family: var(--mono); font-size: 11px; color: var(--dim); }
@media (max-width: 819px) {
  .engine-sticky { flex-direction: column; }
  .engine-left { flex-basis: auto; }
  .stage-desc { font-size: 15px; }
}

/* monitoring */
.monitor { padding: clamp(80px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; align-items: end; margin-bottom: 56px; }
.h2-mon { margin: 0; font-weight: 900; font-stretch: 115%; font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; }
.body-lg { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.mon-view { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (max-width: 899px) { .mon-view { grid-template-columns: 1fr; } }
.mon-shot { position: relative; }
.mon-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line2); border-radius: 10px; }
.mon-shot .mon-mark { position: absolute; left: 0; translate: -50% -50%; box-shadow: 0 0 0 4px var(--bg); }
.mon-mark { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--bg); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.mon-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.mon-legend li { display: flex; gap: 16px; align-items: baseline; }
.mon-legend li .mon-mark { translate: 0 6px; }
.mon-legend b { display: block; font-weight: 700; font-size: 17px; }
.mon-legend p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--dim); }
@media (max-width: 899px) { .mon-legend { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px 32px; } }
@media (max-width: 599px) { .mon-mark { width: 22px; height: 22px; font-size: 11px; } .mon-shot .mon-mark { box-shadow: 0 0 0 3px var(--bg); } }

/* philosophy, benchmark, pricing (gold band) */
.philosophy { background: var(--gold); color: var(--bg); padding: clamp(80px, 10vw, 150px) var(--gutter); }
.kicker-dark { margin-bottom: 28px; }
.h2-phil { margin: 0 0 72px; font-weight: 900; font-stretch: 118%; font-size: clamp(40px, 6.4vw, 104px); line-height: .92; letter-spacing: -.03em; text-transform: uppercase; max-width: 1100px; }
.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 2px solid var(--bg); }
.p-rows { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1299px) { .p-rows { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 699px) { .p-rows { grid-template-columns: 1fr; } }
.principle { padding: 28px 24px 32px 0; border-bottom: 1px solid rgba(12, 11, 9, .35); }
.p-num { font-family: var(--mono); font-size: 13px; margin-bottom: 18px; }
.p-title { font-weight: 800; font-stretch: 110%; font-size: clamp(20px, 1.75vw, 24px); line-height: 1.1; text-transform: uppercase; margin-bottom: 12px; }
.principle p { margin: 0; font-size: 16px; line-height: 1.5; max-width: 300px; text-wrap: pretty; }
.kpi { margin-top: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; align-items: center; background: var(--bg); color: var(--fg); border-radius: 8px; padding: clamp(28px, 4vw, 56px); }
.kicker-kpi { color: var(--gold); margin-bottom: 12px; }
.kpi-num { font-weight: 900; font-stretch: 120%; font-size: clamp(72px, 10vw, 150px); line-height: .85; letter-spacing: -.04em; color: var(--gold); }
.kpi-sub { font-family: var(--mono); font-size: 14px; margin-top: 12px; color: var(--muted); }
.kpi p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.pricing { margin-top: 88px; }
.pricing-head { gap: 24px 40px; margin-bottom: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.kicker-price { margin-bottom: 16px; }
.free { font-weight: 900; font-stretch: 120%; font-size: clamp(56px, 8vw, 128px); line-height: .85; letter-spacing: -.04em; text-transform: uppercase; }
.pricing-lede { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; font-weight: 500; max-width: 520px; text-wrap: pretty; }
.plan { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 24px 24px 24px 0; border-bottom: 1px solid rgba(12, 11, 9, .35); }
.plan-name { font-weight: 800; font-stretch: 110%; font-size: 24px; text-transform: uppercase; }
.plan-desc { margin-top: 6px; font-size: 15px; }
.plan-price { font-family: var(--mono); font-size: 14px; font-weight: 700; }

/* closing call to action */
.cta { padding: clamp(100px, 14vw, 200px) var(--gutter); text-align: center; }
.h2-cta { margin: 0 auto; max-width: 1200px; font-weight: 900; font-stretch: 118%; font-size: clamp(44px, 7.4vw, 120px); line-height: .9; letter-spacing: -.03em; text-transform: uppercase; }
.h2-cta .thin { letter-spacing: inherit; }
.cta p { margin: 32px auto 0; max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) 40px; }
.footer-top { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.footer-mark { display: flex; align-items: center; gap: 10px; }
.footer-tag { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.feedback { max-width: 1320px; margin: 40px auto 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.feedback a { font-weight: 700; }
.feedback span { display: block; margin-top: 4px; font-size: 13px; color: var(--dim2); }
.disclosures { max-width: 1320px; margin: 32px auto 0; }
.disclosures p { margin: 0 0 14px; font-size: 13px; line-height: 1.65; color: var(--dim2); text-wrap: pretty; }
.disclosures b { color: var(--muted); font-weight: 600; }
/* why ZTEN: bet vs range */
.why { padding: clamp(80px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--line); }
.h2-why, .h2-race { margin: 24px 0 0; font-weight: 900; font-stretch: 118%; line-height: .92; letter-spacing: -.03em; text-transform: uppercase; }
.h2-why { font-size: clamp(40px, 6.4vw, 104px); }
.h2-race { font-size: clamp(34px, 5.2vw, 84px); }
.h2-why .thin, .h2-race .thin { letter-spacing: inherit; }
@media (max-width: 699px) {
  .h2-why, .h2-race { line-height: 1; }
  .h2-why .thin, .h2-race .thin { display: inline-block; margin-top: .12em; letter-spacing: 0; }
}
.why-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin-top: 56px; }
.why-card { padding: 28px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg); }
.why-desk { border-color: rgba(227, 180, 74, .55); background: linear-gradient(180deg, rgba(227, 180, 74, .08), rgba(227, 180, 74, .015)); }
.why-head { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.why-desk .why-head { color: var(--gold); }
.why-big { margin: 16px 0 0; font-weight: 800; font-stretch: 110%; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; color: var(--muted2); }
.why-desk .why-big { color: var(--fg); }
.why-txt { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.why-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 20px; border-top: 1px solid var(--line2); }
.why-pair { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line2); font-size: 17px; }
.why-pair s { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--dim3); }
.why-pair i { font-style: normal; color: var(--gold); font-family: var(--mono); }
.why-pair b { font-weight: 700; color: var(--fg); }
.why-decay { margin: 20px 0 0; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--dim); }
.why-close { margin: 48px 0 0; max-width: 900px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; font-weight: 600; }
.why-link { display: inline-block; margin-top: 20px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.why-risk { margin: 36px 0 0; max-width: 900px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.65; color: var(--dim2); }

/* free backtesting: the step race */
.race { padding: clamp(80px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--line); overflow-x: clip; }
.race-rows { margin-top: 56px; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto auto; column-gap: clamp(16px, 4vw, 64px); }
.race-row { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.race-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 20px; }
.race-label span { display: block; margin-top: 6px; color: var(--dim2); }
.race-zten .race-label { color: var(--gold); }
.race-zten .race-label span { color: var(--gold-hi); }
/* narrow screens: each route is a timeline that draws downwards, dot then line to the next step */
.race-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; }
.race-steps li { counter-increment: st; position: relative; padding: 2px 0 24px 34px; font-size: 14px; line-height: 1.45; color: var(--muted2); }
.race-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; box-sizing: border-box; width: 22px; height: 22px; border: 2px solid var(--dim); border-radius: 50%; background: var(--bg); font-family: var(--mono); font-size: 10px; line-height: 18px; text-align: center; color: var(--dim2); }
.race-steps li::after { content: ''; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--dim); transform-origin: top; }
.race-steps li:last-child::after { content: none; }
.race-zten .race-steps li { font-size: 16px; font-weight: 700; color: var(--fg); }
.race-zten .race-steps li::before { border-color: var(--gold); background: var(--gold); color: var(--bg); }
.race-zten .race-steps li::after { left: 9px; width: 4px; background: var(--gold); }
.race-steps em { margin-left: 4px; font-style: italic; color: var(--dim2); }
.race-meter { display: block; margin: 6px 0 0; color: var(--dim2); letter-spacing: .06em; }
.race-meter.counting { color: #e85d4a; }
.race-loop { display: inline-block; margin-left: 6px; color: var(--dim2); font-weight: 400; }
.race-loop.spin { animation: race-spin 1s linear infinite; }
@keyframes race-spin { to { transform: rotate(360deg); } }
.race-zten .race-steps li.race-result { counter-increment: none; color: var(--gold-hi); font-weight: 800; }
.race-zten .race-steps li.race-result::before { content: '✓'; font-family: inherit; font-size: 12px; font-weight: 800; }
/* the race: steps light up in turn once the section scrolls into view (JS adds .armed; without it, everything shows) */
.race.armed .race-steps li { opacity: .14; transition: opacity .3s; }
.race.armed .race-steps li.lit { opacity: 1; }
.race.armed .race-steps li::after { transform: scaleY(0); transition: transform .35s linear .1s; }
.race.armed .race-steps li.lit::after { transform: none; }
.race.armed .race-them li.lit:last-child::before { border-color: #e85d4a; color: #e85d4a; }
/* out of credits: a rubber stamp, not a dialog */
.paywall { justify-self: start; margin: 0 0 0 34px; padding: 8px 14px; border: 2px solid #e85d4a; border-radius: 6px; background: var(--bg); font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: #e85d4a; transform: rotate(-4deg); }
.race.armed .paywall { opacity: 0; transform: rotate(-4deg) scale(1.8); transition: opacity .15s, transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.race.armed .paywall.show { opacity: 1; transform: rotate(-4deg); }

/* maze vs straight line (wide screens); the step lists stay for screen readers */
.race-maze { display: none; position: relative; margin-top: 48px; }
.race-maze svg { display: block; width: 100%; height: auto; overflow: visible; }
.race-maze .paywall { position: absolute; right: 0; top: 37.5%; translate: 0 -50%; margin: 0; }
@media (min-width: 1180px) {
  .race-maze { display: block; }
  .race-rows { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.mz-lane { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; fill: var(--dim); }
.mz-lane-z { fill: var(--gold); }
.mz-meter { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; fill: var(--dim2); }
.mz-meter.counting { fill: #e85d4a; }
.mz-start { fill: var(--dim); }
.mz-start-z { fill: var(--gold); }
.mz-path { fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mz-dead { stroke: var(--dim3); }
.mz-gate { stroke: #e85d4a; stroke-width: 3; stroke-linecap: round; }
.mz-dot { fill: var(--bg); stroke: var(--dim); stroke-width: 2; }
.mz-lbl { font-size: 14px; fill: var(--muted2); }
.mz-em { font-style: italic; fill: var(--dim2); }
.mz-x { font-size: 13px; fill: #e85d4a; }
.mz-coin { font-family: var(--mono); font-size: 15px; font-weight: 700; fill: #e85d4a; text-anchor: middle; }
.mz-ring { fill: none; stroke: #e85d4a; stroke-width: 2; }
.mz-ring.spin { stroke-dasharray: 7 6; animation: mz-dash 1s linear infinite; }
@keyframes mz-dash { to { stroke-dashoffset: -26; } }
.mz-unreached { fill: none; stroke: var(--line3); stroke-width: 2; stroke-dasharray: 4 6; }
.mz-dimlbl { font-size: 14px; fill: var(--dim3); }
.mz-z { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.mz-zdot { fill: var(--gold); }
.mz-zlbl { font-size: 15px; font-weight: 700; fill: var(--fg); }
.mz-ok { fill: var(--gold); }
.mz-okmark { font-size: 15px; font-weight: 800; fill: var(--bg); text-anchor: middle; }
.mz-restxt { font-size: 16px; font-weight: 800; fill: var(--gold-hi); }
.race.armed .mz-step :is(.mz-path, .mz-gate, .mz-z) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .4s linear; }
.race.armed .mz-step.lit :is(.mz-path, .mz-gate, .mz-z) { stroke-dashoffset: 0; }
.race.armed .mz-step :is(text, circle) { opacity: 0; transition: opacity .3s .25s; }
.race.armed .mz-step.lit :is(text, circle) { opacity: 1; }
.race-txt { margin: 40px 0 28px; max-width: 760px; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* anchor targets clear the fixed nav */
#why, #backtest, #engine, #philosophy, #pricing, .faq-group { scroll-margin-top: 88px; }

/* FAQ page */
.faq { padding: 140px var(--gutter) 100px; }
.faq-wrap { max-width: 880px; margin: 0 auto; }
.faq-h1 { margin: 18px 0 0; font-weight: 900; font-stretch: 118%; font-size: clamp(40px, 6.4vw, 84px); line-height: .92; letter-spacing: -.03em; text-transform: uppercase; }
.faq-h1 .thin { letter-spacing: inherit; }
.faq-lede { margin: 24px 0 0; max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.faq-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.faq-chips a { padding: 8px 14px; border: 1px solid var(--line3); border-radius: 999px; color: var(--muted2); background: var(--bg); }
.faq-chips a:hover { border-color: var(--gold); color: var(--fg); }
.faq-group { margin-top: 56px; }
.faq-h2 { margin: 0 0 12px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.faq-item { border-top: 1px solid var(--line2); background: var(--bg); }
.faq-item:last-child { border-bottom: 1px solid var(--line2); }
.faq-item summary { position: relative; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 8px; top: 16px; font-family: var(--mono); font-size: 22px; color: var(--gold); }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--gold-hi); }
.faq-a { padding: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.faq-a p { margin: 0 0 12px; text-wrap: pretty; }
.faq-a ul { margin: 0 0 12px; padding-left: 20px; }
.faq-a li { margin: 6px 0; }
.faq-a b { color: var(--fg); font-weight: 600; }

/* Connect Zerodha guide (connect-zerodha.html): radio tabs, numbered steps, notes */
.guide { margin-top: 56px; }
.guide > input { position: absolute; opacity: 0; pointer-events: none; }
.guide-tabs { display: flex; gap: 0; border: 1px solid var(--line3); border-radius: 999px; padding: 4px; width: max-content; max-width: 100%; }
.guide-tabs label { padding: 10px 20px; border-radius: 999px; cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted2); }
#t-desk:checked ~ .guide-tabs label[for="t-desk"], #t-phone:checked ~ .guide-tabs label[for="t-phone"] { background: var(--gold); color: var(--bg); font-weight: 700; }
#t-desk:focus-visible ~ .guide-tabs label[for="t-desk"], #t-phone:focus-visible ~ .guide-tabs label[for="t-phone"] { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.guide-panel { margin-top: 8px; }
.p-phone, #t-phone:checked ~ .p-desk { display: none; }
#t-phone:checked ~ .p-phone { display: block; }
.guide-panel .faq-h2 { margin-top: 44px; }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.guide-steps[start="7"] { counter-reset: step 6; } .guide-steps[start="8"] { counter-reset: step 7; } .guide-steps[start="10"] { counter-reset: step 9; }
.guide-steps > li { counter-increment: step; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--line2); font-size: 17px; line-height: 1.6; color: var(--muted); }
.guide-steps > li::before { content: counter(step); position: absolute; left: 0; top: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-family: var(--mono); font-size: 15px; display: grid; place-items: center; }
.guide-steps b, .guide-list b, .guide-note b { color: var(--fg); font-weight: 600; }
.guide-list { margin: 10px 0; padding-left: 20px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.guide-list li { margin: 6px 0; }
.guide-note { margin: 14px 0 4px; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--line); font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.guide-warn { color: var(--gold-hi); }
.guide code, .guide-list code, .faq-a code { font-family: var(--mono); font-size: .88em; color: var(--fg); background: var(--line2); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.guide kbd { font-family: var(--mono); font-size: .85em; border: 1px solid var(--line3); border-radius: 4px; padding: 0 5px; color: var(--fg); }
.guide-help { font-size: 16px; margin-top: 28px; }
@media (max-width: 599px) {
  .guide-tabs { width: 100%; } .guide-tabs label { flex: 1; text-align: center; padding: 10px 8px; font-size: 12px; }
  .guide-steps > li { padding-left: 44px; font-size: 16px; } .guide-steps > li::before { width: 30px; height: 30px; font-size: 13px; }
}
