:root {
  color-scheme: light;
  /* Brand palette derived from the IXA logo: navy → vivid purple */
  --bg: #f7f6fc;
  --bg-tint: #f5f3ff;
  --panel: #ffffff;
  --ink: #1e1b4b;          /* deep navy from logo */
  --ink-soft: #312e81;
  --muted: #64748b;
  --accent: #7c3aed;       /* vivid purple from logo */
  --accent-dark: #5b21b6;
  --accent-light: #a855f7;
  --accent-bright: #8b5cf6;
  --border: #e5e7eb;
  --border-soft: #ede9fe;
  --shadow: 0 20px 50px rgba(30, 27, 75, 0.14);
  --shadow-soft: 0 4px 12px rgba(30, 27, 75, 0.06);
  --danger: #b91c1c;
  --success: #15803d;
  --gradient: linear-gradient(135deg, #1e1b4b 0%, #7c3aed 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.10), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(30, 27, 75, 0.06), transparent 28rem),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 0.98rem; letter-spacing: -0.01em; }
.brand-name .x { color: var(--accent); }
.brand-tagline { font-size: 0.7rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.cta { background: var(--accent); color: white; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-soft); }
.site-nav a.cta:hover { background: var(--accent-dark); color: white; }
.user-pill { padding: 5px 10px; border: 1px solid var(--border-soft); border-radius: 999px; color: var(--muted); font-size: 0.82rem; }

.inline-form { display: inline; }
.link-button { background: transparent; border: 0; padding: 0; color: var(--accent); font-weight: 700; cursor: pointer; font: inherit; }
.link-button:hover { color: var(--accent-dark); text-decoration: underline; }

.site-main { flex: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0; }
.site-footer { border-top: 1px solid var(--border); padding: 18px 32px; color: var(--muted); font-size: 0.82rem; text-align: center; }

/* ---------- Hero ---------- */
.hero { max-width: 720px; }
.hero.compact h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 800; color: var(--accent); }
.hero h1 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--ink); }
.subtitle { color: var(--muted); font-size: 1.04rem; line-height: 1.6; max-width: 760px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit;
  transition: transform 100ms ease, box-shadow 100ms ease, background-color 100ms ease;
}
.btn-primary { background: var(--accent); color: white; box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary.disabled { opacity: 0.5; pointer-events: none; }
.btn-secondary { background: var(--bg-tint); color: var(--ink); border: 1px solid var(--border-soft); }
.btn-secondary:hover { background: var(--border-soft); }
.btn-danger { background: var(--danger); color: white; border: 0; padding: 8px 14px; border-radius: 10px; font-weight: 700; cursor: pointer; font: inherit; }
.btn-small { padding: 8px 14px; border-radius: 10px; border: 0; font-weight: 700; cursor: pointer; font: inherit; text-decoration: none; display: inline-block; }
.btn-approve { background: var(--accent); color: white; }
.btn-approve:hover { background: var(--accent-dark); color: white; }
.btn-reject { background: var(--bg-tint); color: var(--ink); }

/* ---------- Auth cards ---------- */
.auth-card {
  max-width: 440px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 20px; box-shadow: var(--shadow); padding: 32px;
}
.auth-card h1 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.stack input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; outline: none; transition: border-color 100ms; }
.stack input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14); }
.stack button { margin-top: 8px; }

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 0.95rem; }
.alert.error { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }
.alert.info { background: var(--bg-tint); color: var(--accent-dark); border: 1px solid var(--border-soft); }
.alert.success { background: #dcfce7; color: var(--success); border: 1px solid #bbf7d0; }

/* ---------- Admin tables ---------- */
.admin-wrap { display: flex; flex-direction: column; gap: 32px; }
.admin-header h1 { margin: 0; }
.count { background: var(--accent); color: white; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; margin-left: 8px; font-weight: 700; }

.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.table th { background: var(--bg-tint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 8px; }

/* ---------- Diagnostic ---------- */
.diagnostic-wrap { display: flex; flex-direction: column; gap: 24px; }
.diagnostic { display: flex; flex-direction: column; gap: 14px; }
.q-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px; padding: 18px 22px; margin: 0; }
.q-card legend { font-weight: 800; font-size: 1rem; padding: 0 6px; color: var(--ink); }
.q-card .optional { background: var(--border-soft); color: var(--muted); font-size: 0.66rem; padding: 2px 8px; border-radius: 999px; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.q-card .helper { color: var(--muted); margin: 4px 0 12px; font-size: 0.9rem; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options .opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; cursor: pointer;
  font-size: 0.92rem; font-weight: 500;
  transition: border-color 100ms, background-color 100ms;
}
.options .opt:hover { border-color: var(--accent); }
.options .opt input { margin: 0; accent-color: var(--accent); }
.options .opt:has(input:checked) { border-color: var(--accent); background: var(--bg-tint); font-weight: 700; }
.q-card textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; resize: vertical; min-height: 80px; }
.q-card textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14); }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-row output { min-width: 36px; text-align: center; background: var(--accent); color: white; padding: 4px 10px; border-radius: 999px; font-weight: 800; }
.submit-row { display: flex; justify-content: flex-end; padding-top: 8px; }

/* ---------- Dashboard ---------- */
.dashboard { display: flex; flex-direction: column; gap: 32px; }
.section-title { margin: 0 0 14px; font-size: 1.05rem; letter-spacing: -0.01em; }

.track-strip { display: flex; flex-direction: column; gap: 10px; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.track-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-soft); }
.track-card h3 { margin: 0 0 6px; color: var(--accent); font-size: 1rem; }
.track-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.module-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.module-card {
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 120ms, box-shadow 120ms; box-shadow: var(--shadow-soft);
}
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.module-card.status-done { border-color: rgba(21, 128, 61, 0.4); }
.module-card.status-in_progress { border-color: var(--accent); }
.module-card h3 { margin: 0; font-size: 1.02rem; color: var(--ink); }
.module-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.module-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.module-cta { margin-top: 6px; display: flex; align-items: center; gap: 10px; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.badge.muted { background: var(--border-soft); color: var(--ink-soft); }
.badge.success { background: #dcfce7; color: var(--success); }
.badge.in-progress { background: rgba(124, 58, 237, 0.12); color: var(--accent); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--muted); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ---------- Module page ---------- */
.lesson-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lesson-row {
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: border-color 100ms;
}
.lesson-row:hover { border-color: var(--accent); }
.lesson-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; }
.lesson-num { background: var(--gradient); color: white; padding: 4px 10px; border-radius: 8px; font-weight: 800; font-size: 0.82rem; min-width: 44px; text-align: center; }
.lesson-left h3 { margin: 0 0 4px; font-size: 0.98rem; }
.lesson-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ---------- Generating page ---------- */
.generating { display: flex; justify-content: center; padding: 40px 0; }
.generating-card { max-width: 520px; text-align: center; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 24px; box-shadow: var(--shadow); padding: 40px 32px; }
.spinner-wrap { margin: 28px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.spinner { width: 48px; height: 48px; border: 4px solid var(--border-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { color: var(--muted); font-weight: 600; min-height: 1.4em; }
.error-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 20px; }

/* ---------- Lesson ---------- */
.lesson { max-width: 760px; margin: 0 auto; }
.lesson-header { margin-bottom: 32px; }
.lesson-header h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; }
.lesson-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lesson-meta .badge { background: var(--accent); color: white; }

.lesson-section { margin-bottom: 32px; }
.lesson-section h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin: 0 0 12px; }
.lesson-section h3 { margin: 16px 0 8px; font-size: 1rem; }
.lesson-section.callout { background: var(--bg-tint); border-left: 3px solid var(--accent); padding: 18px 22px; border-radius: 0 14px 14px 0; }
.lesson-section.callout h2 { color: var(--accent-dark); }

.prose { line-height: 1.65; font-size: 1rem; white-space: pre-wrap; }
.prose strong { color: var(--ink); }

.key-concepts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.key-concepts dt { font-weight: 800; color: var(--accent-dark); }
.key-concepts dd { margin: 4px 0 0; color: var(--muted); line-height: 1.55; }

.resource-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 16px 20px; text-decoration: none; color: inherit; transition: border-color 100ms, transform 100ms; }
.resource-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.resource-card h3 { margin: 0 0 6px; }
.resource-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.resource-arrow { font-size: 1.6rem; color: var(--accent); }

.slide-list { padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.slide-list li { line-height: 1.55; }
.slide-list strong { display: block; color: var(--ink); }
.slide-list p { margin: 4px 0 0; color: var(--muted); }

pre.mermaid { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 16px; overflow: auto; font-family: ui-monospace, monospace; font-size: 0.9rem; }

.quiz { display: flex; flex-direction: column; gap: 10px; }
.quiz-item { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px 18px; }
.quiz-item summary { cursor: pointer; font-weight: 700; display: flex; align-items: flex-start; gap: 10px; list-style: none; }
.quiz-item summary::-webkit-details-marker { display: none; }
.q-num { color: var(--accent); font-weight: 800; }
.quiz-options { margin: 12px 0; padding-left: 22px; }
.quiz-answer { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-soft); }

.checklist { padding-left: 22px; }
.checklist li { margin-bottom: 4px; }

.lesson-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 14px; }
.nav-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Admin pages ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.config-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-soft); }
.config-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.config-status { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.config-status.ok { color: var(--success); }
.config-status.missing { color: var(--danger); }
.config-form { display: flex; gap: 8px; flex-wrap: wrap; }
.config-form input { flex: 1; min-width: 280px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.config-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14); }
.config-help { font-size: 0.86rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.lesson-admin-list { display: flex; flex-direction: column; gap: 24px; }
.lesson-admin-group h2 { margin: 0 0 8px; font-size: 1.04rem; }
.lesson-admin-row { display: grid; grid-template-columns: 60px 1fr auto auto auto; gap: 14px; align-items: center; padding: 12px 16px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 10px; }
.lesson-admin-row .num { font-weight: 800; color: var(--accent); }
.lesson-admin-row h4 { margin: 0; font-size: 0.95rem; }
.lesson-admin-row .meta { color: var(--muted); font-size: 0.8rem; }
.platform-pill { font-size: 0.7rem; padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.platform-pill.has { background: var(--success); color: white; }
.platform-pill.missing { background: var(--border-soft); color: var(--muted); }

.carousel-block { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 14px; padding: 20px; }
.carousel-block h3 { margin: 0 0 6px; }
.image-prompt-card { background: var(--bg-tint); border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.image-prompt-card pre { white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: 0.84rem; margin: 4px 0; color: var(--ink); }
.image-prompt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Cheat sheet (print-optimised) ---------- */
.cheat-sheet { max-width: 720px; margin: 0 auto; background: white; padding: 32px; border-radius: 12px; box-shadow: var(--shadow-soft); }
.cheat-sheet h1 { color: var(--ink); margin: 0 0 4px; }
.cheat-sheet .cs-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }
.cheat-sheet h2 { color: var(--accent); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 22px 0 8px; }
.cheat-sheet ul, .cheat-sheet ol { margin: 6px 0 12px; padding-left: 22px; }
.cheat-sheet dt { font-weight: 800; color: var(--ink); margin-top: 6px; }
.cheat-sheet dd { margin: 2px 0 0; color: var(--ink-soft); }
.print-bar { display: flex; gap: 8px; max-width: 720px; margin: 0 auto 16px; }

@media print {
  .site-header, .site-footer, .print-bar { display: none !important; }
  body { background: white; }
  .cheat-sheet { box-shadow: none; padding: 0; max-width: 100%; }
  a { color: var(--ink); text-decoration: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .site-nav { gap: 10px; font-size: 0.85rem; }
  .brand-logo { width: 36px; height: 36px; }
  .site-main { padding: 24px 0; }
  .options { flex-direction: column; }
  .options .opt { width: 100%; }
  .lesson-row, .lesson-admin-row { flex-direction: column; align-items: flex-start; }
  .lesson-right { width: 100%; justify-content: space-between; }
  .table thead { display: none; }
  .table tr { display: block; padding: 12px; border-bottom: 1px solid var(--border-soft); }
  .table td { display: block; border: 0; padding: 4px 0; }
}

/* ===== Wave 1: rich lesson presentation ===== */

/* Section head with action button on the right */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.section-head h2 { margin: 0; }
.btn-small { padding: 6px 12px !important; font-size: 0.85rem; }

/* Prose markdown content from the lesson generator */
.prose { color: var(--ink); line-height: 1.65; font-size: 1.0rem; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--ink); margin: 18px 0 8px;
}
.prose h3 { font-size: 1.05rem; }
.prose h4 { font-size: 0.98rem; }
.prose p { margin: 0 0 10px; }
.prose strong { color: var(--ink); }
.prose em { color: var(--ink-soft); }
.prose ul, .prose ol { margin: 6px 0 14px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-dark); }
.prose code {
  background: var(--bg-tint); padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em; color: var(--accent-dark);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.prose pre {
  background: var(--ink); color: #ede9fe; padding: 14px 16px;
  border-radius: 10px; overflow-x: auto; margin: 12px 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.prose pre code { background: transparent; color: inherit; padding: 0; }
.prose blockquote {
  margin: 12px 0; padding: 8px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg-tint);
  color: var(--ink-soft); border-radius: 0 6px 6px 0;
}
.prose hr { border: 0; border-top: 1px solid var(--border-soft); margin: 18px 0; }

/* Branded comparison tables (from markdown tables in lesson body) */
.prose table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 14px 0; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}
.prose thead th {
  background: var(--gradient); color: white !important;
  text-align: left; padding: 10px 14px; font-weight: 700;
  letter-spacing: 0.02em;
}
.prose tbody td {
  padding: 10px 14px; border-top: 1px solid var(--border-soft);
  background: var(--panel); vertical-align: top;
}
.prose tbody tr:nth-child(even) td { background: var(--bg-tint); }
.prose tbody tr:hover td { background: rgba(124, 58, 237, 0.06); }

/* Interactive quiz */
.quiz { list-style: none; padding: 0; counter-reset: q; }
.quiz-item {
  padding: 14px 18px; margin: 0 0 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft); transition: border-color .2s;
}
.quiz-item.answered-ok { border-color: var(--success); }
.quiz-item.answered-miss { border-color: var(--danger); }
.quiz-item .q-text { margin: 0 0 10px; font-size: 1rem; }
.quiz-options { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.quiz-options .opt {
  display: flex; gap: 10px; align-items: center; padding: 8px 12px;
  border: 1px solid var(--border-soft); border-radius: 8px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.quiz-options .opt:hover { background: var(--bg-tint); border-color: var(--accent-light); }
.quiz-options input[type=radio] { accent-color: var(--accent); }
.quiz-short {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-soft); border-radius: 8px;
  font: inherit; resize: vertical;
}
.quiz-short:focus { outline: 2px solid var(--accent-light); border-color: var(--accent); }
.quiz-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.quiz-feedback {
  margin-top: 12px; padding: 12px 14px; border-radius: 8px;
  background: var(--bg-tint);
}
.quiz-feedback .result { margin: 0 0 4px; font-weight: 700; }
.quiz-feedback .result.ok { color: var(--success); }
.quiz-feedback .result.miss { color: var(--danger); }
.quiz-feedback .correct { margin: 4px 0; }

/* Practical task with checkable steps + notes */
.practical-task .practical-steps,
.practical-task .checklist { list-style: none; padding: 0; }
.practical-task .practical-steps li,
.practical-task .checklist li { margin: 6px 0; }
.practical-task label { display: inline-flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.practical-task input[type=checkbox] { margin-top: 4px; accent-color: var(--accent); }
.practical-notes-wrap { margin-top: 12px; }
.practical-notes-wrap label { display: block; margin-bottom: 6px; }
.practical-notes {
  width: 100%; min-height: 100px; padding: 10px 12px;
  border: 1px solid var(--border-soft); border-radius: 8px;
  font: inherit; resize: vertical; background: var(--panel);
}
.practical-notes:focus { outline: 2px solid var(--accent-light); border-color: var(--accent); }
.practical-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.practical-status.ok { color: var(--success); }
.practical-status.miss { color: var(--danger); }

/* Polished loading spinner: logo pulse + outer progress ring */
.generating { display: flex; justify-content: center; padding: 40px 0; }
.generating-card {
  background: var(--panel); padding: 40px 48px; border-radius: 20px;
  box-shadow: var(--shadow); max-width: 560px; width: 100%;
  text-align: center;
}
.gen-ring-wrap { position: relative; width: 180px; height: 180px; margin: 24px auto; }
.gen-ring {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.gen-ring .track {
  stroke: var(--border-soft); fill: none; stroke-width: 6;
}
.gen-ring .arc {
  stroke: url(#ixa-gradient); fill: none; stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset .35s ease;
}
.gen-logo {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  animation: pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(124, 58, 237, 0.35));
}
.gen-pct {
  position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem; font-weight: 800; color: var(--accent-dark);
  background: var(--panel); padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--border-soft);
}
@keyframes pulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 1;   }
  50%  { transform: translate(-50%, -50%) scale(1.08); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(1);   opacity: 1;   }
}
.status { color: var(--ink-soft); margin: 8px 0 4px; font-weight: 600; }

/* Slide deck (present mode) */
.deck { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--gradient); padding: 32px; }
.deck-slide {
  background: var(--panel); width: min(1000px, 100%); padding: 56px 64px;
  border-radius: 18px; box-shadow: var(--shadow);
  min-height: 520px; display: flex; flex-direction: column;
}
.deck-num { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.deck-title { color: var(--ink); font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 6px 0 14px; }
.deck-body { color: var(--ink); font-size: 1.15rem; line-height: 1.6; }
.deck-visual { margin-top: auto; padding-top: 24px; color: var(--muted); font-style: italic; font-size: 0.9rem; }
.deck-controls {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; align-items: center;
  background: rgba(255,255,255,.92); padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.deck-controls button {
  background: transparent; border: 0; cursor: pointer; padding: 6px 12px;
  border-radius: 8px; font: inherit; font-weight: 700; color: var(--ink);
}
.deck-controls button:hover { background: var(--bg-tint); color: var(--accent-dark); }
.deck-counter { color: var(--ink-soft); font-weight: 700; font-size: 0.92rem; }
.deck-exit { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 6px 12px; border-radius: 8px; }
.deck-exit:hover { background: var(--bg-tint); }

/* Dashboard readiness widget */
.readiness {
  background: var(--panel); padding: 22px 26px; border-radius: 16px;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-soft);
  margin: 16px 0 24px;
}
.readiness-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.readiness h3 { margin: 0; }
.readiness .stars { font-size: 1.5rem; letter-spacing: 0.05em; color: var(--accent); }
.readiness .stars .star { filter: grayscale(.85) opacity(.4); }
.readiness .stars .star.on { filter: none; }
.readiness-bar { margin-top: 14px; height: 10px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; }
.readiness-bar .fill {
  height: 100%; background: var(--gradient); width: 0%;
  border-radius: 999px; transition: width .6s ease;
}
.readiness-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.readiness-stats strong { color: var(--ink); }
.readiness-cert { margin-top: 10px; color: var(--ink-soft); }
.readiness-cert.ready { color: var(--success); font-weight: 700; }

/* Cheat sheet — branded, printable */
.cheatsheet {
  background: var(--panel); padding: 36px 42px;
  border-radius: 14px; box-shadow: var(--shadow);
  max-width: 880px; margin: 24px auto;
}
.cheatsheet .cs-head { display: flex; justify-content: space-between; align-items: baseline; }
.cheatsheet h1 { margin: 6px 0 18px; }
.cheatsheet .cs-section { margin-bottom: 18px; }
.cheatsheet .cs-section h2 {
  margin: 0 0 6px; font-size: 1rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent);
}
.cheatsheet .cs-actions { margin: 14px 0; display: flex; gap: 10px; }
@media print {
  .site-header, .site-footer, .cs-actions, .breadcrumb { display: none !important; }
  body { background: white; }
  .cheatsheet { box-shadow: none; padding: 0; max-width: 100%; }
  .prose table { box-shadow: none; }
  .prose thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: var(--ink); text-decoration: none; }
}

/* =================================================================
   Landing page — editorial-futurist
   Fraunces serif + JetBrains Mono accents, dark hero, asymmetric
   layout, animated SVG mesh, grain overlay, mosaic curriculum.
   ================================================================= */

:root {
  --serif: "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --cream: #f4f1ea;
  --paper: #ecead2;
  --ink-deep: #0e0c2a;
  --line: #1e1b4b;
  --hl-warm: #f5b945;
  --hl-pink: #ff7da3;
}

/* Grain overlay covers whole page on the landing */
.lp-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Mono utility — paired with the serif throughout */
.mono { font-family: var(--mono); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.74rem; }

.lp-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); margin: 0 0 18px;
}
.lp-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(124,58,237,.15); animation: ringPulse 2.4s ease-in-out infinite; }
.lp-kicker .dot.light { background: var(--hl-warm); box-shadow: 0 0 0 4px rgba(245,185,69,.25); }
@keyframes ringPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(124,58,237,.15); } 50% { box-shadow: 0 0 0 10px rgba(124,58,237,0); } }

.lp-h1, .lp-h2 {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: -0.02em; color: var(--ink-deep);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.lp-h1 { font-size: clamp(2.4rem, 5.8vw, 4.4rem); line-height: 0.98; margin: 0 0 22px; }
.lp-h1 em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.lp-h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.04; margin: 0 0 14px; }
.lp-h2 em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.lp-h2.invert { color: white; }

.lp-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6;
  color: var(--ink-soft); max-width: 56ch; margin: 0 0 26px;
}
.lp-lede .hl {
  background-image: linear-gradient(180deg, transparent 60%, rgba(245,185,69,.45) 60%);
  padding: 0 .15em;
}

.lp-section { padding: 88px 0; position: relative; z-index: 2; }
.lp-band { max-width: 920px; margin: 0 0 36px; }
.lp-section-sub { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; max-width: 60ch; margin: 0 0 28px; }

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.lp-btn-ink     { background: var(--ink-deep); color: white; border-color: var(--ink-deep); }
.lp-btn-ink:hover { background: var(--accent); border-color: var(--accent); }
.lp-btn-ghost   { background: transparent; color: var(--ink-deep); border-color: rgba(14,12,42,.18); }
.lp-btn-ghost:hover { background: var(--ink-deep); color: white; border-color: var(--ink-deep); }
.lp-btn-light   { background: white; color: var(--ink-deep); border-color: white; }
.lp-btn-light:hover { background: var(--hl-warm); border-color: var(--hl-warm); }
.lp-btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,.35); }
.lp-btn-outline:hover { background: white; color: var(--ink-deep); border-color: white; }

.lp-cta-cluster { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.lp-cta-row { display: flex; justify-content: center; margin-top: 32px; }
.lp-fineprint {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin: 16px 0 0; color: var(--ink-soft);
}
.lp-fineprint .sep { color: rgba(14,12,42,.25); }
.lp-fineprint.invert { color: rgba(255,255,255,.7); }

/* ---------- Hero ---------- */
.lp-hero {
  position: relative; z-index: 2;
  background: var(--cream);
  margin: -40px calc(50% - 50vw) 0; /* break out of the .site-main container */
  padding: 56px max(28px, calc(50vw - 560px)) 0;
  overflow: hidden;
}
.lp-hero-inner {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: end;
  padding-bottom: 48px;
}
@media (min-width: 980px) {
  .lp-hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 64px; }
}
.lp-hero-copy { padding-top: 24px; }
.lp-hero-art { margin: 0; position: relative; }
.lp-hero-art .lp-mesh { width: 100%; height: auto; max-width: 480px; display: block; margin: 0 auto; }
.lp-hero-art .lp-mesh-cap { margin-top: 8px; color: var(--ink-soft); text-align: right; padding-right: 12px; }

/* Mesh animations */
.lp-mesh .ln {
  stroke-dasharray: 4 6; stroke-dashoffset: 0;
  animation: lineFlow 4.2s linear infinite;
}
.lp-mesh .ln:nth-child(even) { animation-direction: reverse; animation-duration: 5.6s; }
@keyframes lineFlow { to { stroke-dashoffset: -120; } }
.lp-mesh .node { animation: nodePulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.lp-mesh .node.n2 { animation-delay: .4s; }
.lp-mesh .node.n3 { animation-delay: .8s; }
.lp-mesh .node.n4 { animation-delay: 1.2s; }
.lp-mesh .node.n5 { animation-delay: 1.6s; }
.lp-mesh .node.nC { animation-delay: 2s; }
@keyframes nodePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.lp-mesh .node text {
  font-family: var(--mono); font-size: 9px; fill: var(--ink-deep); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}
.lp-mesh .centerlabel { font-family: var(--serif) !important; font-size: 11px !important; font-style: italic; font-weight: 500; fill: var(--accent) !important; text-transform: none !important; letter-spacing: 0; }

/* Marquee ticker — pure CSS scroll */
.lp-ticker {
  border-top: 1px solid rgba(14,12,42,.12);
  border-bottom: 1px solid rgba(14,12,42,.12);
  margin: 8px 0 0;
  overflow: hidden; background: var(--paper);
}
.lp-ticker-track {
  display: flex; gap: 32px; align-items: center; white-space: nowrap;
  padding: 14px 0;
  animation: tickerScroll 60s linear infinite;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--ink-deep); text-transform: uppercase;
}
.lp-ticker-track span { flex-shrink: 0; }
.lp-ticker:hover .lp-ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ---------- Diagnostic preview ---------- */
.lp-diag-card {
  background: var(--panel); border: 1px solid rgba(14,12,42,.08);
  border-radius: 20px; padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(30,27,75,.10);
  max-width: 760px; margin-top: 8px;
  position: relative; overflow: hidden;
}
.lp-diag-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 240px; height: 240px;
  background: radial-gradient(circle at top right, rgba(124,58,237,.10), transparent 70%);
  pointer-events: none;
}
.diag-progress { display: flex; gap: 8px; margin-bottom: 26px; }
.diag-progress .step { height: 4px; flex: 1; background: rgba(14,12,42,.08); border-radius: 4px; transition: background .3s; }
.diag-progress .step.active { background: var(--accent); }
.diag-progress .step.done { background: var(--ink-deep); }
.diag-eyebrow { color: var(--accent); margin: 0 0 12px; }
.diag-q { font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.2; color: var(--ink-deep); margin: 0 0 22px; font-weight: 500; }
.diag-opts { display: grid; gap: 10px; }
.diag-opt {
  display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: 1.5px solid rgba(14,12,42,.12);
  padding: 16px 20px; border-radius: 12px; font: inherit; cursor: pointer;
  color: var(--ink-deep); font-weight: 600; text-align: left;
  transition: all .2s cubic-bezier(.2,.8,.2,1);
}
.diag-opt .arrow { opacity: 0; transform: translateX(-6px); transition: all .2s; color: var(--accent); }
.diag-opt:hover { border-color: var(--accent); background: rgba(124,58,237,.05); transform: translateX(4px); }
.diag-opt:hover .arrow { opacity: 1; transform: translateX(0); }
.diag-opt.picked { background: var(--accent); color: white; border-color: var(--accent); }
.diag-summary { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 14px; }
.diag-summary li { display: grid; grid-template-columns: 24px 1fr; gap: 10px 14px; font-family: var(--serif); color: var(--ink-deep); }
.diag-summary li .bullet { color: var(--accent); font-weight: 700; }
.diag-summary li strong { font-weight: 500; font-size: 1rem; line-height: 1.4; grid-column: 2; }
.diag-summary li .sig { grid-column: 2; color: var(--ink-soft); font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.diag-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.lp-diag-footer { margin: 18px 0 0; color: var(--muted); }

/* ---------- Pathway rail ---------- */
.lp-rail { list-style: none; padding: 0; display: grid; gap: 18px; counter-reset: rail; }
@media (min-width: 760px) { .lp-rail { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-rail { grid-template-columns: repeat(4, 1fr); } }
.lp-rail li {
  background: var(--panel); border: 1px solid rgba(14,12,42,.08); border-radius: 18px;
  padding: 26px 24px 22px; position: relative; transition: transform .3s, box-shadow .3s;
  overflow: hidden;
}
.lp-rail li:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(30,27,75,.10); }
.lp-rail-num {
  display: inline-block; font-family: var(--mono); font-weight: 800; font-size: 0.78rem;
  color: var(--accent); letter-spacing: 0.1em; margin-bottom: 10px;
}
.lp-rail li h3 { font-family: var(--serif); font-weight: 500; font-size: 1.18rem; color: var(--ink-deep); margin: 6px 0 8px; }
.lp-rail li p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.lp-rail-glyph { position: absolute; bottom: -8px; right: -8px; width: 90px; height: 90px; color: rgba(124,58,237,.15); }

/* ---------- Tracks mosaic ---------- */
.lp-track-mosaic {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .lp-track-mosaic { grid-template-columns: repeat(6, 1fr); }
  .lp-track-mosaic .t1 { grid-column: span 3; }
  .lp-track-mosaic .t2 { grid-column: span 3; }
  .lp-track-mosaic .t3 { grid-column: span 2; }
  .lp-track-mosaic .t4 { grid-column: span 2; }
  .lp-track-mosaic .t5 { grid-column: span 2; }
}
.lp-track-mosaic .track {
  background: var(--panel); border: 1px solid rgba(14,12,42,.08);
  border-radius: 18px; padding: 26px 26px 22px; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.lp-track-mosaic .track:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(30,27,75,.10); }
.lp-track-mosaic .track:nth-child(2) { background: var(--ink-deep); color: var(--cream); border-color: var(--ink-deep); }
.lp-track-mosaic .track:nth-child(2) h3, .lp-track-mosaic .track:nth-child(2) p { color: white; }
.lp-track-mosaic .track:nth-child(4) { background: var(--paper); }
.lp-track-mosaic .track .track-tag { color: var(--accent); margin: 0 0 8px; display: inline-block; }
.lp-track-mosaic .track:nth-child(2) .track-tag { color: var(--hl-warm); }
.lp-track-mosaic .track h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink-deep); margin: 0 0 8px; }
.lp-track-mosaic .track p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; margin: 0; }
.lp-track-mosaic .track .track-art { position: absolute; bottom: -10px; right: -10px; width: 80px; height: 80px; color: rgba(124,58,237,.2); }
.lp-track-mosaic .track:nth-child(2) .track-art { color: rgba(255,255,255,.15); }

/* ---------- Curriculum (typographic list) ---------- */
.lp-curriculum { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(14,12,42,.12); }
.lp-curr-row {
  display: grid; grid-template-columns: 70px 1fr 30px;
  gap: 24px; align-items: center;
  padding: 22px 4px; border-bottom: 1px solid rgba(14,12,42,.12);
  transition: padding .25s ease, background .25s ease;
  cursor: default;
}
.lp-curr-row:hover { padding-left: 14px; padding-right: 14px; background: var(--paper); }
.lp-curr-num { color: var(--accent); font-weight: 800; font-size: 0.9rem; }
.lp-curr-meta h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink-deep); margin: 0 0 4px; line-height: 1.2; }
.lp-curr-meta p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; margin: 0; max-width: 75ch; }
.lp-curr-arrow { font-size: 1.3rem; color: rgba(14,12,42,.25); transition: transform .25s, color .25s; text-align: right; }
.lp-curr-row:hover .lp-curr-arrow { color: var(--accent); transform: translateX(6px); }

/* ---------- Feature grid (practical + responsible) ---------- */
.lp-feat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .lp-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-feat-grid { grid-template-columns: repeat(4, 1fr); } }
.lp-feat-grid .feat {
  background: var(--panel); border: 1px solid rgba(14,12,42,.08);
  border-radius: 14px; padding: 24px 22px;
  transition: transform .25s, box-shadow .25s;
}
.lp-feat-grid .feat:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(30,27,75,.10); }
.lp-feat-grid .feat .feat-num { color: var(--accent); margin: 0 0 12px; display: block; }
.lp-feat-grid .feat h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--ink-deep); margin: 0 0 8px; }
.lp-feat-grid .feat p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.5; margin: 0; }

/* ---------- Capstone ---------- */
.lp-capstone-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lp-capstone-grid { grid-template-columns: repeat(3, 1fr); } }
.lp-capstone-grid article {
  background: var(--paper); border-radius: 18px; padding: 28px 26px;
  border: 1px solid rgba(14,12,42,.08);
}
.lp-capstone-grid article h3 { font-family: var(--serif); font-weight: 500; color: var(--ink-deep); margin: 0 0 10px; font-size: 1.2rem; }
.lp-capstone-grid article p { color: var(--ink-soft); margin: 0; line-height: 1.55; font-size: 0.95rem; }

/* ---------- Certification ---------- */
.lp-cert-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lp-cert-grid { grid-template-columns: repeat(3, 1fr); } }
.lp-cert-grid article {
  background: var(--panel); border-radius: 18px; padding: 26px 24px;
  border: 1px solid rgba(14,12,42,.08); position: relative;
}
.lp-cert-grid article.cert-disclaimer { background: var(--ink-deep); color: var(--cream); border-color: var(--ink-deep); }
.lp-cert-grid article.cert-disclaimer h3, .lp-cert-grid article.cert-disclaimer p { color: white; }
.lp-cert-grid article.cert-disclaimer .cert-tag { color: var(--hl-warm); }
.lp-cert-grid .cert-tag { color: var(--accent); display: inline-block; margin: 0 0 12px; }
.lp-cert-grid h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ink-deep); margin: 0 0 10px; }
.lp-cert-grid p { color: var(--ink-soft); line-height: 1.55; margin: 0; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.lp-faq-list { display: grid; gap: 8px; max-width: 880px; }
.lp-faq-list details {
  background: var(--panel); border: 1px solid rgba(14,12,42,.08);
  border-radius: 12px; padding: 18px 22px;
  transition: border-color .2s, box-shadow .2s;
}
.lp-faq-list details[open] { border-color: var(--accent); box-shadow: 0 8px 24px rgba(30,27,75,.08); }
.lp-faq-list summary {
  font-family: var(--serif); font-weight: 500; font-size: 1.1rem;
  color: var(--ink-deep); cursor: pointer;
  list-style: none; padding-right: 28px; position: relative;
  line-height: 1.3;
}
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  color: var(--accent); font-weight: 800; font-size: 1.5rem;
  transition: transform .2s;
}
.lp-faq-list details[open] summary::after { content: "−"; }
.lp-faq-list p { margin: 12px 0 0; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Final CTA ---------- */
.lp-final {
  background: linear-gradient(135deg, #0e0c2a 0%, #1e1b4b 50%, #4c1d95 100%);
  color: white; border-radius: 28px;
  margin: 24px 0 0; padding: 60px 36px;
  position: relative; overflow: hidden;
}
.lp-final::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.12; pointer-events: none;
}
.lp-final-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
}
@media (min-width: 880px) { .lp-final-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.lp-final-art { width: 100%; max-width: 320px; height: auto; justify-self: end; }

/* ---------- Scroll reveal ---------- */
.lp-section, .lp-hero, .lp-final {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.lp-section.in-view, .lp-hero.in-view, .lp-final.in-view { opacity: 1; transform: none; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .lp-mesh .ln, .lp-mesh .node, .lp-ticker-track, .lp-kicker .dot { animation: none !important; }
  .lp-section, .lp-hero, .lp-final { opacity: 1; transform: none; transition: none; }
}

/* Header tweak — make brand-name use the serif on landing only */
body.has-lp .brand-name { font-family: var(--serif); font-weight: 500; letter-spacing: 0; font-size: 1.08rem; }
body.has-lp .brand-tagline { font-family: var(--mono); }
