:root {
  color-scheme: light;
  --primary: #F59E0B;
  --primary-light: #FCD34D;
  --primary-dark: #D97706;
  --secondary: #4F46E5;
  --secondary-light: #818CF8;
  --accent-success: #10B981;
  --accent-error: #EF4444;
  --accent-creative: #F97316;
  --bg-light: #FFFBF5;
  --bg-white: #FFFFFF;
  --bg-orange-subtle: rgba(245, 158, 11, 0.05);
  --bg-orange-light: rgba(245, 158, 11, 0.1);
  --text-main: #1F2937;
  --text-muted: #4B5563;
  --bg: var(--bg-light);
  --bg-strong: #fff2de;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: var(--bg-white);
  --surface-muted: #fff3e2;
  --text: var(--text-main);
  --text-soft: var(--text-muted);
  --line: rgba(245, 158, 11, 0.14);
  --brand: var(--primary);
  --brand-deep: var(--primary-dark);
  --accent: var(--secondary-light);
  --success: var(--accent-success);
  --danger: var(--accent-error);
  --gradient-primary: linear-gradient(135deg, #F59E0B 0%, #FB923C 100%);
  --gradient-secondary: linear-gradient(135deg, #FB923C 0%, #F59E0B 100%);
  --gradient-accent: linear-gradient(135deg, #F59E0B 20%, #4F46E5 80%);
  --shadow: 0 28px 60px rgba(245, 158, 11, 0.16);
  --shadow-soft: 0 14px 30px rgba(31, 41, 55, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
}

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

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.2), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(249, 115, 22, 0.16), transparent 24%),
    radial-gradient(circle at 78% 78%, rgba(79, 70, 229, 0.1), transparent 22%),
    linear-gradient(180deg, #fffaf2 0%, #fff4e6 52%, #fffdf8 100%);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

#app,
.app-shell {
  min-height: 100vh;
}

.app-shell {
  display: flex;
  justify-content: center;
  padding: clamp(0.9rem, 3vw, 2rem);
  position: relative;
}

.app-frame {
  width: min(100%, 1120px);
  min-height: calc(100vh - 1.8rem);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-header {
  position: relative;
  padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1rem, 4vw, 2.2rem) clamp(1.4rem, 3vw, 2.3rem);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 20%),
    radial-gradient(circle at 18% 26%, rgba(252, 211, 77, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(146, 64, 14, 0.98), rgba(217, 119, 6, 0.95));
  color: #fff;
}

.brand-header-home {
  min-height: 290px;
}

.brand-header-compact {
  min-height: 210px;
}

.header-controls {
  display: flex;
  justify-content: flex-start;
  min-height: 44px;
}

.header-controls-right {
  justify-content: flex-end;
}

.brand-lockup {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.brand-logo {
  width: min(100%, 320px);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.16));
}

.brand-copy h1,
.hero-text h2,
.section-heading h2,
.module-banner h2,
.lesson-banner h2,
.activity-sidebar h2,
.slide-card h2,
.empty-state h2,
.modal-card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.brand-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin-top: 0.55rem;
  max-width: 11ch;
}

.brand-copy p,
.hero-text p,
.section-copy,
.module-card p,
.lesson-card-modern p,
.lesson-banner p,
.aim-card p,
.activity-row p,
.activity-sidebar p,
.slide-card p,
.glossary-item p,
.modal-card p,
.app-footer p {
  line-height: 1.6;
}

.brand-copy p {
  color: rgba(255, 255, 255, 0.84);
  margin-top: 0.9rem;
  max-width: 56ch;
}

.brand-kicker,
.eyebrow,
.lesson-card-label,
.activity-meta,
.module-pill,
.slide-count {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}

.brand-kicker,
.brand-badge {
  color: rgba(255, 255, 255, 0.86);
}

.brand-badge {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 700;
}

.header-link {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-weight: 700;
}

.eyebrow,
.lesson-card-label,
.activity-meta,
.module-pill {
  color: var(--brand);
}

.nav-btn,
.nav-spacer {
  width: 44px;
  height: 44px;
}

.nav-btn {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.screen-body {
  padding: clamp(1rem, 3vw, 2rem);
}

.screen-body > section:not(.about-stack),
.about-stack > .section-block {
  position: relative;
  isolation: isolate;
  padding: clamp(0.8rem, 1.6vw, 1.15rem);
  border-radius: calc(var(--radius-xl) + 6px);
}

.screen-body > section:not(.about-stack):nth-of-type(odd),
.about-stack > .section-block:nth-of-type(odd) {
  background-color: var(--bg-white);
}

.screen-body > section:not(.about-stack):nth-of-type(even),
.about-stack > .section-block:nth-of-type(even) {
  background-color: var(--bg-light);
  background-image: linear-gradient(180deg, var(--bg-orange-subtle) 0%, rgba(255, 255, 255, 0) 100%);
}

.highlight {
  color: var(--primary-dark);
  font-weight: 600;
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
  padding: 0 4px;
  border-radius: 4px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-panel,
.module-banner,
.lesson-banner,
.slide-frame,
.activity-sidebar,
.metric-card,
.module-card,
.lesson-card-modern,
.activity-row,
.aim-card,
.glossary-item,
.empty-state,
.modal-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-panel,
.module-banner,
.lesson-banner,
.slide-frame,
.activity-sidebar,
.empty-state,
.modal-card {
  border-radius: var(--radius-xl);
}

.hero-panel,
.module-banner,
.lesson-banner,
.slide-frame,
.activity-sidebar,
.empty-state,
.modal-card,
.metric-card,
.module-card,
.lesson-card-modern,
.activity-row,
.aim-card,
.glossary-item {
  padding: clamp(1.35rem, 2.8vw, 2rem);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-5);
  background:
    linear-gradient(145deg, rgba(255, 250, 244, 0.98), rgba(250, 240, 228, 0.94));
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff4df 0%, #ffffff 100%);
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.6;
}

.hero-section::before {
  width: 400px;
  height: 400px;
  background: var(--primary-light);
  top: -100px;
  right: -100px;
}

.hero-section::after {
  width: 300px;
  height: 300px;
  background: var(--accent-creative);
  bottom: -50px;
  left: -50px;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-panel-home {
  align-items: center;
}

.hero-text h2,
.section-heading h2,
.module-banner h2,
.lesson-banner h2,
.activity-sidebar h2,
.slide-card h2,
.modal-card h2,
.empty-state h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-text h2 {
  margin-top: 0.7rem;
  max-width: 16ch;
}

.hero-text p {
  margin-top: 1rem;
  color: var(--text-soft);
  max-width: 64ch;
}

.hero-art {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.hero-art-stack {
  gap: 1rem;
}

.hero-art img {
  width: min(100%, 240px);
}

.hero-art-card {
  width: min(100%, 240px);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-art-card strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
}

.hero-art-card span {
  color: rgba(255, 255, 255, 0.82);
}

.metrics-grid,
.module-grid,
.aims-grid {
  display: grid;
  gap: var(--space-3);
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-5);
}

.metric-card {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.module-card,
.lesson-card-modern,
.activity-row,
.about-link-card,
.suggest-topic-card,
.glossary-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.module-card,
.lesson-card-modern {
  display: block;
  color: inherit;
  text-decoration: none;
}

.module-card:hover,
.lesson-card-modern:hover,
.activity-row:hover,
.about-link-card:hover,
.suggest-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px rgba(245, 158, 11, 0.16);
}

.metric-card strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.metric-card span {
  color: var(--text-soft);
}

.section-block + .section-block,
.hero-panel + .metrics-grid,
.metrics-grid + .section-block,
.module-banner + .section-block,
.lesson-banner + .section-block {
  margin-top: var(--space-5);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: end;
}

.section-heading > div::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  margin-top: 12px;
  border-radius: 2px;
}

.section-copy {
  color: var(--text-soft);
  max-width: 34ch;
}

.impact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 239, 228, 0.95));
  box-shadow: var(--shadow-soft);
  padding: clamp(1.35rem, 2.8vw, 2rem);
}

.impact-panel summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.impact-panel summary::-webkit-details-marker {
  display: none;
}

.impact-toggle {
  color: var(--text-soft);
  font-weight: 700;
}

.wave-divider {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -1px;
}

.impact-grid,
.check-grid,
.programme-grid,
.link-grid {
  display: grid;
  gap: var(--space-3);
}

.why-matters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.wm-card {
  background: var(--bg-white);
  border-top: 4px solid var(--card-accent);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.wm-icon,
.feature-icon,
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.wm-icon svg {
  width: 24px;
  height: 24px;
}

.wm-card h3 {
  font-size: 1.2rem;
}

.wm-card p,
.wm-card li {
  color: var(--text-soft);
  line-height: 1.6;
}

.wm-card p,
.wm-card .bullet-list {
  margin-top: 0.8rem;
}

.impact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-4);
}

.impact-card,
.programme-card,
.about-link-card,
.completion-card,
.progress-summary,
.feedback-section,
.suggest-topic-card,
.about-panel,
.error-state {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.impact-card,
.programme-card,
.about-link-card,
.progress-summary,
.feedback-section,
.suggest-topic-card,
.about-panel,
.error-state {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  padding: clamp(1.35rem, 2.8vw, 2rem);
}

.impact-card h3,
.programme-card h3 {
  font-size: 1.2rem;
}

.impact-card p,
.impact-card li,
.impact-sources,
.completion-card p,
.progress-summary span,
.feedback-section p,
.about-panel p,
.programme-card p,
.about-link-card span,
.error-state p {
  color: var(--text-soft);
  line-height: 1.6;
}

.impact-card p,
.impact-card .bullet-list,
.about-panel .bullet-list,
.programme-grid,
.link-grid,
.check-grid {
  margin-top: 0.8rem;
}

.impact-sources {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.compact-list {
  gap: 0.55rem;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-4);
}

.module-card {
  width: 100%;
  text-align: left;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 239, 0.95));
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.module-card::after {
  content: '';
  position: absolute;
  inset: auto -18% -32% auto;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, color-mix(in srgb, var(--module-accent) 28%, transparent), transparent 70%);
}

.module-card-soon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 241, 234, 0.96));
}

.module-card-header,
.module-card-footer,
.lesson-card-main,
.lesson-card-meta,
.slide-meta-row,
.slide-controls,
.activity-row,
.activity-sidebar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-card-header,
.module-card-footer {
  position: relative;
  z-index: 1;
}

.module-icon-wrap,
.modal-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: inline-grid;
  place-items: center;
  background: color-mix(in srgb, var(--module-accent, var(--brand)) 12%, white);
}

.module-icon {
  width: 34px;
  height: 34px;
}

.module-pill {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--module-accent, var(--brand)) 12%, white);
  color: color-mix(in srgb, var(--module-accent, var(--brand)) 78%, black);
}

.module-card-body {
  position: relative;
  z-index: 1;
  margin-top: 1.1rem;
}

.module-card-body h3,
.lesson-card-modern h3,
.activity-row h3,
.glossary-item h3 {
  font-size: 1.24rem;
}

.module-card-body p,
.module-card-footer,
.lesson-card-modern p,
.lesson-card-meta,
.module-banner p,
.lesson-banner p,
.activity-row p,
.activity-sidebar p,
.glossary-item p,
.empty-state p,
.modal-card p,
.app-footer p {
  color: var(--text-soft);
}

.module-card-footer {
  margin-top: 1.1rem;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.suggest-topic-card {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
}

.suggest-topic-card h2,
.completion-card h2,
.progress-summary h2,
.about-panel h2,
.error-state h2 {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 4vw, 3rem);
}

.suggest-topic-card p {
  margin-top: 0.8rem;
  color: var(--text-soft);
  max-width: 54ch;
}

.module-banner {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--module-accent) 84%, #162233 16%), var(--module-accent));
  color: #fff;
}

.module-banner p,
.module-banner-meta,
.lesson-banner p,
.lesson-banner-meta {
  color: rgba(255, 255, 255, 0.84);
}

.module-banner-meta,
.lesson-banner-meta {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.lesson-stack,
.activity-list,
.glossary-list {
  display: grid;
  gap: var(--space-3);
}

.lesson-stack,
.activity-list,
.glossary-list {
  margin-top: var(--space-4);
}

.lesson-card-modern,
.activity-row {
  width: 100%;
  text-align: left;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  cursor: pointer;
}

.lesson-card-modern {
  border: 2px solid #EDE6DA;
  border-left: 6px solid var(--accent);
}

.lesson-card-main {
  align-items: start;
  gap: 1rem;
}

.lesson-card-modern h3 {
  margin-top: 0.35rem;
}

.lesson-card-modern p {
  margin-top: 0.45rem;
}

.lesson-card-meta {
  margin-top: 1rem;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.lesson-card-modern:hover {
  border-color: var(--primary);
}

.progress-orb {
  width: 60px;
  height: 60px;
  position: relative;
  flex: 0 0 auto;
}

.progress-orb svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-orb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
}

.progress-bg,
.progress-value {
  fill: none;
  stroke-width: 4px;
}

.progress-bg {
  stroke: rgba(88, 97, 113, 0.16);
}

.progress-value {
  stroke: var(--accent);
  stroke-linecap: round;
}

.lesson-banner {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--lesson-accent) 84%, #192638 16%), var(--lesson-accent));
  color: #fff;
}

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

.aim-card {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.aim-card span,
.activity-sidebar-meta span,
.law-badge,
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.aim-card span {
  background: var(--surface-muted);
  color: var(--brand);
  font-weight: 700;
}

.aim-card p {
  margin-top: 0.85rem;
}

.activity-row {
  gap: 1rem;
}

.activity-row.done {
  border-color: color-mix(in srgb, var(--success) 42%, var(--line));
}

.activity-index {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  font-weight: 700;
}

.activity-copy {
  flex: 1;
}

.activity-meta {
  gap: var(--space-2);
  flex-wrap: wrap;
}

.activity-row h3 {
  margin-top: 0.4rem;
}

.activity-row p {
  margin-top: 0.45rem;
}

.activity-chevron {
  flex: 0 0 auto;
  font-size: 1.5rem;
  color: var(--text-soft);
}

.activity-shell {
  display: grid;
  grid-template-columns: minmax(250px, 310px) 1fr;
  gap: var(--space-4);
}

.activity-sidebar {
  align-self: start;
  position: sticky;
  top: 1rem;
  background: linear-gradient(180deg, #fffdf9, #f6efe6);
}

.activity-sidebar h2 {
  margin-top: var(--space-2);
}

.activity-sidebar p {
  margin-top: var(--space-3);
}

.activity-sidebar-meta {
  margin-top: var(--space-4);
  flex-wrap: wrap;
  gap: 0.6rem;
}

.activity-sidebar-meta span,
.law-badge {
  background: var(--bg-orange-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
}

.slide-dots,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.slide-dots {
  margin-top: var(--space-5);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(88, 97, 113, 0.24);
  cursor: pointer;
}

.dot.active {
  width: 28px;
  background: var(--brand);
}

.slide-frame {
  min-height: 420px;
  background: var(--surface-strong);
}

.slide-card {
  display: grid;
  gap: var(--space-3);
}

.slide-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  font-size: 1.4rem;
}

.slide-lead {
  font-size: 1.04rem;
}

.bullet-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.25rem;
}

.bullet-list li {
  line-height: 1.55;
}

.callout-card,
.scenario-box,
.feedback-panel,
.reveal-card {
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.callout-card {
  background: var(--bg-orange-light);
}

.scenario-box {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-left: 4px solid var(--brand);
}

.scenario-box p + p,
.reveal-content p + p {
  margin-top: 0.8rem;
}

.scenario-prompt {
  font-weight: 600;
}

.reveal-card {
  background: var(--surface-muted);
}

.reveal-card summary {
  cursor: pointer;
  font-weight: 700;
}

.reveal-content {
  margin-top: 0.9rem;
}

.interactive-quiz {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(79, 70, 229, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 32px 28px;
  margin: 40px 0;
}

.quiz-header {
  display: grid;
  gap: 0.65rem;
}

.quiz-title {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-title::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
}

.quiz-question {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 0.98;
}

.quiz-explainer {
  color: var(--text-soft);
  font-size: 1rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.quiz-btn {
  background: var(--bg-white);
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px 20px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quiz-btn:hover {
  border-color: var(--primary);
  background: var(--bg-orange-light);
}

.quiz-btn.selected {
  border-color: var(--primary);
  background: rgba(245, 158, 11, 0.08);
}

.quiz-btn.correct {
  border-color: var(--accent-success);
  background: rgba(16, 185, 129, 0.1);
  color: #065F46;
}

.quiz-btn.incorrect {
  border-color: var(--accent-error);
  background: rgba(239, 68, 68, 0.1);
  color: #991B1B;
}

.quiz-btn:disabled {
  cursor: default;
}

.quiz-choice {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  color: var(--primary);
  font-weight: 700;
  flex: 0 0 auto;
}

.quiz-btn.correct .quiz-choice {
  background: rgba(16, 185, 129, 0.18);
  color: #065F46;
}

.quiz-btn.incorrect .quiz-choice {
  background: rgba(239, 68, 68, 0.18);
  color: #991B1B;
}

.quiz-btn-copy {
  flex: 1;
  line-height: 1.5;
}

.answer-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.quiz-feedback {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
}

.quiz-feedback-correct {
  background: rgba(16, 185, 129, 0.15);
  color: #065F46;
}

.quiz-feedback-incorrect {
  background: rgba(239, 68, 68, 0.15);
  color: #991B1B;
}

.feedback-icon {
  margin-right: 8px;
  font-weight: bold;
}

.feedback-panel strong {
  display: block;
  margin-bottom: 0.4rem;
}

.completion-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 250, 244, 0.98), rgba(250, 240, 228, 0.94));
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.completion-card p {
  margin-top: 0.9rem;
}

.completion-actions,
.share-actions,
.error-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.completion-actions {
  margin-top: 1.1rem;
}

.progress-summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
}

.progress-summary-stats {
  min-width: 124px;
  text-align: center;
}

.progress-summary-stats strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
}

.feedback-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.feedback-question,
.share-section {
  margin-top: 1rem;
}

.feedback-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.btn-feedback {
  flex: 1;
  min-height: 52px;
  padding: 1rem;
  font-size: 1.05rem;
  border: 2px solid #ddd;
  background: white;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-feedback:hover {
  border-color: var(--brand-deep);
  transform: translateY(-1px);
}

.btn-feedback.selected {
  background: var(--brand-deep);
  color: white;
  border-color: var(--brand-deep);
}

.feedback-comment {
  margin-top: 1rem;
}

.feedback-comment textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  margin: 0.8rem 0 1rem;
}

.inline-message {
  margin-top: 1rem;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.inline-message.success {
  background: color-mix(in srgb, var(--success) 12%, white);
  color: var(--success);
}

.inline-message.error {
  background: color-mix(in srgb, var(--danger) 12%, white);
  color: var(--danger);
}

.about-stack {
  display: grid;
  gap: var(--space-4);
}

.about-panel .bullet-list li {
  color: var(--text-soft);
}

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

.check-grid span {
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 10%, white);
  color: var(--success);
  padding: 0.8rem 1rem;
  text-align: center;
  font-weight: 700;
}

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

.about-link-card {
  display: grid;
  gap: 0.45rem;
  text-decoration: none;
}

.about-link-card strong {
  font-size: 1.05rem;
}

.about-site-link {
  margin-top: 1rem;
}

.reflection-area {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: var(--surface-strong);
  color: var(--text);
}

.slide-controls {
  margin-top: var(--space-4);
  gap: 1rem;
}

.btn {
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button,
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.cta-button:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 14px -3px rgba(245, 158, 11, 0.4);
}

.btn-secondary,
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  text-decoration: none;
}

.btn-secondary {
  color: var(--primary);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.glossary-item {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.glossary-item h3 {
  margin-bottom: 0.45rem;
}

.chip {
  background: var(--bg-orange-light);
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.app-footer {
  padding: 1rem clamp(1rem, 4vw, 2.2rem) calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a,
.footer-link-button {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
}

.footer-link-button {
  cursor: pointer;
}

.app-footer p,
.footer-meta {
  font-size: 0.95rem;
}

.footer-meta {
  margin-top: 0.5rem;
  color: var(--text-soft);
}

.empty-state {
  text-align: center;
  background: var(--surface-strong);
}

.empty-state p {
  margin-top: 0.75rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 23, 35, 0.48);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-card {
  width: min(100%, 460px);
  background: var(--surface-strong);
  text-align: center;
}

.modal-card .modal-icon-wrap {
  margin: 0 auto 1rem;
}

.modal-card p {
  margin: 1rem 0 1.25rem;
}

.modal-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.75rem;
}

.modal-copy {
  margin-top: 1.25rem;
}

.error-state {
  text-align: center;
}

.error-state h2 {
  margin-bottom: 0.85rem;
}

.error-actions {
  justify-content: center;
  margin-top: 1.1rem;
}

.error-contact {
  margin-top: 1rem;
}

.wave-divider path {
  fill: var(--bg-light);
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .brand-lockup,
  .hero-panel,
  .activity-shell,
  .aims-grid,
  .metrics-grid,
  .module-grid,
  .impact-grid,
  .check-grid,
  .programme-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .activity-sidebar {
    position: static;
  }

  .suggest-topic-card,
  .progress-summary,
  .footer-top {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .why-matters-grid {
    grid-template-columns: 1fr;
  }

  .wm-card,
  .impact-panel,
  .impact-card,
  .programme-card,
  .about-link-card,
  .progress-summary,
  .feedback-section,
  .suggest-topic-card,
  .about-panel,
  .error-state,
  .hero-panel,
  .module-banner,
  .lesson-banner,
  .slide-frame,
  .activity-sidebar,
  .empty-state,
  .modal-card,
  .metric-card,
  .module-card,
  .lesson-card-modern,
  .activity-row,
  .aim-card,
  .glossary-item {
    padding: 24px 20px;
  }

  .interactive-quiz {
    padding: 24px 20px;
    margin: 32px 0;
  }

  .quiz-btn,
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .cta-button {
    min-height: 48px;
    font-size: 16px;
    width: 100%;
  }

  .hero-section::before {
    width: 200px;
    height: 200px;
  }

  .hero-section::after {
    width: 150px;
    height: 150px;
  }

  .screen-body > section:not(.about-stack),
  .about-stack > .section-block {
    padding: 32px 20px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 0;
  }

  .app-frame {
    min-height: 100vh;
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .brand-header {
    padding-inline: 1rem;
  }

  .brand-logo {
    width: min(100%, 260px);
  }

  .screen-body {
    padding: 1rem;
  }

  .section-heading,
  .module-card-header,
  .module-card-footer,
  .lesson-card-main,
  .lesson-card-meta,
  .slide-controls,
  .activity-row,
  .impact-panel summary,
  .feedback-buttons,
  .completion-actions,
  .share-actions,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .module-card-footer,
  .lesson-card-meta,
  .slide-controls,
  .footer-links {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll,
  .module-card,
  .lesson-card-modern,
  .activity-row,
  .about-link-card,
  .suggest-topic-card,
  .btn,
  a {
    transition: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
