:root {
  color-scheme: light;
  --ink: #16212f;
  --muted: #5d6979;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #dfe4ea;
  --navy: #17324d;
  --teal: #167c80;
  --coral: #c9514a;
  --gold: #c7932b;
  --green: #4f7d55;
  --sky: #e8f3f5;
  --rose: #faece8;
  --mint: #edf6ef;
  --sand: #f6efe2;
  --shadow: 0 18px 50px rgba(22, 33, 47, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.93);
  border-bottom: 1px solid rgba(22, 33, 47, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--navy);
  border-radius: 8px;
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 9px 11px;
  color: #334155;
  font-size: 14px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: #eef3f4;
  outline: none;
}

.hero-band {
  position: relative;
  min-height: min(720px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(12, 25, 38, 0.86), rgba(12, 25, 38, 0.38) 58%, rgba(12, 25, 38, 0.12)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
}

.hero-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(0deg, var(--paper), rgba(251, 250, 247, 0));
}

.hero-content {
  position: relative;
  max-width: 870px;
  padding: clamp(72px, 10vw, 130px) clamp(22px, 7vw, 88px) 96px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #aee8e3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 82px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(29px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-actions,
.adventure-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.icon-button,
.filter-chip,
.option-button,
.scenario-start {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 17px;
  color: var(--ink);
  font-weight: 800;
  border-radius: 8px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
}

.button.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 28px rgba(201, 81, 74, 0.26);
}

.button.secondary {
  color: #17324d;
  background: rgba(255, 255, 255, 0.92);
}

.button.ghost {
  color: var(--navy);
  background: #edf3f5;
}

.button:hover,
.button:focus-visible,
.option-button:hover,
.option-button:focus-visible,
.scenario-start:hover,
.scenario-start:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.intro-band,
.principles-band,
.modules-band,
.scenario-band,
.worksheets-band,
.teacher-note-band,
.pilot-band,
.resource-band,
.intake-band,
.newsletter-band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro-grid,
.teacher-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.25fr);
  gap: clamp(28px, 6vw, 76px);
  max-width: 1180px;
  margin: 0 auto;
}

.intro-copy p,
.teacher-note p {
  font-size: 18px;
}

.principles-band,
.scenario-band {
  background: #fff;
}

.modules-band {
  background: linear-gradient(180deg, #f5fbfb 0%, #fbfaf7 100%);
}

.worksheets-band {
  background: #f7f0e5;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:last-child {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  font-size: 17px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.principle-card,
.module-card,
.scenario-card,
.worksheet-card {
  background: var(--surface);
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: var(--radius);
}

.principle-card {
  padding: 24px;
}

.principle-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--teal);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 16px;
  max-width: 1460px;
  margin: 0 auto;
}

.module-card {
  display: grid;
  grid-template-rows: 170px auto;
  min-height: 610px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.08);
}

.module-art {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.module-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.34));
}

.module-number {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: rgba(22, 33, 47, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.module-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}

.module-body h3 {
  font-size: 20px;
}

.module-body p {
  margin-bottom: 0;
  font-size: 14px;
}

.concept-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.concept-list li,
.concept-list span,
.scenario-tag {
  padding: 5px 8px;
  color: #24415f;
  font-size: 12px;
  font-weight: 800;
  background: #e9f4f4;
  border-radius: 999px;
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.how-band,
.demo-band,
.profile-band,
.module-studio-band,
.exercise-band,
.unlock-band,
.finish-band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.how-band,
.profile-band,
.finish-band {
  background: #fff;
}

.growth-hero {
  min-height: min(680px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  padding: clamp(76px, 10vw, 130px) clamp(22px, 7vw, 88px) 84px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.growth-hero-copy {
  max-width: 830px;
}

.growth-hero h1,
.growth-hero p,
.growth-hero .eyebrow {
  color: #fff;
}

.growth-hero p {
  max-width: 730px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.teacher-pilot-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 25, 38, 0.9), rgba(12, 25, 38, 0.42) 60%, rgba(12, 25, 38, 0.14)),
    url("/assets/social/base-facebook-classroom.png");
}

.lessons-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 25, 38, 0.9), rgba(22, 124, 128, 0.48) 64%, rgba(12, 25, 38, 0.18)),
    url("/assets/social/base-square-classroom.png");
}

.scenario-help-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 25, 38, 0.9), rgba(12, 25, 38, 0.5) 62%, rgba(12, 25, 38, 0.18)),
    url("/assets/social/base-story-decision-board.png");
}

.pilot-band,
.intake-band {
  background: #fff;
}

.pilot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}

.pilot-card,
.lesson-card,
.fit-grid article,
.scenario-form,
.helper-panel,
.quote-box {
  background: var(--surface);
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.06);
}

.pilot-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 250px;
  padding: 22px;
}

.pilot-card span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--teal);
  border-radius: 8px;
}

.pilot-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.pilot-card small {
  align-self: end;
  color: var(--coral);
  font-weight: 900;
}

.resource-band {
  background: #fbfaf7;
}

.resource-band.alt {
  background: #f1f8f8;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.fit-grid,
.lesson-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 16px;
}

.fit-grid article,
.lesson-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 220px;
  padding: 22px;
}

.fit-grid svg {
  width: 32px;
  height: 32px;
  color: var(--teal);
}

.fit-grid p,
.lesson-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.lesson-card span {
  width: fit-content;
  padding: 5px 8px;
  color: #24415f;
  font-size: 12px;
  font-weight: 900;
  background: #e9f4f4;
  border-radius: 999px;
}

.lesson-card h3 {
  font-size: 21px;
}

.lesson-card:hover,
.lesson-card:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.lesson-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.lesson-article-hero {
  margin-bottom: 36px;
}

.lesson-article-hero h1 {
  max-width: 840px;
  color: var(--ink);
}

.lesson-article-hero p {
  max-width: 780px;
  font-size: 19px;
}

.lesson-article-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.48fr);
  gap: 18px;
  align-items: start;
}

.quote-box {
  padding: 22px;
  background: #f0f7f7;
}

.quote-box strong {
  color: var(--teal);
}

.quote-box p {
  margin: 10px 0 0;
  color: #25405c;
  font-weight: 700;
}

.lesson-steps {
  margin-top: 30px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
}

.lesson-steps ol,
.helper-panel ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.lesson-steps li,
.helper-panel li {
  padding-left: 6px;
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 0.48fr);
  gap: 18px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.scenario-form,
.helper-panel {
  padding: clamp(24px, 4vw, 38px);
}

.scenario-form label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #314256;
  font-size: 14px;
  font-weight: 800;
}

.scenario-form input,
.scenario-form select,
.scenario-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.scenario-form textarea {
  resize: vertical;
}

.scenario-form .check-label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.scenario-form .check-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.newsletter-band {
  background: #f6efe2;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 0.72fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.06);
}

.newsletter-panel h2 {
  max-width: 660px;
}

.newsletter-form {
  display: grid;
  gap: 13px;
}

.newsletter-form label {
  display: grid;
  gap: 7px;
  color: #314256;
  font-size: 14px;
  font-weight: 800;
}

.newsletter-form input,
.newsletter-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.newsletter-form .check-label {
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 700;
  line-height: 1.45;
}

.newsletter-form .check-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}

.how-step {
  min-height: 260px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 33, 47, 0.06);
}

.how-step span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 900;
  background: var(--teal);
  border-radius: 8px;
}

.how-step h3 {
  font-size: 20px;
}

.how-step p {
  margin-bottom: 0;
  font-size: 14px;
}

.prize-step {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.prize-step h3,
.prize-step p {
  position: relative;
  z-index: 1;
  color: #fff;
}

.prize-step img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 48%;
  object-fit: cover;
  opacity: 0.34;
}

.legal-note {
  max-width: 980px;
  margin: 22px auto 0;
  padding: 14px 16px;
  color: #5d4b22;
  background: #fff8df;
  border: 1px solid #ead99a;
  border-radius: 8px;
  font-size: 14px;
}

.demo-band {
  background:
    linear-gradient(120deg, rgba(23, 50, 77, 0.94), rgba(22, 124, 128, 0.88)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.demo-copy,
.demo-copy p,
.demo-copy .eyebrow,
.demo-copy h2 {
  color: #fff;
}

.demo-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.demo-card {
  min-height: 440px;
  padding: clamp(20px, 3.4vw, 34px);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mini-graphic {
  min-height: 118px;
  padding: 13px;
  background: #f6f8fa;
  border: 1px solid #e3e8ed;
  border-radius: 8px;
}

.decision-map {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  gap: 8px;
  align-items: center;
}

.decision-node {
  min-height: 70px;
  padding: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
}

.decision-node.alt {
  background: var(--coral);
}

.decision-arrow {
  height: 4px;
  background: var(--gold);
}

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

.payoff-cell {
  min-height: 42px;
  padding: 8px;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 7px;
}

.trust-line {
  display: grid;
  gap: 8px;
}

.trust-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.trust-dot {
  width: 18px;
  height: 18px;
  background: var(--green);
  border-radius: 50%;
}

.signal-bars {
  display: grid;
  gap: 8px;
}

.signal-bar {
  height: 16px;
  overflow: hidden;
  background: #dbe3e9;
  border-radius: 999px;
}

.signal-bar span {
  display: block;
  height: 100%;
  background: var(--gold);
}

.norm-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.norm-tile {
  min-height: 56px;
  padding: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: var(--navy);
  border-radius: 8px;
}

.norm-tile:nth-child(2) {
  background: var(--teal);
}

.norm-tile:nth-child(3) {
  background: var(--coral);
}

.adventure-band {
  padding: clamp(58px, 8vw, 106px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(23, 50, 77, 0.95), rgba(22, 124, 128, 0.86)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
}

.adventure-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.adventure-intro,
.adventure-intro p,
.adventure-intro .eyebrow {
  color: #fff;
}

.adventure-intro h2 {
  color: #fff;
}

.adventure-intro p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.rank-panel {
  display: grid;
  gap: 14px;
  max-width: 430px;
  margin-top: 28px;
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.rank-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rank-meter {
  height: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.rank-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: #ffd166;
  border-radius: 999px;
  transition: width 260ms ease;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.adventure-card {
  min-height: 540px;
  padding: clamp(20px, 3.4vw, 34px);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.adventure-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#scenarioText {
  min-height: 92px;
  color: #3f4b5b;
  font-size: 18px;
}

.option-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.option-button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background: #f7f9fb;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.option-button .letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--navy);
  border-radius: 7px;
}

.option-button.selected {
  border-color: var(--teal);
  background: #e9f6f5;
}

.feedback-box {
  min-height: 92px;
  padding: 14px 16px;
  color: #25405c;
  background: #f0f7f7;
  border: 1px solid #c8e5e5;
  border-radius: 8px;
}

.feedback-box strong {
  color: var(--teal);
}

.adventure-controls {
  justify-content: space-between;
}

.filter-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto 24px;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 13px;
  color: #385064;
  font-weight: 800;
  background: #edf3f5;
  border-radius: 999px;
}

.filter-chip.active {
  color: #fff;
  background: var(--navy);
}

.scenario-grid,
.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}

.scenario-card,
.worksheet-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(22, 33, 47, 0.06);
}

.scenario-card h3,
.worksheet-card h3 {
  font-size: 20px;
}

.scenario-card p,
.worksheet-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.scenario-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.scenario-start {
  align-self: end;
  width: fit-content;
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  font-weight: 800;
  background: var(--teal);
  border-radius: 8px;
}

.worksheet-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
}

.worksheet-icon svg {
  width: 25px;
  height: 25px;
}

.teacher-note {
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(22, 33, 47, 0.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #d8e3ea;
  background: #111e2b;
}

.site-footer p {
  max-width: 620px;
  margin: 8px 0 0;
  color: #aebdca;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 4px;
}

.course-page {
  background: #f6f8fa;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.96fr) minmax(320px, 0.74fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: stretch;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(17, 30, 43, 0.92), rgba(22, 124, 128, 0.78)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
}

.course-hero-copy {
  max-width: 760px;
  color: #fff;
}

.course-hero-copy .eyebrow,
.course-hero-copy h1,
.course-hero-copy p {
  color: #fff;
}

.course-hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}

.course-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.course-stats span {
  padding: 9px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.prize-card {
  display: grid;
  grid-template-rows: 240px auto;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.prize-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-card div {
  padding: 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(360px, 1.28fr);
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
}

.profile-card,
.preference-panel,
.lesson-panel,
.course-sidebar,
.exercise-card,
.finish-card {
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.06);
}

.profile-card,
.preference-panel {
  padding: clamp(22px, 3vw, 32px);
}

.profile-card label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #314256;
  font-size: 14px;
  font-weight: 800;
}

.profile-card input {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.profile-card .check-label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-card .check-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.profile-card .button {
  margin-top: 18px;
}

.terms-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.media-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 210px;
  overflow: hidden;
  padding: 14px;
  color: #fff;
  text-align: left;
  background: #172437;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.media-card:hover img,
.media-card:focus-visible img {
  transform: scale(1.04);
}

.media-card:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

.media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(8, 18, 31, 0.82));
}

.media-card strong,
.media-card small {
  position: relative;
  z-index: 1;
}

.media-card strong {
  font-size: 16px;
}

.media-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
}

.media-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.44);
  border-radius: 8px;
}

.media-check svg {
  width: 18px;
  height: 18px;
}

.media-card.selected .media-check {
  background: var(--teal);
}

.module-studio-band {
  background: #f6f8fa;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(500px, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.course-sidebar {
  align-self: start;
  padding: 18px;
}

.course-sidebar h3 {
  margin-bottom: 14px;
}

.course-map {
  display: grid;
  gap: 10px;
}

.course-map-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.course-map-item.active {
  border-color: var(--teal);
  background: #eef8f8;
}

.course-map-main {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  width: 100%;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.course-map-main span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--navy);
  border-radius: 8px;
}

.course-map-main small,
.module-link-note {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.course-map-exercise {
  min-height: 36px;
  color: #fff;
  font-weight: 800;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.course-map-exercise:disabled {
  color: #64748b;
  background: #e2e8f0;
  cursor: not-allowed;
}

.lesson-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(320px, 0.58fr);
  min-height: 620px;
  overflow: hidden;
}

.lesson-art {
  min-height: 100%;
  background-position: center;
  background-size: cover;
}

.lesson-content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 4vw, 38px);
}

.lesson-content .concept-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
}

.lesson-box {
  padding: 18px;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.lesson-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #455466;
  line-height: 1.6;
}

.lesson-actions,
.exercise-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.exercise-band {
  background:
    linear-gradient(120deg, rgba(23, 50, 77, 0.95), rgba(79, 125, 85, 0.84)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
}

.exercise-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.08fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.exercise-shell.in-progress {
  grid-template-columns: minmax(220px, 0.42fr) minmax(620px, 1.28fr);
  max-width: 1380px;
}

.exercise-shell.in-progress .exercise-intro h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.exercise-shell.in-progress #exerciseIntroText {
  display: none;
}

.exercise-intro,
.exercise-intro p,
.exercise-intro .eyebrow,
.exercise-intro h2 {
  color: #fff;
}

.exercise-intro p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.rank-panel.light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.4);
}

.rank-panel.light .rank-label {
  color: var(--muted);
}

.rank-panel.light .rank-meter {
  background: #e2e8f0;
}

.rank-panel.light .score-row {
  color: var(--ink);
}

.icon-button.dark {
  color: #fff;
  background: var(--navy);
}

.exercise-card {
  min-height: 700px;
  padding: clamp(20px, 3.4vw, 34px);
}

.exercise-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#exerciseText {
  min-height: 116px;
  color: #3f4b5b;
  font-size: 17px;
  line-height: 1.65;
}

.exercise-score-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.score-tile {
  min-height: 76px;
  padding: 10px 12px;
  background: #f7f9fb;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.score-tile strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.1;
}

.score-tile span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-tile small {
  color: #64748b;
  font-size: 12px;
}

.score-tile.original {
  border-color: #d7c18b;
  background: #fff8df;
}

.score-tile.learning {
  border-color: #b7dbc9;
  background: #eef8f0;
}

.score-tile.bonus {
  border-color: #ccd7ed;
  background: #f0f5ff;
}

.scenario-comic {
  display: block;
  width: 100%;
  max-height: 310px;
  margin-bottom: 18px;
  object-fit: cover;
  border: 1px solid #dce3ea;
  border-radius: 8px;
}

.scenario-comic[hidden] {
  display: none;
}

.overview-facts,
.score-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.score-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-summary .score-tile {
  min-height: 116px;
}

.score-summary .score-tile.bonus {
  grid-column: 1 / -1;
}

.option-button.locked {
  cursor: pointer;
}

.option-button.is-correct {
  border-color: #1f8a5b;
  background: #edf9f1;
}

.option-button.is-incorrect {
  border-color: #d46b62;
  background: #fff1ef;
}

.option-button.is-partial {
  border-color: #d2a844;
  background: #fff8df;
}

.option-button.reviewing {
  box-shadow: inset 0 0 0 2px rgba(22, 124, 128, 0.55);
}

.option-button .answer-copy {
  display: grid;
  gap: 5px;
}

.answer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.answer-badge {
  width: fit-content;
  padding: 3px 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border-radius: 999px;
}

.answer-badge.correct {
  background: #1f8a5b;
}

.answer-badge.incorrect {
  background: #c9514a;
}

.answer-badge.partial {
  background: #b38124;
}

.answer-badge.original {
  background: var(--navy);
}

.answer-badge.reviewing {
  background: var(--teal);
}

.feedback-box.correct {
  color: #134d34;
  background: #edf9f1;
  border-color: #a7d8bb;
}

.feedback-box.incorrect {
  color: #7c2f28;
  background: #fff1ef;
  border-color: #efb5ad;
}

.feedback-box.partial {
  color: #725216;
  background: #fff8df;
  border-color: #ead48a;
}

.feedback-box.info {
  color: #25405c;
  background: #f0f7f7;
  border-color: #c8e5e5;
}

.overview-facts span,
.score-summary span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  color: #25405c;
  font-size: 13px;
  font-weight: 800;
  background: #edf7f7;
  border: 1px solid #cfe6e6;
  border-radius: 8px;
}

.overview-facts svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.unlock-band {
  background: #fff;
}

.unlock-status {
  max-width: 920px;
  margin: 0 auto 20px;
  padding: 16px;
  color: #25405c;
  background: #eef8f8;
  border: 1px solid #cfe6e6;
  border-radius: 8px;
}

.culture-grid {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
}

.culture-practice {
  min-height: 240px;
}

.finish-band {
  background: #f7f0e5;
}

.finish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
}

.finish-card p {
  max-width: 720px;
}

.terms-hero {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(17, 30, 43, 0.95), rgba(22, 124, 128, 0.82)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
}

.terms-hero h1,
.terms-hero p,
.terms-hero .eyebrow {
  color: #fff;
}

.terms-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.terms-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.terms-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
}

.terms-nav a {
  padding: 9px 10px;
  color: #334155;
  font-weight: 800;
  background: #f7f9fb;
  border-radius: 8px;
}

.terms-content {
  display: grid;
  gap: 18px;
}

.terms-content section {
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
}

.terms-content h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.terms-content h3 {
  margin-top: 18px;
  font-size: 18px;
}

.terms-content li {
  margin-bottom: 8px;
  color: #455466;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .module-grid,
  .scenario-grid,
  .worksheet-grid,
  .media-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .module-card {
    min-height: 560px;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-band {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 76px;
  }

  .intro-grid,
  .teacher-note,
  .adventure-shell,
  .demo-shell,
  .course-hero,
  .profile-grid,
  .course-layout,
  .lesson-panel,
  .exercise-shell,
  .exercise-shell.in-progress,
  .terms-layout {
    grid-template-columns: 1fr;
  }

  .principle-grid,
  .module-grid,
  .scenario-grid,
  .worksheet-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-art {
    min-height: 260px;
  }

  .course-sidebar {
    order: 2;
  }

  .lesson-panel {
    order: 1;
  }

  .terms-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 42%;
    text-align: center;
    background: #eef3f4;
  }

  .hero-band {
    min-height: 720px;
  }

  .hero-photo {
    background-position: 58% center;
  }

  .hero-content {
    padding: 70px 18px 76px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-copy,
  .intro-copy p,
  .teacher-note p,
  .adventure-intro p,
  #scenarioText {
    font-size: 16px;
  }

  .principle-grid,
  .module-grid,
  .scenario-grid,
  .worksheet-grid,
  .how-grid,
  .media-grid,
  .overview-facts,
  .score-summary {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: auto;
  }

  .module-art {
    min-height: 190px;
  }

  .adventure-card {
    min-height: 600px;
  }

  .adventure-controls {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .adventure-controls .button,
  .lesson-actions .button,
  .exercise-controls .button,
  .finish-card .button {
    width: 100%;
  }

  .lesson-actions,
  .exercise-controls,
  .finish-card {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .course-hero {
    padding-top: 44px;
  }

  .course-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .exercise-score-strip {
    grid-template-columns: 1fr;
  }

  .scenario-comic {
    max-height: 220px;
  }

  .media-card {
    min-height: 230px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* Theme-first course flow */
.flow-page {
  min-width: 0;
  background: #f6f8fa;
}

.theme-header .site-nav a.active {
  color: #fff;
  background: var(--navy);
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px 6px 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  background: #eef3f4;
  border-radius: 8px;
}

.theme-switcher select {
  max-width: 190px;
  min-height: 38px;
  padding: 4px 30px 4px 8px;
  color: var(--ink);
  font-weight: 800;
  background: #fff;
  border: 1px solid #cfdae3;
  border-radius: 7px;
}

.theme-hero,
.course-map-hero,
.finish-hero {
  min-height: min(560px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  padding: clamp(70px, 10vw, 132px) clamp(18px, 6vw, 82px);
  color: #fff;
  background-position: center;
  background-size: cover;
}

.course-map-hero,
.finish-hero {
  min-height: 430px;
}

.theme-hero-copy {
  max-width: 780px;
}

.theme-hero-copy h1,
.theme-hero-copy p,
.theme-hero-copy .eyebrow {
  color: #fff;
}

.theme-hero-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 7vw, 72px);
}

.theme-hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.87);
  font-size: 18px;
}

.theme-picker-band,
.map-band,
.finish-flow-band {
  padding: clamp(54px, 8vw, 94px) clamp(18px, 5vw, 72px);
}

.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
  max-width: 1380px;
  margin: 0 auto;
}

.theme-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 390px;
  overflow: hidden;
  padding: 18px;
  color: #fff;
  text-align: left;
  background: #111e2b;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(17, 30, 43, 0.14);
}

.theme-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.theme-card:hover img,
.theme-card:focus-visible img {
  transform: scale(1.04);
}

.theme-card:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 3px;
}

.theme-card.selected {
  border-color: var(--theme-accent, var(--teal));
}

.theme-card strong,
.theme-card small,
.theme-card p {
  position: relative;
  z-index: 1;
}

.theme-card strong {
  font-size: 21px;
}

.theme-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 900;
}

.theme-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.45;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 18px;
  padding: 9px 13px;
  color: #fff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(560px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.course-module-list {
  display: grid;
  gap: 12px;
}

.path-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-left: 5px solid #d7e1e8;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 33, 47, 0.06);
}

.path-card.done {
  border-left-color: var(--theme-accent, var(--teal));
}

.path-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--navy);
  border-radius: 8px;
}

.path-card h3 {
  margin-bottom: 5px;
  font-size: 21px;
}

.path-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.path-scenario {
  margin-top: 8px;
  color: #4c5d70;
}

.path-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.48;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.module-reader {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(480px, 0.56fr);
  min-height: calc(100vh - 70px);
}

.module-side {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 620px;
  padding: clamp(34px, 6vw, 76px);
  color: #fff;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.module-side::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, rgba(17, 30, 43, 0.86), rgba(17, 30, 43, 0.3));
}

.module-side-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-side-content {
  position: relative;
  z-index: 1;
}

.module-side h1,
.module-side p,
.module-side .eyebrow {
  color: #fff;
}

.module-side h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.mentor-note {
  margin-top: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.mentor-note span {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
}

.mentor-note p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.module-lesson {
  display: grid;
  align-content: center;
  min-height: 620px;
  padding: clamp(34px, 6vw, 76px);
  background: #fff;
}

.lesson-progress,
.worksheet-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lesson-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lesson-progress a,
.worksheet-top a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.story-intro h2 {
  max-width: 760px;
  font-size: clamp(32px, 4.6vw, 56px);
}

.story-paragraphs {
  display: grid;
  gap: 15px;
  max-width: 780px;
}

.story-paragraphs p {
  margin-bottom: 0;
  color: #3f4b5b;
  font-size: 18px;
  line-height: 1.7;
}

.module-lesson h2 {
  max-width: 760px;
  font-size: clamp(32px, 4.6vw, 56px);
}

.module-lesson > p {
  max-width: 760px;
  font-size: 18px;
}

.lesson-bullets {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 16px 0 22px;
}

.lesson-example {
  max-width: 760px;
  margin-top: 18px;
  padding: 16px;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-left: 5px solid var(--theme-accent, var(--teal));
  border-radius: 8px;
}

.lesson-example span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-example p {
  margin-bottom: 0;
  color: #34465a;
}

.lesson-takeaways {
  max-width: 760px;
  margin-top: 16px;
  padding: 16px;
  background: #fff8df;
  border: 1px solid #ead99a;
  border-radius: 8px;
}

.lesson-takeaways h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.lesson-takeaways .lesson-bullets {
  margin: 0;
}

.lesson-takeaways .lesson-bullets div {
  background: #fffdf4;
}

body.has-bottom-progress {
  padding-bottom: 172px;
}

.bottom-progress {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  padding: 12px clamp(14px, 3vw, 34px) 14px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(22, 33, 47, 0.13);
  box-shadow: 0 -16px 38px rgba(17, 30, 43, 0.14);
  backdrop-filter: blur(16px);
}

.bottom-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1380px;
  margin: 0 auto 9px;
}

.bottom-progress-meta span {
  display: block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bottom-progress-meta strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.bottom-progress-meta small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  background: var(--coral);
  border-radius: 999px;
}

.time-pill svg {
  width: 16px;
  height: 16px;
}

.bottom-progress-line {
  max-width: 1380px;
  height: 5px;
  margin: 0 auto 10px;
  overflow: hidden;
  background: #dfe8ed;
  border-radius: 999px;
}

.bottom-progress-line span {
  display: block;
  height: 100%;
  background: var(--theme-accent, var(--teal));
  border-radius: 999px;
  transition: width 180ms ease;
}

.bottom-progress-modules {
  display: flex;
  gap: 9px;
  max-width: 1380px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.progress-module {
  flex: 1 1 0;
  min-width: 160px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  color: var(--ink);
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.progress-module.active {
  border-color: var(--theme-accent, var(--teal));
  background: #eef8f8;
}

.progress-module.done {
  background: #f0f7f1;
}

.major-tick {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: #94a3b8;
  border-radius: 8px;
}

.progress-module.active .major-tick,
.progress-module.done .major-tick {
  background: var(--theme-accent, var(--teal));
}

.module-label {
  min-width: 0;
  overflow: hidden;
  color: #26384c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
  white-space: normal;
}

.minor-ticks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(30px, 1fr));
  gap: 4px;
}

.minor-tick {
  min-height: 20px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  background: #e6edf3;
  border-radius: 999px;
}

.minor-tick.done {
  color: #fff;
  background: #6ca373;
}

.minor-tick.active {
  color: #fff;
  background: var(--coral);
}

.lesson-bullets div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px;
  color: #314256;
  font-weight: 800;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.lesson-bullets svg {
  width: 20px;
  height: 20px;
  color: var(--theme-accent, var(--teal));
}

.worksheet-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(520px, 0.56fr);
  min-height: calc(100vh - 70px);
  background: #f2f5f7;
}

.worksheet-art {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  min-height: 620px;
  padding: clamp(18px, 3vw, 32px);
  background: #111e2b;
}

.worksheet-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.worksheet-panel {
  display: grid;
  align-content: center;
  min-height: 620px;
  padding: clamp(24px, 5vw, 64px);
  background: #fff;
}

.worksheet-panel h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4.6vw, 58px);
}

.worksheet-panel h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3.2vw, 34px);
}

.worksheet-panel > p {
  max-width: 820px;
  font-size: 17px;
}

.worksheet-actions,
.finish-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.finish-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(330px, 0.48fr);
  gap: 18px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
}

.finish-summary,
.entry-card {
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid rgba(22, 33, 47, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 33, 47, 0.06);
}

.score-summary.wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.finish-module-list {
  display: grid;
  gap: 8px;
}

.finish-module-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  background: #f7f9fb;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.finish-module-row span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: #94a3b8;
  border-radius: 8px;
}

.finish-module-row.complete span {
  background: var(--theme-accent, var(--teal));
}

.finish-module-row small {
  color: var(--muted);
  font-weight: 800;
}

.entry-card label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #314256;
  font-size: 14px;
  font-weight: 800;
}

.entry-card input {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
}

.entry-card .check-label {
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 700;
  line-height: 1.45;
}

.entry-card .check-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.entry-card .button {
  width: 100%;
  margin-top: 16px;
}

.prize-preview {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0 10px;
  padding: 10px;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.prize-preview img {
  width: 104px;
  height: 78px;
  object-fit: cover;
  border-radius: 7px;
}

.prize-preview strong,
.prize-preview small {
  display: block;
}

.prize-preview small {
  margin-top: 5px;
  color: var(--muted);
}

.quote-band {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
  background: #ffffff;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.quote-card {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 33, 47, 0.06);
}

.quote-card.parent {
  border-top-color: var(--coral);
}

.quote-card.teacher {
  border-top-color: var(--gold);
}

.quote-card span,
.quote-strip span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 800;
  line-height: 1.32;
}

.quote-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #dfe8ed;
  border-bottom: 1px solid #dfe8ed;
}

.quote-strip div {
  min-height: 138px;
  padding: clamp(18px, 3vw, 28px);
  background: #ffffff;
}

.quote-strip p {
  max-width: 440px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.38;
}

.legal-callout {
  padding: 18px;
  margin-bottom: 20px;
  background: #eef8f8;
  border: 1px solid #cfe6e6;
  border-radius: 8px;
}

.legal-callout.warning {
  color: #5d4b22;
  background: #fff8df;
  border-color: #ead99a;
}

.legal-callout p {
  margin: 7px 0 0;
  color: inherit;
}

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

.legal-grid div {
  min-height: 112px;
  padding: 14px;
  background: #f7fafb;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.legal-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-grid strong {
  color: var(--ink);
  line-height: 1.35;
}

.legal-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
}

.terms-content,
.terms-content section,
.terms-nav,
.legal-table-wrap {
  min-width: 0;
}

.legal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #dfe8ed;
}

.legal-table th {
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.terms-content a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1180px) {
  .theme-card-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }

  .module-grid,
  .pilot-grid,
  .fit-grid,
  .lesson-card-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .path-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .path-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .theme-switcher {
    width: 100%;
  }

  .theme-switcher select {
    flex: 1;
    max-width: none;
  }

  .theme-card-grid,
  .map-shell,
  .module-reader,
  .worksheet-stage,
  .finish-grid,
  .resource-layout,
  .lesson-article-grid,
  .intake-layout,
  .newsletter-panel {
    grid-template-columns: 1fr;
  }

  .quote-grid,
  .quote-strip,
  .legal-grid,
  .pilot-grid,
  .fit-grid,
  .lesson-card-grid {
    grid-template-columns: 1fr;
  }

  .module-reader,
  .worksheet-stage {
    min-height: auto;
  }

  .module-side,
  .module-lesson,
  .worksheet-panel {
    min-height: auto;
  }

  .worksheet-art {
    position: static;
    height: auto;
    min-height: auto;
  }

  .worksheet-art img {
    height: auto;
    max-height: 460px;
  }

  .score-summary.wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .theme-hero,
  .course-map-hero,
  .finish-hero,
  .growth-hero {
    min-height: 560px;
    padding: 58px 18px;
  }

  .theme-card-grid {
    grid-template-columns: 1fr;
  }

  .theme-card {
    min-height: 330px;
  }

  .path-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .path-number {
    width: 40px;
    height: 40px;
  }

  .path-actions,
  .worksheet-actions,
  .finish-actions,
  .form-actions {
    grid-column: 1 / -1;
    align-items: stretch;
    flex-direction: column;
  }

  .path-actions .button,
  .worksheet-actions .button,
  .finish-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .module-side,
  .module-lesson,
  .worksheet-panel,
  .finish-summary,
  .entry-card,
  .scenario-form,
  .helper-panel,
  .lesson-steps {
    padding: 24px 18px;
  }

  .lesson-progress,
  .worksheet-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .finish-module-row,
  .prize-preview {
    grid-template-columns: 1fr;
  }

  .quote-strip div,
  .quote-card {
    min-height: auto;
  }

  .finish-module-row span {
    width: 34px;
    height: 34px;
  }

  body.has-bottom-progress {
    padding-bottom: 104px;
  }

  .bottom-progress {
    padding: 6px 8px 7px;
  }

  .bottom-progress-meta {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .time-pill {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .bottom-progress-meta {
    margin-bottom: 5px;
  }

  .bottom-progress-meta span {
    font-size: 10px;
  }

  .bottom-progress-meta strong {
    display: none;
  }

  .bottom-progress-line {
    height: 3px;
    margin-bottom: 5px;
  }

  .bottom-progress-modules {
    gap: 5px;
  }

  .progress-module {
    min-width: 48px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    padding: 4px;
  }

  .major-tick {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .module-label {
    display: none;
  }

  .minor-ticks {
    grid-template-columns: repeat(5, 6px);
    justify-content: center;
    gap: 3px;
  }

  .minor-tick {
    width: 6px;
    min-height: 6px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }
}
