/* ==========================================================================
   MarksFX Academy design system
   "Trading terminal at 8AM": single dark theme by design.
   Gold (#d9b45a) = XAUUSD, the one accent. Candle green is used sparingly.
   Mobile-first. Breakpoints: 40em (640px), 48em (768px), 56em (896px), 64em (1024px).
   ========================================================================== */

/* 1. Tokens
   ----------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Color */
  --ink: #0e1420;          /* page ground, chart background */
  --ink-2: #111827;        /* alternate band, footer */
  --panel: #161e2d;        /* raised surfaces */
  --panel-2: #1b2537;      /* hover / nested surfaces */
  --line: #26324a;         /* grid lines, borders */
  --line-2: #33415e;       /* stronger borders, inputs */
  --text: #e7ebf3;
  --muted: #94a0b8;        /* 7:1 on ink, 6.4:1 on panel */
  --gold: #d9b45a;
  --gold-hover: #e6c574;
  --gold-ink: #1a1405;     /* text on gold */
  --gold-soft: rgba(217, 180, 90, 0.10);
  --gold-line: rgba(217, 180, 90, 0.45);
  --up: #4fbf8a;           /* candle green, sparingly */
  --down: #94a0b8;         /* bearish candles stay neutral grey */

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-base: 1.0625rem;   /* 17px body */
  --fs-lg: 1.1875rem;
  --fs-xl: 1.375rem;
  --fs-h1: clamp(2.75rem, 1.55rem + 5.4vw, 5.6rem);
  --fs-h2: clamp(2.1rem, 1.45rem + 2.9vw, 3.4rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --gutter: clamp(16px, 4.5vw, 20px);
  --maxw: 1120px;
  --measure: 62ch;
  --header-h: 64px;
  --section-y: clamp(56px, 8vw, 96px);
  --radius: 6px;
  --radius-sm: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base
   ----------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font: 400 var(--fs-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
svg { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.05; }
h4 { font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--gold); }

p, ul, ol, dl, figure, blockquote { margin: 0; }

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--gold-hover); }

strong, b { font-weight: 600; }
small { font-size: var(--fs-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

::selection { background: var(--gold); color: var(--gold-ink); }

/* Focus: always visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* 3. Accessibility helpers
   ----------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--gold-ink); }
.skip-link:focus-visible { outline-color: var(--text); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 4. Layout
   ----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container-narrow { max-width: calc(780px + 2 * var(--gutter)); }

main { display: block; }

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--ink-2); }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }
.section-grid { position: relative; isolation: isolate; }
.section-grid::before {
  /* chart-grid texture, used to bookend a page (hero + final CTA) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 65%, transparent 100%);
  pointer-events: none;
}
.section-flush { border-top: 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.section-foot { margin-top: var(--space-6); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 var(--fs-xs)/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow.plain::before { display: none; }

.lede {
  color: var(--muted);
  font-size: var(--fs-lg);
  line-height: 1.55;
  max-width: var(--measure);
}
.lede strong { color: var(--text); font-weight: 500; }

/* Grids */
.grid { display: grid; gap: var(--grid-gap, 16px); }
.grid > * { min-width: 0; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 48em) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 56em) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Stacks and clusters */
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-2); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-5); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* 5. Header and navigation
   ----------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 20, 32, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header {
    background: rgba(14, 20, 32, 0.84);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  color: var(--text);
  text-decoration: none;
  font: 800 1.25rem/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; flex: none; }
@media (min-width: 40em) {
  .brand { font-size: 1.4rem; }
  .brand-mark { width: 28px; height: 28px; }
}
.brand-word b { color: var(--gold); font-weight: 800; }

/* Menu toggle: only shown when JS is available */
.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: 500 var(--fs-xs)/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.js .nav-toggle:hover { border-color: var(--gold-line); }
.nav-toggle-icon {
  position: relative;
  width: 16px;
  height: 10px;
  flex: none;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 4px; transform: rotate(-45deg); }

/* No-JS default on small screens: nav is simply visible below the brand */
.site-nav {
  flex-basis: 100%;
  padding-block: 4px 16px;
}
.js .site-nav { display: none; }
.js .site-header.nav-open .site-nav {
  display: block;
  border-top: 1px solid var(--line);
  padding-block: 8px 20px;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.nav-list a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.nav-list a:hover { color: var(--gold); }
.nav-list a[aria-current="page"] { color: var(--gold); }

.js .nav-list { flex-direction: column; flex-wrap: nowrap; }
.js .nav-list a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.nav-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 8px;
}
.js .nav-extra {
  flex-direction: column;
  align-items: stretch;
  margin-top: 12px;
}
.nav-login {
  display: inline-block;
  padding: 10px 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
}
.nav-login:hover { color: var(--gold); }

@media (min-width: 64em) {
  .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: none; }
  .site-nav,
  .js .site-nav,
  .js .site-header.nav-open .site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-basis: auto;
    padding: 0;
    border: 0;
    max-height: none;
    overflow: visible;
  }
  .nav-list,
  .js .nav-list { flex-direction: row; gap: 0 22px; }
  .nav-list a,
  .js .nav-list a {
    position: relative;
    padding: 8px 0;
    border: 0;
    font-size: 0.95rem;
  }
  .nav-list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--gold);
  }
  .nav-extra,
  .js .nav-extra {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    gap: 20px;
  }
  .nav-login { padding: 8px 0; }
}

/* 6. Buttons
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font: 600 var(--fs-md)/1.15 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--gold-ink); transform: translateY(-1px); }
.btn-gold:focus-visible { outline-color: var(--text); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--gold-hover); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--gold-line); color: var(--text); }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: var(--fs-sm); }
.btn-lg { min-height: 56px; padding: 18px 28px; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }
.btn .arrow { transition: transform 0.15s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 29.99em) {
  .btns > .btn { flex: 1 1 100%; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--gold);
}
.link-arrow:hover { text-decoration: underline; }

.cta-note {
  font: 400 var(--fs-sm)/1.5 var(--font-mono);
  color: var(--muted);
}

/* 7. Hero
   ----------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px);
  isolation: isolate;
}
.hero::before {
  /* faint chart grid, fades out toward the bottom */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: clamp(36px, 6vw, 56px);
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-5); }
.hero h1 { max-width: 13ch; }
@media (min-width: 56em) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* Inner-page hero */
.page-hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 80px) clamp(36px, 6vw, 64px);
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  pointer-events: none;
}
.page-hero .stack-lg { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.4rem); max-width: 16ch; }

/* Facts row (hero proof points) */
.facts {
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font: 500 var(--fs-sm)/1.35 var(--font-mono);
  color: var(--muted);
}
@media (min-width: 40em) {
  .facts { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 36px; }
}
.facts li { display: inline-flex; align-items: baseline; gap: 6px; }
.facts b { color: var(--text); font-weight: 500; }
.facts a { color: var(--muted); text-decoration-color: var(--gold-line); }
.facts a:hover { color: var(--gold); }
.facts a b { color: var(--gold); }

/* Market tape band */
.tape {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.tape-list {
  list-style: none;
  margin-block: 0;
  padding-block: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 22px;
  font: 500 var(--fs-xs)/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 48em) { .tape-list { justify-content: center; gap: 8px 32px; } }
.tape-list li { display: inline-flex; align-items: center; gap: 10px; }
.tape-list li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  background: var(--gold);
}
.tape-list b { color: var(--text); font-weight: 500; }

/* 8. Chart panel (illustrative SVG)
   ----------------------------------------------------------------------- */
.chart-panel {
  background-color: var(--panel);
  background-image:
    linear-gradient(rgba(38, 50, 74, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 50, 74, 0.7) 1px, transparent 1px);
  background-size: 100% 36px, 36px 100%;
  background-position: 0 -1px, -1px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 22px);
  font-family: var(--font-mono);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.chart-head b { color: var(--text); font-weight: 500; }
.chart-label {
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.chart-svg { width: 100%; height: auto; margin-block: 14px 10px; }
.chart-svg .up line { stroke: var(--up); stroke-width: 1.5; }
.chart-svg .up rect { fill: var(--up); }
.chart-svg .down line { stroke: var(--down); stroke-width: 1.5; }
.chart-svg .down rect { fill: var(--down); }
.chart-svg .anno-line { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 4 4; fill: none; }
.chart-svg .anno-muted { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; fill: none; }
.chart-svg .anno-zone { fill: rgba(217, 180, 90, 0.14); stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-svg .anno-text { fill: var(--gold); font: 500 10px var(--font-mono); letter-spacing: 0.06em; }
.chart-svg .anno-text-muted { fill: var(--muted); font: 500 9.5px var(--font-mono); letter-spacing: 0.06em; }
.chart-svg .anno-dot { fill: var(--ink); stroke: var(--gold); stroke-width: 1.5; }
.chart-foot {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
}
.chart-legend {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chart-legend li { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { display: inline-block; width: 14px; height: 0; border-top: 1px dashed var(--gold); }
.chart-legend i.zone { height: 8px; border: 1px dashed var(--gold); background: rgba(217, 180, 90, 0.14); }
.chart-legend i.up { width: 8px; height: 10px; border: 0; background: var(--up); }

/* 9. Cards
   ----------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(20px, 4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-gold { border-color: var(--gold); }
.card-flat { background: transparent; }
.card p:where(:not([class])) { color: var(--muted); }
.card .card-body { flex: 1; }
.card-kicker {
  font: 500 var(--fs-xs)/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-kicker.muted { color: var(--muted); }
.card-title { font-size: var(--fs-h3); }
.card .btn { margin-top: auto; }
a.card { color: inherit; text-decoration: none; transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); }
a.card:hover { border-color: var(--gold-line); background: var(--panel-2); }

/* Tags / pills */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font: 500 var(--fs-xs)/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.tag-muted { border-color: var(--line-2); color: var(--muted); }

/* 10. Checklists
   ----------------------------------------------------------------------- */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
}
.checks li::before {
  /* gold tick */
  content: "";
  position: absolute;
  left: 4px;
  top: 0.32em;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}
.checks li b, .checks li strong { color: var(--text); font-weight: 600; }
.checks .note { display: block; color: var(--muted); font-size: var(--fs-sm); }
.checks-muted li { color: var(--muted); }

/* cross variant for "not for" lists */
.checks-cross li::before,
.checks-cross li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 13px;
  height: 2px;
  border: 0;
  background: var(--muted);
  transform: rotate(45deg);
}
.checks-cross li::after { transform: rotate(-45deg); }

@media (min-width: 40em) {
  .checks-2col { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
}

/* 11. Timeline (morning session)
   ----------------------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 0;
}
.timeline-item {
  position: relative;
  padding: 0 0 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.timeline-item::before {
  /* vertical rail */
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: -6px;
  width: 1px;
  background: var(--line-2);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }
.timeline-item::after {
  /* marker */
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 11px;
  height: 11px;
  background: var(--ink);
  border: 2px solid var(--gold);
  border-radius: 2px;
}
.section-alt .timeline-item::after { background: var(--ink-2); }
.timeline-time {
  font: 500 1.05rem/1 var(--font-mono);
  color: var(--gold);
}
.timeline-time small { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.08em; margin-left: 4px; }
.timeline-title { font-size: 1.45rem; }
.timeline-item p { color: var(--muted); font-size: 0.97rem; max-width: 46ch; }
.timeline-item.is-key::after { background: var(--gold); }

@media (min-width: 56em) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .timeline-item { padding: 30px 0 0; }
  .timeline-item::before {
    left: 0;
    right: -24px;
    top: 5px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .timeline-item:last-child::before { display: block; right: 0; }
  .timeline-item::after { top: 0; }
}

/* 12. Price block / offer
   ----------------------------------------------------------------------- */
.offer-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}
.offer-grid > * { min-width: 0; }
@media (min-width: 64em) {
  .offer-grid { grid-template-columns: 1fr 340px; gap: 32px; }
  .offer-grid .price-block { position: sticky; top: calc(var(--header-h) + 24px); }
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 32px);
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
.price-name {
  font: 500 var(--fs-xs)/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font: 800 4rem/1 var(--font-display);
  color: var(--text);
}
.price-per {
  font: 400 var(--fs-md)/1 var(--font-mono);
  color: var(--muted);
}
.price-note { color: var(--text); }
.price-fine {
  font: 400 var(--fs-xs)/1.5 var(--font-mono);
  color: var(--muted);
}
.price-block .checks { font-size: var(--fs-sm); }

/* Included groups */
.included { display: grid; gap: 16px; }
.included-group {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.included-group header { display: flex; flex-direction: column; gap: 6px; }
.included-group h3 { font-size: 1.7rem; }
.included-group header p:not(.card-kicker) { color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 48em) {
  .included-group { grid-template-columns: 180px 1fr; align-items: start; gap: 28px; }
}

/* Plan cards (add-ons) */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font: 800 2.6rem/1 var(--font-display);
  color: var(--text);
}
.plan-price span { font: 400 var(--fs-sm)/1 var(--font-mono); color: var(--muted); }

/* 13. FAQ
   ----------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-block: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: 500 1rem/1 var(--font-mono);
  color: var(--gold);
}
.faq details[open] summary::after { content: "\2013"; border-color: var(--gold-line); }
.faq summary:hover { color: var(--gold); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq .faq-answer {
  padding-bottom: 22px;
  color: var(--muted);
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq .faq-answer a { color: var(--gold); }

/* 14. Callout
   ----------------------------------------------------------------------- */
.callout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout .callout-title {
  font: 500 var(--fs-xs)/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.callout p { color: var(--text); }
.callout-muted { background: transparent; border-left-color: var(--line-2); }
.callout-muted .callout-title { color: var(--muted); }
.callout-muted p { color: var(--muted); }

/* 15. Stat row
   ----------------------------------------------------------------------- */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}
.stats > * { min-width: 0; }
@media (min-width: 48em) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.stat-value {
  font: 800 clamp(2rem, 1.6rem + 1.6vw, 2.8rem)/1 var(--font-display);
  color: var(--gold);
  text-transform: uppercase;
}
.stat-label {
  font: 500 var(--fs-xs)/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat a { color: inherit; }

/* 16. Mentor teaser
   ----------------------------------------------------------------------- */
.mentor-grid {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}
.mentor-grid > * { min-width: 0; }
@media (min-width: 48em) {
  .mentor-grid { grid-template-columns: minmax(220px, 0.8fr) 1.2fr; }
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 240px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  background-image:
    linear-gradient(rgba(38, 50, 74, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 50, 74, 0.6) 1px, transparent 1px);
  background-size: 32px 32px;
}
@media (min-width: 48em) { .portrait { max-width: 420px; } }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 clamp(4rem, 12vw, 7rem)/1 var(--font-display);
  color: var(--gold-line);
  letter-spacing: 0.04em;
}
.portrait-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(14, 20, 32, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: 500 var(--fs-xs)/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.mentor-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 17. Proof (reviews) block
   ----------------------------------------------------------------------- */
.proof {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 5vw, 40px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.proof > * { min-width: 0; }
@media (min-width: 56em) {
  .proof { grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
}
.proof-score {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 0;
}
@media (min-width: 56em) {
  .proof-score { padding-right: 48px; border-right: 1px solid var(--line); }
}
.proof-number {
  font: 800 clamp(4rem, 3rem + 4vw, 6rem)/0.9 var(--font-display);
  color: var(--gold);
}
.proof-stars {
  font: 500 var(--fs-sm)/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.proof-meta {
  font: 500 var(--fs-xs)/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 18. Final CTA
   ----------------------------------------------------------------------- */
.cta-final { display: flex; flex-direction: column; gap: var(--space-5); }
.cta-final h2 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem); max-width: 15ch; }
.cta-alt {
  display: grid;
  gap: 12px;
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (min-width: 48em) { .cta-alt { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.cta-alt p b { color: var(--text); font-weight: 600; }

/* 19. Prose (legal and long-form pages)
   ----------------------------------------------------------------------- */
.prose { max-width: 72ch; color: var(--text); }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem);
  line-height: 1.05;
}
.prose h3 {
  margin-top: 1.8em;
  font-size: 1.3rem;
}
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose p, .prose li { color: var(--text); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold); }
.prose strong { color: var(--text); }
.prose blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  display: block;
  overflow-x: auto;
}
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font: 500 var(--fs-xs)/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.prose .updated {
  font: 500 var(--fs-xs)/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 20. Forms
   ----------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}
.input,
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="url"],
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: 400 var(--fs-md)/1.4 var(--font-body);
  transition: border-color 0.15s var(--ease);
}
.form textarea { min-height: 120px; resize: vertical; }
.input::placeholder,
.form input::placeholder,
.form textarea::placeholder { color: var(--muted); opacity: 1; }
.input:hover,
.form input:hover,
.form select:hover,
.form textarea:hover { border-color: var(--muted); }
.input:focus-visible,
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  border-color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.field-hint { font-size: var(--fs-xs); color: var(--muted); }
.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.check-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.form-inline .input,
.form-inline input[type="email"] { flex: 1 1 220px; }
.form-inline .btn { flex: 0 0 auto; }
@media (max-width: 29.99em) { .form-inline .btn { flex: 1 1 100%; } }
.form-panel {
  padding: clamp(20px, 4vw, 32px);
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}

/* 21. Footer
   ----------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: clamp(48px, 7vw, 72px) 40px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.footer-grid { display: grid; gap: 36px; }
.footer-grid > * { min-width: 0; }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1fr 1.6fr; gap: 48px; } }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { max-width: 38ch; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}
@media (min-width: 40em) { .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-title {
  margin: 0 0 10px;
  font: 500 var(--fs-xs)/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.footer-risk {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.65;
  max-width: 110ch;
}
.footer-risk strong { color: var(--text); }
.footer-risk a { color: var(--gold); }
.footer-bottom {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font: 400 var(--fs-xs)/1.5 var(--font-mono);
  letter-spacing: 0.04em;
}

/* 22. Sticky mobile CTA (sales pages: add class "has-sticky-cta" to <body>)
   ----------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: rgba(14, 20, 32, 0.97);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1 1 auto; min-height: 50px; }
.sticky-cta-note {
  flex: none;
  font: 500 var(--fs-xs)/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.sticky-cta-note b { display: block; color: var(--text); font-weight: 500; }
body.has-sticky-cta { padding-bottom: 76px; }
html:has(body.has-sticky-cta) { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 64em) {
  .sticky-cta { display: none; }
  body.has-sticky-cta { padding-bottom: 0; }
  html:has(body.has-sticky-cta) { scroll-padding-bottom: 0; }
}

/* 23. Utilities
   ----------------------------------------------------------------------- */
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-up { color: var(--up); }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.small { font-size: var(--fs-sm); }
.fine { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.measure { max-width: var(--measure); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.hide-mobile { display: none; }
@media (min-width: 48em) {
  .hide-mobile { display: revert; }
  .hide-desktop { display: none; }
}

/* 24. Motion and print
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn-gold:hover,
  .btn:hover .arrow { transform: none; }
}

@media print {
  .site-header, .sticky-cta, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; padding: 0 !important; }
  .site-footer { background: #fff; color: #000; }
  a { color: #000; }
}
