/* =========================================================
   Apex Trading Academy — V1 site styles
   Palette: chart-room navy, brass accent, muted bull/bear for charts only
   ========================================================= */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212; }
@font-face { font-family: "Plex"; font-weight: 400; font-style: italic; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+20A0-20C0; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+20A0-20C0; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+20A0-20C0; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0A1018;
  --bg-raise: #101925;
  --bg-sunk: #070B11;
  --line: #1F2B3A;
  --line-soft: #172230;
  --text: #E8ECF1;
  --text-soft: #B8C1CD;
  --muted: #8794A5;
  --brass: #C9A24D;
  --brass-hi: #E2BF6E;
  --brass-ink: #1A1408;
  --brass-wash: rgba(201, 162, 77, 0.11);
  --steel: #7E98C8;
  --steel-wash: rgba(126, 152, 200, 0.12);
  --bull: #3FA88A;
  --bear: #CE5F58;
  --amber: #D9944A;
  --amber-wash: rgba(217, 148, 74, 0.12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plex", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-s: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brass-hi); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 600; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--brass-ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn-primary { background: var(--brass); color: var(--brass-ink); }
.btn-primary:hover { background: var(--brass-hi); color: var(--brass-ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--brass); color: var(--text); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 16, 24, 0.86); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand picture { display: block; flex: none; line-height: 0; }
.brand-logo { display: block; height: 52px; width: auto; }
.footer-logo img { display: block; width: 230px; height: auto; }
@media (max-width: 380px) { .brand-logo { height: 44px; } }
/* policy pages: logo + "Back to home" share one row on phones */
@media (max-width: 560px) {
  .policy-header .header-inner { gap: 12px; }
  .policy-header .brand-logo { height: 44px; }
  .site-header .header-back { padding: 8px 12px; font-size: 0.86rem; white-space: nowrap; }
}
@media (max-width: 374px) { .site-header .header-back { padding: 8px 9px; font-size: 0.8rem; } }
@media (max-width: 359px) {
  .policy-header .header-inner { flex-wrap: wrap; row-gap: 2px; padding-block: 6px; }
  .site-header .header-back { margin-left: auto; }
}
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav a { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); }
.header-cta { min-height: 42px; padding: 9px 18px; font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease; }
.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; }
.menu-open .nav-toggle span { background: transparent; }
.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%); opacity: .55; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.18fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 3.9vw, 3.4rem); font-weight: 450; line-height: 1.04; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--text-soft); }
.hero h1 span:last-child { color: var(--brass-hi); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); max-width: 36em; margin: 24px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 20px; color: var(--muted); font-size: 0.93rem; }
.hero-meta strong { color: var(--text); font-weight: 600; }
.chart-panel { background: linear-gradient(180deg, var(--bg-raise), var(--bg-sunk)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 14px 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.chart-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 6px 10px;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; font-size: 0.82rem; color: var(--muted); }
.chart-bar b { color: var(--text-soft); font-weight: 500; }
.chart-bar .tf { font-family: var(--mono); font-size: 0.78rem; color: var(--brass); }

/* hero chart svg */
.hero-chart { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.hc-grid line { stroke: var(--line-soft); stroke-width: 1; }
.hc-c line { stroke-width: 1.6; }
.hc-c.up line { stroke: var(--bull); } .hc-c.up rect { fill: var(--bull); }
.hc-c.dn line { stroke: var(--bear); } .hc-c.dn rect { fill: var(--bear); }
.hc-c.crt rect { fill: var(--bull); stroke: var(--brass-hi); stroke-width: 1.4; }
.hc-zone { fill: var(--brass); fill-opacity: .09; }
.hc-level line { stroke-width: 1.3; }
.hc-level text { font-size: 15px; font-weight: 500; }
.lv-main line { stroke: var(--text-soft); } .lv-main text { fill: var(--text-soft); }
.lv-mid line { stroke: var(--brass); stroke-dasharray: 5 5; } .lv-mid text { fill: var(--brass-hi); }
.lv-m1 line { stroke: var(--steel); stroke-dasharray: 3 4; }
.hc-tag rect { fill: var(--bg); stroke-width: 1; }
.hc-tag text { font-size: 14px; font-weight: 600; text-anchor: middle; }
.t-crt rect { stroke: var(--brass); } .t-crt text { fill: var(--brass-hi); }
.t-sweep rect { stroke: var(--bear); } .t-sweep text { fill: #E88C86; }
.t-m1 rect { stroke: var(--steel); } .t-m1 text { fill: #A9BDE3; }
.hc-note { fill: var(--muted); font-size: 13px; }

/* orchestrated load sequence (the one motion moment on the page) */
.hc-c { opacity: 0; transform: translateY(6px); transform-box: fill-box; }
.hc-a1, .hc-a2, .hc-a3 { opacity: 0; }
.is-ready .hc-c { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; transition-delay: calc(var(--i) * 70ms); }
.is-ready .hc-a1 { opacity: 1; transition: opacity .5s ease 1.25s; }
.is-ready .hc-a2 { opacity: 1; transition: opacity .5s ease 1.7s; }
.is-ready .hc-a3 { opacity: 1; transition: opacity .5s ease 2.15s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hc-c, .hc-a1, .hc-a2, .hc-a3 { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.no-js .hc-c, .no-js .hc-a1, .no-js .hc-a2, .no-js .hc-a3 { opacity: 1; transform: none; }

/* ---------- ledger strip ---------- */
.ledger { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-sunk); }
.ledger ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.ledger li { padding: 22px 18px; border-left: 1px solid var(--line); font-size: 0.95rem; color: var(--text-soft); line-height: 1.4; }
.ledger li:first-child { border-left: 0; }
.ledger strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--text); margin-bottom: 4px;
  font-variation-settings: "opsz" 48; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section.alt { background: var(--bg-sunk); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { color: var(--text-soft); font-size: 1.1rem; margin-top: 16px; }
.prose { max-width: 68ch; color: var(--text-soft); }
.prose strong { color: var(--text); font-weight: 600; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.note { border-left: 2px solid var(--amber); background: var(--amber-wash); padding: 14px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--text-soft); font-size: 0.97rem; }
.note strong { color: var(--text); }
.note.brass { border-left-color: var(--brass); background: var(--brass-wash); }
.note.steel { border-left-color: var(--steel); background: var(--steel-wash); }
.note + .note { margin-top: 12px; }

/* status badges (honest labelling of what each part is) */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 500; line-height: 1;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-orig { color: var(--brass-hi); border-color: rgba(201, 162, 77, .45); background: var(--brass-wash); }
.b-src { color: #A9BDE3; border-color: rgba(126, 152, 200, .4); background: var(--steel-wash); }
.b-org { color: var(--text-soft); border-color: var(--line); background: transparent; }
.b-part { color: #EAB27A; border-color: rgba(217, 148, 74, .45); background: var(--amber-wash); }
.b-opt { color: var(--muted); border-color: var(--line); border-style: dashed; background: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }

/* what is apex */
.layers { display: grid; gap: 14px; }
.layer { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-raise); }
.layer .badge { grid-row: span 2; align-self: start; margin-top: 3px; }
.layer h3 { font-size: 1.08rem; font-family: var(--sans); font-weight: 600; }
.layer p { margin: 0; color: var(--text-soft); font-size: 0.97rem; }
.layer-n { grid-row: span 2; align-self: start; font-family: var(--mono); color: var(--brass); font-size: 0.9rem; margin-top: 3px; }

/* everything you'll learn */
.topic-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcat { padding: 22px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
.tcat .layer-n { display: block; }
.tcat h3 { font-family: var(--sans); font-size: 1.04rem; font-weight: 600; color: var(--brass-hi); margin: 8px 0 0; }
.tcat .topics { margin-top: 14px; }
.tcat .topics li { font-size: 0.86rem; padding: 6px 11px; }
.course-lib { margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); }
.course-lib-head { max-width: 760px; margin-bottom: 28px; }
.course-lib-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.course-lib-head h3 span { white-space: nowrap; }
.course-lib-head p { color: var(--text-soft); margin: 12px 0 0; }
.access-sum { margin: 0 0 28px; padding: 20px 22px; border: 1px solid rgba(201, 162, 77, .35); border-radius: var(--radius); background: var(--brass-wash); }
.access-sum-title { display: block; font: 600 0.78rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: 14px; }
.access-sum ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; }
.access-sum li { padding-left: 24px; position: relative; color: var(--text); font-size: 0.97rem; font-weight: 500; line-height: 1.45; }
.access-sum li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 9px; height: 5px; border-left: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.access-sum-note { margin: 14px 0 0; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 900px) { .access-sum ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .access-sum { padding: 18px; } .access-sum ul { grid-template-columns: 1fr; gap: 8px; } }
.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.lib-col { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
.lib-col h4 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 600 0.78rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-hi); }
.lib-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lib-col li { padding-left: 24px; position: relative; color: var(--text-soft); font-size: 0.93rem; line-height: 1.45; }
.lib-col li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 9px; height: 5px; border-left: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
@media (max-width: 1080px) { .topic-cats, .lib-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .topic-cats, .lib-grid { grid-template-columns: 1fr; } .layer-n { grid-row: auto; margin: 0; } }

/* what you get */
.contents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contents > div { padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raise); }
.contents > div:nth-child(3n) { border-right: 0; }
.contents > div:nth-last-child(-n+3) { border-bottom: 0; }
.contents h3 { font-family: var(--sans); font-size: 1.04rem; font-weight: 600; margin: 12px 0 6px; }
.contents h3:first-child { margin-top: 0; }
.contents p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.contents .fmt { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); display: block; margin-top: 10px; }

/* learning path */
.path { display: grid; gap: 0; }
.band { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.band:first-child { border-top: 0; padding-top: 0; }
.band-head h3 { font-size: 1.25rem; }
.band-head p { margin: 8px 0 0; color: var(--muted); font-size: 0.93rem; }
.band.optional .band-head h3 { color: var(--text-soft); }
.stages { list-style: none; margin: 0; padding: 0; position: relative; }
.stages::before { content: ""; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.stage { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 18px; align-items: start; padding: 10px 0; }
.stage-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.85rem; color: var(--text-soft); position: relative; z-index: 1; }
.core .stage-n { border-color: rgba(201, 162, 77, .55); color: var(--brass-hi); }
.optional .stage-n { border-style: dashed; color: var(--muted); }
.stage h4 { margin: 8px 0 2px; font: 600 1.04rem/1.35 var(--sans); }
.stage p { grid-column: 2; margin: 0; color: var(--text-soft); font-size: 0.94rem; }
.stage .badge { grid-column: 3; grid-row: 1; margin-top: 8px; }

/* market structure */
.concepts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 32px; }
.concepts h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--brass-hi); margin-bottom: 8px; }
.concepts ul { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: 0.97rem; }
.concepts li { margin-bottom: 4px; }
.figure { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.figure figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }
.wave .wv-up { fill: none; stroke: var(--bull); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.wave .wv-dn { fill: none; stroke: var(--bear); stroke-width: 3.2; stroke-linecap: round; }
.wave .wv-zone { fill: var(--brass); fill-opacity: .16; stroke: var(--brass); stroke-opacity: .6; }
.wave .wv-recent { stroke: var(--muted); stroke-dasharray: 5 5; }
.wave .wv-l { font: 600 13px var(--sans); }
.wave .up { fill: var(--bull); } .wave .dn { fill: var(--bear); } .wave .mu { fill: var(--muted); } .wave .key { fill: var(--brass-hi); }
.lenses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.lenses div { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; }
.lenses b { display: block; font-weight: 600; font-size: 0.95rem; }
.lenses span { color: var(--muted); font-size: 0.84rem; line-height: 1.4; display: block; margin-top: 2px; }
table.tf { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.94rem; }
table.tf th, table.tf td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tf th { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
table.tf td:first-child { font-family: var(--mono); color: var(--brass-hi); white-space: nowrap; }
table.tf td { color: var(--text-soft); }

/* CRT + TBS chain */
.chain { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; counter-reset: ch; }
.chain li { display: flex; align-items: center; gap: 8px; }
.chain li span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raise);
  font-weight: 500; font-size: 0.98rem; }
.chain li.htf span { border-color: rgba(126, 152, 200, .5); }
.chain li.ltf span { border-color: rgba(201, 162, 77, .5); }
.chain li:not(:last-child)::after { content: ""; width: 14px; height: 1px; background: var(--muted); }
.chain-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: -26px 0 36px; font-size: 0.86rem; color: var(--muted); }
.chain-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid; }
.defs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.def { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
.def h3 { font-size: 1.4rem; }
.def h3 small { display: block; font: 500 0.95rem/1.4 var(--sans); color: var(--muted); margin-top: 4px; }
.def p { color: var(--text-soft); margin: 12px 0 0; font-size: 0.97rem; }
.keylevels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.kl { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.kl b { font-family: var(--mono); font-size: 1rem; color: var(--brass-hi); font-weight: 500; }
.kl span { display: block; color: var(--text-soft); font-size: 0.92rem; margin-top: 4px; }
.included { margin: 0; padding-left: 18px; color: var(--text-soft); }
.included li { margin-bottom: 6px; }

/* gold */
.gold-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
.gold-list { counter-reset: g; list-style: none; margin: 0; padding: 0; }
.gold-list li { counter-increment: g; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.gold-list li:last-child { border-bottom: 0; }
.gold-list li::before { content: counter(g); font-family: var(--mono); color: var(--brass); font-size: 0.9rem; padding-top: 2px; }
.gold-list b { font-weight: 600; display: block; }
.gold-list span { color: var(--muted); font-size: 0.9rem; }

/* styles table */
.styles { width: 100%; border-collapse: collapse; }
.styles th, .styles td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.styles th { color: var(--muted); font-weight: 500; font-size: 0.86rem; }
.styles td:first-child { font-weight: 600; }
.styles td.tfp { font-family: var(--mono); color: var(--brass-hi); white-space: nowrap; }
.styles td:last-child { color: var(--text-soft); }

/* vault */
.vault { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); padding: clamp(24px, 4vw, 40px);
  border: 1px dashed #33445A; border-radius: var(--radius); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.topics li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.9rem; color: var(--text-soft); }

/* toolkit */
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.tools li { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tools .n { font-family: var(--mono); color: var(--brass); font-size: 0.9rem; }
.tools b { font-weight: 600; display: block; }
.tools span.d { color: var(--text-soft); font-size: 0.93rem; }
.tools .f { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }

/* roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.phase { padding: 28px 24px 24px; border-top: 2px solid var(--brass); background: var(--bg-raise); border-right: 1px solid var(--line); }
.phase:last-child { border-right: 0; border-top-style: dashed; border-top-color: var(--muted); background: transparent; }
.phase .days { font-family: var(--mono); color: var(--brass-hi); font-size: 0.9rem; }
.phase:last-child .days { color: var(--muted); }
.phase h3 { font-size: 1.2rem; margin: 6px 0 12px; }
.phase ol { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: 0.94rem; }
.phase .ms { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }

/* audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
.aud h3 { font-size: 1.3rem; margin-bottom: 10px; }
.aud p { color: var(--text-soft); margin: 0; }
.notfor { margin-top: 40px; display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.notfor ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.notfor li { position: relative; padding-left: 26px; color: var(--text-soft); }
.notfor li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 12px; height: 1.5px; background: var(--bear); transform: rotate(45deg); }
.notfor li::after { content: ""; position: absolute; left: 2px; top: 0.72em; width: 12px; height: 1.5px; background: var(--bear); transform: rotate(-45deg); }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px 20px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--brass); line-height: 1; margin-bottom: 14px;
  font-variation-settings: "opsz" 144; }
.steps b { display: block; font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.steps span { color: var(--text-soft); font-size: 0.95rem; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1fr 440px; gap: clamp(28px, 5vw, 64px); align-items: center; }
.price-card { border: 1px solid rgba(201, 162, 77, .45); border-radius: 18px; padding: clamp(24px, 4vw, 36px); background: var(--bg-raise);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8); }
.price-card .pname { font-weight: 600; color: var(--text-soft); }
.price { font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.2rem); font-weight: 500; line-height: 1; margin: 14px 0 10px;
  font-variation-settings: "opsz" 144; }
.price-phrase { color: var(--text-soft); font-size: 0.97rem; }
.price-card ul { list-style: none; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.price-card li { padding-left: 28px; position: relative; color: var(--text-soft); font-size: 0.96rem; }
.price-card li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.pay-note { margin-top: 14px; font-size: 0.9rem; color: #EAB27A; border: 1px dashed rgba(217, 148, 74, .55); border-radius: 10px; padding: 10px 12px; }
.price-fine { margin-top: 14px; font-size: 0.84rem; color: var(--muted); }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--text-soft); max-width: 70ch; }
.faq .a p:last-child { margin-bottom: 0; }
.tbc { color: #EAB27A; }

/* final CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-variation-settings: "opsz" 144; }
.final h2 span { display: block; }
.final p { color: var(--text-soft); margin: 18px auto 30px; max-width: 46ch; }
.final .hero-actions { justify-content: center; }

/* disclaimer + footer */
.disclaimer { background: var(--bg-sunk); border-top: 1px solid var(--line); padding: 48px 0; }
.disclaimer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.disclaimer p { color: var(--muted); font-size: 0.92rem; max-width: 90ch; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
/* touch: footer links get a 44px tap height */
@media (max-width: 900px) {
  .site-footer ul { gap: 0; }
  .site-footer li a, .site-footer p a, .site-footer .footer-base a { display: inline-block; padding: 12px 0; }
}
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- policy pages ---------- */
.doc { max-width: 760px; padding: clamp(40px, 7vw, 80px) 0; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.doc h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--text-soft); }
.draft-banner { border: 1px dashed var(--amber); color: #EAB27A; background: var(--amber-wash); padding: 14px 16px; border-radius: 10px; margin-bottom: 28px; font-size: 0.95rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav ul { gap: 18px; }
  .ledger ul { grid-template-columns: repeat(3, 1fr); }
  .ledger li:nth-child(4) { border-left: 0; }
  .ledger li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .keylevels { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .phase:nth-child(2) { border-right: 0; }
  .phase:nth-child(n+3) { margin-top: 16px; }
  .pricing { grid-template-columns: 1fr; }
  .price-card { max-width: 520px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 72px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .menu-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; color: var(--text); }
  .header-cta { display: none; }
  .menu-open .site-nav .menu-cta { display: flex; }
  .hero-grid, .split, .gold-panel, .vault { grid-template-columns: 1fr; }
  .contents { grid-template-columns: 1fr 1fr; }
  .contents > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .contents > div:nth-child(2n) { border-right: 0; }
  .contents > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .contents > div:last-child { border-bottom: 0; }
  .contents > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .band { grid-template-columns: 1fr; gap: 14px; }
  .defs { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .notfor { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
.menu-cta { display: none; margin-top: 18px; }
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .ledger ul { grid-template-columns: 1fr 1fr; }
  .ledger li { border-left: 0; border-top: 1px solid var(--line); padding: 16px 14px; }
  .ledger li:nth-child(-n+2) { border-top: 0; }
  .ledger li:nth-child(even) { border-left: 1px solid var(--line); }
  .ledger li:last-child { grid-column: 1 / -1; border-left: 0; }
  .contents { grid-template-columns: 1fr; }
  .contents > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .contents > div:last-child { border-bottom: 0 !important; }
  .stage { grid-template-columns: 36px 1fr; }
  .stage-n { width: 36px; height: 36px; font-size: 0.8rem; }
  .stages::before { left: 17px; }
  .stage .badge { grid-column: 2; grid-row: auto; margin-top: 6px; justify-self: start; }
  .stage p { grid-column: 2; }
  .concepts { grid-template-columns: 1fr; }
  .lenses { grid-template-columns: 1fr 1fr; }
  .keylevels { grid-template-columns: 1fr 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .phase { border-right: 0; margin-top: 0 !important; }
  .phase + .phase { margin-top: 12px !important; }
  .notfor ul { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .styles thead { display: none; }
  .styles, .styles tbody, .styles tr, .styles td { display: block; width: 100%; }
  .styles tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .styles td { border: 0; padding: 2px 0; }
  .tools li { grid-template-columns: 40px 1fr; }
  .tools .f { grid-column: 2; justify-self: start; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  table.tf td:first-child { white-space: normal; }
}

.header-right { display: flex; gap: 10px; align-items: center; }
.notfor-title { font-size: 1.6rem; }

@media (min-width: 1100px) { .hero h1 span { white-space: nowrap; } }
@media (max-width: 640px) {
  .layer { grid-template-columns: 1fr; }
  .layer .badge { grid-row: auto; justify-self: start; margin: 0 0 4px; }
  .hc-level text { font-size: 19px; }
  .hc-tag text { font-size: 17px; }
  .hc-note { font-size: 16px; }
  .wave .wv-l { font-size: 18px; }
}
