:root {
  --bg-warm: #FAF8F4;
  --bg-surface: #FFFFFF;
  --bg-paper: #F5F2EB;
  --bg-tint: #EEF4F8;
  --ink: #102A43;
  --ink-2: #334E68;
  --ink-muted: #486581;
  --accent: #B03B0D;
  --accent-hover: color-mix(in srgb, var(--accent) 84%, var(--ink));
  --accent-bg: color-mix(in srgb, var(--accent) 8%, var(--bg-surface));
  --accent-border: color-mix(in srgb, var(--accent) 28%, var(--bg-surface));
  --pass: #157347;
  --pass-bg: color-mix(in srgb, var(--pass) 8%, var(--bg-surface));
  --pass-border: color-mix(in srgb, var(--pass) 32%, var(--bg-surface));
  --fail: #B42318;
  --fail-bg: color-mix(in srgb, var(--fail) 7%, var(--bg-surface));
  --fail-border: color-mix(in srgb, var(--fail) 30%, var(--bg-surface));
  --border: #D9E2EC;
  --border-subtle: color-mix(in srgb, var(--border) 60%, var(--bg-surface));
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(16, 42, 67, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 42, 67, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 42, 67, 0.14);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg-warm);
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(16, 42, 67, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

.shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: var(--bg-tint);
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  background: var(--bg-tint);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-account-wrap {
  position: relative;
}

.header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.header-auth-btn:hover {
  border-color: var(--ink-muted);
  background: var(--bg-warm);
}

.header-auth-btn.is-signed-in {
  padding: 4px 10px 4px 5px;
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.account-avatar-lg {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.account-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-trigger-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 300px;
  max-width: calc(100vw - 24px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  z-index: 60;
}

.account-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.account-menu-identity {
  min-width: 0;
}

.account-menu-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-email {
  font-size: 13px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-tier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.account-tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-tint);
  color: var(--ink);
}

.account-tier-pill.is-paid {
  background: var(--pass-bg);
  color: var(--pass);
}

.account-expiry {
  font-size: 13px;
  color: var(--ink-muted);
}

.account-menu-section {
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.account-entitlement-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.account-exam-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-exam-link,
.account-upgrade-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.account-exam-link:hover,
.account-upgrade-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.account-guide-link {
  background: var(--pass-bg);
  border-color: var(--pass-border);
  color: var(--pass);
}

.account-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
}

.account-menu-item:hover {
  background: var(--bg-warm);
  color: var(--ink);
}

.account-menu-item.is-danger-subtle {
  color: var(--fail);
}

.account-menu-item.is-danger-subtle:hover {
  background: var(--fail-bg);
}

.account-delete-confirm {
  margin-top: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--fail-bg);
  border: 1px solid var(--fail-border);
}

.account-delete-warn {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--fail);
}

.account-delete-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.account-btn-cancel,
.account-btn-danger {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.account-btn-cancel {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink);
}

.account-btn-danger {
  border: 1px solid var(--fail);
  background: var(--fail);
  color: #FFFFFF;
}

.account-feedback {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--fail-bg);
  color: var(--fail);
  font-size: 13px;
}

.header-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 12px 0 20px;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.mobile-nav-link[aria-current="page"] {
  background: var(--bg-tint);
}

.mobile-account-section {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-account-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Global Banner */
.checkout-global-banner {
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}

.checkout-global-banner.is-success {
  background: var(--pass);
}

.checkout-global-banner.is-error {
  background: var(--fail);
}

.checkout-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.checkout-banner-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--ink) 90%, var(--bg-surface));
  color: #FFFFFF;
}

.btn-primary.is-accent {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary.is-accent:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-tint);
  border-color: var(--ink-muted);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-tint);
  color: var(--ink);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 16px;
}

.btn-sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 14px;
}

.btn-xs {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* Bands & Headings */
.band {
  padding: 48px 0;
}

.band-warm {
  background: var(--bg-warm);
}

.band-white {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-stage-band {
  padding-top: 24px;
  padding-bottom: 44px;
}

.exam-hub-band,
.pricing-hero-band,
.guide-hero-band {
  padding-top: 24px;
  padding-bottom: 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero-compact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 18px;
}

.hero-compact-copy {
  max-width: 740px;
}

.hero-h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-sub {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 72ch;
}

.hero-anchors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero-anchors a {
  color: var(--ink-2);
  text-decoration: none;
}

.hero-anchors a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.section-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.section-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 44ch;
}

.text-action-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.text-action-link:hover {
  color: var(--accent);
}

/* Exam Selector Tabs (KNM & Lezen Pages) */
.hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.hub-specs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.exam-selector-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.exam-tab-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.exam-tab-btn:hover {
  border-color: var(--ink-muted);
}

.exam-tab-btn.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(16, 42, 67, 0.1);
}

.exam-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
}

.exam-tab-sub {
  font-size: 13px;
  color: var(--ink-muted);
}

.exam-lock-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent-bg);
  color: var(--accent);
}

.exam-lock-pill.is-unlocked {
  background: var(--pass-bg);
  color: var(--pass);
}

/* Interactive Exam Stage */
.exam-stage-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  scroll-margin-top: 80px;
}

.stage-ready-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 22px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
}

.stage-ready-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--ink-2);
}

.stage-ready-copy strong {
  color: var(--ink);
}

.stage-ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.stage-topbar-left,
.stage-topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.stage-exam-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tint);
}

.stage-progress-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stage-subject-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
}

.stage-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.stage-tool-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stage-tool-btn[aria-pressed="true"] {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
}

.stage-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stage-timer-state {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.stage-timer-pill.is-running .stage-timer-state {
  color: var(--pass);
}

.stage-timer-pill.is-paused .stage-timer-state {
  color: var(--accent);
}

.stage-timer-toggle {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.stage-progress-track {
  height: 4px;
  background: var(--border-subtle);
  width: 100%;
}

.stage-progress-fill {
  height: 100%;
  background: var(--ink);
  transition: width 0.2s ease;
}

.stage-status-banner {
  padding: 10px 22px;
  background: var(--accent-bg);
  border-bottom: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 600;
}

/* Workspace: Single & Dual-Pane Lezen */
.stage-workspace {
  padding: 26px 24px 22px;
}

.stage-workspace.is-dual-pane {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.passage-pane {
  position: relative;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px 26px;
  max-height: 720px;
  overflow-y: auto;
  scroll-padding-bottom: 24px;
}

.passage-pane.has-scroll-more::after {
  content: '';
  position: sticky;
  display: block;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 36px;
  margin-top: -10px;
  background: linear-gradient(to bottom, rgba(250, 248, 244, 0), var(--bg-paper) 82%);
  pointer-events: none;
}

.passage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.passage-genre {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.passage-cefr {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
}

.passage-body {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.question-pane {
  min-width: 0;
}

.question-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.question-id-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.flag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.flag-btn[aria-pressed="true"] {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
}

.question-stem {
  margin: 0 0 18px;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.48;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.keyword-hints-box {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
}

.keyword-hints-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-hover);
  margin-bottom: 6px;
}

.keyword-hints-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-hints-list li {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  font-size: 13px;
  color: var(--ink);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.option-btn:hover {
  border-color: var(--ink-muted);
  background: var(--bg-warm);
}

.option-btn.is-selected {
  border-color: var(--ink);
  background: var(--bg-tint);
  box-shadow: 0 0 0 2px rgba(16, 42, 67, 0.12);
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.option-btn.is-selected .option-letter {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.option-text {
  font-size: 16px;
  line-height: 1.48;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Stage Controls */
.stage-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-warm);
}

.stage-controls-nav,
.stage-controls-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.stage-answered-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.stage-map-wrap {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.stage-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.stage-map-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

.stage-map-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-dot.is-answered {
  background: var(--ink);
}

.legend-dot.is-flagged {
  background: var(--accent);
}

.stage-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.q-dot {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.q-dot.is-answered {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.q-dot.is-current {
  box-shadow: 0 0 0 2.5px rgba(201, 74, 23, 0.35);
  border-color: var(--accent);
}

.q-dot.is-flagged {
  border-color: var(--accent);
  position: relative;
}

.q-dot.is-flagged::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Submit Confirm Modal */
.submit-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 42, 67, 0.56);
}

.submit-confirm-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.submit-confirm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.submit-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  flex-shrink: 0;
}

.submit-confirm-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  flex: 1;
}

.modal-close-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
}

.modal-close-btn:hover {
  background: var(--bg-warm);
  color: var(--ink);
}

.submit-confirm-body {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-2);
}

.submit-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* Locked & Loading Panels */
.stage-locked-panel,
.stage-loading-panel {
  padding: 40px 28px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.locked-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-bg);
  color: var(--accent);
  margin-bottom: 14px;
}

.locked-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.locked-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.locked-desc {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-2);
}

.locked-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.locked-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.locked-foot {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Results & Review */
.stage-results {
  padding: 26px 24px 28px;
}

.results-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  margin-bottom: 24px;
}

.results-score-card,
.results-breakdown-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-warm);
}

.results-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.results-score-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.results-score-num {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.results-score-pct {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.results-verdict-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-tint);
  color: var(--ink);
  margin-bottom: 10px;
}

.results-verdict-pill.is-pass {
  background: var(--pass-bg);
  color: var(--pass);
}

.results-verdict-pill.is-borderline {
  background: var(--accent-bg);
  color: var(--accent-hover);
}

.results-benchmark-note,
.results-tally-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.results-tally-note {
  margin-top: 8px;
  font-weight: 600;
  color: var(--ink-2);
}

.results-sub-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.breakdown-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.breakdown-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.breakdown-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.breakdown-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
}

.breakdown-fill.is-pass {
  background: var(--pass);
}

.breakdown-fill.is-weak {
  background: var(--accent);
}

.results-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.review-collapse-actions {
  display: flex;
  gap: 6px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
}

.review-item-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}

.review-item-summary::-webkit-details-marker {
  display: none;
}

.review-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.review-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-status-badge.is-correct {
  background: var(--pass-bg);
  color: var(--pass);
}

.review-status-badge.is-wrong {
  background: var(--fail-bg);
  color: var(--fail);
}

.review-stem-preview {
  font-size: 15px;
  color: var(--ink);
}

.review-item-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border-subtle);
}

.review-passage-excerpt {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-paper);
  border: 1px solid var(--border);
  font-size: 14px;
  white-space: pre-line;
  color: var(--ink-2);
}

.review-choice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
  font-size: 14px;
  color: var(--ink-2);
}

.review-rationale-core {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--pass-bg);
  border: 1px solid var(--pass-border);
  color: var(--ink);
  font-size: 14.5px;
}

.review-options-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.review-option-row {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-warm);
  font-size: 14px;
  color: var(--ink-2);
}

.review-option-row.is-right-option {
  border-color: var(--pass-border);
  background: var(--pass-bg);
  color: var(--ink);
}

.review-option-row.is-picked-wrong {
  border-color: var(--fail-border);
  background: var(--fail-bg);
  color: var(--ink);
}

.review-ref-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.review-locked-box {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-locked-copy {
  flex: 1;
  min-width: 220px;
}

.review-locked-copy strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 3px;
}

.review-locked-copy span {
  font-size: 13.5px;
  color: var(--ink-2);
}

/* Guide Download Card ($29 Extended Pass) */
.guide-download-card {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--pass-bg);
  border: 1px solid var(--pass-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.guide-download-card.is-pricing-top {
  margin-top: 0;
  margin-bottom: 24px;
}

.guide-download-copy {
  max-width: 660px;
}

.guide-download-copy h2,
.guide-download-copy h3 {
  margin: 4px 0;
  font-size: 18px;
  color: var(--ink);
}

.guide-download-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.guide-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--pass-border);
  color: var(--pass);
  font-size: 13px;
  font-weight: 700;
}

/* Module & Theme Cards */
.module-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.module-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-warm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--ink);
  flex-shrink: 0;
}

.module-icon.is-accent {
  background: var(--accent-bg);
  color: var(--accent);
}

.module-meta {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

.module-title {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.module-desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  flex: 1;
}

.module-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.module-link:hover {
  color: var(--accent);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.themes-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-warm);
}

.theme-code {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.theme-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.theme-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* Tables */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 14.5px;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table thead th {
  background: var(--bg-tint);
  color: var(--ink);
  font-weight: 800;
  font-size: 13.5px;
}

.data-table tbody th {
  font-weight: 700;
  color: var(--ink);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .is-covered-row {
  background: rgba(234, 247, 240, 0.45);
}

.data-table .is-featured-col {
  background: rgba(253, 241, 235, 0.45);
}

.table-footnote {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* Pricing */
.pricing-hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.pricing-auth-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.auth-status-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.pricing-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.plan-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-card.is-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.plan-card.is-highlighted {
  box-shadow: 0 0 0 3px rgba(201, 74, 23, 0.35);
}

.plan-tier {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-tint);
  color: var(--ink);
  margin-bottom: 10px;
}

.plan-tier.is-recommended {
  background: var(--accent-bg);
  color: var(--accent);
}

.plan-name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.plan-price strong {
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.plan-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

.plan-summary {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--pass);
  border-bottom: 2px solid var(--pass);
  transform: rotate(-45deg);
}

.provider-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.provider-loading-text {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.plan-unlocked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-status-msg {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.checkout-status-msg.is-error {
  color: var(--fail);
}

.pricing-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.pricing-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}

.pricing-trust-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--pass);
}

.pricing-trust-item strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.pricing-trust-item span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.pricing-legal-foot {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* Guide & Legal Prose */
.guide-head {
  margin-bottom: 24px;
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.guide-grid > * {
  min-width: 0;
  max-width: 100%;
}

.guide-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 84px;
}

.sidebar-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.sidebar-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.sidebar-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-2);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.official-source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.sidebar-disclaimer {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--ink-muted);
}

.doc-shell {
  padding-top: 28px;
  padding-bottom: 56px;
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.doc-header {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-header h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
}

.doc-lead,
.doc-meta {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

.prose {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.prose a,
.prose code {
  overflow-wrap: anywhere;
}

.prose pre {
  max-width: 100%;
  overflow-x: auto;
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose h2 {
  margin: 26px 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.prose h3 {
  margin: 18px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.prose p,
.prose li {
  font-size: 15.5px;
  color: var(--ink-2);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.prose th {
  background: var(--bg-tint);
  color: var(--ink);
}

/* FAQ */
.faq-shell {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 14px 18px;
}

.faq-q {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-muted);
}

.faq-item[open] .faq-q::after {
  content: "−";
}

.faq-a p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* 404 */
.not-found-box {
  max-width: 620px;
  margin: 24px auto;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  text-align: center;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--border);
  padding: 40px 0 28px;
}

.site-footer a {
  color: var(--bg-tint);
  text-decoration: none;
}

.site-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(217, 226, 236, 0.16);
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-disclaimer {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--border) 86%, var(--ink));
  max-width: 52ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--border) 78%, var(--ink));
  margin-bottom: 2px;
}

.footer-link {
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  font-size: 13.5px;
  color: color-mix(in srgb, var(--border) 86%, var(--ink));
}

.footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-consent-btn {
  border: 1px solid rgba(217, 226, 236, 0.35);
  background: transparent;
  color: var(--bg-tint);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}

/* Consent Banner */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.consent-card {
  pointer-events: auto;
  width: 100%;
  max-width: 920px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.consent-copy {
  flex: 1;
  min-width: 240px;
}

.consent-title {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

.consent-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.consent-btn {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.consent-btn-reject {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink);
}

.consent-btn-accept {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #FFFFFF;
}

/* =========================================================
   AICertMock 5-Fold Golden Template Styles
   (Zero new hex colors; reuses :root tokens & color-mix)
   ========================================================= */

/* Fold 1: Step 1 Breathable Split Hero */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 16px 0 8px;
}

.hero-left {
  min-width: 0;
}

.hero-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 17.5px;
  line-height: 1.56;
  color: var(--ink-2);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
}

.hero-text-link {
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-trust-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
}

.hero-trust-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust-points svg {
  color: var(--pass);
  flex-shrink: 0;
}

/* Fold 1 Right Column: Diagnostic Preview Card */
.hero-preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.preview-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.preview-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pass-bg);
  border: 1px solid var(--pass-border);
  color: var(--pass);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.preview-score-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.preview-gauge {
  position: relative;
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.preview-gauge svg {
  width: 140px;
  height: auto;
  display: block;
}

.preview-gauge-value {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 1.1;
}

.preview-gauge-value strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.preview-gauge-value span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.preview-score-meta {
  min-width: 0;
}

.preview-score-title {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.preview-score-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.preview-domains {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.preview-domain-item {
  display: grid;
  gap: 6px;
}

.preview-domain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.preview-domain-head strong {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  margin-right: 4px;
}

.preview-domain-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.preview-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--bg-paper);
  overflow: hidden;
}

.preview-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--pass);
}

.preview-bar.is-weak span {
  background: var(--accent);
}

.preview-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--ink-muted);
}

.preview-foot-cta {
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}

.preview-foot-cta:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Fold 1 Step 2: Pre-Exam Setup Panel */
.exam-setup-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
  scroll-margin-top: 84px;
}

.setup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.setup-eyebrow {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.setup-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.setup-meta-pill {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.setup-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.setup-rule-item {
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setup-rule-item strong {
  font-size: 13.5px;
  color: var(--ink);
}

.setup-rule-item span {
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ink-2);
}

.setup-mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.mode-option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mode-option-card:hover {
  border-color: var(--ink-muted);
}

.mode-option-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.mode-option-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}

.mode-option-desc {
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ink-2);
}

.setup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* Fold 1 Step 3: Runner Grid + Right Question Grid Sidebar + Practice Feedback */
.exam-runner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  align-items: start;
}

.stage-runner-main {
  min-width: 0;
}

.exam-navigator {
  padding: 20px 18px;
  border-left: 1px solid var(--border-subtle);
  background: var(--bg-warm);
  min-width: 0;
  height: 100%;
}

.exam-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--ink);
}

.exam-flagged-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.exam-nav-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--ink-muted);
}

.exam-nav-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot.is-current {
  background: var(--bg-surface);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1.5px rgba(201, 74, 23, 0.25);
}

.stage-timer-pill.is-practice {
  background: var(--pass-bg);
  border-color: var(--pass-border);
  color: var(--pass);
}

.option-btn.is-correct-choice {
  border-color: var(--pass);
  background: var(--pass-bg);
}

.option-btn.is-correct-choice .option-letter {
  background: var(--pass);
  border-color: var(--pass);
  color: var(--bg-surface);
}

.option-btn.is-wrong-choice {
  border-color: var(--fail);
  background: var(--fail-bg);
}

.option-btn.is-wrong-choice .option-letter {
  background: var(--fail);
  border-color: var(--fail);
  color: var(--bg-surface);
}

.practice-feedback-box {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-warm);
}

.pf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14.5px;
}

.pf-head.is-correct strong {
  color: var(--pass);
}

.pf-head.is-wrong strong {
  color: var(--fail);
}

.pf-summary {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.pf-options-list {
  margin: 0 0 10px;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ink-2);
}

.pf-options-list li.is-correct-opt {
  color: var(--ink);
  font-weight: 600;
}

.pf-locked p {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* Fold 2: 3-Column Direct Checkout Pricing Band */
.section-header-center {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 40px;
}

.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 32px;
}

.section-lead {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.pricing-grid-3 .plan-card {
  padding: 28px;
}

.pricing-grid-3 .plan-card.is-featured {
  background: var(--bg-warm);
  border: 1.5px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.pricing-grid-3 .plan-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-cta {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.plan-unlocked-actions.is-extended-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.pricing-band-footnote {
  margin: 26px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Fold 3: Visual Blueprint Weight Bars */
.blueprint-spec {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.blueprint-group {
  margin-bottom: 28px;
}

.blueprint-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.blueprint-group-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.blueprint-group-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.blueprint-rows {
  display: grid;
  gap: 12px;
}

.blueprint-rows-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bp-row {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  min-width: 0;
}

.bp-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.bp-row-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.bp-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
}

.bp-code.is-reading {
  color: var(--pass);
}

.bp-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.bp-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-paper);
  overflow: hidden;
  margin-bottom: 8px;
}

.bp-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.bp-fill.is-reading {
  background: var(--pass);
}

.bp-row-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ink-2);
}

.duo-fee-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.duo-fee-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.duo-fee-item strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.duo-fee-item span {
  font-size: 13.5px;
  color: var(--ink-2);
}

.blueprint-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.blueprint-internal-links,
.blueprint-official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14.5px;
  font-weight: 700;
}

.blueprint-official-links a {
  color: var(--ink-muted);
  font-weight: 600;
}

/* Fold 4: 3 Sample Questions & A2 Scoring Guide */
.sample-questions-header {
  margin-bottom: 26px;
}

.sample-questions-lead {
  max-width: 66ch;
}

.sample-q-list {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.sample-q-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.sample-q-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.sample-q-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sample-q-badge.is-reading {
  background: var(--pass);
}

.sample-q-domain {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.sample-q-passage {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-2);
}

.sample-q-passage p {
  margin: 0 0 8px;
}

.sample-q-passage p:last-child {
  margin-bottom: 0;
}

.sample-q-stem {
  margin: 0 0 14px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.sample-q-options {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sample-q-options li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.sample-opt-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.sample-q-details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sample-q-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}

.sample-q-summary::-webkit-details-marker {
  display: none;
}

.sample-q-summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.sample-q-details[open] > .sample-q-summary::after {
  content: "−";
}

.sample-q-details[open] > .sample-q-summary {
  border-bottom: 1px solid var(--border-subtle);
}

.sample-q-rationale {
  padding: 16px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-2);
}

.sample-q-verdict {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--pass-bg);
  border-left: 3px solid var(--pass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}

.sample-q-breakdown {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sample-q-breakdown li {
  padding: 8px 12px;
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.sample-q-breakdown li.is-correct {
  background: var(--pass-bg);
  border-color: var(--pass-border);
  color: var(--ink);
}

.sample-q-docref {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.scoring-summary-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.scoring-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 12px;
}

.scoring-summary-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.scoring-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scoring-spec-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.scoring-spec-pill.is-accent {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
}

.scoring-summary-note {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-2);
}

.sample-questions-cta {
  margin-top: 28px;
  text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 1040px) {
  .exam-runner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .exam-navigator {
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .pricing-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .themes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .header-menu-btn {
    display: inline-flex;
  }
  .stage-workspace.is-dual-pane {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .passage-pane {
    max-height: none;
    overflow-y: visible;
    padding: 16px 16px 22px;
  }
  .setup-rules-grid,
  .setup-mode-picker,
  .blueprint-rows-2col,
  .duo-fee-strip,
  .exam-selector-bar,
  .module-cards-grid,
  .pricing-page-grid,
  .pricing-trust-strip,
  .results-summary-grid,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .shell {
    padding-inline: 14px;
  }
  .header-inner {
    gap: 8px;
  }
  .brand {
    min-width: 0;
    gap: 7px;
  }
  .brand-name {
    font-size: 14.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-auth-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  .header-auth-btn.is-signed-in {
    padding: 4px 7px 4px 4px;
    gap: 5px;
  }
  .account-trigger-label {
    max-width: 68px;
  }
  .band {
    padding: 34px 0;
  }
  .hero-stage-band,
  .exam-hub-band,
  .pricing-hero-band,
  .guide-hero-band {
    padding-top: 18px;
  }
  .hero-preview-card,
  .exam-setup-panel,
  .sample-q-card,
  .scoring-summary-card {
    padding: 18px 16px;
  }
  .preview-score-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-actions .btn-lg {
    width: 100%;
    justify-content: center;
  }
  .stage-topbar,
  .stage-workspace,
  .stage-controls,
  .stage-map-wrap,
  .exam-navigator,
  .stage-results {
    padding-inline: 14px;
  }
  .stage-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .stage-controls-nav,
  .stage-controls-primary {
    width: 100%;
    justify-content: space-between;
  }
  .stage-controls-primary .btn-primary,
  .stage-controls-primary .btn-secondary {
    flex: 1;
    white-space: nowrap;
    padding-inline: 12px;
    font-size: 13.5px;
  }
  .themes-grid,
  .themes-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-card {
    padding: 20px 16px;
  }
  .plan-card,
  .pricing-grid-3 .plan-card {
    padding: 20px 16px;
  }
}
