/* P Rich Academy — shared styles
   Layout concept: a trading terminal at night. Deep navy ground, gold for
   levels and actions, green/orange only for long/short meaning.
   To change the brand, edit the tokens below. Every page uses this file. */
:root {
  --ink: #070d1a;        /* page ground */
  --navy: #0b1426;       /* alt section ground */
  --panel: #101b31;      /* cards */
  --panel-2: #15223d;    /* raised cards */
  --line: #22314f;       /* hairlines */
  --line-2: #2f4369;
  --gold: #d9ae52;       /* levels, actions */
  --gold-2: #f0c96f;
  --gold-ink: #0b1426;   /* text on gold */
  --text: #f2eee4;
  --muted: #b3bccd;
  --dim: #8592ab;
  --long: #6fd3a2;       /* buy side only */
  --short: #f29b74;      /* sell side only */
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section.alt { background: var(--navy); border-block: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.h-xl { font-size: clamp(44px, 8vw, 96px); font-weight: 900; font-stretch: 85%; letter-spacing: -0.025em; line-height: 0.98; }
.h-lg { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; font-stretch: 90%; }
.h-md { font-size: clamp(24px, 3vw, 32px); font-weight: 800; font-stretch: 92%; }
.h-sm { font-size: 21px; font-weight: 700; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.tiny { font-size: 13px; color: var(--dim); line-height: 1.6; }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }
.long { color: var(--long); }
.short { color: var(--short); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 10px;
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 28px -10px rgba(217,174,82,.55); }
.btn-gold:hover { background: var(--gold-2); color: var(--gold-ink); }
.btn-line { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-line:hover { border-color: var(--gold); color: var(--text); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 14.5px; border-radius: 8px; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(7,13,26,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--display); font-weight: 900; font-stretch: 85%; font-size: 21px; letter-spacing: 0.05em; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-size: 15px; letter-spacing: 0; }
.brand span.gold { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .btn { margin-top: 14px; }
}

/* Hero */
.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 88px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(217,174,82,.13), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 .gold { color: var(--gold); }
.live-line { font-family: var(--mono); font-size: 15px; color: var(--gold); display: flex; gap: 10px; align-items: center; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--long); box-shadow: 0 0 0 0 rgba(111,211,162,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111,211,162,.55); } 70% { box-shadow: 0 0 0 10px rgba(111,211,162,0); } 100% { box-shadow: 0 0 0 0 rgba(111,211,162,0); } }
.spots { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.spots-bar { height: 6px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.spots-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 6px; }
.spots-label { font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }

/* Terminal card (hero chart) */
.terminal { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(217,174,82,.05) inset; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.chip.gold { border-color: rgba(217,174,82,.45); color: var(--gold); }
.terminal canvas { display: block; width: 100%; height: clamp(260px, 34vw, 380px); }
.terminal-foot { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); }
.terminal-foot div { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.terminal-foot div:last-child { border-right: 0; }
.terminal-foot b { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.terminal-foot span { font-size: 12px; color: var(--dim); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* Ticker strip */
.ticker { border-block: 1px solid var(--line); background: var(--navy); overflow: hidden; }
.ticker-track { display: flex; gap: 48px; padding-block: 16px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-family: var(--mono); font-size: 13.5px; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 12px; align-items: center; }
.ticker-track span::before { content: "◆"; color: var(--gold); font-size: 9px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Cards & grids */
.grid { display: grid; gap: var(--gap, 20px); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.raised { background: var(--panel-2); }
.card.hover { transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.card.hover:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .num { font-family: var(--mono); color: var(--gold); font-size: 13px; letter-spacing: .08em; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 12px; color: var(--muted); }
.check-list li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: rgba(217,174,82,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9ae52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.check-list li strong { color: var(--text); }

/* System flow */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; position: relative; counter-reset: step; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent); }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.flow-dot { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); font-family: var(--mono); color: var(--gold); font-size: 15px; position: relative; z-index: 1; }
.flow-step:hover .flow-dot { border-color: var(--gold); }
.flow-step h3 { font-size: 22px; font-weight: 800; margin-top: 8px; }
.flow-step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: minmax(0,1fr); gap: 0; }
  .flow::before { left: 33px; right: auto; top: 34px; bottom: 34px; width: 1px; height: auto; background: var(--line-2); }
  .flow-step { display: grid; grid-template-columns: 68px minmax(0,1fr); column-gap: 18px; padding-bottom: 26px; }
  .flow-step .flow-dot { grid-row: span 3; }
  .flow-step h3 { margin-top: 10px; }
}

/* Offers */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: stretch; }
.offer { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.offer.featured { background: linear-gradient(180deg, #182746, var(--panel-2)); border-color: rgba(217,174,82,.55); box-shadow: 0 30px 70px -40px rgba(217,174,82,.45); }
.offer .price { display: flex; align-items: baseline; gap: 10px; }
.offer .price b { font-family: var(--display); font-weight: 900; font-size: clamp(52px, 7vw, 68px); line-height: 1; font-stretch: 85%; }
.offer .tag { position: absolute; top: -13px; right: 24px; background: var(--gold); color: var(--gold-ink); font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: .06em; }
.offer .btn { margin-top: auto; }

/* Educator */
.educator { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .educator { grid-template-columns: minmax(0,1fr); } }
.portrait { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 1 / 0.92; max-width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,13,26,.75)); }
.portrait figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.facts div:last-child { border-right: 0; }
.facts b { font-family: var(--display); font-size: 30px; font-weight: 900; font-stretch: 85%; line-height: 1; }
.facts span { font-size: 13px; color: var(--dim); }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0,1fr); } .facts div { border-right: 0; border-bottom: 1px solid var(--line); } .facts div:last-child { border-bottom: 0; } }

/* Proof gallery */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(6, minmax(0,1fr)); }
.gallery figure { margin: 0; grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.gallery figure.wide { grid-column: span 3; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } .gallery figure, .gallery figure.wide { grid-column: span 1; } }
@media (max-width: 520px) { .gallery { grid-template-columns: minmax(0,1fr); } }
.shot { padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--panel); cursor: zoom-in; display: block; width: 100%; }
.shot img { width: 100%; aspect-ratio: 1.41; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(3,6,12,.86); backdrop-filter: blur(4px); }
dialog.lightbox img { max-height: 84vh; width: auto; border-radius: 12px; margin: 0 auto; }
dialog.lightbox p { text-align: center; color: var(--muted); margin-top: 12px; font-size: 14px; }
dialog.lightbox button { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--navy); color: var(--text); font-size: 20px; cursor: pointer; }

/* Modules */
.module { position: relative; overflow: hidden; }
.module .num { font-size: 42px; font-family: var(--display); font-weight: 900; color: transparent; -webkit-text-stroke: 1px var(--line-2); letter-spacing: 0; line-height: 1; transition: -webkit-text-stroke-color .2s; }
.module:hover .num { -webkit-text-stroke-color: var(--gold); }
.module p { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { max-width: 860px; display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: 18.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold); font-size: 22px; transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 70ch; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: auto 0 -60% 0; height: 120%; background: radial-gradient(closest-side, rgba(217,174,82,.14), transparent 70%); pointer-events: none; }
.cta-band .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--navy); padding-block: 48px 64px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14.5px; }
.footer-links a { color: var(--muted); }
.disclosures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px 40px; }
.disclosures p { font-size: 13px; color: var(--dim); line-height: 1.65; }
.disclosures strong { color: var(--muted); }

/* Reveal (content is visible at rest; this only adds a small lift) */
.reveal { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.pending { transform: translateY(14px); }

/* ---------- Playbook ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); z-index: 60; }
.pb-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 90% 0%, rgba(217,174,82,.10), transparent 60%); }
.flow-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-chips .arrow { color: var(--dim); }
.notice { border: 1px solid var(--line); border-left: 0; background: var(--panel); border-radius: 10px; padding: 14px 18px; font-size: 14px; color: var(--muted); display: flex; gap: 12px; }
.notice svg { flex: none; margin-top: 3px; }
.pb-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: 40px 96px; }
@media (max-width: 980px) { .pb-layout { grid-template-columns: minmax(0,1fr); } }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.toc-title { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 6px; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.toc a span { font-family: var(--mono); font-size: 12px; color: var(--dim); padding-top: 2px; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--gold); }
.toc a.active span { color: var(--gold); }
.toc-mobile { display: none; }
@media (max-width: 980px) {
  .toc { display: none; }
  .toc-mobile { display: block; position: sticky; top: 68px; z-index: 40; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); background: rgba(7,13,26,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .toc-mobile select { width: 100%; min-height: 46px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font: 500 15px var(--body); }
}
.lessons { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 104px); min-width: 0; }
.lesson { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.lesson-head { display: flex; flex-direction: column; gap: 10px; }
.lesson-num { font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: .12em; display: flex; align-items: center; gap: 12px; }
.lesson-num::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.lesson h3 { font-size: 22px; font-weight: 700; }
.lesson .prose { display: flex; flex-direction: column; gap: 14px; color: var(--muted); max-width: 68ch; }
figure.chart { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
figure.chart svg { width: 100%; height: auto; display: block; }
figure.chart figcaption { font-size: 13px; color: var(--dim); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0,1fr); } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 14px; color: var(--muted); align-items: start; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; color: var(--gold); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.kv > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.kv .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.zones { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 680px) { .zones { grid-template-columns: minmax(0,1fr); } }
.zone { border-radius: 12px; padding: 20px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.zone b { font-family: var(--display); font-size: 20px; font-weight: 800; }
.zone.up { border-top: 3px solid var(--long); }
.zone.mid { border-top: 3px solid var(--dim); }
.zone.down { border-top: 3px solid var(--short); }
.zone p { color: var(--muted); font-size: 15.5px; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 32px; counter-reset: r; }
@media (max-width: 680px) { .rules { grid-template-columns: minmax(0,1fr); } }
.rules li { list-style: none; counter-increment: r; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--mono); color: var(--gold); font-size: 14px; padding-top: 2px; }
.rules { padding: 0; margin: 0; }
.golden { border-radius: 16px; padding: 28px; text-align: center; background: linear-gradient(135deg, rgba(217,174,82,.16), rgba(217,174,82,.04)); border: 1px solid rgba(217,174,82,.45); display: flex; flex-direction: column; gap: 6px; }
.golden b { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 900; font-stretch: 90%; }
.strategy { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 22px; }
.etl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 680px) { .etl { grid-template-columns: minmax(0,1fr); } }
.etl > div { border-radius: 12px; padding: 18px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.etl .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.etl .entry .k { color: var(--text); }
.etl .stop .k { color: var(--short); }
.etl .target .k { color: var(--long); }
.accordion details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px; }
.accordion summary { cursor: pointer; list-style: none; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--gold); font-family: var(--mono); font-size: 20px; transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { padding: 0 20px 18px; color: var(--muted); }

/* Ladder tool */
.tool { border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 18px; }
.tool-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.tool label { font-size: 14.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.tool input[type=range] { width: 100%; accent-color: var(--gold); min-height: 32px; }
.tool input[type=number] { width: 100%; min-height: 46px; background: var(--ink); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font: 600 17px var(--mono); }
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.ladder div { border-radius: 10px; padding: 12px 10px; background: var(--ink); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background .2s; }
.ladder div b { font-family: var(--mono); font-size: 14px; }
.ladder div span { font-size: 12.5px; color: var(--dim); }
.ladder div.on { border-color: var(--gold); background: rgba(217,174,82,.1); }
.ladder div.on span { color: var(--gold); }
@media (max-width: 560px) { .ladder { grid-template-columns: repeat(2, minmax(0,1fr)); } .ladder div:last-child { grid-column: span 2; } }
.readout { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; font-family: var(--mono); }
.readout b { font-size: clamp(26px, 4vw, 34px); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 13px var(--mono); }
.status.ok { background: rgba(111,211,162,.12); color: var(--long); }
.status.bad { background: rgba(242,155,116,.14); color: var(--short); }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (max-width: 520px) { .calc-grid { grid-template-columns: minmax(0,1fr); } }

/* Risk table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.risk { width: 100%; border-collapse: collapse; min-width: 460px; }
table.risk td { padding: 16px 20px; border-bottom: 1px solid var(--line); }
table.risk tr:last-child td { border-bottom: 0; }
table.risk td:last-child { text-align: right; font-family: var(--mono); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.risk tr:nth-child(odd) td { background: rgba(255,255,255,.015); }

/* Interactive checklist */
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.checklist-col { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.checklist-col h4 { margin: 0 0 8px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.check { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; align-items: start; padding: 9px 0; cursor: pointer; color: var(--muted); font-size: 15.5px; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; cursor: pointer; background: var(--ink); }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(-45deg) translate(1px, -1px); }
.check input:checked + span { color: var(--text); text-decoration: line-through; text-decoration-color: rgba(217,174,82,.6); }
.check-progress { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.check-progress .bar { flex: 1; min-width: 160px; height: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.check-progress .bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 760px) { .timeline { grid-template-columns: minmax(0,1fr); } }
.timeline > div { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.timeline .k { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; color: var(--gold); }

/* Locked list (preview) */
.locked { border: 1px solid rgba(217,174,82,.5); border-radius: 18px; background: linear-gradient(180deg, #182746, var(--panel)); padding: clamp(24px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.locked ol { list-style: none; margin: 0; padding: 0; }
.locked li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }

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

/* Disclaimer gate (shown once per browser) */
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gate[hidden] { display: none !important; }
.gate-card { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.gate-card h2 { font-size: clamp(22px, 3vw, 28px); }
.gate-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 15.5px; }
.gate-card .btn { width: 100%; }
body.gated { overflow: hidden; }
