/* ============================================================
   CSCS Test Pass — "Site / Hi-Vis Industrial"
   Asphalt-dark canvas, hi-vis safety yellow, hazard-tape motif.
   Heavy condensed Anton headlines + Inter body + mono numerals.
   All class/id hooks from index.html + app.js are preserved.
   ============================================================ */

:root {
  /* Canvas — asphalt / charcoal */
  --bg:        #14161a;   /* asphalt */
  --bg-2:      #0e0f12;   /* darker floor / inputs / wells */

  /* Surfaces */
  --panel:     #1c1f25;   /* card surface */
  --panel-2:   #262a31;   /* raised chips, letters */
  --panel-3:   #31353d;   /* hover lift */

  /* Lines */
  --line:      #383d47;   /* primary borders */
  --line-soft: #24272e;   /* hairlines / dividers */
  --grid:      rgba(255,212,0,.028); /* faint site-grid ink */

  /* Text — high contrast */
  --text:      #f4f6f8;   /* primary */
  --muted:     #aab2be;   /* secondary — ~7:1 on --panel */
  --faint:     #7a828e;   /* tertiary — sparingly */

  /* Accent — hi-vis safety yellow */
  --accent:    #ffd400;   /* hi-vis yellow (block + big type) */
  --accent-2:  #f2c200;   /* deeper yellow (shadows/edges) */
  --accent-3:  #b89500;   /* darkest yellow (tactile shadow) */
  --accent-text:#ffd400;  /* yellow-as-text (legible on dark) */
  --accent-ink:#14161a;   /* hazard-black ink on yellow */
  --orange:    #ff6a1a;   /* safety orange — sparingly */

  /* Status */
  --green:     #37d67a;
  --green-ink: #04241a;
  --red:       #ff5a52;
  --red-ink:   #2a0606;
  --amber-warn:#ffb020;

  /* Chrome */
  --topbar-bg: rgba(14,15,18,.92);
  --overlay:   rgba(6,7,9,.74);
  --hard:      rgba(0,0,0,.55);   /* hard offset shadow ink */

  /* Hazard tape — black/yellow 45° stripes */
  --hazard: repeating-linear-gradient(45deg,
              #14161a 0 15px, var(--accent) 15px 30px);

  /* Geometry & type */
  --radius:    6px;
  --radius-sm: 4px;
  --space-section: 30px;
  --space-block: 16px;
  --display: "Anton", "Oswald", "Arial Narrow", Impact, sans-serif;
  --head:    "Oswald", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ----- Day (light) theme — "site sign in daylight" ----- */
:root[data-theme="light"] {
  --bg:        #e9ebee;   /* concrete grey */
  --bg-2:      #ffffff;

  --panel:     #ffffff;
  --panel-2:   #f0f2f5;
  --panel-3:   #e4e7ec;

  --line:      #cdd2da;
  --line-soft: #e6e9ee;
  --grid:      rgba(20,22,26,.035);

  --text:      #14161a;
  --muted:     #4a5560;   /* ~7:1 on white */
  --faint:     #6f7885;

  --accent:    #ffce00;   /* hi-vis block stays vivid */
  --accent-2:  #eebb00;
  --accent-3:  #c79a00;
  --accent-text:#8a6d00;  /* dark gold for text on light */
  --accent-ink:#14161a;
  --orange:    #d94f00;

  --green:     #128a4c;
  --green-ink: #ffffff;
  --red:       #cf2f27;
  --red-ink:   #ffffff;
  --amber-warn:#a66300;

  --topbar-bg: rgba(255,255,255,.90);
  --overlay:   rgba(20,22,26,.5);
  --hard:      rgba(20,22,26,.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

/* Global focus-visible ring (accessibility) */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,212,0,.45);
  border-radius: var(--radius-sm);
}
.btn.primary:focus-visible { box-shadow: 0 3px 0 var(--accent-3), 0 0 0 3px rgba(255,212,0,.6); }
.btn.ghost:focus-visible { box-shadow: 0 0 0 3px rgba(255,212,0,.5); }

/* Mono / tabular for anything measurable */
#timer, #progress-text, .letter, .score-ring, .q-source {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Reusable hazard-tape strip */
.hazard, .hero::before {
  background-image: var(--hazard);
}

/* ============================================================
   Top bar — site gantry
   ============================================================ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px 26px;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line);
}
/* Signature hazard-tape band pinned under the header */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
  background-image: var(--hazard);
  background-size: 42px 42px;
  opacity: .95;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .logo { display: inline-flex; line-height: 0; }
.brand h1 {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: 24px; line-height: .92; letter-spacing: .5px;
  text-transform: uppercase;
}
.brand p {
  margin: 3px 0 0; font-size: 11px; color: var(--muted);
  font-family: var(--head); font-weight: 500; letter-spacing: .4px;
  text-transform: uppercase;
}

nav { display: flex; gap: 5px; flex-shrink: 0; }
.nav-btn {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  padding: 8px 13px; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--head); font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}
.nav-btn:hover { color: var(--text); background: var(--panel-2); }
.nav-btn.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 0 var(--accent-3);
}

/* ============================================================
   Layout
   ============================================================ */
main { max-width: 1060px; margin: 0 auto; padding: 34px 20px 72px; }
.view { display: none; }
.view.active { display: block; }
.view.active > * + * { margin-top: var(--space-block); }
.view.active > h2 + .view-intro,
.view.active > h2 + .browse-controls,
.view.active > .section-title + .cards,
.view.active > .section-title + .trade-grid { margin-top: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .view.active { animation: view-in .28s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes view-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}

h2 {
  margin: 0 0 14px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 6vw, 46px); line-height: .98;
  letter-spacing: .5px; text-transform: uppercase;
}
.section-title {
  margin: 30px 0 18px;
  font-family: var(--head); font-size: 13px; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 2px; color: var(--muted);
  display: flex; align-items: center; gap: 14px;
}
.section-title::before {
  content: ''; width: 14px; height: 14px; flex-shrink: 0;
  background-image: var(--hazard); background-size: 20px 20px;
  border: 1px solid var(--accent-ink);
}
.section-title::after { content: ''; flex: 1; height: 2px; background: var(--line); }

/* ============================================================
   Hero — hazard placard
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 46px);
  margin-bottom: var(--space-section);
}
/* thick hazard bar down the left edge */
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 12px;
  background-size: 34px 34px;
}
/* oversized hazard chevron watermark, bottom-right */
.hero::after {
  content: "";
  position: absolute; right: -30px; bottom: -40px;
  width: 320px; height: 320px; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23ffd400' stroke-width='11'%3E%3Cpath d='M12 8 L46 50 L12 92 M50 8 L84 50 L50 92'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}
.hero > * { position: relative; z-index: 1; }
.hero h2 { color: var(--text); font-size: clamp(34px, 7.5vw, 68px); }
.hero .hero-hl { color: var(--accent); display: inline-block; }
.hero p {
  color: var(--text); font-weight: 400; line-height: 1.62;
  max-width: 58ch; margin: 14px 0 0;
}
.hero p strong { color: var(--accent-text); font-weight: 700; }

.hero-eyebrow {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--head); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--accent-ink); background: var(--accent);
  padding: 5px 12px; border-radius: 3px;
  box-shadow: 0 2px 0 var(--accent-3);
}

/* Hero stat strip — big mono numerals, industrial ticks */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px;
}
.hero-stat {
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 16px 10px 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  font-family: var(--head); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
}
.hero-stat b {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.05;
}

.cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

@media (min-width: 760px) {
  .hero { padding: 48px 52px 48px 56px; }
  .hero p { font-size: 16px; }
}

/* ============================================================
   Buttons — chunky, tactile, high-contrast
   ============================================================ */
.btn {
  border: none; border-radius: var(--radius-sm); padding: 13px 22px;
  font-family: var(--head); font-size: 15px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: .7px;
  transition: transform .08s ease, filter .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn.primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 4px 0 var(--accent-3);
}
.btn.primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 0 var(--accent-3), 0 6px 18px rgba(255,212,0,.28);
}
.btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-3); }
.btn.ghost {
  background: transparent; border: 2px solid var(--line); color: var(--text);
  padding: 11px 20px;
}
.btn.ghost:hover { border-color: var(--accent); background: rgba(255,212,0,.08); color: var(--text); }
.btn.ghost:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.btn:disabled:hover { filter: none; }

/* Inline busy spinner */
.btn-spin {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: btn-spin .6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-spin { animation-duration: 1.4s; } }

.back {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: var(--head); font-size: 14px; font-weight: 600; padding: 0 0 16px;
  text-transform: uppercase; letter-spacing: .6px;
  transition: color .15s, transform .15s;
}
.back:hover { color: var(--accent-text); transform: translateX(-3px); }

/* ============================================================
   Bank cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
#mock-cards, #mock-cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) {
  #mock-cards, #mock-cards-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  min-height: 168px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .15s ease, border-color .15s, box-shadow .15s; }
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.card h4 {
  margin: 0; font-family: var(--head); font-size: 20px; font-weight: 700;
  line-height: 1.15; text-transform: uppercase; letter-spacing: .3px;
}
.card p { margin: 0; flex: 1; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ============================================================
   Setup form
   ============================================================ */
.setup-card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px; max-width: 460px;
}
.setup-card label,
.dash-stats .stat span, .exam-facts li span {
  font-family: var(--head);
}
.setup-card label {
  display: flex; flex-direction: column; gap: 9px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.4px;
}
.setup-card select, .setup-card input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  font-family: var(--sans); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.setup-card select:hover, .setup-card input:hover,
#browse-topic:hover, #browse-search:hover { border-color: var(--accent); }
.setup-card select, #browse-topic { cursor: pointer; }
#setup-count { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.view-intro { color: var(--muted); max-width: 640px; margin: 0 0 14px; line-height: 1.6; }

/* Mock-exam cards */
.mock-card { min-height: 210px; }
.exam-facts {
  list-style: none; margin: 4px 0 0; padding: 14px 0 0;
  border-top: 2px solid var(--line-soft);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.exam-facts li {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-width: 70px; align-items: flex-start;
}
.exam-facts li span {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .9px;
  color: var(--faint); margin-top: 3px;
}
.exam-facts li b {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 22px; line-height: 1.05; font-weight: 700; color: var(--text);
}
.exam-facts li:last-child b { color: var(--accent-text); }
.mock-card .start-mock { margin-top: 16px; width: 100%; }

.setup-card select:focus, .setup-card input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,212,0,.22);
}
.setup-card small {
  color: var(--muted); font-size: 12px;
  border-left: 3px solid var(--accent); padding-left: 10px;
}

/* ============================================================
   Quiz header — progress + timer
   ============================================================ */
.quiz-header { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.quiz-header .back { padding: 0; align-self: center; }
.progress-wrap { flex: 1; display: flex; align-items: center; gap: 12px; }
.progress-bar {
  flex: 1; height: 10px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
}
#progress-fill {
  position: relative; overflow: hidden;
  height: 100%; width: 0;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.28) 0 6px, transparent 6px 12px),
    linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width .3s ease;
}
#progress-fill.full { box-shadow: 0 0 10px rgba(255,212,0,.6), 0 0 0 1px var(--accent) inset; }
@media (prefers-reduced-motion: no-preference) {
  #progress-fill::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transform: translateX(-100%);
    animation: sheen 2.2s ease-in-out infinite;
  }
  @keyframes sheen { to { transform: translateX(100%); } }
}
#progress-text { font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 700; }

.timer {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 18px; font-weight: 700;
  background: var(--panel); border: 2px solid var(--line);
  padding: 6px 12px; border-radius: var(--radius-sm); white-space: nowrap;
}
.timer::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
}
.timer.warn { color: var(--amber-warn); border-color: var(--amber-warn); }
.timer.warn::before { background: var(--amber-warn); box-shadow: 0 0 6px var(--amber-warn); }
@media (prefers-reduced-motion: no-preference) {
  .timer.warn { animation: live-pulse 1s steps(2, end) infinite; }
  @keyframes live-pulse { 50% { box-shadow: 0 0 0 3px rgba(255,176,32,.28); } }
}

/* ============================================================
   Question card + options
   ============================================================ */
.question-card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 30px);
}
.q-source {
  font-size: 11px; color: var(--faint);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px;
}
.q-text {
  font-family: var(--head);
  font-size: clamp(19px, 2.6vw, 24px); font-weight: 600; line-height: 1.32;
  color: var(--text); margin-bottom: 22px; letter-spacing: .2px;
}
.options { display: flex; flex-direction: column; gap: 12px; }

.option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 2px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-family: var(--sans);
  font-size: 15.5px; font-weight: 500; line-height: 1.45;
  cursor: pointer; text-align: left; width: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .option { transition: transform .13s ease, border-color .13s, background .13s, box-shadow .13s; }
}
.option > span:last-child { flex: 1; }
.option .letter {
  width: 32px; height: 32px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1.5px solid var(--line);
  color: var(--muted); font-size: 14px; font-weight: 700;
}

.option:hover:not(.disabled) {
  border-color: var(--accent);
  background: var(--panel-3);
  transform: translateX(3px);
}

.option.selected {
  border-color: var(--accent);
  background: rgba(255,212,0,.12);
  box-shadow: inset 4px 0 0 var(--accent);
  font-weight: 600;
}
.option.selected .letter {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
@media (prefers-reduced-motion: no-preference) {
  .option.selected { animation: patch-in .18s ease; }
  @keyframes patch-in {
    from { box-shadow: inset 4px 0 0 transparent; }
    to   { box-shadow: inset 4px 0 0 var(--accent); }
  }
}

.option.correct {
  border-color: var(--green);
  background: rgba(55,214,122,.15);
  box-shadow: inset 4px 0 0 var(--green);
}
.option.correct .letter { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.option.incorrect {
  border-color: var(--red);
  background: rgba(255,90,82,.15);
  box-shadow: inset 4px 0 0 var(--red);
}
.option.incorrect .letter { background: var(--red); border-color: var(--red); color: #fff; }
.option.disabled { cursor: default; }
.option.disabled:hover { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .option.correct { animation: conduct-on .3s ease both; }
  @keyframes conduct-on {
    0%   { box-shadow: inset 4px 0 0 var(--green); }
    40%  { box-shadow: inset 4px 0 0 var(--green), 0 0 0 3px rgba(55,214,122,.3); }
    100% { box-shadow: inset 4px 0 0 var(--green); }
  }
  .option.correct .letter { animation: letter-pop .26s ease both; }
  @keyframes letter-pop {
    0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); }
  }
  .option.incorrect { animation: nudge .22s ease both; }
  @keyframes nudge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); } 75% { transform: translateX(3px); }
  }
}

/* Feedback (practice reveal) */
.feedback {
  margin-top: 22px; padding: 18px 20px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius-sm); display: none;
}
.feedback:has(.verdict.right) { border-left-color: var(--green); }
.feedback:has(.verdict.wrong) { border-left-color: var(--red); }
.feedback.show { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .feedback.show { animation: trace-in .22s ease both; }
  @keyframes trace-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
  }
}
.feedback .verdict {
  font-family: var(--head); font-weight: 700; margin-bottom: 8px;
  font-size: 15px; letter-spacing: .5px; text-transform: uppercase;
}
.feedback .verdict.right { color: var(--green); }
.feedback .verdict.wrong { color: var(--red); }
.feedback .expl { color: var(--muted); font-size: 14px; line-height: 1.6; }

.quiz-nav { display: flex; gap: 12px; margin-top: 24px; justify-content: space-between; }
.quiz-nav .btn { min-width: 130px; }

/* ============================================================
   Results — score ring + review
   ============================================================ */
.score-summary {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px; text-align: center; margin-bottom: 24px;
}
.score-ring {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  width: 148px; height: 148px; border-radius: 50%;
  font: 700 42px/1 var(--mono); color: var(--text);
  background: radial-gradient(circle at center, var(--panel) 60%, transparent 61%);
}
.score-ring::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; z-index: -1;
  background: conic-gradient(var(--ring-c, var(--accent)) 100%, var(--line) 0);
}
.score-ring.pass { --ring-c: var(--green); color: var(--green); }
.score-ring.fail { --ring-c: var(--red); color: var(--red); }
.score-summary .sub { color: var(--muted); margin-top: 14px; }
.score-summary .sub strong {
  font-family: var(--head); text-transform: uppercase; letter-spacing: 1px;
}
.score-summary .sub .pass, .score-summary .pass { color: var(--green); }
.score-summary .sub .fail, .score-summary .fail { color: var(--red); }

.results-review { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.review-item {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 5px solid var(--line); border-radius: var(--radius);
  padding: 16px;
}
.review-item.right { border-left-color: var(--green); }
.review-item.wrong { border-left-color: var(--red); }
.review-item .rq { font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.45; }
.review-item .ra { font-size: 14px; color: var(--muted); }
.review-item .ra b { color: var(--text); }
.review-item .rexpl { font-size: 13px; color: var(--muted); margin-top: 8px; font-style: italic; line-height: 1.55; }

/* ============================================================
   Misc
   ============================================================ */
.hidden { display: none !important; }
.foot {
  text-align: center; padding: 26px 24px;
  color: var(--faint); font-size: 11.5px; font-family: var(--mono);
  border-top: 2px solid var(--line-soft); line-height: 1.6;
}

/* ============================================================
   Responsive — down to 360px
   ============================================================ */
@media (max-width: 560px) {
  .topbar { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 14px; }
  .brand { justify-content: flex-start; }
  nav {
    gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%);
  }
  nav::-webkit-scrollbar { display: none; }
  .nav-btn { white-space: nowrap; padding: 10px 14px; min-height: 42px; display: inline-flex; align-items: center; }

  main { padding: 18px 16px 52px; }
  .hero { padding: 26px 22px 26px 26px; margin-bottom: 24px; }
  .hero::after { width: 200px; height: 200px; right: -40px; bottom: -30px; }
  .hero p { margin-top: 12px; }
  .hero-stat { flex: 1; min-width: 92px; }
  .section-title { margin: 24px 0 14px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; text-align: center; }

  .quiz-nav { flex-wrap: wrap; }
  .quiz-nav .btn { min-width: 0; flex: 1; }
  .score-ring { width: 120px; height: 120px; font-size: 34px; }

  .trade-grid { grid-template-columns: 1fr; gap: 12px; }
  .trade-card { min-height: 0; }
  .trade-icon { font-size: 30px; }

  .browse-controls { flex-direction: column; gap: 10px; }
  #browse-topic { width: 100%; }
  #browse-search, #browse-topic { font-size: 16px; min-height: 46px; }
  .browse-list { gap: 12px; }
  .browse-item { padding: 15px 16px; }
  .bi-q { font-size: 15px; }
  .browse-count { text-align: left; margin-bottom: 14px; }

  .back { padding: 8px 4px 14px; min-height: 36px; display: inline-flex; align-items: center; margin-left: -4px; }
}

/* ============================================================
   Auth area, modal, dashboard
   ============================================================ */
.auth-area { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: var(--radius-sm); }
.btn.ghost.btn-sm { padding: 7px 13px; }
.user-chip {
  font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--accent-ink);
  background: var(--accent); border: 1px solid var(--accent-2);
  padding: 5px 11px; border-radius: 3px; max-width: 170px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .4px;
}
.linklike {
  background: none; border: none; color: var(--accent-text); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline;
}
.auth-switch .linklike, .auth-forgot .linklike { display: inline-block; padding: 6px 4px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--overlay); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 390px; overflow: hidden;
  background: var(--panel); border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px; box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
/* hazard strip across the modal top */
.modal::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background-image: var(--hazard); background-size: 34px 34px;
}
.modal h3 {
  margin: 0 0 18px; font-family: var(--display); font-weight: 400;
  font-size: 24px; text-transform: uppercase; letter-spacing: .5px;
}
.modal-close {
  position: absolute; top: 10px; right: 8px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer; border-radius: var(--radius-sm);
}
.modal-close:hover { color: var(--text); background: var(--panel-2); }
#auth-form, #reset-form { display: flex; flex-direction: column; gap: 14px; }
#auth-form label, #reset-form label {
  display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted);
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
}
#auth-form label[hidden], #reset-form label[hidden] { display: none; }
#auth-form input, #reset-form input {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: 11px 12px; border-radius: var(--radius-sm); font-size: 16px; font-family: var(--sans);
}
#auth-form input:focus, #reset-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,212,0,.22); }
#auth-form .btn, #reset-form .btn { margin-top: 4px; }

/* Password show/hide eye toggle */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; box-sizing: border-box; }
.pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; font-size: 16px; line-height: 1;
  color: var(--muted); border-radius: var(--radius-sm);
}
.pw-toggle:hover { color: var(--text); }
.auth-error {
  background: rgba(255,90,82,.14); border: 1px solid var(--red);
  color: var(--red); padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13px;
}
.auth-switch { margin: 16px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Dashboard */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 14px; margin-bottom: 8px; }
.dash-stats .stat {
  background: var(--panel); border: 2px solid var(--line);
  border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.dash-stats .stat span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .9px; color: var(--faint); }
.dash-stats .stat b { font-family: var(--mono); font-size: 28px; font-weight: 700; }
.dash-stats .stat b.pass { color: var(--green); }
.dash-stats .stat b.fail { color: var(--red); }
.dash-history { display: flex; flex-direction: column; gap: 8px; }
.hist-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-left: 5px solid var(--line); border-radius: var(--radius); padding: 13px 16px;
}
.hist-row.right { border-left-color: var(--green); }
.hist-row.wrong { border-left-color: var(--red); }
.hist-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hist-mode { font-family: var(--head); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; color: var(--faint); }
.hist-exam { font-weight: 600; font-size: 14px; }
.hist-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.hist-when { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.hist-score { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.hist-score.pass { color: var(--green); }
.hist-score.fail { color: var(--red); }
.muted-line { color: var(--muted); padding: 14px 0; }
.dash-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 40px 24px;
  background: var(--panel); border: 2px dashed var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); color: var(--muted); font-size: 14.5px;
}
.dash-empty::before { content: '🦺'; font-size: 30px; line-height: 1; }
.dash-empty .linklike { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .muted-line { animation: soft-pulse 1.4s ease-in-out infinite; }
  @keyframes soft-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
}

@media (max-width: 560px) {
  .auth-area { width: 100%; justify-content: center; gap: 10px; }
  .auth-area .btn-sm, #install-btn { min-height: 42px; padding: 9px 16px; flex: 1; max-width: 170px; }
  .user-chip { max-width: none; }
}

/* ============================================================
   Topic analytics
   ============================================================ */
.topic-breakdown {
  margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--line);
  text-align: left;
}
.topic-breakdown h4 { margin: 0 0 14px; font-family: var(--head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.topic-row { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 12px; margin-bottom: 9px; }
.topic-name { font-size: 13px; color: var(--text); text-align: left; }
.topic-bar { height: 10px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 3px; overflow: hidden; }
.topic-fill { height: 100%; border-radius: 2px; transition: width .4s; }
.topic-fill.strong { background: var(--green); }
.topic-fill.ok { background: var(--amber-warn); }
.topic-fill.weak { background: var(--red); }
.topic-pct { font-family: var(--mono); font-size: 13px; font-weight: 700; min-width: 64px; text-align: right; }
.topic-pct small { font-weight: 400; color: var(--muted); }
.topic-pct.strong { color: var(--green); }
.topic-pct.ok { color: var(--amber-warn); }
.topic-pct.weak { color: var(--red); }
.topic-tip { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.topic-tip strong { color: var(--red); }
.topic-tip.good strong, .topic-tip.good { color: var(--green); }

.review-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.topic-tag, .reg-tag {
  font-size: 12px; padding: 4px 10px; border-radius: 3px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--head); font-weight: 500; letter-spacing: .3px;
}
.reg-tag { color: var(--accent-text); font-family: var(--mono); }

.dash-topics { margin: 8px 0; }

.trust-note {
  color: var(--green); font-size: 13px; font-weight: 600; margin: 0 0 24px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(55,214,122,.08); border: 1px solid rgba(55,214,122,.28);
  padding: 8px 13px; border-radius: 3px;
}

/* ============================================================
   Trade picker (entry screen) — hazard site-signs
   ============================================================ */
.hero-trades { text-align: left; }
.trade-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.trade-card {
  position: relative; overflow: hidden;
  text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--panel); border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 20px; display: flex; flex-direction: column; gap: 6px; min-height: 178px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
/* hi-vis header strip — the "site sign" tab */
.trade-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background-image: var(--hazard); background-size: 30px 30px;
}
.trade-card.live:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,.42);
}
.trade-card.soon { opacity: .5; cursor: not-allowed; transition: opacity .15s, border-color .15s; }
.trade-card.soon::before { filter: grayscale(1) brightness(.7); }
.trade-card.soon:hover { opacity: .72; border-color: var(--line); }
.trade-icon { font-size: 36px; line-height: 1; margin-bottom: 6px; }
.trade-name { font-family: var(--head); font-size: 20px; font-weight: 700; line-height: 1.12; text-transform: uppercase; letter-spacing: .3px; }
.trade-tagline { font-size: 13px; color: var(--muted); flex: 1; line-height: 1.5; margin-bottom: 4px; }
.trade-badge {
  margin-top: auto; font-size: 12px; padding: 5px 11px; border-radius: 3px;
  align-self: flex-start; font-family: var(--head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.trade-badge.live { background: var(--accent); border: 1px solid var(--accent-2); color: var(--accent-ink); }
.trade-badge.soon { background: var(--panel-2); border: 1px solid var(--line); color: var(--faint); }

/* ============================================================
   Browse / search question bank
   ============================================================ */
.browse-controls {
  display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
  position: sticky; top: 66px; z-index: 5;
  background: var(--bg); padding: 10px 0;
  box-shadow: 0 8px 12px -8px rgba(6,7,9,.85);
}
.browse-count { position: sticky; top: 126px; z-index: 5; background: var(--bg); }
#browse-search {
  flex: 1; min-width: 220px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 16px; font-family: var(--sans);
}
#browse-search:focus, #browse-topic:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,212,0,.22); }
#browse-topic {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 16px;
}
.browse-count { color: var(--muted); font-size: 13px; margin: 0 0 18px; padding-top: 2px; font-family: var(--mono); }
@media (min-width: 560px) { .browse-count { text-align: right; } }
.browse-list { display: flex; flex-direction: column; gap: 14px; }
.browse-item {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
@media (prefers-reduced-motion: no-preference) {
  .browse-item { transition: border-color .15s, box-shadow .15s, transform .15s; }
}
.browse-item:hover {
  border-left-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transform: translateY(-1px);
}
.bi-q { font-weight: 600; font-size: 15.5px; margin-bottom: 12px; line-height: 1.5; }
.bi-a { font-size: 14px; color: var(--text); margin-bottom: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.bi-a .bi-label, .bi-label {
  font-family: var(--head); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--green);
  font-weight: 700; margin-right: 6px;
}
.bi-expl { font-size: 13px; color: var(--muted); line-height: 1.55; font-style: italic; margin-bottom: 12px; }
.bi-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.browse-more-wrap { text-align: center; margin-top: 18px; }

.browse-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 48px 24px;
  background: var(--panel); border: 2px dashed var(--line); border-radius: var(--radius);
  color: var(--muted);
}
.browse-empty-ico { font-family: var(--mono); font-size: 34px; line-height: 1; color: var(--accent-text); opacity: .8; margin-bottom: 4px; }
.browse-empty-title { margin: 0; font-weight: 700; color: var(--text); font-size: 16px; }
.browse-empty-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .browse-empty { animation: trace-in .22s ease both; }
}

/* ============================================================
   Day / night theme toggle
   ============================================================ */
.theme-toggle {
  background: var(--panel-2); border: 2px solid var(--line); color: var(--text);
  width: 40px; height: 40px; border-radius: var(--radius-sm); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 16px; line-height: 1; padding: 0;
  transition: background .15s, border-color .15s, transform .1s;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle:active { transform: translateY(0); }
.theme-ico { display: none; }
:root[data-theme="dark"]  .theme-ico-moon { display: inline; }
:root[data-theme="light"] .theme-ico-sun  { display: inline; }

/* ============================================================
   Paywall / upgrade — premium warning placard
   ============================================================ */
.plan-badge.premium {
  font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  border: 1px solid var(--accent-2); padding: 5px 11px; border-radius: 3px;
}
.upgrade-card {
  position: relative; overflow: hidden;
  max-width: 480px; margin: 10px auto 0; text-align: center;
  background: var(--panel);
  border: 3px solid var(--accent);
  border-radius: var(--radius); padding: 38px 28px 32px;
}
.upgrade-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background-image: var(--hazard); background-size: 34px 34px;
}
.upgrade-badge {
  display: inline-block; font-family: var(--head); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); border: 1px solid var(--accent-2);
  padding: 6px 13px; border-radius: 3px; margin-bottom: 16px;
}
.upgrade-card h2 { margin: 0 0 10px; }
.upgrade-price { margin: 6px 0 2px; }
.up-amount { font-family: var(--mono); font-size: 44px; font-weight: 700; color: var(--text); }
.up-per { color: var(--muted); font-size: 16px; }
.upgrade-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.upgrade-list { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; display: flex; flex-direction: column; gap: 11px; }
.upgrade-list li { position: relative; padding-left: 30px; font-size: 14px; line-height: 1.45; }
.upgrade-list li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); background: var(--accent); border-radius: 3px;
  font-weight: 700; font-size: 12px;
}
.upgrade-cta { width: 100%; font-size: 16px; padding: 15px; }
.upgrade-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); min-height: 18px; }
.upgrade-note.is-error { color: var(--red); }

.results-upsell {
  margin-top: 22px; padding: 18px; border-radius: var(--radius);
  background: rgba(255,212,0,.09); border: 1px solid var(--accent); text-align: center;
}
.results-upsell p { margin: 0 0 12px; color: var(--text); font-size: 14px; }

/* Auth success message + forgot-password link */
.auth-ok {
  background: rgba(55,214,122,.14); border: 1px solid var(--green);
  color: var(--green); padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13px;
}
.auth-forgot { margin: 12px 0 0; text-align: center; }
.auth-forgot .linklike { font-size: 13px; color: var(--muted); }
.auth-forgot .linklike:hover { color: var(--accent-text); }

/* Brand wordmark — hi-vis "Pass" */
.brand h1 .brand-pass { color: var(--accent); }

/* Admin link in the top bar (admins only) */
.admin-link { text-decoration: none; border: 2px solid var(--accent) !important; color: var(--accent-text) !important; }
.admin-link:hover { background: rgba(255,212,0,.1) !important; }

/* Question diagram/image */
.q-image { margin: 14px 0 18px; }
.q-image img {
  max-width: 100%; height: auto; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; padding: 8px; display: block;
}
.bi-q + .q-image { margin: 10px 0 12px; }
.bi-q + .q-image img { max-width: 340px; }

/* AI-generated explanation honesty note */
.ai-note {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 600;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 3px; vertical-align: middle; letter-spacing: .02em;
}

/* ============================================================
   MARKETING LANDING — sections inside #view-trades
   Vertical rhythm: big, deliberate gaps between sections.
   ============================================================ */
.view.active > .mkt { margin-top: clamp(54px, 8.5vw, 96px); }
.mkt { scroll-margin-top: 90px; }
.mkt > .section-title:first-child { margin-top: 0; }

/* ---- Trust strip ---- */
.trust-strip {
  list-style: none; margin: 0; padding: 16px 20px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 10px 26px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 5px solid var(--accent); border-radius: var(--radius);
}
.trust-strip li {
  position: relative; display: inline-flex; align-items: center;
  font-family: var(--head); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .8px; color: var(--muted);
  white-space: nowrap;
}
.trust-strip li + li::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; background: var(--accent); border-radius: 1px;
}

/* ---- Section subheads: allow a lead paragraph under a section-title ---- */
.mkt-lead { color: var(--muted); max-width: 68ch; margin: -6px 0 22px; line-height: 1.6; }

/* ---- Why: value cards ---- */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.why-card {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.why-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.why-ico {
  width: 48px; height: 48px; flex-shrink: 0; margin-bottom: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); background: var(--accent);
  border-radius: var(--radius-sm); box-shadow: 0 3px 0 var(--accent-3);
}
.why-ico svg { width: 26px; height: 26px; }
.why-card h4 {
  margin: 0; font-family: var(--head); font-size: 18px; font-weight: 700;
  line-height: 1.15; text-transform: uppercase; letter-spacing: .3px;
}
.why-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.58; }

/* ---- How it works: steps ---- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  counter-reset: step;
}
.step {
  position: relative; background: var(--panel); border: 2px solid var(--line);
  border-top: 5px solid var(--accent); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.step-num {
  font-family: var(--display); font-weight: 400; font-size: 40px; line-height: .9;
  color: var(--accent); letter-spacing: 1px;
  -webkit-text-stroke: 0; margin-bottom: 2px;
}
.step h4 {
  margin: 0; font-family: var(--head); font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px; line-height: 1.15;
}
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.58; }

/* ---- Sample question ---- */
.sample-card {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 32px);
  position: relative; overflow: hidden;
}
.sample-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background-image: var(--hazard); background-size: 34px 34px;
}
.sq-source {
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  text-transform: uppercase; letter-spacing: .6px; margin: 6px 0 12px;
}
.sq-text {
  font-family: var(--head); font-size: clamp(19px, 2.6vw, 23px); font-weight: 600;
  line-height: 1.34; color: var(--text); margin: 0 0 20px; letter-spacing: .2px;
}
.sq-text em { color: var(--accent-text); font-style: normal; }
.sq-options { display: flex; flex-direction: column; gap: 12px; }
.sq-option {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 15px; background: var(--bg-2);
  border: 2px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.4;
}
.sq-option > span:nth-child(2) { flex: 1; }
.sq-option .letter {
  width: 30px; height: 30px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1.5px solid var(--line);
  color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 700;
}
.sq-option.is-answer {
  border-color: var(--green); background: rgba(55,214,122,.14);
  box-shadow: inset 4px 0 0 var(--green);
}
.sq-option.is-answer .letter { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.sq-tick {
  flex-shrink: 0; font-family: var(--head); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; color: var(--green-ink);
  background: var(--green); padding: 4px 9px; border-radius: 3px;
}
.sq-expl {
  margin-top: 18px; padding: 16px 18px; font-size: 14px; line-height: 1.6;
  color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-sm);
}
.sq-expl b { color: var(--green); font-family: var(--head); text-transform: uppercase; font-size: 13px; letter-spacing: .4px; margin-right: 4px; }

/* ---- Figures band ---- */
.figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.fig {
  padding: 26px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border-left: 1px solid var(--line);
}
.fig:first-child { border-left: none; }
.fig b {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 6vw, 46px); font-weight: 700; line-height: .95; color: var(--accent);
}
.fig b small { font-size: .5em; color: var(--muted); font-weight: 700; }
.fig span {
  font-family: var(--head); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .7px; color: var(--muted); line-height: 1.3;
}

/* ---- Pricing teaser ---- */
.price-card {
  position: relative; overflow: hidden;
  max-width: 560px; margin: 0 auto;
  background: var(--panel); border: 3px solid var(--accent); border-radius: var(--radius);
  padding: 34px 30px 30px;
}
.price-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background-image: var(--hazard); background-size: 34px 34px;
}
.price-head { text-align: center; }
.price-badge {
  display: inline-block; font-family: var(--head); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); border: 1px solid var(--accent-2);
  padding: 6px 13px; border-radius: 3px; margin-bottom: 14px;
}
.price-amount { margin: 4px 0 2px; }
.pa-num { font-family: var(--mono); font-size: 46px; font-weight: 700; color: var(--text); }
.pa-per { color: var(--muted); font-size: 16px; margin-left: 4px; }
.price-sub { color: var(--muted); font-size: 14px; margin: 6px auto 0; max-width: 44ch; line-height: 1.55; }
.price-list {
  list-style: none; padding: 22px 0; margin: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.price-list li { position: relative; padding-left: 32px; font-size: 14.5px; line-height: 1.45; }
.price-list li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); background: var(--accent); border-radius: 3px;
  font-weight: 700; font-size: 12px;
}
.price-cta { width: 100%; font-size: 16px; padding: 15px; }
.price-foot { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--faint); }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.faq-item {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s ease;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 17px 52px 17px 20px; position: relative;
  font-family: var(--head); font-size: 16px; font-weight: 600; color: var(--text);
  line-height: 1.35; letter-spacing: .2px;
  transition: color .15s ease, background .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item summary:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(255,212,0,.45); border-radius: var(--radius-sm); }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 22px; font-weight: 700; line-height: 1;
  color: var(--accent-ink); background: var(--accent); border-radius: 3px;
  transition: transform .18s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
}
.faq-body { padding: 0 20px 18px; }
.faq-body p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.62; max-width: 70ch; }

/* ---- Final CTA band ---- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--radius);
  padding: clamp(34px, 6vw, 56px) clamp(22px, 5vw, 48px);
}
.cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background-image: var(--hazard); background-size: 34px 34px;
}
.cta-chevron {
  display: block; font-family: var(--display); font-size: clamp(40px, 9vw, 68px);
  line-height: .8; color: var(--accent); opacity: .9; margin-bottom: 8px;
}
.cta-band h3 {
  margin: 0 0 10px; font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 6vw, 48px); line-height: .98; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text);
}
.cta-band p { margin: 0 auto 24px; color: var(--muted); max-width: 52ch; line-height: 1.55; }
.cta-band .btn { font-size: 16px; padding: 15px 30px; }

/* ============================================================
   Richer footer
   ============================================================ */
.foot {
  border-top: none;
  padding: 0; color: var(--faint); font-family: var(--sans);
  border-top: 2px solid var(--line);
  margin-top: 40px;
}
.foot-top {
  max-width: 1060px; margin: 0 auto;
  padding: 40px 20px 28px;
  display: flex; flex-wrap: wrap; gap: 34px 48px; justify-content: space-between;
}
.foot-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 340px; }
.foot-logo { display: inline-flex; line-height: 0; flex-shrink: 0; margin-top: 2px; }
.foot-name {
  font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1;
  text-transform: uppercase; letter-spacing: .5px; color: var(--text);
}
.foot-tag { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-col h5 {
  margin: 0 0 4px; font-family: var(--head); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.4px; color: var(--text);
}
.foot-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; color: var(--muted); text-align: left;
  transition: color .15s ease, transform .15s ease;
}
.foot-link:hover { color: var(--accent-text); transform: translateX(2px); }
.foot-link:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,212,0,.45); border-radius: 3px; }
.foot-legal {
  max-width: 1060px; margin: 0 auto; padding: 18px 20px 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px; color: var(--faint); line-height: 1.65;
}

/* ============================================================
   MARKETING — responsive
   ============================================================ */
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .fig:nth-child(3) { border-left: none; }
  .fig:nth-child(3), .fig:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trust-strip { justify-content: flex-start; gap: 12px 24px; padding: 15px 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .sample-card { padding: 22px 18px; }
  .sq-option { flex-wrap: wrap; }
  .sq-tick { margin-left: 44px; }
  .price-card { padding: 30px 20px 24px; }
  .foot-top { gap: 28px; padding: 32px 16px 24px; }
  .foot-cols { gap: 32px; width: 100%; }
  .foot-legal { padding: 16px 16px 28px; }
}
@media (max-width: 380px) {
  .figures { grid-template-columns: 1fr; }
  .fig { border-left: none; border-top: 1px solid var(--line); }
  .fig:first-child { border-top: none; }
}
