/* OTG2020.Next mockup design system */

:root {
  /* Easy Online Testing — brand palette (revised after viewing live site)
     The mark is a kiwi bird mascot; the brand is BRIGHT and energetic.
     Primary roles on the website:
       Black bar at top   → bold brand frame
       Yellow #FFC907     → primary brand color, used on Login CTA
       Light green panel  → content section backgrounds
       Medium green       → "Download brochure" action button
     Brown is ONLY in the kiwi's body within the logo — not a UI color.
  */
  --brand-yellow: #FFC907;
  --brand-yellow-bright: #FFE229;
  --brand-yellow-deep: #E0AC00;
  --brand-yellow-light: #FFF4C9;
  --brand-green-light: #D6E89B;
  --brand-green-panel: #E5F0BD;
  --brand-green: #A3C43F;
  --brand-green-deep: #6B8E2A;
  --brand-black: #1A1A1A;
  --brand-brown: #765D52;     /* kiwi mascot only — rarely used in UI */

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F7F7F4;
  --text: #1A1A1A;
  --text-secondary: #555555;
  --text-tertiary: #999999;
  --border: #E5E5E5;
  --border-strong: #D0D0D0;
  --accent: #A3C43F;
  --accent-hover: #6B8E2A;
  --accent-light: #F0F6E1;
  --warning: #C99906;
  --warning-light: var(--brand-yellow-light);
  --critical: #B91C1C;
  --critical-light: #FEE2E2;
  --success: #6B8E2A;
  --info: #1D4ED8;
  --info-light: #DBEAFE;
  --unsure: #C99906;
  --unsure-light: var(--brand-yellow-light);
  --kbd-bg: #F2F2F0;
  --kbd-border: #D5D5D2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-secondary);
  display: inline-block;
  line-height: 1;
}

/* ===== Brand ===== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand:hover { text-decoration: none; }

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}
.brand-logo-sm { height: 28px; }
.brand-logo-lg { height: 60px; }

.brand-wordmark-only {
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-brown-deep);
  letter-spacing: -0.01em;
}
.brand-wordmark-only span { color: var(--brand-gold-deep); }

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.app-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Brand accent strip — bold top edge matching website's black bar */
.brand-strip {
  height: 6px;
  background: var(--brand-yellow);
  border-bottom: 1px solid var(--brand-yellow-deep);
}

/* Optional black "info bar" matching the website's top strip — used on landing/dashboard */
.brand-bar {
  background: var(--brand-black);
  color: white;
  font-size: 13px;
  padding: 8px 24px;
}
.brand-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-bar .tagline {
  font-style: italic;
  opacity: 0.95;
}
.brand-bar .contact {
  color: var(--brand-yellow);
  font-weight: 500;
}

/* Impersonation banner — shown across the top of every page when the
   session was started via the admin app's impersonation handoff. Loud
   on purpose so the operator never forgets they're not the student. */
.impersonation-banner {
  background: var(--critical);
  color: white;
  font-size: 13px;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.impersonation-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.impersonation-banner strong { font-weight: 700; }
.impersonation-banner .muted { opacity: 0.8; margin-left: 6px; }
.btn-impersonation-end {
  background: white;
  color: var(--critical);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-impersonation-end:hover { background: #fff8f8; }

/* Preview-mode variant: muted orange instead of red. Visually softer
   so the actor doesn't read it as "you're breaking something" — preview
   is intentionally safe (writes are no-ops). */
.impersonation-banner.preview {
  background: #C99906;       /* var(--warning) */
  color: var(--brand-black);
}
.impersonation-banner.preview .muted { opacity: 0.85; }
.impersonation-banner.preview .btn-impersonation-end {
  color: #8a6a04;
}

/* ===== Layouts ===== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); }

.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 14px;
  font-size: 14px;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

/* ===== Cards ===== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 24px;
}

/* ============================================================ */
/* EXAM SHELL — the testing instrument                         */
/* ============================================================ */

.exam-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.exam-top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px 10px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.exam-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 16px;
}

.exam-status {
  display: flex;
  align-items: baseline;
  gap: 32px;
  font-size: 15px;
  color: var(--text-secondary);
}

.exam-status .time-remaining {
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.exam-status .time-warning { color: var(--warning); }
.exam-status .time-critical { color: var(--critical); animation: pulse 1.2s ease-in-out infinite; }

.exam-status .position strong {
  font-weight: 600;
  color: var(--text);
}

.section-label {
  font-size: 13px;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 2px;
}

.exam-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}
.flag-btn:hover { background: var(--surface-2); color: var(--text); }
.flag-btn.active { color: var(--warning); background: var(--warning-light); }

/* Focus / cheater meter indicator */
.focus-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  margin: 0 8px;
}
.focus-indicator::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-soft 2s ease-in-out infinite;
}
.focus-good { background: var(--success); }
.focus-good::before { background: var(--success); }
.focus-warn { background: var(--warning); }
.focus-warn::before { background: var(--warning); }
.focus-bad { background: var(--critical); }
.focus-bad::before { background: var(--critical); }

@keyframes pulse-soft {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.4); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Progress dots */
.progress-dots {
  display: flex;
  gap: 6px;
  max-width: 1100px;
  margin: 8px auto 0;
  flex-wrap: wrap;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.dot:hover { transform: scale(1.4); }
.dot.answered { background: var(--accent); }
.dot.current { background: var(--text); transform: scale(1.3); }
.dot.flagged { background: var(--warning); }
.dot.unsure { background: var(--unsure); border: 1px dashed var(--unsure); background: var(--unsure-light); }

/* Question area */
.question-area {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

.question-text {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 40px;
}

.question-help {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: -28px;
  margin-bottom: 32px;
}

/* Answer options */
.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 16px;
  color: var(--text);
  transition: all 0.15s ease;
}

.answer-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.answer-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(46, 125, 95, 0.15);
}

.answer-key {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.answer-card.selected .answer-key {
  background: var(--accent);
  color: white;
}

.answer-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
}
.answer-card.selected .answer-check {
  background: var(--accent);
  border-color: var(--accent);
}
.answer-card.selected .answer-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Bottom bar */
.exam-bottom {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  bottom: 0;
}

.exam-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.confidence-group {
  display: flex;
  gap: 8px;
}

.conf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.conf-btn:hover { background: var(--surface-2); }
.conf-btn.active.confident {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}
.conf-btn.active.unsure {
  background: var(--unsure-light);
  color: var(--unsure);
  border-color: var(--unsure);
}

.selection-counter {
  font-size: 14px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 16px;
}

/* ============================================================ */
/* DASHBOARD                                                    */
/* ============================================================ */

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  margin-bottom: 16px;
}

.dash-greeting {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.bell-btn {
  position: relative;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.bell-btn:hover { background: var(--surface-2); }
.bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--critical);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 10px;
  line-height: 1.3;
}

.dash-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-card {
  background: var(--brand-yellow);
  color: var(--brand-black);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--brand-yellow-deep);
}
.hero-card .label {
  font-weight: 700;
  opacity: 0.9;
  color: var(--brand-black);
}
.hero-card .title {
  color: var(--brand-black);
}
.hero-card .meta {
  color: var(--brand-black);
  opacity: 0.8;
}

.hero-card .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 8px;
}

.hero-card .title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-card .meta {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 15px;
  opacity: 0.9;
}

.hero-card .meta span::before {
  content: '·';
  margin-right: 12px;
  opacity: 0.5;
}
.hero-card .meta span:first-child::before { content: ''; margin-right: 0; }

.hero-card .btn-primary {
  background: var(--brand-black);
  color: white;
  font-weight: 600;
}
.hero-card .btn-primary:hover { background: #333; }

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.item-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.item-icon.in-progress { background: var(--info-light); color: var(--info); }
.item-icon.scheduled { background: var(--surface-2); color: var(--text-secondary); }
.item-icon.passed { background: var(--accent-light); color: var(--accent); }
.item-icon.failed { background: var(--critical-light); color: var(--critical); }
.item-icon.pending { background: var(--unsure-light); color: var(--unsure); }

.item-name {
  font-weight: 500;
  font-size: 15px;
}

.item-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-pill {
  font-weight: 600;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 20px;
}
.score-pill.pass { background: var(--accent-light); color: var(--accent); }
.score-pill.fail { background: var(--critical-light); color: var(--critical); }
.score-pill.pending { background: var(--unsure-light); color: var(--unsure); }

/* ============================================================ */
/* PRE-TEST READY                                              */
/* ============================================================ */

.ready-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.ready-card {
  max-width: 560px;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.ready-card .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-align: center;
  margin-bottom: 8px;
}

.ready-card .title {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.ready-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  font-size: 15px;
}
.fact-grid dt {
  color: var(--text-tertiary);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 2px;
}
.fact-grid dd { color: var(--text); }

.notice {
  background: var(--unsure-light);
  border-left: 3px solid var(--unsure);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.notice .notice-title { font-weight: 600; margin-bottom: 4px; }

.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.check-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  width: 16px;
  display: inline-flex;
  justify-content: center;
}
.check-list li.fail::before { content: '✗'; color: var(--critical); }

.ready-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.ready-encourage {
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ============================================================ */
/* END-OF-EXAM REVIEW                                          */
/* ============================================================ */

.review-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.review-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.review-icon.all-good { background: var(--accent-light); color: var(--accent); }
.review-icon.flagged { background: var(--warning-light); color: var(--warning); }
.review-icon.unsure { background: var(--unsure-light); color: var(--unsure); }
.review-icon.missing { background: var(--critical-light); color: var(--critical); }

.review-text { font-size: 15px; }
.review-text .head { font-weight: 600; }
.review-text .sub { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }

.review-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  margin: 16px 0 24px;
}
.review-map .dot { width: 14px; height: 14px; }

.final-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ============================================================ */
/* RESULTS                                                      */
/* ============================================================ */

.results-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.score-ring {
  width: 180px;
  height: 180px;
  margin: 16px auto 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.score-ring .score-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.score-ring .score-pct { font-size: 24px; color: var(--text-tertiary); }

.score-band {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}
.score-band.passing { background: var(--accent-light); color: var(--accent); }
.score-band.failing { background: var(--critical-light); color: var(--critical); }

.topic-breakdown {
  text-align: left;
  margin: 32px auto 0;
  max-width: 420px;
}
.topic-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  font-size: 14px;
}
.topic-name { flex: 1; }
.topic-bar {
  flex: 0 0 100px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.topic-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
}
.topic-bar[data-pct="80"]::after { transform: scaleX(0.8); }
.topic-bar[data-pct="88"]::after { transform: scaleX(0.88); }
.topic-bar[data-pct="100"]::after { transform: scaleX(1); }
.topic-score { color: var(--text-tertiary); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

/* ============================================================ */
/* INDEX                                                        */
/* ============================================================ */

.index-page {
  padding: 64px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.index-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.index-sub {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 48px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mockup-tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s ease;
}
.mockup-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.mockup-tile .tile-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.mockup-tile .tile-title {
  font-weight: 600;
  font-size: 17px;
  margin: 4px 0 8px;
}
.mockup-tile .tile-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.legend {
  margin-top: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
}
.legend h3 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
.legend ul { padding-left: 20px; color: var(--text-secondary); }
.legend li { padding: 3px 0; }
.legend kbd { margin: 0 2px; }

/* ===== Responsive ===== */

@media (max-width: 640px) {
  .question-text { font-size: 19px; }
  .answer-card { padding: 14px 16px; }
  .exam-status { gap: 16px; font-size: 14px; }
  .ready-card { padding: 32px 24px; }
  .hero-card { padding: 24px; }
  .hero-card .title { font-size: 22px; }
  .hero-card .meta { flex-direction: column; gap: 4px; }
  .hero-card .meta span::before { display: none; }
  .dash-greeting { font-size: 22px; }
  .final-actions { flex-direction: column-reverse; }
  .final-actions .btn { width: 100%; }
}
