/* ============================================================================
   HexAlpha Academy, slice styles
   Tokens from Launch/02_Brand_and_Design_System.md §5 (Hexenkraft dark system + HexAlpha Academy roles).
   Accessibility (§10): skip link, visible focus, AA contrast, prefers-reduced-motion,
   16px body floor, never color-only meaning. NO magic prices/numbers live here, those
   are config-driven and injected by app.js.
   ============================================================================ */

:root {
  /* Neutrals (Hexenkraft) */
  --bg-primary:    #0a0e27;
  --bg-secondary:  #12192d;
  --bg-tertiary:   #1a2540;
  --surface:       #0f1429;

  --text-primary:   #f5f7fa;
  --text-secondary: #b0b8c8;
  --text-tertiary:  #7d8a9d;

  --border:        #2a3556;
  --border-light:  #1e2a42;

  /* Accents */
  --accent-teal:  #14b8a6;
  --accent-blue:  #3b82f6;
  --accent-amber: #f59e0b;
  --accent-red:   #ef4444;
  --accent-violet:#8b5cf6;

  --success: #10b981;
  --warning: #f59e0b;
  --error:   #ef4444;
  --info:    #3b82f6;

  /* HexAlpha Academy level roles */
  --level-1: #14b8a6;
  --level-2: #3b82f6;
  --level-3: #8b5cf6;

  /* Disclosure (signature component) */
  --disclosure-bg:   rgba(245, 158, 11, 0.08);
  --disclosure-edge: rgba(245, 158, 11, 0.40);

  --maxw: 1120px;
  --maxw-narrow: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px; /* body floor */
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--text-primary); line-height: 1.2; font-weight: 700; }
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 32px 20px 64px; }
.mono { font-family: "Fira Code", "JetBrains Mono", monospace; }
.muted { color: var(--text-tertiary); }
.hidden { display: none !important; }

/* ---- Skip link (a11y) ---- */
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 12px; background: var(--accent-teal); color: #04201d;
  padding: 8px 14px; border-radius: 6px; z-index: 100;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; border: none; border-radius: 6px; padding: 12px 20px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 150ms ease-out; font-family: inherit; text-align: center;
}
.btn-primary { background: var(--accent-teal); color: #04201d; }
.btn-primary:hover { background: #10a394; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(20,184,166,.25); text-decoration: none; }
.btn-blue { background: var(--accent-blue); color: #fff; }
.btn-blue:hover { background: #2563eb; transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent-teal); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20,184,166,.25), 0 0 0 2px var(--accent-teal); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---- Disclosure (P1, equal prominence, never shrunk below body) ---- */
/* Rendered by app.js renderDisclosure(); prominence class controls treatment. */
.disclosure {
  border-left: 3px solid var(--accent-amber);
  background: var(--disclosure-bg);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 16px;            /* equal prominence, never shrink */
  color: var(--text-secondary);
  margin: 14px 0;
}
.disclosure strong { color: var(--text-primary); }
.disclosure a { color: var(--accent-blue); }
.disclosure .lbl {
  display: inline-block; color: var(--accent-amber); font-weight: 700;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px;
}
.disclosure .draft-flag {
  display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700;
  color: var(--accent-amber); border: 1px solid var(--disclosure-edge);
  border-radius: 999px; padding: 1px 8px; vertical-align: middle;
}
/* P2, persistent minor: legible but smaller, full opacity, on-screen the whole time. */
.disclosure.p2 { font-size: 12.5px; padding: 10px 16px; }
/* P3, gateway: rendered inside the gate modal; same equal-prominence text. */
.disclosure.p3 { font-size: 16px; }

/* ---- Header / nav ---- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,39,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text-primary); font-size: 17px; }
.brand svg { display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 14px; }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---- Hero ---- */
.hero {
  padding: 96px 0 64px; border-bottom: 1px solid var(--border-light);
  background:
    linear-gradient(90deg, rgba(10,14,39,.97) 0%, rgba(10,14,39,.94) 55%, rgba(10,14,39,.6) 100%),
    linear-gradient(180deg, rgba(10,14,39,.35) 0%, rgba(10,14,39,0) 40%, var(--bg-primary) 100%),
    url(brand/hero.jpg) center / cover no-repeat;
}
@media (max-width: 820px) {
  .hero { padding: 64px 0 48px; background-image:
    linear-gradient(180deg, rgba(10,14,39,.8) 0%, rgba(10,14,39,.9) 60%, var(--bg-primary) 100%),
    url(brand/hero-sm.jpg); }
}
.eyebrow { color: var(--accent-teal); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; max-width: 18ch; }
.hero p.lede { font-size: clamp(17px, 2.2vw, 20px); max-width: 60ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-secondary); font-size: 14px; margin-top: 8px; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-teal); display: inline-block; }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-label { color: var(--accent-teal); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
h2.sh { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; max-width: 24ch; }
.sub { font-size: 17px; max-width: 64ch; margin-bottom: 36px; }

/* ---- Cards / pillars ---- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card .ic { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; background: var(--bg-tertiary); }

/* ---- Level cards ---- */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .levels { grid-template-columns: 1fr; } }
.lvl { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 24px; position: relative; overflow: hidden; }
.lvl::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.lvl.l1::before { background: var(--level-1); }
.lvl.l2::before { background: var(--level-2); }
.lvl.l3::before { background: var(--level-3); }
.lvl .tier { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 600; }
.lvl h3 { font-size: 21px; margin: 6px 0 4px; }
.lvl .can { font-size: 14px; color: var(--text-tertiary); margin-bottom: 16px; }
.pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.pill.free { background: rgba(20,184,166,.15); color: var(--accent-teal); }
.pill.paid { background: rgba(59,130,246,.13); color: #93b4f7; }
.lvl ul { list-style: none; margin: 14px 0 0; font-size: 14.5px; }
.lvl li { padding: 6px 0 6px 22px; position: relative; }
.lvl li::before { content: "\203A"; position: absolute; left: 4px; color: var(--accent-teal); }
.price-note { font-size: 13px; color: var(--text-tertiary); margin-top: 14px; border-top: 1px solid var(--border-light); padding-top: 12px; }

/* ---- The 5-beat loop ---- */
.loop { display: flex; gap: 12px; flex-wrap: wrap; }
.loop .step { flex: 1; min-width: 150px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.loop .step .n { color: var(--accent-teal); font-weight: 700; font-size: 13px; font-family: "Fira Code", monospace; }
.loop .step h3 { color: var(--text-primary); font-size: 15px; margin: 8px 0 4px; }
.loop .step p { font-size: 13.5px; color: var(--text-tertiary); }

/* ---- HexAlpha band + chain mock ---- */
.band { background: linear-gradient(180deg, var(--bg-secondary), var(--surface)); border: 1px solid var(--border); border-radius: 16px; padding: 36px; }
.band .grid2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .band .grid2 { grid-template-columns: 1fr; } }
.chainmock { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 10px; padding: 14px; font-family: "Fira Code", monospace; font-size: 12.5px; }
.chainmock table { width: 100%; border-collapse: collapse; }
.chainmock th { color: var(--text-tertiary); text-align: right; font-weight: 500; padding: 5px 8px; border-bottom: 1px solid var(--border-light); font-size: 11px; }
.chainmock td { text-align: right; padding: 5px 8px; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); }
.chainmock tr.atm td { background: rgba(20,184,166,.07); color: var(--text-primary); }
.chainmock .tk { color: var(--accent-teal); }
.obs { display: inline-block; margin-top: 10px; font-size: 11px; color: var(--text-tertiary); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }

/* ---- "How we make money" ---- */
.money { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }

/* ---- FAQ ---- */
details { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 0 20px; margin-bottom: 12px; }
details summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--text-primary); font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent-teal); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "\2013"; }
details .body { padding: 0 0 18px; font-size: 15px; }

/* ---- Signup / waitlist + auth ---- */
.waitlist { background: linear-gradient(180deg, var(--bg-tertiary), var(--bg-secondary)); border: 1px solid var(--border); border-radius: 16px; padding: 40px; text-align: center; }
.waitlist h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
form.signup { max-width: 520px; margin: 22px auto 0; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input[type=email], .field-row input[type=text], .field-row input[type=password] {
  flex: 1; min-width: 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 13px 14px; color: var(--text-primary); font-size: 15px; font-family: inherit;
}
.field-row input:focus-visible { outline: none; border-color: var(--accent-teal); box-shadow: 0 0 0 3px rgba(20,184,166,.18); }
.consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin-top: 14px; font-size: 13px; color: var(--text-tertiary); }
.consent input { margin-top: 3px; flex-shrink: 0; }
.ok { display: none; margin-top: 16px; color: var(--accent-teal); font-weight: 600; }
.auth-switch { margin-top: 14px; font-size: 13px; }
.verify-nudge { margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 13.5px; color: var(--text-secondary); }
.verify-nudge .btn { padding: 4px 10px; font-size: 13px; margin: 0 4px; }
.auth-err { margin-top: 12px; color: #f87171; font-size: 14px; }
.wl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.wl input[type=email] { flex: 1 1 160px; min-width: 0; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-primary); font-size: 14px; }
.wl input:focus-visible { outline: none; border-color: var(--accent-teal); box-shadow: 0 0 0 3px rgba(20,184,166,.18); }
.wl .btn { padding: 9px 14px; font-size: 14px; }
.wl-ok { color: var(--accent-teal); font-size: 13px; font-weight: 600; }
.ok.show { display: block; }

/* ---- Lesson player (learn.html) ---- */
.learn-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; padding: 32px 0 64px; }
@media (max-width: 900px) { .learn-grid { grid-template-columns: 1fr; } }
.module-list { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 14px; position: sticky; top: 84px; }
.module-list h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); margin: 6px 8px 12px; }
.module-list ol { list-style: none; counter-reset: m; }
.module-list li { margin: 2px 0; }
.module-list button {
  width: 100%; text-align: left; display: flex; gap: 10px; align-items: baseline;
  background: transparent; border: none; color: var(--text-secondary); font: inherit;
  padding: 10px 8px; border-radius: 8px; cursor: pointer;
}
.module-list button:hover { background: var(--surface); color: var(--text-primary); }
.module-list button[aria-current="true"] { background: var(--bg-tertiary); color: var(--text-primary); }
.module-list button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent-blue); }
.module-list .mid { font-family: "Fira Code", monospace; font-size: 12px; color: var(--accent-teal); flex-shrink: 0; min-width: 30px; }
.module-list .state { margin-left: auto; font-size: 11px; color: var(--text-tertiary); }
.module-list .state.done { color: var(--accent-teal); }

.player { min-width: 0; }
.player .crumbs { font-size: 13px; color: var(--text-tertiary); margin-bottom: 10px; }
.player h1 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 6px; }
.player .why { font-style: italic; color: var(--text-tertiary); margin-bottom: 18px; }
.video-slot {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 12px;
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; position: relative; overflow: hidden; text-align: center; padding: 24px;
}
.video-slot .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(20,184,166,.15); display: flex; align-items: center; justify-content: center; color: var(--accent-teal); font-size: 26px; }
.video-slot .vt { color: var(--text-secondary); font-size: 14px; max-width: 46ch; }
/* narrated-audio variant: natural height, left-aligned, room for the lower-third */
.video-slot.audio { aspect-ratio: auto; align-items: stretch; text-align: left; padding: 16px 16px 44px; }
.lessons { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.lesson { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: var(--bg-secondary, transparent); }
.lesson summary { cursor: pointer; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.lesson summary .mid { font-family: "Fira Code", monospace; color: var(--accent-teal); font-size: 13px; }
.lesson summary .mins { margin-left: auto; color: var(--text-tertiary); font-weight: 400; font-size: 13px; }
.lesson audio { width: 100%; margin: 10px 0 8px; }
/* stage: the current shot-list beat as a card over an optional still (slow pan), subtitles inside at the bottom */
.stage {
  aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--border);
  background: radial-gradient(120% 90% at 20% 0%, rgba(20,184,166,.14), transparent 60%), var(--bg-primary);
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 24px 32px 64px;
}
.stage-art { position: absolute; inset: -6%; background-size: cover; background-position: center; opacity: 0; }
.stage.has-image .stage-art { opacity: 1; animation: stage-pan 18s ease-in-out both; }
.stage.has-image.pan-alt .stage-art { animation-name: stage-pan-alt; }
@keyframes stage-pan { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, 1%); } }
@keyframes stage-pan-alt { from { transform: scale(1.06) translate(1.5%, -1%); } to { transform: scale(1) translate(0, 0); } }
.stage-kicker { position: relative; font-family: "Fira Code", monospace; font-size: 12px; color: var(--accent-teal); letter-spacing: .08em; margin-bottom: 10px; }
.stage-text { position: relative; font-size: clamp(18px, 2.6vw, 30px); font-weight: 600; line-height: 1.25; max-width: 28ch; color: var(--text-primary); }
.stage.has-image .stage-kicker { position: absolute; top: 12px; left: 16px; margin: 0; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.stage.has-image .stage-text {
  position: absolute; top: 34px; left: 16px; right: 16px; max-width: none; font-size: clamp(14px, 1.6vw, 19px);
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); text-align: left;
}
.stage.in .stage-text, .stage.in .stage-kicker { animation: stage-in .45s ease-out both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.subtitle {
  position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 8px 12px; border-radius: 6px;
  background: rgba(10,14,39,.78); color: #fff; font-size: clamp(14px, 1.5vw, 18px); line-height: 1.35; text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.5); min-height: 1.35em;
}
.subtitle { display: none; }
body.cc .subtitle { display: block; }
body.cc .subtitle:empty { display: none; }
.lesson-tools { display: flex; justify-content: flex-end; padding: 6px 0; }
.module-list li.done button::after { content: "\2713"; color: var(--accent-teal); margin-left: auto; padding-left: 8px; }
@media (prefers-reduced-motion: reduce) { .stage.in .stage-text, .stage.in .stage-kicker, .stage.has-image .stage-art { animation: none; } }
/* persistent lower-third (P2) lives over the video, full-duration */
.lowerthird {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 14px;
  background: linear-gradient(0deg, rgba(10,14,39,.92), rgba(10,14,39,0));
  font-family: "Fira Code", monospace; font-size: 12px; color: var(--text-secondary); text-align: center;
}
.lowerthird .disclosure { border: none; background: transparent; padding: 0; margin: 0; font-size: 12px; }
.lowerthird .disclosure .lbl { display: none; }

.lesson-mount { margin-top: 24px; }
.mount-slot { background: var(--bg-secondary); border: 1px dashed var(--border); border-radius: 12px; padding: 24px; margin-top: 20px; }
.mount-slot h3 { font-size: 17px; }

.module-shell-disc { margin-top: 28px; }

/* ---- Certificate / verify ---- */
.cert { background: linear-gradient(160deg, var(--bg-tertiary), var(--bg-secondary)); border: 1px solid var(--border); border-radius: 16px; padding: 36px; text-align: center; position: relative; overflow: hidden; margin-bottom: 16px; }
.cert::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% -10%, rgba(20,184,166,.15), transparent 60%); pointer-events: none; }
.seal { margin: 0 auto 16px; width: 92px; height: 92px; }
.cert .kicker { color: var(--accent-teal); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cert h1 { font-size: 32px; margin: 8px 0 6px; }
.cert .holder { font-size: 18px; color: var(--text-primary); font-weight: 600; margin-bottom: 6px; }
.cert .cap { font-size: 16px; color: var(--text-secondary); max-width: 44ch; margin: 0 auto 14px; }
.cert .meta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--text-tertiary); margin-bottom: 16px; }
.cert .meta .k { color: var(--text-secondary); }
.cert .vid { font-family: "Fira Code", monospace; }
.cert .share { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }

.verify-status { display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 600; margin-bottom: 18px; }
.verify-status .badge { border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.verify-status.valid .badge { background: rgba(16,185,129,.15); color: var(--success); }
.verify-status.invalid .badge { background: rgba(239,68,68,.15); color: var(--error); }

/* ---- Activation surface ---- */
.bridge { text-align: center; padding: 26px 10px 10px; }
.bridge h2 { font-size: 22px; margin-bottom: 8px; }
.bridge p { max-width: 54ch; margin: 0 auto; font-size: 16px; }
.act-step { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-top: 16px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step-n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: "Fira Code", monospace; background: var(--bg-tertiary); color: var(--accent-teal); border: 1px solid var(--border); }
.act-step h3 { font-size: 18px; }
.act-step .opt { margin-left: auto; font-size: 12px; color: var(--text-tertiary); }
.act-step p { font-size: 15px; margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pricebar { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; flex-wrap: wrap; }
.price { font-size: 30px; font-weight: 800; color: var(--text-primary); }
.price small { font-size: 14px; color: var(--text-tertiary); font-weight: 500; }
.ppp { font-size: 12px; color: var(--accent-teal); border: 1px solid rgba(20,184,166,.4); border-radius: 999px; padding: 2px 9px; }
.incl { list-style: none; margin: 0 0 16px; font-size: 14.5px; }
.incl li { padding: 5px 0 5px 24px; position: relative; }
.incl li::before { content: "\2713"; position: absolute; left: 2px; color: var(--accent-teal); font-weight: 700; }
.locked-note { font-size: 13px; color: var(--accent-amber); margin: 4px 0 14px; }
.armed-pill { display: inline-block; font-size: 12px; color: var(--text-tertiary); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }

/* ---- Persistent compliance shell (sticky footer line) ---- */
.shell { position: sticky; bottom: 0; margin-top: 24px; background: rgba(10,14,39,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--border-light); padding: 12px 20px; font-size: 12.5px; color: var(--text-tertiary); text-align: center; z-index: 40; }
.shell .disclosure { border: none; background: transparent; padding: 0; margin: 0; font-size: 12.5px; }
.shell .disclosure .lbl { display: none; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border-light); padding: 44px 0 60px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
footer h3 { color: var(--text-primary); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
footer ul { list-style: none; }
footer li { padding: 5px 0; font-size: 14px; }
footer a { color: var(--text-secondary); }
.legal { font-size: 13px; color: var(--text-tertiary); border-top: 1px solid var(--border-light); padding-top: 24px; display: grid; gap: 14px; }
.src { font-size: 12px; color: var(--text-tertiary); margin-top: 8px; }

/* ---- Gate modal (P3 gateway) ---- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(4,6,18,.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 200; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; max-width: 560px; width: 100%; padding: 28px; }
.modal h2 { font-size: 22px; margin-bottom: 12px; }
.modal .ack { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 16px 0; }

/* ---- Toast (analytics / status, screen-reader friendly) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================================
   Quiz / Level-exam (Lane B, quiz-engine.js emits these semantic classes).
   Styled to the HexAlpha Academy dark system; AA contrast, visible focus, keyboard-operable
   options (the engine renders each option as a <button>). No color-only meaning.
   ============================================================================ */
.quiz { display: block; }
.quiz__intro { margin-bottom: 8px; }
/* The engine puts [DISC-RISK-SHORT]+[DISC-NO-ADVICE] on .quiz__intro; app.js
   renderAllDisclosures() resolves them into .disclosure children inside it. */

.quiz__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.quiz__item {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
}
.quiz__stem { color: var(--text-primary); font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.quiz__num { color: var(--accent-teal); font-family: "Fira Code", monospace; font-weight: 700; margin-right: 6px; }
.quiz__stem code { font-family: "Fira Code", monospace; font-size: .92em; background: var(--bg-tertiary); padding: 1px 6px; border-radius: 4px; color: var(--text-primary); }

.quiz__options { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* Options render as full-width buttons, keyboard-focusable and operable. */
.quiz__option {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font-family: inherit; font-size: 15px; line-height: 1.5;
  background: var(--bg-secondary); color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px;
  transition: border-color 150ms ease-out, background 150ms ease-out;
}
.quiz__option:hover { border-color: var(--accent-teal); color: var(--text-primary); }
.quiz__option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20,184,166,.25), 0 0 0 2px var(--accent-teal);
  color: var(--text-primary);
}
/* Selected state: not color-only, a teal left rail + filled marker prefix. */
.quiz__option.is-selected {
  border-color: var(--accent-teal); background: rgba(20,184,166,.10);
  color: var(--text-primary); box-shadow: inset 3px 0 0 var(--accent-teal);
}

/* Confidence widget (C1/C2/C3), off for L1 default, styled for L2+. */
.quiz__confidence {
  margin-top: 12px; border: 1px solid var(--border-light); border-radius: 8px;
  padding: 10px 14px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.quiz__confidence legend { color: var(--text-tertiary); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 0 6px; }
.quiz__conf-opt { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.quiz__conf-opt input { accent-color: var(--accent-teal); }
.quiz__conf-opt input:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }

.quiz__submit { margin-top: 8px; background: var(--accent-teal); color: #04201d; border: none; border-radius: 6px; padding: 12px 24px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 150ms ease-out; }
.quiz__submit:hover { background: #10a394; }
.quiz__submit:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20,184,166,.25), 0 0 0 2px var(--accent-teal); }

/* Per-item explanatory feedback (engine surfaces correct/why-wrong copy). */
.quiz__feedback {
  margin-top: 10px; font-size: 14px; border-radius: 8px; padding: 10px 14px;
  background: var(--bg-tertiary); color: var(--text-secondary); border-left: 3px solid var(--border);
}
.quiz__feedback.is-correct { border-left-color: var(--success); }
.quiz__feedback.is-wrong { border-left-color: var(--accent-amber); }

/* Result panel (.quiz--result / .quiz__result) + the pass/fail verdict line. */
.quiz--result, .quiz__result {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
}
.quiz__verdict { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.quiz--result[data-passed="true"] .quiz__verdict { color: var(--success); }
.quiz--result[data-passed="false"] .quiz__verdict { color: var(--accent-amber); }

/* Remediation routing (the →Lx.y re-study list, on a fail). */
.quiz__remediation { margin-top: 8px; font-size: 14.5px; color: var(--text-secondary); }
.quiz__remediation p { color: var(--text-primary); font-weight: 600; margin-bottom: 8px; }
.quiz__remediation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.quiz__remediation li {
  font-family: "Fira Code", monospace; font-size: 13.5px; color: var(--accent-amber);
  background: var(--disclosure-bg); border: 1px solid var(--disclosure-edge);
  border-radius: 6px; padding: 6px 12px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
