/* ============================================================
   CDL Test Prep — Main Stylesheet
   Theme: Navy Authority + Safety Orange
   Standard: Mobile-first, WCAG AA contrast, no inline styles
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Critical: hidden attribute must always win */
[hidden] { display: none !important; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video, svg { max-width: 100%; display: block; }

a { color: var(--orange); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--orange-dk); text-decoration: underline; }

ul, ol { list-style: none; }

/* ── Design Tokens — Light (default) ────────────────────── */
:root {
  /* Brand */
  --navy:        #0c2340;
  --navy-mid:    #1a3a5c;
  --navy-lt:     #2a5180;
  --orange:      #d96200;
  --orange-dk:   #b35000;
  --orange-lt:   #f07a1a;
  --orange-bg:   #fff4eb;

  /* Surface */
  --bg:          #eef1f6;
  --surface:     #ffffff;
  --surface-2:   #f5f8fc;
  --border:      #c8d4e3;
  --border-lt:   #dde6f0;

  /* Text */
  --text:        #111e2d;
  --text-muted:  #4e627a;
  --text-invert: #ffffff;

  /* Status */
  --success:     #15803d;
  --success-bg:  #f0fdf4;
  --danger:      #b91c1c;
  --danger-bg:   #fef2f2;
  --warn:        #92400e;
  --warn-bg:     #fffbeb;

  /* Elevation */
  --shadow-sm:   0 1px 3px rgba(12,35,64,0.08), 0 1px 2px rgba(12,35,64,0.04);
  --shadow-md:   0 4px 12px rgba(12,35,64,0.10), 0 2px 4px rgba(12,35,64,0.06);
  --shadow-lg:   0 8px 24px rgba(12,35,64,0.12), 0 4px 8px rgba(12,35,64,0.06);

  /* Shape */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;

  /* Layout */
  --max-w:       1200px;
  --nav-h:       64px;
  --gap:         1.5rem;
}

/* ── Design Tokens — Dark ────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy:        #1a4a7a;
    --navy-mid:    #1f5490;
    --navy-lt:     #2a6ab0;
    --orange:      #f07a1a;
    --orange-dk:   #d96200;
    --orange-lt:   #ff9534;
    --orange-bg:   #2a1a00;

    --bg:          #0d1520;
    --surface:     #162032;
    --surface-2:   #1c2a40;
    --border:      #253a54;
    --border-lt:   #1e3048;

    --text:        #e2eaf4;
    --text-muted:  #8aa4c0;
    --text-invert: #ffffff;

    --success:     #4ade80;
    --success-bg:  #052e16;
    --danger:      #f87171;
    --danger-bg:   #450a0a;

    --shadow-sm:   0 1px 3px rgba(0,0,0,0.30);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg:   0 8px 24px rgba(0,0,0,0.40);
  }
}

:root[data-theme="dark"] {
  --navy:        #1a4a7a;
  --navy-mid:    #1f5490;
  --navy-lt:     #2a6ab0;
  --orange:      #f07a1a;
  --orange-dk:   #d96200;
  --orange-lt:   #ff9534;
  --orange-bg:   #2a1a00;

  --bg:          #0d1520;
  --surface:     #162032;
  --surface-2:   #1c2a40;
  --border:      #253a54;
  --border-lt:   #1e3048;

  --text:        #e2eaf4;
  --text-muted:  #8aa4c0;
  --text-invert: #ffffff;

  --success:     #4ade80;
  --success-bg:  #052e16;
  --danger:      #f87171;
  --danger-bg:   #450a0a;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.30);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.40);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) h1,
  :root:not([data-theme="light"]) h2,
  :root:not([data-theme="light"]) h3 {
    color: var(--text);
  }
}
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3 { color: var(--text); }

h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p { color: var(--text); margin-bottom: 0; }
small { font-size: 0.8125rem; color: var(--text-muted); }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2.5rem; } }

main { flex: 1; }

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.25;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--orange);
  color: var(--text-invert);
  border-color: var(--orange);
}
.btn-primary:hover {
  background-color: var(--orange-dk);
  border-color: var(--orange-dk);
  color: var(--text-invert);
  box-shadow: var(--shadow-md);
}

.btn-navy {
  background-color: var(--navy);
  color: var(--text-invert);
  border-color: var(--navy);
}
.btn-navy:hover {
  background-color: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--text-invert);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border-color: var(--text-muted);
}
.btn-outline:hover {
  background-color: var(--surface-2);
  border-color: var(--orange);
  color: var(--orange);
}

.btn-outline-invert {
  background-color: transparent;
  color: var(--text-invert);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-invert:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--text-invert);
  color: var(--text-invert);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}
.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1.0625rem;
}
.btn-block {
  display: flex;
  width: 100%;
  margin-bottom: 0.5rem;
}
.btn-danger {
  background-color: var(--danger);
  color: var(--text-invert);
  border-color: var(--danger);
}

/* ── Navigation ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--navy);
  border-bottom: 3px solid var(--orange);
  box-shadow: var(--shadow-md);
  overflow: hidden; /* prevent any child from creating horizontal scroll */
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 0.75rem;
  overflow: hidden;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--text-invert);
}
.site-logo:hover { color: var(--text-invert); text-decoration: none; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--orange);
  color: var(--text-invert);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-invert);
  letter-spacing: -0.01em;
}

/* Primary nav — desktop */
.primary-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  margin-left: 1.5rem;
}

.primary-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
  white-space: nowrap;
}
.primary-nav a:hover {
  color: var(--text-invert);
  background-color: rgba(255,255,255,0.12);
  text-decoration: none;
}
.primary-nav a[aria-current="page"] {
  color: var(--text-invert);
  background-color: rgba(255,255,255,0.15);
  border-bottom: 2px solid var(--orange);
}

@media (min-width: 820px) {
  .primary-nav { display: flex; }
  .nav-toggle  { display: none !important; }
}

/* On mobile: hide desktop-only nav elements */
@media (max-width: 819px) {
  .nav-actions .btn-outline-invert { display: none !important; }
  .nav-actions .state-picker-wrap  { display: none !important; }
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 0;
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
  text-decoration: none;
  transition: background-color 0.15s;
}
.nav-cart:hover {
  background-color: rgba(255,255,255,0.12);
  color: var(--text-invert);
  text-decoration: none;
}

.cart-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: var(--orange);
  color: var(--text-invert);
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  color: var(--text-invert);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.15s;
  flex-shrink: 0;
}
.nav-toggle:hover { background-color: rgba(255,255,255,0.12); }

/* ── State picker ─────────────────────────────────────────────────── */
.state-picker-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.state-picker {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255,255,255,0.10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23fff' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  color: var(--text-invert);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 1.6rem 0.35rem 0.6rem;
  height: 34px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.state-picker:hover,
.state-picker:focus {
  background-color: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.6);
  outline: none;
}
.state-picker option {
  background-color: var(--navy);
  color: #fff;
}
/* Tighten state picker on narrow screens */
@media (max-width: 819px) {
  .state-picker {
    max-width: 90px;
    font-size: 0.75rem;
    padding-left: 0.4rem;
  }
}
@media (max-width: 400px) {
  .state-picker { max-width: 72px; }
  .logo-text    { font-size: 0.9375rem; }
}

/* Selector state prompt link */
.selector-state-prompt {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.85;
}
.selector-state-prompt a {
  color: var(--orange-lt);
  text-decoration: underline;
}

/* ── Mobile nav drawer ───────────────────────────────────────────── */
.mobile-nav {
  background-color: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.10);
  animation: mnav-in 0.2s cubic-bezier(0.4,0,0.2,1);
  /* Allow scroll if content is taller than viewport */
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@keyframes mnav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* State touch button */
.mnav-state-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: rgba(0,0,0,0.22);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(217,98,0,0.25);
  min-height: 56px;
}
.mnav-state-btn:active { background-color: rgba(217,98,0,0.2); }
.mnav-state-txt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mnav-chevron { flex-shrink: 0; opacity: 0.5; }

/* Nav link sections */
.mnav-section {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mnav-section:last-child { border-bottom: none; }

/* Nav links — big touch targets */
.mnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 1.25rem;
  color: rgba(255,255,255,0.80);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  -webkit-tap-highlight-color: rgba(255,255,255,0.08);
  transition: background-color 0.1s;
}
.mnav-link:active,
.mnav-link:focus-visible {
  background-color: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}
.mnav-link.mnav-active {
  color: #fff;
  font-weight: 700;
  border-left-color: var(--orange);
  background-color: rgba(255,255,255,0.06);
}
.mnav-arrow {
  color: rgba(255,255,255,0.30);
  font-size: 1.25rem;
  line-height: 1;
}

/* Cart count badge (inline) */
.mnav-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--orange);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 5px;
  margin-left: 0.4rem;
  line-height: 1;
  vertical-align: middle;
}

/* Bottom section — auth CTAs */
.mnav-section-bottom {
  padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.mnav-btn {
  display: block;
  width: 100%;
  text-align: center;
  min-height: 52px;
  line-height: 52px;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.12s;
}
.mnav-btn:active { filter: brightness(0.88); }
.mnav-btn-primary { background-color: var(--orange); color: #fff; }
.mnav-btn-outline {
  background-color: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.mnav-btn-ghost {
  background-color: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 36px;
  line-height: 36px;
}

/* ── State picker modal (full-screen, touch) ─────────────────────── */
.state-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background-color: var(--navy);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}
.state-modal[hidden] { display: none !important; }

.state-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
}
.state-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 60px;
  flex-shrink: 0;
  background-color: var(--navy-mid, #122a4a);
  border-bottom: 2px solid var(--orange);
}
.state-modal-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}
.state-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: rgba(255,255,255,0.12);
}
.state-modal-close:active { background-color: rgba(255,255,255,0.10); }

.state-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Individual state option rows */
.state-opt {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  min-height: 56px;
  padding: 0 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(217,98,0,0.15);
}
.state-opt:active { background-color: rgba(217,98,0,0.18); }
.state-opt.state-opt-selected { background-color: rgba(217,98,0,0.12); }
.state-opt.state-opt-selected .state-opt-code { color: var(--orange); }
.state-opt-clear {
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  font-style: italic;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  min-height: 48px;
}
.state-opt-code {
  font-weight: 800;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  width: 28px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.state-opt-name {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  flex: 1;
}
.state-opt-check {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.125rem;
  margin-left: auto;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background-color: var(--navy);
  border-top: 3px solid var(--orange);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 1fr auto auto; }
}

.footer-brand .site-logo { margin-bottom: 0.75rem; }
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.footer-links a:hover { color: var(--text-invert); text-decoration: none; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border-lt);
  margin-bottom: 2.5rem;
  background-color: var(--surface);
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p  { color: var(--text-muted); font-size: 1.0625rem; max-width: 680px; }
.page-header-state { font-weight: 800; color: var(--orange); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange); text-decoration: none; }
.breadcrumb span { color: var(--text-muted); }

/* Breadcrumb inside the hero (inverted colours) */
.hero-breadcrumb {
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.hero-breadcrumb a { color: rgba(255,255,255,0.6); }
.hero-breadcrumb a:hover { color: var(--orange); }
.hero-breadcrumb span { color: rgba(255,255,255,0.6); }

/* State page profile grid */
.state-profile-grid { align-items: start; }
.state-profile-card {}
.state-meta-row {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1.25rem; }

.card h2 { margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }

/* ── Section chrome ──────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.5rem;
}
.section-label::after {
  content: "";
  display: block;
  flex: 1;
  height: 2px;
  background-color: var(--border);
  border-radius: 1px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.625rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(12,35,64,0.95) 0%, rgba(26,58,92,0.90) 60%, rgba(42,81,128,0.85) 100%);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

/* Road stripe decorative element */
.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0px, var(--orange) 60px,
    transparent 60px, transparent 100px
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  color: var(--text-invert);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
}

.hero h1 strong {
  color: var(--orange);
  font-weight: 800;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  max-width: 580px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ── Feature cards ───────────────────────────────────────── */
.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background-color: var(--orange-bg);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p  { color: var(--text-muted); font-size: 0.9375rem; }

/* ── Endorsement cards ───────────────────────────────────── */
.endorse-card {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-top-color 0.15s, box-shadow 0.15s;
}
.endorse-card:hover {
  border-top-color: var(--orange);
  box-shadow: var(--shadow-md);
}
.endorse-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  color: var(--text-invert);
  font-weight: 800;
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}
.endorse-card h3 { font-size: 0.9375rem; margin: 0; }
.endorse-card p  { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.5; flex: 1; }
.endorse-card a  { font-size: 0.8125rem; font-weight: 600; color: var(--orange); }
.endorse-card a:hover { color: var(--orange-dk); text-decoration: underline; }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  background-color: var(--navy);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--text-invert); margin-bottom: 0.75rem; }
.cta-band p  { color: rgba(255,255,255,0.75); margin-bottom: 1.75rem; font-size: 1.0625rem; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  user-select: none;
  transition: background-color 0.1s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary { background-color: var(--surface-2); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  background-color: var(--surface-2);
  border-top: 1px solid var(--border-lt);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .faq-item summary { color: var(--text); }
}
:root[data-theme="dark"] .faq-item summary { color: var(--text); }

/* ── State grid ──────────────────────────────────────────── */
.state-search-wrap {
  position: relative;
  max-width: 380px;
  margin-bottom: 1.75rem;
}
.state-search-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.state-search {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.state-search:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12,35,64,0.12);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.625rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .state-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

.state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.875rem 0.5rem 0.75rem;
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-top-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.state-card:hover {
  border-top-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.state-abbr {
  display: block;
  font-weight: 800;
  font-size: 1.1875rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.state-name {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .state-abbr { color: var(--text); }
}
:root[data-theme="dark"] .state-abbr { color: var(--text); }

/* Active state card */
.state-card--active {
  border-top-color: var(--orange);
  background-color: var(--surface-2);
  box-shadow: var(--shadow-md);
  position: relative;
}
.state-card--active .state-abbr { color: var(--orange); }
.state-card-check {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

/* Currently-viewing note in page header */
.states-active-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}
.states-active-note a {
  color: var(--orange-lt);
  text-decoration: underline;
}

/* ── State detail ────────────────────────────────────────── */
.state-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.state-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.state-meta-label { font-weight: 600; color: var(--text); }

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.875rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78125rem;
  font-weight: 500;
}
.note-list { display: flex; flex-direction: column; gap: 0.625rem; }
.note-list li {
  padding: 0.625rem 0.875rem;
  background-color: var(--warn-bg);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--warn); /* dark brown — always readable on the pale-yellow bg */
}
.card-agency .agency-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}
.card-cta { border-top: 3px solid var(--orange); }

/* State layout */
.state-layout { padding-bottom: 3rem; }
.state-layout .grid-2 { align-items: start; }

/* ── Products ────────────────────────────────────────────── */
.products-page { padding-top: 2.5rem; }

/* Section grouping */
.products-section { margin-bottom: 3.5rem; }
.products-section--alt {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-left: 0;
  margin-right: 0;
}
.products-section-header { margin-bottom: 1.75rem; }
.products-section-header h2 { margin-bottom: 0.25rem; font-size: 1.375rem; }
.products-section-header p  { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

.products-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-lt);
}

/* Featured product: Complete CDL Study Package */
.product-featured {
  background: linear-gradient(135deg, var(--navy) 0%, #163354 100%);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.product-featured::after {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(217,98,0,0.12);
  pointer-events: none;
}
.product-featured-body { flex: 1; min-width: 0; }
.product-featured-body h2 {
  color: #fff;
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  margin: 0.5rem 0 0.75rem;
}
.product-featured-body .product-overview {
  color: rgba(255,255,255,0.72);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: none;
}
.product-featured-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.product-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.275em 0.65em;
  border-radius: 4px;
}
.product-featured-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  min-width: 190px;
  position: relative;
  z-index: 1;
}
.product-featured-price {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.125rem;
}
.product-featured-save {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--success);
  margin: 0 0 0.375rem;
}

/* Base product card */
.product-card {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card-sm { padding: 1.125rem; gap: 0.5rem; }

/* Bundle card variant — orange top accent */
.product-card--bundle { border-top: 3px solid var(--orange); }

/* Card-top row (badge + savings) */
.product-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Includes list inside bundle cards */
.product-includes-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.275rem;
  flex: 1;
}
.product-includes-list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  line-height: 1.3;
}

/* Icon on individual module cards */
.mod-card-icon {
  font-size: 1.875rem;
  line-height: 1;
  margin-bottom: 0.125rem;
}

/* Badges */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--navy);
  color: var(--text-invert);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  width: fit-content;
}
.product-badge--value   { background-color: var(--orange); }
.product-badge--upgrade { background-color: #7c3aed; }

.product-savings-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2em 0.55em;
  border-radius: 3px;
}

/* Shared text */
.product-card h3 {
  font-size: 1.0625rem;
  color: var(--navy);
  margin: 0;
}
.product-overview {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  flex: 1;
}
.product-who {
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.product-footer {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-lt);
  margin-top: auto;
}
.price    { font-size: 1.125rem; font-weight: 800; color: var(--navy); margin-right: auto; }
.price-sm { font-size: 0.9375rem; font-weight: 700; color: var(--navy); margin-right: auto; }

/* Grid-5 for endorsements */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

/* Products mobile */
@media (max-width: 900px) {
  .product-featured { flex-direction: column; padding: 1.75rem; gap: 1.75rem; }
  .product-featured-cta { width: 100%; min-width: unset; }
  .product-featured-price { font-size: 2.125rem; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .grid-5 { grid-template-columns: 1fr; }
  .products-section--alt { padding: 1.25rem; }
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .product-card h3 { color: var(--text); }
  :root:not([data-theme="light"]) .price            { color: var(--text); }
  :root:not([data-theme="light"]) .price-sm         { color: var(--text); }
}
:root[data-theme="dark"] .product-card h3 { color: var(--text); }
:root[data-theme="dark"] .price            { color: var(--text); }
:root[data-theme="dark"] .price-sm         { color: var(--text); }

/* Product detail */
.product-price-large {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--orange);
  margin-top: 0.25rem;
}
.includes-label { font-size: 0.8125rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.includes-list { display: flex; flex-direction: column; gap: 0.3rem; list-style: none; padding: 0; margin: 0; }
.includes-list li { font-size: 0.9rem; color: var(--text); padding-left: 1.25rem; position: relative; line-height: 1.4; }
.includes-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* Topics covered — name + description */
.topic-list { display: flex; flex-direction: column; gap: 0; }
.topic-item {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-lt);
}
.topic-item:last-child { border-bottom: none; padding-bottom: 0; }
.topic-item:first-child { padding-top: 0; }
.topic-item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topic-item-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--orange);
  flex-shrink: 0;
}
.topic-item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.card-sticky { position: sticky; top: calc(var(--nav-h) + 1rem); }
.add-to-cart-panel { border-top: 3px solid var(--orange); }
.add-to-cart-panel h2 { margin-bottom: 0.25rem; }
.price-display { font-size: 2rem; font-weight: 800; color: var(--orange); margin-bottom: 1.25rem; }
.product-detail-layout { align-items: start; padding-bottom: 3rem; }

/* ── Cart ────────────────────────────────────────────────── */
.cart-layout { padding-bottom: 3rem; }
.cart-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .cart-grid { grid-template-columns: minmax(0, 1fr) 22rem; } }

.cart-empty { text-align: center; padding: 3.5rem 1.5rem; max-width: 34rem; margin: 0 auto; }
.cart-empty-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.cart-empty h2 { margin-bottom: .5rem; }
.cart-empty p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.0625rem; }

.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1.25rem 1.5rem; }
.cart-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .5rem; }
.cart-item-tag { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); border-radius: 999px; padding: .125rem .5rem; margin-bottom: .375rem; }
.cart-item-name { font-size: 1.125rem; font-weight: 700; margin: 0; line-height: 1.3; }
.cart-item-price { font-weight: 800; font-size: 1.25rem; color: var(--orange); white-space: nowrap; }
.cart-item-desc { color: var(--text-muted); font-size: .9375rem; line-height: 1.55; margin: 0 0 .75rem; }
.cart-item-includes { list-style: none; margin: 0 0 .875rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .25rem .75rem; font-size: .875rem; }
.cart-item-includes li::before { content: "✓ "; color: var(--orange); font-weight: 700; }
.cart-item-facts { list-style: none; margin: 0; padding: .75rem 0 0; border-top: 1px solid var(--border-lt); display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; font-size: .8125rem; color: var(--text-muted); }
.cart-item-actions { align-self: start; }
.cart-item-actions .btn-ghost { font-size: .8125rem; color: var(--text-muted); white-space: nowrap; }
.cart-item-actions .btn-ghost:hover { color: #e5484d; background: color-mix(in srgb, #e5484d 10%, transparent); }

.cart-notice { padding: .875rem 1.125rem; border-radius: var(--radius); background: color-mix(in srgb, #16a34a 12%, var(--surface)); border: 1px solid color-mix(in srgb, #16a34a 40%, transparent); font-size: .9rem; font-weight: 600; }
.cart-continue { margin: .25rem 0 0; font-size: .9rem; }

.cart-summary { padding: 1.5rem; position: sticky; top: 5rem; }
.cart-summary h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.cart-summary-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .375rem 0; color: var(--text-muted); }
.cart-summary-line span:first-child { flex: 1; }
.cart-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: .875rem 0 .75rem; margin-top: .375rem; border-top: 2px solid var(--border-lt); font-size: 1.0625rem; }
.cart-summary-total strong { font-size: 1.5rem; }
.cart-summary-note { font-size: .8125rem; color: var(--text-muted); margin: 0 0 .75rem; line-height: 1.5; }
.cart-summary .btn-block { margin-top: .5rem; }
.cart-trust { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--border-lt); display: flex; flex-direction: column; gap: .5rem; font-size: .8125rem; color: var(--text-muted); }
@media (max-width: 640px) {
  .cart-item { grid-template-columns: 1fr; padding: 1rem; }
  .cart-item-actions { justify-self: end; }
  .cart-summary { position: static; }
}

/* ── Checkout ────────────────────────────────────────────── */
.checkout-layout { padding-bottom: 3rem; align-items: start; }
.checkout-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-lt);
  font-size: 0.9375rem;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
}
.card-element-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* ── Forms ───────────────────────────────────────────────── */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3125rem;
  margin-top: 1rem;
}
label:first-child { margin-top: 0; }

input[type="text"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.5625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12,35,64,0.12);
}

.form-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3.5rem 1rem;
}
.form-card {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--orange);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.form-card h1 { font-size: 1.625rem; margin-bottom: 1.5rem; }
.form-error {
  color: var(--danger);
  background-color: var(--danger-bg);
  border: 1px solid rgba(185,28,28,0.2);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.form-msg {
  color: var(--success);
  background-color: var(--success-bg);
  border: 1px solid rgba(21,128,61,0.2);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.form-alt { font-size: 0.875rem; text-align: center; margin-top: 1.25rem; color: var(--text-muted); }
.form-divider {
  border: none;
  border-top: 1px solid var(--border-lt);
  margin: 1.5rem 0;
}
.form-submit-row { margin-top: 1.5rem; }

/* ── CDL Classes page ────────────────────────────────────── */
.classes-page { padding-top: 2rem; }

/* Quick-compare anchor strip */
.class-compare-strip {
  display: flex;
  align-items: center;
  gap: 0;
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.class-compare-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.15s;
}
.class-compare-item:hover { background-color: var(--surface-2); text-decoration: none; }
.class-compare-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.375rem;
  font-weight: 900;
  flex-shrink: 0;
  color: #fff;
}
.class-compare-letter--a { background-color: var(--orange); }
.class-compare-letter--b { background-color: var(--navy); }
.class-compare-letter--c { background-color: #0e7490; }
.class-compare-label { font-weight: 700; font-size: 0.9375rem; display: block; line-height: 1.2; }
.class-compare-desc  { font-size: 0.8125rem; color: var(--text-muted); display: block; line-height: 1.3; }
.class-compare-divider { color: var(--border); font-size: 1.5rem; padding: 0 0.25rem; flex-shrink: 0; }

/* Class cards */
.cdl-class-card {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.cdl-class-card:hover { box-shadow: var(--shadow-md); }
.cdl-class-card--featured {
  border-top: 3px solid var(--orange);
}

/* Card top row: big letter + meta + badge */
.class-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.class-letter-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--navy);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  flex-shrink: 0;
  line-height: 1;
}
.cdl-class-card--featured .class-letter-badge { background-color: var(--orange); }
.class-card-meta { flex: 1; min-width: 0; }
.class-card-meta h2 { margin: 0 0 0.375rem; font-size: 1.375rem; }
.class-weight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--surface-2);
  border: 1px solid var(--border-lt);
  padding: 0.25em 0.75em;
  border-radius: 20px;
  margin-top: 0.25rem;
}
.class-featured-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background-color: var(--orange);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  white-space: nowrap;
}

.class-summary {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 72ch;
}

/* Two-column details grid */
.class-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.75rem;
}
.class-details-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-lt);
}
.class-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.class-detail-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-left: 1.375rem;
  position: relative;
  line-height: 1.4;
}
.class-detail-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
.class-detail-list--jobs li::before { content: "·"; font-size: 1.25rem; top: -0.1em; }

/* Card footer CTAs */
.class-card-footer {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-lt);
}

/* Bottom CTA band */
.class-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, #163354 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-top: 0.5rem;
}
.class-cta-band-body h2 { color: #fff; margin-bottom: 0.375rem; font-size: 1.25rem; }
.class-cta-band-body p  { color: rgba(255,255,255,0.72); font-size: 0.9375rem; margin: 0; }

/* Mobile */
@media (max-width: 820px) {
  .class-compare-strip { flex-direction: column; }
  .class-compare-item  { width: 100%; border-bottom: 1px solid var(--border-lt); }
  .class-compare-item:last-child { border-bottom: none; }
  .class-compare-divider { display: none; }
  .class-details-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .class-cta-band { flex-direction: column; align-items: flex-start; padding: 1.75rem; }
  .cdl-class-card { padding: 1.5rem; }
}

/* ── Endorsements page ───────────────────────────────────── */
.endorsements-page { padding-top: 2rem; }

/* Intro stat strip */
.endorse-intro-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.endorse-intro-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  flex-shrink: 0;
}
.endorse-intro-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.endorse-intro-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.endorse-intro-divider {
  width: 1px;
  height: 2.5rem;
  background-color: var(--border-lt);
  flex-shrink: 0;
}
.endorse-intro-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.endorse-intro-note a { color: var(--orange); }

/* Card grid — 2 columns */
.endorse-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Endorsement detail card */
.endorse-detail-card {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  border-top: 3px solid var(--border-lt);
}
.endorse-detail-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.endorse-detail-card--orange { border-top-color: var(--orange); }
.endorse-detail-card--navy   { border-top-color: var(--navy); }
.endorse-detail-card--danger { border-top-color: #dc2626; }
.endorse-detail-card--blue   { border-top-color: #0e7490; }
.endorse-detail-card--yellow { border-top-color: #d97706; }

/* Top row: code badge + meta */
.endorse-detail-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.endorse-code-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background-color: var(--navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.endorse-detail-card--orange .endorse-code-badge { background-color: var(--orange); }
.endorse-detail-card--danger .endorse-code-badge { background-color: #dc2626; }
.endorse-detail-card--blue   .endorse-code-badge { background-color: #0e7490; }
.endorse-detail-card--yellow .endorse-code-badge { background-color: #d97706; }

.endorse-detail-meta { flex: 1; min-width: 0; }
.endorse-detail-meta h2 { font-size: 1.125rem; margin: 0.125rem 0 0; }
.endorse-type-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Body sections */
.endorse-detail-body { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.endorse-detail-section h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.endorse-detail-section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Footer CTA */
.endorse-detail-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-lt);
  margin-top: auto;
}

/* Mobile */
@media (max-width: 820px) {
  .endorse-card-grid { grid-template-columns: 1fr; }
  .endorse-intro-strip { gap: 1rem; padding: 1rem 1.25rem; }
  .endorse-intro-divider { display: none; }
}

/* ── Program page ────────────────────────────────────────── */
.program-layout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .program-layout { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .program-layout { grid-template-columns: repeat(3, 1fr); } }

.module-card {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 1.375rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.module-card.locked { opacity: 0.6; }
.module-header { display: flex; align-items: flex-start; gap: 0.625rem; flex-wrap: wrap; }
.module-header h2 { font-size: 1.0625rem; flex: 1; }
.module-type {
  background-color: var(--navy);
  color: var(--text-invert);
  border-radius: 20px;
  padding: 0.125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.locked-badge { font-size: 0.8125rem; color: var(--text-muted); align-self: flex-start; }
.module-focus { font-size: 0.875rem; color: var(--text-muted); }
.lesson-list { display: flex; flex-direction: column; gap: 0.25rem; }
.lesson-list li { font-size: 0.8125rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.lesson-list li::before { content: "·"; position: absolute; left: 0.25rem; color: var(--orange); font-size: 1.25rem; line-height: 1; top: -2px; }
.module-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }

/* ── Account / Admin ─────────────────────────────────────── */
.account-layout { padding-bottom: 3rem; align-items: start; }

.orders-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.orders-table thead th {
  text-align: left;
  padding: 0.625rem 0.875rem;
  background-color: var(--surface-2);
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.orders-table tbody td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border-lt);
  color: var(--text);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.125rem 0.5625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Admin stats */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-val  { display: block; font-size: 2.25rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 0.25rem; }
.stat-label { display: block; font-size: 0.8125rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stat-val { color: var(--text); }
}
:root[data-theme="dark"] .stat-val { color: var(--text); }

/* ── Quiz modal ──────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
}
.modal-box {
  position: relative;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--orange);
  padding: 2rem;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: background-color 0.15s;
}
.modal-close:hover { background-color: var(--border); color: var(--text); }

.quiz-progress { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.875rem; font-weight: 600; }
.quiz-question { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin-bottom: 1.25rem; line-height: 1.5; }
.quiz-options  { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-option {
  text-align: left;
  padding: 0.75rem 1rem;
  background-color: var(--surface-2);
  border: 2px solid var(--border-lt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.1s, background-color 0.1s;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--navy);
  background-color: var(--surface);
}
.quiz-option.correct {
  border-color: var(--success);
  background-color: var(--success-bg);
  color: var(--success);
}
.quiz-option.wrong {
  border-color: var(--danger);
  background-color: var(--danger-bg);
  color: var(--danger);
}
.quiz-feedback {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background-color: var(--surface-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange);
  font-size: 0.9rem;
}
.fb-correct { color: var(--success); font-weight: 700; display: block; margin-bottom: 0.25rem; }
.fb-wrong   { color: var(--danger);  font-weight: 700; display: block; margin-bottom: 0.25rem; }
.quiz-next { margin-top: 1.25rem; }
.quiz-results { text-align: center; padding: 1rem 0; }
.quiz-results h2 { margin-bottom: 0.5rem; }
.quiz-score { font-size: 2rem; font-weight: 800; color: var(--orange); margin: 1rem 0 1.5rem; }
.quiz-loading { color: var(--text-muted); text-align: center; padding: 2rem 0; }

/* ── CDL Selector ────────────────────────────────────────── */
/* Two-column layout: questions left, plan right */
.selector-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}
@media (min-width: 860px) {
  .selector-layout { grid-template-columns: 1fr 320px; }
}

.selector-questions { min-width: 0; }
.selector-wrap { max-width: 620px; margin: 0 auto; padding-bottom: 4rem; }
.sel-question h2 { margin-bottom: 1.25rem; }
.sel-options { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.5rem; }
.sel-option {
  text-align: left;
  padding: 0.875rem 1.25rem;
  background-color: var(--surface);
  border: 2px solid var(--border-lt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, background-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sel-option::after { content: "→"; color: var(--orange); font-weight: 700; }
.sel-option:hover {
  border-color: var(--orange);
  background-color: var(--orange-bg);
}
.selector-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding: 0.75rem;
  background-color: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-lt);
}
.selector-nav { margin-bottom: 1rem; }
.sel-result h2 { margin-bottom: 0.875rem; }
.sel-result { padding: 1rem 0; }
/* ── CDL Plan panel ──────────────────────────────────────── */
.cdl-plan {
  background-color: var(--surface);
  border: 1px solid var(--border-lt);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.plan-heading {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-lt);
  color: var(--navy);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan-heading { color: var(--text); }
}
:root[data-theme="dark"] .plan-heading { color: var(--text); }

.plan-empty p { font-size: 0.875rem; color: var(--text-muted); }

.plan-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.plan-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--surface-2);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-sm);
}
.plan-item-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.plan-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.plan-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  flex-shrink: 0;
}
.plan-footer {
  border-top: 1px solid var(--border-lt);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.plan-total {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--navy);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan-total { color: var(--text); }
}
:root[data-theme="dark"] .plan-total { color: var(--text); }

/* Success-outline button for "In Cart" state */
.btn-success-outline {
  background-color: var(--success-bg);
  color: var(--success);
  border-color: var(--success);
  cursor: default;
}
.btn-success-outline:hover {
  background-color: var(--success-bg);
  color: var(--success);
  border-color: var(--success);
}

/* Class badge — success banner with checkmark */
.sel-class-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--success-bg);
  color: var(--success);
  border: 2px solid var(--success);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.sel-class-badge::after {
  content: "✓";
  flex-shrink: 0;
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1;
  color: var(--success);
}

.sel-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  background-color: var(--surface-2);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.sel-continue { margin-top: 0.5rem; }
.sel-yes { border-color: var(--success) !important; }
.sel-yes:hover { background-color: var(--success-bg) !important; border-color: var(--success) !important; }
.sel-no  { border-color: var(--danger) !important; }
.sel-no:hover  { background-color: var(--danger-bg) !important; border-color: var(--danger) !important; }

/* ── Content pages ───────────────────────────────────────── */
.content-page { max-width: 960px; padding: 0 0 4rem; }

/* ── About page ─────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.about-main h2 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
.about-main h2:first-child { margin-top: 0; }
.about-main p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.7; }
.about-list { padding-left: 1.25rem; color: var(--text-muted); }
.about-list li { margin-bottom: 0.6rem; line-height: 1.6; }
.about-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.about-stats-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.about-stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.about-stat-label { font-size: 0.875rem; color: var(--text-muted); }
.about-coverage-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.about-coverage-list li { font-size: 0.9375rem; color: var(--text-muted); }
.about-coverage-list li::before { content: '✓'; color: var(--accent); margin-right: 0.5rem; font-weight: 700; }
.text-sm { font-size: 0.875rem; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

/* ── ELDT page ──────────────────────────────────────────── */
.eldt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.eldt-grid .card { margin: 0; }
.eldt-grid .card h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.eldt-grid .card p { color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.65; }
.eldt-list { padding-left: 1.25rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.eldt-list li { margin-bottom: 0.45rem; line-height: 1.55; }
.eldt-steps { padding-left: 1.25rem; color: var(--text-muted); margin-bottom: 0; }
.eldt-steps li { margin-bottom: 0.9rem; line-height: 1.6; }
.eldt-steps li strong { color: var(--text); display: block; margin-bottom: 0.15rem; }
.card--highlight { border: 2px solid var(--accent); }
.eldt-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.25rem 0 1rem; }
.eldt-coming-soon { background: var(--surface-alt, var(--surface)); border-left: 3px solid var(--accent); padding: 0.75rem 1rem; border-radius: 0 4px 4px 0; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }
@media (max-width: 768px) { .eldt-grid { grid-template-columns: 1fr; } }
.content-body h2 { margin: 2rem 0 0.75rem; font-size: 1.375rem; }
.content-body h3 { margin: 1.5rem 0 0.5rem; }
.content-body p  { margin-bottom: 1rem; color: var(--text-muted); }
.content-body ul,
.content-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-body li { margin-bottom: 0.375rem; color: var(--text-muted); }

/* ── Section spacing helpers ─────────────────────────────── */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.pb-3 { padding-bottom: 3rem; }

/* ── Utility ─────────────────────────────────────────────── */
.text-muted   { color: var(--text-muted); }
.text-orange  { color: var(--orange); }
.text-navy    { color: var(--navy); }
.text-center  { text-align: center; }
.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;
}

/* ── Table overflow wrapper ──────────────────────────────── */
.table-wrap { overflow-x: auto; }

/* ── Section heading with bottom margin ─────────────────── */
.section-heading { margin-bottom: 1.75rem; }

/* ── Section alt background ──────────────────────────────── */
.section-alt {
  background-color: var(--surface-2);
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
}

/* ── FAQ narrow container ────────────────────────────────── */
.faq-list-narrow { max-width: 720px; }

/* ── Program dashboard ───────────────────────────────────── */
.program-section-label { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 1rem; }
.program-empty { text-align: center; padding: 3rem 1rem; }
.program-empty p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* State-grouped program sections */
.program-state-section { margin-bottom: 3rem; }
.program-state-section--expired { opacity: .75; }
.program-state-header { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; border-bottom: 2px solid var(--accent); padding-bottom: .6rem; }
.program-state-title { font-size: 1.3rem; font-weight: 700; margin: 0; }
.program-state-expires { font-size: .8125rem; color: var(--text-muted); }
.program-state-expired-badge { font-size: .8125rem; font-weight: 600; color: #b91c1c; background: #fee2e2; padding: .2rem .6rem; border-radius: 999px; }
.program-expired-cta { padding: 1.5rem; }
.program-expired-cta p { margin: 0 0 1rem; color: var(--text-muted); }

/* Audio state switcher */
.audio-state-switcher { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.audio-state-label { font-size: .875rem; font-weight: 600; color: var(--text-muted); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.program-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border-lt);
  border-radius: var(--radius); padding: 1.25rem;
  text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.program-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.program-card--locked { opacity: .6; cursor: default; }
.program-card--locked:hover { border-color: var(--border-lt); box-shadow: none; }
.program-card-type { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.program-card-section { font-weight: 500; color: var(--text-muted); letter-spacing: 0; text-transform: none; }
.program-card-state { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; background: var(--accent); color: #fff; border-radius: 4px; padding: .1em .4em; vertical-align: middle; margin-right: .15em; line-height: 1.5; }
.program-card-title { font-size: 1.125rem; font-weight: 700; color: var(--text); margin: 0; }
.program-card-focus { font-size: .875rem; color: var(--text-muted); line-height: 1.55; margin: 0; flex: 1; }
.program-card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.prog-tag { font-size: .75rem; background: var(--bg); border: 1px solid var(--border-lt); border-radius: 20px; padding: .2rem .6rem; color: var(--text-muted); }

@media (max-width: 480px) {
  .program-grid { grid-template-columns: 1fr; }
}

/* ── Module page ─────────────────────────────────────────── */
.module-layout { max-width: 960px; }
.module-intro-blurb { margin-bottom: 1.5rem; line-height: 1.7; }
.module-intro-blurb p { margin: 0 0 .75rem; }
.module-intro-blurb p:last-child { margin-bottom: 0; }
.module-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-lt);
  padding-bottom: .75rem;
}
.mod-tab {
  background: none; border: 1px solid var(--border-lt); border-radius: var(--radius);
  padding: .5rem 1.1rem; font-size: .9rem; font-weight: 600; cursor: pointer;
  color: var(--text-muted); transition: background .12s, color .12s, border-color .12s;
}
.mod-tab:hover { border-color: var(--accent); color: var(--accent); }
.mod-tab--active { background: var(--accent); border-color: var(--accent); color: #fff; }

.mod-panel { margin-bottom: 2rem; }
.mod-panel h2 { font-size: 1.2rem; margin-bottom: 1rem; }

/* PDF embed */
.pdf-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; flex-wrap: wrap; gap: .5rem; }
.pdf-toolbar h2 { margin: 0; }
.pdf-embed-wrap { width: 100%; border: 1px solid var(--border-lt); border-radius: var(--radius); overflow: hidden; background: #525659; }
.pdf-embed { display: block; width: 100%; height: 75vh; min-height: 500px; border: none; }
@media (max-width: 640px) { .pdf-embed { height: 60vh; min-height: 380px; } }

/* Quick Review (HTML) */
.qr-header { margin-bottom: 1.25rem; }
.qr-header h2 { margin-bottom: .375rem; }
.qr-list { display: flex; flex-direction: column; gap: 1rem; }
.qr-card {
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
}
.qr-card-head {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: .5rem;
}
.qr-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1;
}
.qr-ref {
  font-size: .8125rem;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg);
  padding: .125rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--border-lt);
}
.qr-question {
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.5;
  margin: 0 0 .625rem;
}
.qr-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.qr-options li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  line-height: 1.45;
  padding: .375rem .625rem;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text-muted);
}
.qr-options li.qr-correct {
  background: color-mix(in srgb, var(--orange) 10%, transparent);
  color: var(--text);
  font-weight: 700;
}
.qr-letter {
  font-weight: 700;
  min-width: 1.25rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .qr-card { padding: .875rem 1rem; }
  .qr-question { font-size: .875rem; }
  .qr-options li { font-size: .8125rem; }
}

/* Quick Review (HTML bullet list) */
.qr-bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.qr-bullet {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.qr-bullet-text {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--text);
}
.qr-bullet-text strong { color: var(--text); }
.qr-bullet-text ul {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
}
.qr-bullet-text ul li {
  margin-bottom: .25rem;
  font-size: .875rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .qr-bullet { padding: .875rem 1rem; gap: .625rem; }
  .qr-bullet-text { font-size: .875rem; }
}

/* Buttons — disabled state */
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }

/* Payment page — card form (Stripe Elements mount inside .stripe-input) */
.order-code { font-size: .8em; font-weight: 600; color: var(--text-muted); margin-left: .375rem; }
.stripe-input {
  display: block; width: 100%; box-sizing: border-box;
  padding: .75rem .875rem; min-height: 2.9rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm, 6px);
  margin-bottom: .875rem; transition: border-color .15s, box-shadow .15s;
}
.stripe-input.is-focused { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 25%, transparent); }
.stripe-input.is-invalid { border-color: #e5484d; }
.pay-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .875rem; }
.pay-row label { margin-top: 0; }
.pay-row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .pay-row--2 { grid-template-columns: 1fr; } }
#payment-form input[type="text"] { min-height: 2.9rem; padding: .75rem .875rem; font-size: 16px; line-height: 1.2; box-sizing: border-box; margin-bottom: .875rem; }
#pay-error { margin: 0 0 .875rem; }
@media (max-width: 480px) { .pay-row { grid-template-columns: 1fr 1fr; } .pay-row > div:first-child { grid-column: 1 / -1; } }
/* Checkout — step indicator */
.checkout-steps {
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8125rem; font-weight: 600; color: var(--text-muted);
}
.checkout-steps li { display: flex; align-items: center; gap: .5rem; }
.checkout-steps li + li::before {
  content: ""; display: block; width: 2rem; height: 2px; background: var(--border);
  margin-right: .25rem; border-radius: 2px;
}
.checkout-steps .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.625rem; height: 1.625rem; border-radius: 50%;
  border: 2px solid var(--border); font-size: .75rem; line-height: 1;
}
.checkout-steps .is-done .step-num { background: var(--border); border-color: var(--border); color: var(--text); }
.checkout-steps .is-done { color: var(--text); }
.checkout-steps .is-current .step-num { background: var(--orange); border-color: var(--orange); color: #fff; }
.checkout-steps .is-current { color: var(--text); }
.checkout-steps .is-current .step-label { color: var(--orange); }
@media (max-width: 480px) {
  .checkout-steps li + li::before { width: 1rem; }
  .checkout-steps .step-label { display: none; }
  .checkout-steps .is-current .step-label { display: inline; }
}
/* Checkout */
.checkout-line { align-items: flex-start; gap: 1rem; }
.checkout-line-name { font-weight: 600; }
.checkout-line-sub { font-size: .8125rem; color: var(--text-muted); margin-top: .125rem; }
.checkout-note { font-size: .8125rem; color: var(--text-muted); margin: .75rem 0 0; }
.checkout-trust { margin-top: 1rem; }
.checkout-trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.checkout-powered { text-align: center; margin-top: .75rem; }
.checkout-layout select { width: 100%; }
.checkout-result { max-width: 40rem; margin: 2rem auto 4rem; }
.checkout-result .card { padding: 2rem; text-align: center; }
.checkout-result .btn { margin: .25rem; }
.form-hint { font-size: .8125rem; color: var(--text-muted); margin: .25rem 0 .875rem; }
.small { font-size: .75rem; }
.orders-items { max-width: 16rem; font-size: .8125rem; }
.orders-table td:first-child { white-space: nowrap; }
.status-badge--ok    { background: color-mix(in srgb, #16a34a 12%, transparent); border-color: color-mix(in srgb, #16a34a 40%, transparent); color: #15803d; }
.status-badge--warn  { background: color-mix(in srgb, var(--orange) 12%, transparent); border-color: color-mix(in srgb, var(--orange) 40%, transparent); color: var(--orange); }
.status-badge--muted { color: var(--text-muted); }

/* Receipt */
.receipt-layout { max-width: 48rem; margin: 0 auto 4rem; }
.receipt-card { padding: 1.75rem 2rem; }
.receipt-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.25rem; border-bottom: 2px solid var(--border-lt); }
.receipt-brand { font-size: 1.25rem; font-weight: 800; }
.receipt-sub { font-size: .8125rem; color: var(--text-muted); }
.receipt-meta { display: grid; grid-template-columns: 1fr; gap: .25rem 1rem; min-width: 14rem; font-size: .875rem; align-content: start; }
.receipt-meta > div { display: flex; gap: .5rem; justify-content: space-between; }
.receipt-meta span { color: var(--text-muted); }
.receipt-status--paid, .receipt-status--complete { color: #15803d; }
.receipt-status--pending { color: var(--orange); }
.receipt-status--refunded, .receipt-status--cancelled { color: var(--text-muted); }
.receipt-bill { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border-lt); font-size: .9375rem; }
.receipt-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .25rem; }
.receipt-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9375rem; }
.receipt-table th, .receipt-table td { text-align: left; padding: .625rem .25rem; border-bottom: 1px solid var(--border-lt); vertical-align: top; }
.receipt-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.receipt-table .num { text-align: right; white-space: nowrap; }
.receipt-table tfoot td { border-bottom: none; padding-top: .875rem; font-size: 1.0625rem; }
.receipt-item-name { font-weight: 600; }
.receipt-includes { list-style: none; margin: .375rem 0 .125rem; padding: 0 0 0 1.25rem; font-size: .8125rem; color: var(--text-muted); border-left: 2px solid var(--border-lt); }
.receipt-includes li { padding: .125rem 0; }
.receipt-includes li::before { content: "— "; color: var(--orange); }
.receipt-foot { display: flex; gap: 2rem; flex-wrap: wrap; font-size: .875rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-lt); }
.receipt-foot code { font-size: .8125rem; }
.receipt-actions { display: flex; gap: .625rem; flex-wrap: wrap; padding-top: 1.25rem; }
@media (max-width: 640px) {
  .receipt-card { padding: 1.25rem; }
  .receipt-head { flex-direction: column; }
}
@media print {
  /* Receipt prints light regardless of the on-screen theme */
  html, body { background: #fff !important; color: #111 !important; }
  .site-header, .site-footer, .breadcrumb, .no-print { display: none !important; }
  .page-header { background: none !important; border: none !important; margin-bottom: .5rem; padding: 0; }
  .page-header h1, .page-header p { color: #111 !important; }
  .section-eyebrow { color: #c2410c !important; }
  .receipt-layout { max-width: none; margin: 0; }
  .receipt-card { border: 1px solid #ccc !important; box-shadow: none !important; background: #fff !important; color: #111 !important; padding: 1.5rem !important; }
  .receipt-card *, .receipt-card .text-muted, .receipt-label, .receipt-sub, .receipt-meta span, .receipt-table th, .receipt-includes { color: #111 !important; }
  .receipt-status--paid, .receipt-status--complete { color: #15803d !important; }
  .receipt-head, .receipt-bill, .receipt-foot, .receipt-table th, .receipt-table td { border-color: #ddd !important; }
  .receipt-includes { border-left-color: #ddd !important; }
  .receipt-includes li::before { color: #c2410c !important; }
  a { color: #111 !important; text-decoration: none; }
  @page { margin: .6in; }
}

/* Study Guide — multi-part PDF switcher */
.study-parts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

/* Study Guide (HTML) */
.study-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.study-toc a {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border-lt);
  border-radius: 999px;
  padding: .3rem .75rem;
  text-decoration: none;
}
.study-toc a:hover { color: var(--orange); border-color: var(--orange); }
.study-section {
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 5rem;
}
.study-section h3 {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.125rem;
  margin: 0 0 .875rem;
}
.study-body { font-size: .9375rem; line-height: 1.65; }
.study-body p { margin: 0 0 .875rem; }
.study-body ul, .study-body ol { margin: 0 0 .875rem; padding-left: 1.375rem; }
.study-body li { margin-bottom: .375rem; }
.study-body em { color: var(--text-muted); font-style: normal; font-size: .875rem; }
.study-src {
  font-size: .8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-lt);
  padding-top: .625rem;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.study-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin: 0 0 1rem;
}
.study-table th, .study-table td {
  text-align: left;
  padding: .5rem .625rem;
  border-bottom: 1px solid var(--border-lt);
  vertical-align: top;
}
.study-table th { background: var(--bg); font-weight: 700; }
.study-table td:first-child { white-space: nowrap; }
@media (max-width: 640px) {
  .study-section { padding: 1rem; }
  .study-table { display: block; overflow-x: auto; }
}

/* Audio */
.audio-section-list { display: flex; flex-direction: column; gap: 1.25rem; }
.audio-section { background: var(--surface); border: 1px solid var(--border-lt); border-radius: var(--radius); padding: 1rem 1.25rem; }
.audio-section-label { font-weight: 600; margin-bottom: .6rem; font-size: .9375rem; }
.audio-player { width: 100%; display: block; }

/* Audio PDF companion — appears above audio list when a track plays */
.audio-pdf-companion { margin-bottom: 1.5rem; border: 1px solid var(--border-lt); border-radius: var(--radius); overflow: hidden; }
.audio-pdf-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border-lt); }
.audio-pdf-label { font-weight: 600; font-size: .9rem; }
.audio-pdf-actions { display: flex; align-items: center; gap: .5rem; }
.btn-ghost { background: transparent; border: none; cursor: pointer; color: var(--text-muted); padding: .25rem .5rem; border-radius: var(--radius-sm); font-size: 1rem; line-height: 1; }
.btn-ghost:hover { background: var(--border-lt); color: var(--text); }
.audio-pdf-companion .pdf-embed-wrap { height: 520px; }
@media (max-width: 640px) { .audio-pdf-companion .pdf-embed-wrap { height: 360px; } }

/* ── Quiz ────────────────────────────────────────────────────
   Sections: Launcher → Session → Result → Missed → Mobile
   ──────────────────────────────────────────────────────── */

/* Launcher */
.quiz-launcher { max-width: 620px; }
.quiz-launcher h2 { font-size: 1.375rem; margin-bottom: .375rem; }
.quiz-launcher > p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: .9375rem; }

.lesson-outline {
  background: var(--surface-2);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.lesson-outline-label {
  font-weight: 700;
  font-size: .6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
.lesson-outline ul { padding-left: 1.25rem; margin: 0; }
.lesson-outline li { color: var(--text-muted); font-size: .875rem; margin-bottom: .3rem; }

.quiz-options { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.quiz-options label { font-weight: 600; font-size: .9375rem; }
.quiz-options select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem .75rem;
  background: var(--surface);
  color: var(--text);
  font-size: .9375rem;
  cursor: pointer;
}

.quiz-loading { color: var(--text-muted); padding: 2.5rem 0; font-style: italic; }
.quiz-error   { color: var(--danger); background: var(--danger-bg); border: 1px solid #fca5a5;
                border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: .5rem; }

/* ── Question session ─────────────────────────────────────── */
#quiz-area { max-width: 720px; }

/* Progress bar */
.quiz-progress { margin-bottom: 1.5rem; }
.quiz-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.quiz-progress-bar {
  height: 8px;
  background: var(--border-lt);
  border-radius: 99px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 99px;
  transition: width .35s ease;
}

/* Question card */
.quiz-question-card {
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.quiz-q-text {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Answer options */
.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 1.25rem;
}
.quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  width: 100%;
  padding: .875rem 1.125rem;
  background: var(--bg);
  border: 2px solid var(--border-lt);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color .12s, background .12s, box-shadow .12s;
  font-family: inherit;
}
.quiz-opt:hover:not(:disabled) {
  border-color: var(--orange);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--orange-bg);
}
.quiz-opt:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.quiz-opt:disabled { cursor: default; }

/* Letter badge */
.quiz-opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  min-width: 1.625rem;
  border-radius: 50%;
  background: var(--border-lt);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: .05rem;
  transition: background .12s, color .12s;
}
.quiz-opt:hover:not(:disabled) .quiz-opt-letter {
  background: var(--orange);
  color: #fff;
}
.quiz-opt-text {
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--text);
}

/* Correct / wrong feedback */
.quiz-opt--correct {
  border-color: var(--success) !important;
  background: var(--success-bg) !important;
}
.quiz-opt--correct .quiz-opt-letter {
  background: var(--success);
  color: #fff;
}
.quiz-opt--wrong {
  border-color: var(--danger) !important;
  background: var(--danger-bg) !important;
}
.quiz-opt--wrong .quiz-opt-letter {
  background: var(--danger);
  color: #fff;
}

/* Source ref & next button */
.quiz-src {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border-lt);
}
.quiz-next {
  margin-top: 1.25rem;
  width: 100%;
  font-size: 1rem;
}

/* ── Result screen ────────────────────────────────────────── */
.quiz-result {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  max-width: 480px;
  box-shadow: var(--shadow-sm);
}
.quiz-result--pass {
  background: var(--success-bg);
  border: 2px solid var(--success);
}
.quiz-result--fail {
  background: var(--danger-bg);
  border: 2px solid var(--danger);
}
.quiz-result-pct {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}
.quiz-result--pass .quiz-result-pct { color: var(--success); }
.quiz-result--fail .quiz-result-pct { color: var(--danger); }
.quiz-result-status {
  font-size: 1.125rem;
  font-weight: 700;
  margin: .5rem 0 .875rem;
}
.quiz-result--pass .quiz-result-status { color: var(--success); }
.quiz-result--fail .quiz-result-status { color: var(--danger); }
.quiz-result p { color: var(--text-muted); font-size: .9375rem; margin: 0; line-height: 1.55; }
.quiz-result-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  justify-content: center;
}

/* ── Missed questions review ──────────────────────────────── */
.quiz-missed { max-width: 680px; margin-bottom: 2rem; }
.quiz-missed h3 {
  font-size: .9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.quiz-missed ul {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 0;
}
.quiz-missed li {
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
}
.quiz-missed-q {
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 .5rem;
}
.quiz-missed-ans {
  font-size: .8125rem;
  color: var(--text-muted);
  margin: 0;
}
.quiz-missed-ans strong { color: var(--text); }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .quiz-question-card { padding: 1.25rem; }
  .quiz-q-text { font-size: 1rem; }
  .quiz-result { padding: 1.75rem 1.25rem; }
  .quiz-result-pct { font-size: 3rem; }
  .quiz-result-actions { flex-direction: column; }
  .quiz-result-actions .btn { width: 100%; }
}

.site-banner { background: var(--orange); color: #fff; font-weight: 600; font-size: .9rem; padding: .5rem 0; text-align: center; }

/* ── Maintenance notices ─────────────────────────────────────── */
.product-maintenance { display: flex; flex-direction: column; gap: .25rem; }
.product-maintenance-badge { display: inline-block; width: fit-content; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); border-radius: 3px; padding: .25rem .5rem; }
.product-maintenance p { margin: 0; font-size: .8125rem; color: var(--text-muted); }
.product-maintenance-banner { padding: .75rem 1rem; margin-bottom: 1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--orange) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent); font-size: .9rem; font-weight: 600; }

/* ── Admin portal ─────────────────────────────────────────────── */
.admin-body { background: var(--bg); color: var(--text); margin: 0; }
.admin-shell { display: grid; grid-template-columns: 15rem 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; }
.admin-brand { color: #fff; font-weight: 800; font-size: 1.125rem; text-decoration: none; display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.admin-brand .brand-badge, .admin-login-brand .brand-badge { background: var(--orange); color: #fff; font-size: .75rem; font-weight: 800; padding: .2rem .45rem; border-radius: 4px; }
.admin-nav { display: flex; flex-direction: column; gap: .125rem; }
.admin-nav a { color: rgba(255,255,255,.78); text-decoration: none; padding: .55rem .75rem; border-radius: var(--radius-sm, 6px); display: flex; align-items: center; gap: .625rem; font-size: .9375rem; font-weight: 600; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.is-active { background: var(--orange); color: #fff; }
.admin-nav-icon { width: 1.25rem; text-align: center; }
.admin-side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; }
.admin-who { color: #fff; font-weight: 600; margin-bottom: .5rem; }
.admin-who small { display: block; color: rgba(255,255,255,.6); font-weight: 400; }
.admin-side-link { display: block; color: rgba(255,255,255,.7); text-decoration: none; padding: .25rem 0; }
.admin-side-link:hover { color: #fff; }
.admin-main { padding: 2rem 2.5rem 4rem; max-width: 80rem; }
.admin-head { margin-bottom: 1.5rem; }
.admin-head h1 { margin: 0 0 .25rem; display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
.admin-head p { margin: .25rem 0 0; }
.admin-head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-back { font-size: .8125rem; color: var(--text-muted); text-decoration: none; display: inline-block; margin-bottom: .5rem; }
.admin-flash { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 600; background: color-mix(in srgb, #16a34a 12%, var(--surface)); border: 1px solid color-mix(in srgb, #16a34a 40%, transparent); }
.admin-flash--err { background: color-mix(in srgb, #e5484d 12%, var(--surface)); border-color: color-mix(in srgb, #e5484d 40%, transparent); }
.admin-callout { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; background: color-mix(in srgb, var(--orange) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent); }
.admin-callout ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stat { background: var(--surface); border: 1px solid var(--border-lt); border-radius: var(--radius); padding: 1rem 1.25rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .25rem; }
.admin-stat:hover { border-color: var(--orange); }
.admin-stat-value { font-size: 1.75rem; font-weight: 800; }
.admin-stat-label { font-size: .8125rem; color: var(--text-muted); font-weight: 600; }
.admin-card { margin-bottom: 1.5rem; padding: 1.5rem; }
.admin-card h2 { font-size: 1.125rem; margin: 0 0 1rem; }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-card-head h2 { margin: 0; }
.admin-two { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 1000px) { .admin-two { grid-template-columns: 1fr 1fr; } }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th, .admin-table td { text-align: left; padding: .625rem .5rem; border-bottom: 1px solid var(--border-lt); vertical-align: top; }
.admin-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.admin-table .num { text-align: right; white-space: nowrap; }
.admin-table tr.is-muted td { opacity: .6; }
.admin-table a { font-weight: 600; }
.admin-items { max-width: 18rem; font-size: .8125rem; }
.nowrap { white-space: nowrap; }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; font-size: .875rem; color: var(--text-muted); }
.admin-search { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.admin-search input[type="search"] { flex: 1; min-width: 14rem; }
.admin-search select { width: auto; }
.admin-form label { display: block; font-weight: 600; font-size: .875rem; margin: .75rem 0 .3rem; }
.admin-form input:not([type="checkbox"]):not([type="radio"]), .admin-form select, .admin-form textarea { width: 100%; box-sizing: border-box; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.admin-form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.admin-form-actions { margin-top: 1.25rem; }
.admin-fieldset { border: 1px solid var(--border-lt); border-radius: var(--radius); padding: .75rem 1rem 1rem; margin: 1rem 0 0; }
.admin-fieldset legend { font-weight: 700; font-size: .875rem; padding: 0 .375rem; }
.admin-check, .admin-radio { display: flex; align-items: flex-start; gap: .5rem; font-weight: 500; font-size: .9rem; margin: .5rem 0; cursor: pointer; }
.admin-check input, .admin-radio input { margin-top: .2rem; }
.admin-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 1rem; }
.admin-inline { display: flex; gap: .5rem; align-items: center; margin: .5rem 0; flex-wrap: wrap; }
.admin-inline input, .admin-inline select { width: auto; flex: 1; min-width: 8rem; }
.admin-actions { display: flex; gap: .625rem; flex-wrap: wrap; }
.admin-access-row { padding: .5rem 0; border-bottom: 1px solid var(--border-lt); font-size: .9rem; }
.admin-access-row:last-child { border-bottom: none; }
.admin-reset-link { margin-top: .75rem; font-size: .8125rem; word-break: break-all; }
.btn-danger { background: #e5484d; color: #fff; border-color: #e5484d; }
.btn-danger:hover { background: #c93a3f; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.admin-login .form-card { max-width: 24rem; width: 100%; }
.admin-login-brand { font-weight: 800; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-side-foot { margin: 0 0 0 auto; border: none; padding: 0; }
  .admin-main { padding: 1.25rem; }
  .admin-form-grid, .admin-form-grid--3 { grid-template-columns: 1fr; }
}
.admin-card h2.mt-1 { margin-top: 1.5rem; }
.q-option { display: grid; grid-template-columns: 3.5rem 1fr; gap: .5rem .75rem; align-items: start; margin-bottom: .75rem; }
.q-option-radio { display: flex; align-items: center; gap: .375rem; padding-top: .5rem; font-size: 1rem; }
.q-option textarea { margin: 0; }
.q-len { grid-column: 2; }
.q-option.is-tell textarea { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 20%, transparent); }
.admin-pre { background: var(--bg); border: 1px solid var(--border-lt); border-radius: var(--radius); padding: .75rem 1rem; font-size: .75rem; overflow-x: auto; white-space: pre; }
.error-page { text-align: center; padding: 4rem 1rem 5rem; max-width: 36rem; margin: 0 auto; }
.error-code { font-size: 5rem; font-weight: 900; color: var(--orange); line-height: 1; letter-spacing: -.02em; }
.error-page h1 { margin: .5rem 0; }
.error-page p { color: var(--text-muted); font-size: 1.0625rem; }
.error-actions { display: flex; gap: .625rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.legal-body h2 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.legal-body p, .legal-body li { line-height: 1.65; }
.legal-updated { color: var(--text-muted); font-size: .875rem; }
.inline-form { display: inline; }

.pay-consent { display: flex; gap: .625rem; align-items: flex-start; font-size: .875rem; line-height: 1.5; margin: .25rem 0 1rem; }
.pay-consent input { margin-top: .25rem; flex-shrink: 0; }
.legal-body ul, .legal-body ol { list-style: disc; padding-left: 1.5rem; margin: .5rem 0 1rem; }
.legal-body ol { list-style: decimal; }
.bundles-with { margin-top: 1rem; padding: 1.25rem; }
.bundles-with .includes-label { margin-top: 0; }
.bundle-offer { padding: .875rem 0; border-top: 1px solid var(--border-lt); }
.bundle-offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.bundle-offer-name { font-weight: 700; font-size: .9375rem; }
.bundle-offer-price { font-weight: 800; color: var(--orange); white-space: nowrap; }
.bundle-offer-mods { font-size: .8125rem; color: var(--text-muted); margin: .25rem 0 .625rem; line-height: 1.45; }
.bundle-offer-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.bundle-offer.is-complete { margin: .75rem 0 .25rem; padding: 1rem 1rem 1.125rem; border: 2px solid var(--orange); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--orange) 14%, var(--surface)), var(--surface)); box-shadow: 0 6px 22px color-mix(in srgb, var(--orange) 20%, transparent); }
.bundle-offer.is-complete + .bundle-offer { border-top: 0; }
.bundle-offer.is-complete .bundle-offer-name { font-size: 1.0625rem; color: var(--orange); }
.bundle-offer.is-complete .bundle-offer-price { font-size: 1.125rem; }
.bundle-offer-tag { display: inline-block; font-size: .6875rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--orange); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .5rem; }
.add-to-cart.is-in-cart, .add-to-cart.is-in-cart:disabled { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border-lt); cursor: default; opacity: 1; }

/* Cart: in-place upgrade offers */
.cart-upgrades { margin-top: 1.5rem; }
.cart-upgrades h2 { font-size: 1.25rem; margin: 0 0 .25rem; }
.cart-upgrades-lead { color: var(--text-muted); font-size: .9rem; margin: 0 0 1rem; }
.cart-upgrade { position: relative; padding: 1.25rem; border: 1px solid var(--border-lt); border-radius: var(--radius); background: var(--surface); margin-bottom: .875rem; }
.cart-upgrade.is-complete { border: 2px solid var(--orange); background: linear-gradient(180deg, color-mix(in srgb, var(--orange) 14%, var(--surface)), var(--surface)); box-shadow: 0 8px 28px color-mix(in srgb, var(--orange) 22%, transparent); padding-top: 1.5rem; }
.cart-upgrade-tag { position: absolute; top: -.75rem; left: 1.25rem; font-size: .6875rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--orange); padding: .25rem .65rem; border-radius: 999px; }
.cart-upgrade-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cart-upgrade h3 { margin: 0 0 .25rem; font-size: 1.0625rem; }
.cart-upgrade.is-complete h3 { font-size: 1.25rem; color: var(--orange); }
.cart-upgrade-sub { margin: 0; color: var(--text-muted); font-size: .875rem; line-height: 1.5; }
.cart-upgrade-pricing { text-align: right; flex-shrink: 0; }
.cart-upgrade-delta { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: var(--orange); }
.cart-upgrade-delta-note { font-size: .75rem; color: var(--text-muted); }
.cart-upgrade-adds { list-style: none; margin: .875rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .25rem .75rem; font-size: .875rem; font-weight: 600; }
.cart-upgrade-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; padding-top: .875rem; border-top: 1px solid var(--border-lt); }
.cart-upgrade-anchor { font-size: .8125rem; color: var(--text-muted); }
.cart-upgrade-anchor s { opacity: .8; }
.cart-upgrade.is-complete .btn-primary { padding-inline: 1.5rem; font-weight: 800; }
@media (max-width: 560px) {
  .cart-upgrade-head { flex-direction: column; }
  .cart-upgrade-pricing { text-align: left; }
  .cart-upgrade-foot .btn { width: 100%; }
}

/* Admin: payment mode */
.admin-mode-pill { display: block; margin: .5rem 0 1rem; padding: .35rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-align: center; }
.admin-mode-test { background: color-mix(in srgb, #f59e0b 20%, transparent); color: #f59e0b; border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent); }
.admin-mode-live { background: color-mix(in srgb, #22c55e 18%, transparent); color: #22c55e; border: 1px solid color-mix(in srgb, #22c55e 45%, transparent); }
.stripe-mode-card { border-left: 4px solid #f59e0b; }
.stripe-mode-card.stripe-mode-live { border-left-color: #22c55e; }
.stripe-mode-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stripe-mode-head h2 { margin: 0; }
.stripe-mode-badge { font-weight: 800; font-size: .8125rem; letter-spacing: .04em; color: #f59e0b; }
.stripe-mode-live .stripe-mode-badge { color: #22c55e; }
.stripe-mode-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stripe-mode-option { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--border-lt); border-radius: var(--radius); cursor: pointer; }
.stripe-mode-option.is-selected { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 8%, transparent); }
.stripe-mode-option input { margin-top: .2rem; }
.stripe-mode-option-body { display: flex; flex-direction: column; gap: .35rem; font-size: .875rem; }
.stripe-mode-status.is-ok { color: #22c55e; font-weight: 700; }
.stripe-mode-status.is-bad { color: #ef4444; font-weight: 700; }
.stripe-mode-keys { color: var(--text-muted); font-size: .8125rem; line-height: 1.7; }
.stripe-mode-form .admin-form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Screenshot mode for the selector (?shot=1): tool only */
body.is-shot .site-header, body.is-shot .site-nav, body.is-shot header.nav, body.is-shot .page-header, body.is-shot footer, body.is-shot .selector-about, body.is-shot .selector-disclaimer { display: none !important; }
body.is-shot .selector-layout { padding-top: 1.5rem; }

/* CDL Selector: about section with angled screenshots */
.selector-about { padding: 3rem 0 4rem; border-top: 1px solid var(--border-lt); margin-top: 2rem; }
.sel-about-intro { max-width: 52rem; margin-bottom: 2.5rem; }
.sel-about-intro h2 { font-size: 1.75rem; margin: 0 0 .75rem; }
.sel-about-intro p { font-size: 1.0625rem; line-height: 1.65; color: var(--text-muted); margin: 0; }
.sel-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0 0 3rem; perspective: 1400px; }
.sel-shot { margin: 0; text-align: center; }
.sel-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border-lt); box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04); transition: transform .35s ease, box-shadow .35s ease; transform-style: preserve-3d; }
.sel-shot-1 img { transform: rotateY(14deg) rotateX(3deg) scale(.96); }
.sel-shot-2 img { transform: rotateX(4deg) scale(1.02); }
.sel-shot-3 img { transform: rotateY(-14deg) rotateX(3deg) scale(.96); }
.sel-shot:hover img { transform: rotateY(0) rotateX(0) scale(1.04); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65), 0 0 0 2px color-mix(in srgb, var(--orange) 60%, transparent); }
.sel-shot figcaption { margin-top: .875rem; font-size: .875rem; font-weight: 700; color: var(--text-muted); }
.sel-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.sel-about-grid .card + .card { margin-top: 0; }
.sel-about-card h3 { margin: 0 0 .75rem; font-size: 1.125rem; color: var(--orange); }
.sel-about-card p { margin: 0; line-height: 1.65; font-size: .9375rem; }
.sel-about-list { margin: 0; padding-left: 1.1rem; line-height: 1.6; font-size: .9375rem; }
.sel-about-list li { margin-bottom: .5rem; }
.sel-about-faq { max-width: 52rem; }
.sel-about-faq h3 { font-size: 1.375rem; margin: 0 0 1rem; }
.sel-about-faq dt { font-weight: 800; margin-top: 1.25rem; font-size: 1.0625rem; }
.sel-about-faq dd { margin: .375rem 0 0; line-height: 1.65; color: var(--text-muted); }
.sel-about-cta { margin-top: 2rem; }
@media (max-width: 900px) {
  .sel-shots, .sel-about-grid { grid-template-columns: 1fr; }
  .sel-shot img { transform: none !important; }
}

/* CDL Selector: answer history */
.sel-history { margin: 1.5rem 0 1rem; }
.sel-history-title { font-size: .8125rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 .5rem; }
.sel-history-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-direction: column; gap: .375rem; }
.sel-history-row { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; padding: .625rem .875rem; border: 1px solid var(--border-lt); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.sel-history-row:hover { border-color: var(--orange); }
.sel-history-row:hover .sel-history-edit { opacity: 1; }
.sel-history-num { flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--surface-2); color: var(--text-muted); font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.sel-history-q { flex: 1; font-size: .9rem; line-height: 1.35; }
.sel-history-a { flex-shrink: 0; font-weight: 800; font-size: .8125rem; padding: .15rem .6rem; border-radius: 999px; }
.sel-history-a.is-yes { color: #22c55e; background: color-mix(in srgb, #22c55e 15%, transparent); }
.sel-history-a.is-no { color: #ef4444; background: color-mix(in srgb, #ef4444 15%, transparent); }
.sel-history-edit { flex-shrink: 0; font-size: .75rem; color: var(--orange); opacity: .6; }
@media (max-width: 560px) { .sel-history-edit { display: none; } }
.sel-hint { margin: -.75rem 0 1.25rem; color: var(--text-muted); font-size: .9375rem; line-height: 1.5; }
.page-header .selector-intro { max-width: 56rem; font-size: 1.0625rem; line-height: 1.6; }
.admin-note-row { display: grid; grid-template-columns: 10rem 1fr; gap: .75rem; margin-bottom: .75rem; align-items: start; }
@media (max-width: 640px) { .admin-note-row { grid-template-columns: 1fr; } }

/* CDL Selector: state information card */
.sel-state-card { margin-bottom: 3rem; padding: 1.75rem; border-left: 4px solid var(--orange); }
.sel-state-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.sel-state-head h3 { margin: 0; font-size: 1.375rem; }
.sel-state-blurb { font-size: 1.0625rem; line-height: 1.6; margin: 0 0 1.25rem; }
.sel-state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1rem; }
.sel-state-card h4 { font-size: .8125rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin: 1rem 0 .5rem; }
.sel-state-grid h4 { margin-top: 0; }
.sel-state-list { margin: 0; padding-left: 1.1rem; line-height: 1.6; }
.sel-state-notes { margin: 0 0 .5rem; padding-left: 1.1rem; line-height: 1.6; }
.sel-state-notes li { margin-bottom: .5rem; }
@media (max-width: 700px) { .sel-state-grid { grid-template-columns: 1fr; } }

.page-header-desc { max-width: 56rem; font-size: 1.0625rem; line-height: 1.6; margin: .25rem 0 0; }
.checkout-line-includes { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .2rem .75rem; font-size: .8125rem; color: var(--text-muted); }
.checkout-line-includes li::before { content: "✓ "; color: var(--orange); font-weight: 700; }
.audio-section.is-unavailable { opacity: .75; }
