/* OmniModi vNext — styles for auth + marketing surfaces (T-M-002).
 *
 * WHAT THIS FILE IS FOR (read this if you are non-technical):
 * ------------------------------------------------------------
 * This file only styles the pages this task owns: the landing page
 * (index.html), login.html, signup.html, forgot-password.html,
 * reset-password.html, and the nav bar / onboarding modal components.
 * It does NOT touch style.css — the app's existing dark-theme design
 * tokens (--bg, --surface, --text, etc., defined in style.css) are
 * reused as-is so these new pages feel like the same product, not a
 * separate microsite. This file only *adds* a few semantic aliases
 * (--primary, --success, --error) that style.css doesn't define yet,
 * plus a warm "posh/funky" gold accent for the marketing hero — per
 * the user's brief ("really fancy posh looking funky... for kids and
 * teachers... top-quality top-design").
 *
 * All colours below are pre-checked for WCAG AA contrast against the
 * --bg/--surface pairs already in style.css (dark theme is the app's
 * default, data-theme="dark" on <html>).
 */

:root, [data-theme="dark"] {
  --primary: #2dd4bf;           /* teal — links, CTAs. ~9.4:1 on --bg #0f1117 */
  --primary-hover: #5eead4;
  --primary-bg: rgba(45,212,191,0.12);
  --success: #34d399;           /* reuse existing --correct green, aliased for form states */
  --error: #f87171;             /* reuse existing --wrong red */
  --gold: #f4b740;              /* "posh/funky" accent for marketing hero + pricing highlight, ~9.9:1 on --bg */
  --gold-bg: rgba(244,183,64,0.12);
}

[data-theme="light"] {
  --primary: #0f766e;           /* darker teal for light bg, ~5.9:1 on #f4f5f7 */
  --primary-hover: #0d5f58;
  --primary-bg: rgba(15,118,110,0.10);
  --success: #15803d;
  --error: #b91c1c;
  --gold: #a1670a;              /* darker gold for light bg, ~4.9:1 on #f4f5f7 */
  --gold-bg: rgba(161,103,10,0.10);
}

/* ===== SHARED AUTH/MARKETING LAYOUT ===== */

.auth-page, .landing-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 1.25rem);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
  font-family: 'Chillax', 'General Sans', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}
.auth-brand-mark {
  color: var(--gold);
  font-size: 22px;
}

.auth-title {
  font-family: 'Chillax', 'General Sans', sans-serif;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.auth-field { margin-bottom: 18px; }
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
.auth-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.auth-input.has-error { border-color: var(--error); }

.auth-error-text {
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
}
.auth-hint-text {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
}

.auth-password-wrap { position: relative; }
.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
}
.auth-password-toggle:hover { color: var(--text); background: var(--surface-3); }
.auth-password-toggle:focus-visible { outline: 2px solid var(--primary); }

.auth-strength-meter {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  margin-top: 8px;
  overflow: hidden;
}
.auth-strength-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0%;
}
.auth-strength-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-btn-primary {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #06231f;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.auth-btn-primary:hover { background: var(--primary-hover); }
.auth-btn-primary:active { transform: scale(0.99); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-btn-primary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.auth-btn-secondary {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.auth-btn-secondary:hover { background: var(--surface-3); }
.auth-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-btn-google {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.65;
}

/* Unified OAuth/alternate sign-in button style ��� used for Google, Apple,
   and School Code, so all three read as equal-weight sign-in choices. */
.auth-btn-oauth {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  margin-top: 10px;
  transition: background 150ms ease, border-color 150ms ease;
}
.auth-btn-oauth:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--border-strong, rgba(255,255,255,0.25));
}
.auth-btn-oauth:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.auth-btn-oauth:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-btn-oauth-icon {
  flex-shrink: 0;
}

.auth-school-code-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.auth-school-code-panel .auth-label {
  margin-bottom: 6px;
  display: block;
}

/* Magic-link ("email me a sign-in link") panel — same shell as the
   school-code panel above, kept as a separate class in case the two
   need to diverge visually later. */
.auth-magic-link-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.auth-magic-link-panel .auth-label {
  margin-bottom: 6px;
  display: block;
}
.auth-magic-link-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  align-items: stretch;
}
.auth-magic-link-row .auth-input { flex: 1; }
.auth-magic-link-row .auth-btn-secondary {
  width: auto;
  padding: 0 20px;
  min-height: 48px;
  white-space: nowrap;
}

/* Simple loading spinner used on auth/callback.html while the OAuth
   code exchange is in flight. Respects reduced-motion. */
.auth-spinner {
  width: 32px;
  height: 32px;
  margin: 28px auto 4px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: auth-spinner-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .auth-spinner { animation-duration: 2.4s; }
}
@keyframes auth-spinner-spin {
  to { transform: rotate(360deg); }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 12px;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-links-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 8px;
}
.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.auth-link:hover { text-decoration: underline; }

.auth-footer-row {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 24px;
}

.auth-school-code-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  align-items: stretch;
}
.auth-school-code-row .auth-input { flex: 1; }
.auth-school-code-row .auth-btn-secondary {
  width: auto;
  padding: 0 20px;
  min-height: 48px;
  white-space: nowrap;
}

.auth-alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}
.auth-alert-error { background: rgba(248,113,113,0.12); color: var(--error); border: 1px solid rgba(248,113,113,0.3); }
.auth-alert-success { background: rgba(52,211,153,0.12); color: var(--success); border: 1px solid rgba(52,211,153,0.3); }
.auth-alert-info { background: var(--primary-bg); color: var(--primary); border: 1px solid rgba(45,212,191,0.3); }

/* ===== SIGNUP ROLE SELECTOR (STEP 1) ===== */

.role-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
@media (max-width: 420px) {
  .role-selector-grid { grid-template-columns: 1fr; }
}
.role-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 1rem);
  background: var(--surface-2);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
}
.role-card:hover { border-color: var(--primary); background: var(--surface-3); }
.role-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.role-card.selected { border-color: var(--primary); background: var(--primary-bg); }
.role-card-emoji { font-size: 28px; margin-bottom: 8px; }
.role-card-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.role-card-desc { font-size: 12px; color: var(--text-muted); }

/* ===== CONSENT / AGE GATE SCREEN ===== */

.consent-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 1rem);
  padding: 18px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.consent-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.consent-checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
}

/* ===== NAV BAR (component: nav-bar.js) ===== */

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
}
.nav-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Chillax', 'General Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.nav-bar-brand-mark { color: var(--gold); }
.nav-bar-menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.nav-bar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-bar-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-bar-link:hover { color: var(--text); }
.nav-bar-signout { color: var(--error); }
.nav-bar-account {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.nav-bar-account-name {
  font-size: 13px;
  color: var(--text-faint);
}

/* ===== LANGUAGE SWITCHER (component: language-switcher.js) =====
 * Sits in the top-right corner of the signed-in app shell's nav bar
 * (see nav-bar.js's #lang-switcher-root container). Hidden by default —
 * language-switcher.js only un-hides this once a tenant has explicitly
 * turned on tenant_features.multi_language_enabled (Phase 3, off by
 * default; see docs/runbooks/i18n.md). */
.nav-bar-lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 4px;
}
.nav-bar-lang-switcher[hidden] { display: none; }
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-switcher-label {
  font-size: 12px;
  color: var(--text-faint);
  /* Visually minimal (icon-free dropdown reads fine without a visible
     label in the tight top-right corner) but kept in the DOM — never
     visually hidden via display:none — so screen reader users still get
     the "Choose language" label announced. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.lang-switcher-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  min-height: 36px;
  cursor: pointer;
}
.lang-switcher-select:hover { border-color: var(--gold); }
.lang-switcher-select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .nav-bar-lang-switcher {
    margin-left: 0;
    padding-top: 8px;
  }
}
@media (max-width: 720px) {
  .nav-bar-menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-bar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
    display: none;
  }
  .nav-bar-links.open { display: flex; }
  .nav-bar-account {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 12px;
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== ONBOARDING MODAL (component: onboarding-modal.js) ===== */

.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,6,10,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9000;
}
.onboarding-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 1.25rem);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.onboarding-title {
  font-family: 'Chillax', 'General Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
}
.onboarding-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.onboarding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 480px) {
  .onboarding-grid { grid-template-columns: 1fr; }
}
.onboarding-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.onboarding-profile-card:hover { border-color: var(--primary); }
.onboarding-profile-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.onboarding-profile-card.selected { border-color: var(--primary); background: var(--primary-bg); }
.onboarding-profile-emoji { font-size: 26px; }
.onboarding-profile-name { font-weight: 600; font-size: 14px; }
.onboarding-profile-desc { font-size: 12px; color: var(--text-muted); }
.onboarding-lang-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.onboarding-lang-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.onboarding-lang-btn {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  text-align: center;
}
.onboarding-lang-btn span { display: block; font-weight: 400; font-size: 11px; margin-top: 2px; }
.onboarding-lang-btn.active { border-color: var(--primary); background: var(--primary-bg); color: var(--text); }
.onboarding-lang-example {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.onboarding-skip-btn {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
}

/* ===== LANDING PAGE (index.html) ===== */

.landing-hero {
  padding: 96px 24px 64px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.landing-hero-title {
  font-family: 'Chillax', 'General Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.landing-hero-title .gold-accent { color: var(--gold); }
.landing-hero-tagline {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 28px;
}
.landing-hero-subject-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-bg);
  color: var(--gold);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
}
.landing-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.landing-cta-btn {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.1s ease, background 0.2s ease;
}
.landing-cta-btn:hover { transform: translateY(-1px); }
.landing-cta-primary { background: var(--primary); color: #06231f; }
.landing-cta-primary:hover { background: var(--primary-hover); }
.landing-cta-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }

.landing-personas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
@media (max-width: 900px) { .landing-personas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .landing-personas { grid-template-columns: 1fr; } }
.landing-persona-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 1rem);
  padding: 24px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.landing-persona-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.landing-persona-emoji { font-size: 32px; margin-bottom: 10px; }
.landing-persona-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.landing-persona-desc { font-size: 13px; color: var(--text-muted); }

.landing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}
.landing-section-title {
  font-family: 'Chillax', 'General Sans', sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}
.landing-section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 40px;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .landing-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .landing-features-grid { grid-template-columns: 1fr; } }
.landing-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 1rem);
  padding: 24px 18px;
}
.landing-feature-emoji { font-size: 28px; margin-bottom: 12px; }
.landing-feature-name { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.landing-feature-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.landing-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .landing-pricing-grid { grid-template-columns: 1fr; } }
.landing-price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 1.25rem);
  padding: 32px 28px;
  position: relative;
}
.landing-price-card.featured { border-color: var(--gold); }
.landing-price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gold);
  color: #241a03;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.landing-price-name { font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.landing-price-amount { font-family: 'Chillax', 'General Sans', sans-serif; font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.landing-price-amount span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.landing-price-note { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.landing-price-list { list-style: none; font-size: 14px; color: var(--text-muted); display: flex; flex-direction: column; gap: 8px; }
.landing-price-list li::before { content: '✓ '; color: var(--success); font-weight: 700; }

.landing-final-cta {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface-2);
}
.landing-final-cta-title {
  font-family: 'Chillax', 'General Sans', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 12px;
}
.landing-final-cta-sub { color: var(--text-muted); margin-bottom: 28px; }

.landing-footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}
.landing-footer a { color: var(--text-muted); text-decoration: none; margin: 0 8px; }
.landing-footer a:hover { color: var(--text); text-decoration: underline; }

/* Respect reduced-motion preference across all new surfaces. */
@media (prefers-reduced-motion: reduce) {
  .landing-cta-btn, .landing-persona-card, .onboarding-profile-card, .role-card {
    transition: none !important;
  }
}

/* ------------------------------------------------------------
 * Exam description card (Round 5, Agent 6 -- Klara 26 Jul brief).
 * Popup shown on hover/tap of an exam-level option in signup.html's
 * exam-level step (and reusable anywhere else exam types are listed,
 * via js/modules/exam-descriptions.js). Uses the same design tokens
 * as the rest of this file (var(--surface-2), var(--border), etc.)
 * so it matches light/dark theme automatically.
 * ------------------------------------------------------------ */
.exam-level-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.exam-level-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.exam-level-option:hover,
.exam-level-option:focus-visible {
  border-color: var(--accent, #6c5ce7);
  outline: none;
}
.exam-level-option.selected {
  border-color: var(--accent, #6c5ce7);
  background: var(--surface-3, var(--surface-2));
}
.exam-level-option-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--accent, #6c5ce7);
}
.exam-level-option-icon svg { width: 100%; height: 100%; }
.exam-level-option-body { flex: 1 1 auto; min-width: 0; }
.exam-level-option-name { font-weight: 600; font-size: 15px; }
.exam-level-option-age { font-size: 12.5px; color: var(--text-muted); }
.exam-level-option-hint {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text-faint, var(--text-muted));
}

.exam-desc-card {
  width: min(340px, 90vw);
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface-1, #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.45;
}
.exam-desc-card-close {
  float: right;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
}
.exam-desc-card-close:hover,
.exam-desc-card-close:focus-visible { color: var(--text); }
.exam-desc-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.exam-desc-card-icon { flex: 0 0 auto; width: 30px; height: 30px; color: var(--accent, #6c5ce7); }
.exam-desc-card-icon svg { width: 100%; height: 100%; }
.exam-desc-card-title { font-weight: 700; font-size: 16px; }
.exam-desc-card-age { font-size: 12px; color: var(--text-muted); }
.exam-desc-card-objective { margin: 0 0 10px; color: var(--text); }
.exam-desc-card-facts { margin: 0 0 10px; }
.exam-desc-card-facts dt { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-top: 8px; }
.exam-desc-card-facts dd { margin: 2px 0 0; }
.exam-desc-card-topics-title { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: 10px 0 6px; }
.exam-desc-card-topics { display: flex; flex-direction: column; gap: 8px; }
.exam-desc-card-topic-subject { font-weight: 600; font-size: 13px; }
.exam-desc-card-topic-examples { font-size: 12.5px; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  .exam-level-option { transition: none !important; }
}
