:root {
  --navy: #1a2744;
  --oxford: #002147;
  --gold: #c8a84b;
  --gold-light: #ead99f;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #687083;
  --line: #ded9cc;
  --soft: #f3f0e8;
  --blue-soft: #eaf0f6;
  --success: #1f6f50;
  --error: #a43b3b;
  --shadow: 0 24px 64px rgba(0, 33, 71, 0.10);
  --shadow-small: 0 10px 28px rgba(0, 33, 71, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Cairo", "Noto Sans Arabic", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::selection {
  color: #fff;
  background: var(--oxford);
}

button,
input,
audio {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button,
.topnav a,
.brand,
.skip-link {
  min-height: 44px;
}

button {
  cursor: pointer;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  background: var(--oxford);
  border: 2px solid var(--gold);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.preview-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 34px;
  padding: 5px 16px;
  color: #ede5cc;
  background: #111c32;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.preview-ribbon strong {
  color: var(--gold-light);
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 168, 75, 0.14);
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 64px);
  color: #fff;
  background: rgba(0, 33, 71, 0.97);
  border-bottom: 1px solid rgba(200, 168, 75, 0.55);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold);
  border: 1px solid rgba(200, 168, 75, 0.72);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.brand-copy {
  direction: ltr;
  line-height: 1.1;
}

.brand-copy strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.64);
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav a {
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
}

.student-level {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  line-height: 1.2;
}

.student-level > span {
  color: var(--gold-light);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.student-level small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(112deg, #001a39 0%, var(--oxford) 45%, #0b3155 100%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(200, 168, 75, 0.72), transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.hero-glow-one {
  top: -260px;
  left: -170px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(52, 117, 167, 0.28), transparent 68%);
}

.hero-glow-two {
  right: -260px;
  bottom: -340px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(200, 168, 75, 0.13), transparent 67%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: clamp(36px, 6vw, 96px);
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 108px);
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 5px 6px 5px 13px;
  color: rgba(255, 255, 255, 0.77);
  border: 1px solid rgba(200, 168, 75, 0.35);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 700;
}

.eyebrow b {
  padding: 4px 10px;
  color: var(--oxford);
  background: var(--gold);
  border-radius: 100px;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-headline {
  margin: 18px 0 0;
  color: var(--gold-light);
  font-size: clamp(22px, 2.7vw, 35px);
  font-weight: 900;
  line-height: 1.45;
}

.hero-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.95;
}

.hero-lead strong {
  color: #fff;
}

.hero-example {
  max-width: 760px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(200, 168, 75, 0.38);
  border-right: 4px solid var(--gold);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
}

.example-label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 900;
}

.sound-change {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: "Manrope", sans-serif;
}

.sound-word {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.sound-strong,
.sound-natural {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 104px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.sound-strong small,
.sound-natural small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sound-natural {
  color: var(--gold-light);
}

.sound-arrow {
  color: var(--gold);
  font-size: 22px;
}

.hero-example p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.hero-example p b {
  color: #fff;
}

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

.primary-button,
.next-button,
.check-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  color: var(--oxford);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(200, 168, 75, 0.18);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.next-button:hover,
.check-button:hover:not(:disabled) {
  background: #d5b75f;
  box-shadow: 0 14px 30px rgba(200, 168, 75, 0.27);
  transform: translateY(-2px);
}

.text-button {
  min-height: 52px;
  padding: 0 14px;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 700;
}

.trust-row span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-row i {
  color: var(--gold);
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.05em;
}

.hero-lab {
  position: relative;
  align-self: center;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  color: var(--ink);
  border: 1px solid rgba(200, 168, 75, 0.55);
  border-radius: 14px;
  background: rgba(250, 248, 243, 0.98);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.26);
}

.hero-lab::before {
  position: absolute;
  top: 13px;
  right: 13px;
  bottom: 13px;
  left: 13px;
  content: "";
  border: 1px solid rgba(0, 33, 71, 0.06);
  border-radius: 9px;
  pointer-events: none;
}

.lab-topline,
.mastery-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lab-kicker,
.audio-label {
  color: #8a6c1d;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.lab-topline h2 {
  margin: 6px 0 0;
  color: var(--oxford);
  font-size: clamp(21px, 2.3vw, 29px);
  line-height: 1.5;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: var(--success);
  border: 1px solid rgba(31, 111, 80, 0.25);
  border-radius: 100px;
  background: rgba(31, 111, 80, 0.07);
  font-size: 10px;
  font-weight: 800;
}

.live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(31, 111, 80, 0.1);
}

.sentence-lens {
  position: relative;
  margin-top: 24px;
  padding: 20px;
  overflow: hidden;
  color: #fff;
  border-radius: 10px;
  background: var(--oxford);
  font-family: "Manrope", sans-serif;
}

.sentence-lens::after {
  position: absolute;
  top: -80px;
  right: -30px;
  width: 190px;
  height: 190px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 168, 75, 0.19), transparent 70%);
}

.sentence-full {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 600;
}

.sentence-full .stress {
  color: #fff;
  font-size: 1.13em;
  font-weight: 800;
}

.sentence-full .weak {
  position: relative;
  color: var(--gold-light);
  font-size: 0.76em;
}

.sentence-full .weak::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  left: -4px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.rhythm-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  margin-top: 12px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rhythm-track span {
  width: 5px;
  border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, 0.36);
}

.rhythm-track .quiet {
  height: 10px;
}

.rhythm-track .hit {
  width: 7px;
  height: 31px;
  background: #fff;
}

.rhythm-track .ghost {
  height: 5px;
  background: var(--gold);
}

.natural-line {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}

.natural-line span {
  color: rgba(255, 255, 255, 0.49);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.natural-line strong {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
}

.insight-card {
  position: relative;
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e5ddc7;
  border-radius: 9px;
  background: #fffdf7;
}

.insight-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #8a6c1d;
  border: 1px solid rgba(200, 168, 75, 0.4);
  border-radius: 8px;
  background: rgba(200, 168, 75, 0.08);
}

.insight-icon svg {
  width: 20px;
}

.insight-card small {
  color: #8a6c1d;
  font-size: 10px;
  font-weight: 900;
}

.insight-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.insight-card p b {
  color: var(--navy);
}

.mastery-preview {
  position: relative;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mastery-head > span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.mastery-head small {
  color: var(--muted);
  font-size: 9px;
}

.mastery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mastery-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mastery-grid span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.mastery-grid b {
  display: block;
  margin: 1px 0 6px;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

.mastery-grid i,
.lesson-progress i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 10px;
  background: #e5e7eb;
}

.mastery-grid em,
.lesson-progress em {
  display: block;
  width: var(--score);
  height: 100%;
  background: var(--gold);
}

.why-panel {
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid rgba(200, 168, 75, 0.45);
}

.why-panel-inner {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 34px;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.section-number {
  align-self: stretch;
  padding-left: 24px;
  color: rgba(200, 168, 75, 0.58);
  border-left: 1px solid rgba(200, 168, 75, 0.35);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.section-kicker {
  margin: 0 0 6px;
  color: #8a6c1d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.why-panel .section-kicker {
  color: var(--gold-light);
}

.why-panel h2 {
  margin: 0;
  font-size: clamp(22px, 2.7vw, 34px);
  line-height: 1.65;
}

.why-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-columns article {
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.mini-number {
  color: var(--gold);
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.why-columns h3 {
  margin: 4px 0 3px;
  font-size: 16px;
}

.why-columns p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.8;
}

.route-section,
.curriculum-section,
.library-section,
.integration-section {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2,
.library-head h2,
.integration-copy h2 {
  margin: 0;
  color: var(--oxford);
  font-size: clamp(27px, 3.7vw, 46px);
  line-height: 1.42;
}

.section-heading > div:first-child > p:last-child,
.library-head > div > p:last-child,
.integration-copy > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.route-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  min-width: min(100%, 350px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.route-option {
  min-height: 58px;
  padding: 7px 14px;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: right;
}

.route-option small,
.route-option span {
  display: block;
}

.route-option small {
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 800;
}

.route-option span {
  font-size: 13px;
  font-weight: 900;
}

.route-option.active {
  color: #fff;
  background: var(--oxford);
  box-shadow: 0 7px 18px rgba(0, 33, 71, 0.16);
}

.route-option.active small {
  color: var(--gold-light);
}

.route-brief {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #d8cfb8;
  border-radius: 12px;
  background: linear-gradient(115deg, #fff 0%, #f8f4e9 100%);
  box-shadow: var(--shadow-small);
}

.route-index {
  display: grid;
  place-items: center;
  min-height: 104px;
  color: var(--gold-light);
  border-radius: 8px;
  background: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
}

.gold-label {
  color: #8a6c1d;
  font-size: 10px;
  font-weight: 900;
}

.route-brief h3 {
  margin: 3px 0;
  color: var(--navy);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.route-brief p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.route-facts {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.route-facts span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.route-facts b {
  color: var(--oxford);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

.lesson-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  width: min(1390px, calc(100% - 40px));
  margin: clamp(64px, 8vw, 104px) auto 0;
  overflow: hidden;
  border: 1px solid #d8d2c3;
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.course-rail {
  padding: 28px 18px;
  color: #fff;
  background: var(--oxford);
  border-left: 2px solid var(--gold);
}

.rail-title {
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.rail-title .section-kicker {
  color: var(--gold-light);
}

.rail-title h2 {
  margin: 0;
  font-size: 23px;
}

.rail-title > span {
  color: rgba(255, 255, 255, 0.57);
  font-size: 11px;
}

.module-list {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.module-button {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  width: 100%;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.61);
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: right;
}

.module-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.module-button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.module-button.active::after {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: -9px;
  width: 3px;
  content: "";
  background: var(--gold);
}

.module-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.module-button.active .module-num {
  color: var(--oxford);
  border-color: var(--gold);
  background: var(--gold);
}

.module-name strong,
.module-name small {
  display: block;
}

.module-name strong {
  font-size: 11px;
}

.module-name small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-status {
  color: var(--gold-light);
  font-size: 9px;
}

.rail-note {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(200, 168, 75, 0.25);
  border-radius: 8px;
  background: rgba(200, 168, 75, 0.07);
}

.rail-note span {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 900;
}

.rail-note p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.61);
  font-size: 10px;
  line-height: 1.8;
}

.lesson-stage {
  min-width: 0;
  padding: clamp(22px, 4vw, 52px);
}

.stage-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.lesson-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  color: #745a17;
  border: 1px solid rgba(200, 168, 75, 0.32);
  border-radius: 100px;
  background: rgba(200, 168, 75, 0.08);
  font-size: 9px;
  font-weight: 900;
}

.stage-topbar h2 {
  margin: 8px 0 0;
  color: var(--oxford);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.5;
}

.lesson-progress {
  min-width: 130px;
  padding-top: 6px;
}

.lesson-progress span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}

.lesson-progress b {
  color: var(--navy);
  font-family: "Manrope", sans-serif;
}

.lesson-why {
  display: flex;
  gap: 15px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid #e3d8bb;
  border-radius: 10px;
  background: #fffaf0;
}

.why-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--oxford);
  border-radius: 8px;
  background: var(--gold);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.lesson-why span {
  color: #745a17;
  font-size: 10px;
  font-weight: 900;
}

.lesson-why p {
  margin: 3px 0 0;
  color: #495366;
  font-size: 13px;
  line-height: 1.9;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.compare-card {
  min-height: 176px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.compare-card.natural {
  border-color: var(--gold);
  background: #fffcf4;
  box-shadow: inset 0 3px 0 var(--gold);
}

.compare-label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.compare-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 26px;
}

.compare-card b {
  display: block;
  color: #80641b;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}

.compare-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.compare-arrow {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.compare-arrow span {
  width: 1px;
  height: 25px;
  background: var(--line);
}

.audio-card,
.drill-card,
.builder-card,
.record-card {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.audio-card {
  overflow: hidden;
  color: #fff;
  border-color: var(--oxford);
  background: var(--oxford);
}

.audio-copy {
  padding: 22px 24px 10px;
}

.audio-copy .audio-label {
  color: var(--gold-light);
}

.audio-copy p {
  margin: 5px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(18px, 2vw, 25px);
}

.audio-copy p b {
  color: var(--gold-light);
}

.audio-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.audio-control {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 24px 20px;
}

.play-button {
  display: grid;
  place-items: center;
  width: 50px;
  min-width: 50px;
  height: 50px;
  padding: 0;
  color: var(--oxford);
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}

.play-button svg {
  width: 22px;
  margin-left: 2px;
  fill: currentColor;
  stroke: none;
}

.pause-shape {
  display: none;
}

.premium-audio-button.is-playing .play-shape {
  display: none;
}

.premium-audio-button.is-playing .pause-shape {
  display: block;
}

.premium-audio-button.is-loading {
  cursor: progress;
  opacity: 0.72;
}

.play-button.is-playing {
  color: var(--gold-light);
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.waveform {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.6vw, 7px);
  height: 52px;
}

.waveform i {
  width: 4px;
  height: var(--h);
  min-height: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.waveform i.weak-wave {
  background: var(--gold);
}

.waveform.is-playing i {
  animation: premium-wave 0.72s ease-in-out infinite alternate;
}

.waveform.is-playing i:nth-child(2n) {
  animation-delay: -0.24s;
}

.waveform.is-playing i:nth-child(3n) {
  animation-delay: -0.48s;
}

@keyframes premium-wave {
  to {
    transform: scaleY(0.48);
    opacity: 0.58;
  }
}

.audio-time {
  color: rgba(255, 255, 255, 0.6);
  font-family: "Manrope", sans-serif;
  font-size: 9px;
}

.audio-integrity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 24px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
  font-size: 9px;
}

.audio-integrity > button {
  min-height: 44px;
  margin-right: auto;
  padding: 0 8px;
  color: var(--gold-light);
  border: 0;
  background: transparent;
  font-size: 9px;
  text-decoration: underline;
}

.integrity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.drill-card,
.builder-card,
.record-card {
  padding: clamp(18px, 3vw, 28px);
}

.drill-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.drill-type {
  color: #8a6c1d;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.drill-head h3,
.record-card h3 {
  margin: 4px 0 0;
  color: var(--oxford);
  font-size: clamp(19px, 2.4vw, 26px);
}

.drill-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.difficulty {
  padding: 4px 9px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--soft);
  font-size: 9px;
  font-weight: 800;
}

.heard-box {
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed #c8b986;
  border-radius: 8px;
  background: #fcfaf4;
  text-align: center;
}

.heard-box > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.heard-box p {
  margin: 5px 0 0;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 700;
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.answer-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 16px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.answer-options button:hover {
  border-color: var(--gold);
  background: #fffdf7;
}

.answer-options button.selected.correct {
  color: var(--success);
  border-color: rgba(31, 111, 80, 0.55);
  background: rgba(31, 111, 80, 0.06);
}

.answer-options button.selected.wrong {
  color: var(--error);
  border-color: rgba(164, 59, 59, 0.48);
  background: rgba(164, 59, 59, 0.05);
}

.answer-options small {
  color: var(--muted);
  font-size: 11px;
}

.feedback-box {
  margin-top: 14px;
  padding: 15px;
  color: #3d4a5c;
  border-right: 4px solid var(--success);
  border-radius: 7px;
  background: rgba(31, 111, 80, 0.06);
  font-size: 12px;
}

.feedback-box.wrong {
  border-right-color: var(--error);
  background: rgba(164, 59, 59, 0.05);
}

.feedback-box strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 13px;
}

.reset-button {
  min-height: 44px;
  padding: 0 13px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  font-size: 11px;
  font-weight: 800;
}

.build-target {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 82px;
  margin-top: 18px;
  padding: 14px;
  color: #9aa0aa;
  border: 1px dashed #c8b986;
  border-radius: 8px;
  background: #fcfaf4;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}

.built-word {
  padding: 6px 10px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
}

.built-word.stressed {
  color: var(--oxford);
  border-color: var(--gold);
  background: #fff9e7;
  font-weight: 800;
}

.word-bank {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.word-tile {
  min-height: 46px;
  min-width: 44px;
  padding: 5px 14px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.word-tile.stressed {
  border-color: var(--gold);
  box-shadow: inset 0 -3px 0 var(--gold);
  font-weight: 800;
}

.word-tile:disabled {
  opacity: 0.32;
  cursor: default;
}

.check-button {
  width: 100%;
  margin-top: 15px;
}

.check-button:disabled {
  cursor: default;
  opacity: 0.44;
}

.builder-feedback {
  min-height: 28px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.builder-feedback.success {
  color: var(--success);
  font-weight: 800;
}

.builder-feedback.error {
  color: var(--error);
  font-weight: 800;
}

.record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  color: #fff;
  border-color: var(--navy);
  background: linear-gradient(130deg, var(--navy), var(--oxford));
}

.record-card .drill-type {
  color: var(--gold-light);
}

.record-card h3 {
  color: #fff;
}

.record-card p {
  margin: 7px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(17px, 2vw, 22px);
}

.record-card p b {
  color: var(--gold-light);
}

.record-card small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.record-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.record-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 16px;
  color: var(--navy);
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.record-button.recording {
  color: #fff;
  background: var(--error);
}

.record-dot {
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: currentColor;
}

.record-button.recording .record-dot {
  border-radius: 2px;
  animation: recordPulse 1s infinite;
}

@keyframes recordPulse {
  50% { opacity: 0.35; }
}

.record-timer {
  min-width: 42px;
  color: rgba(255, 255, 255, 0.66);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
}

.record-card audio {
  width: 100%;
  grid-column: 1 / -1;
}

.record-note {
  grid-column: 1 / -1;
  color: var(--gold-light);
  font-size: 10px;
}

.stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.evidence-note {
  max-width: 500px;
}

.evidence-note span {
  color: #8a6c1d;
  font-size: 9px;
  font-weight: 900;
}

.evidence-note p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.next-button {
  min-height: 50px;
  flex: 0 0 auto;
  font-size: 12px;
}

.section-heading.compact {
  align-items: center;
}

.content-count {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 10px;
}

.content-count b {
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.content-count i {
  width: 1px;
  height: 17px;
  background: var(--line);
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.curriculum-card {
  position: relative;
  min-height: 210px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.curriculum-card:hover {
  border-color: #c9b975;
  box-shadow: var(--shadow-small);
  transform: translateY(-3px);
}

.curriculum-card.featured {
  color: #fff;
  border-color: var(--oxford);
  background: var(--oxford);
}

.curriculum-card .curriculum-num {
  color: #a07e23;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.curriculum-card h3 {
  margin: 18px 0 5px;
  color: var(--navy);
  font-size: 16px;
}

.curriculum-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.curriculum-card .curriculum-meta {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  color: #8a6c1d;
  font-size: 9px;
  font-weight: 800;
}

.curriculum-card.featured h3,
.curriculum-card.featured .curriculum-num {
  color: var(--gold-light);
}

.curriculum-card.featured p {
  color: rgba(255, 255, 255, 0.62);
}

.curriculum-card.featured .curriculum-meta {
  color: rgba(255, 255, 255, 0.58);
}

.library-section {
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(38px, 5vw, 58px);
  border: 1px solid #d8d2c3;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  align-items: end;
  gap: 32px;
}

.search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 168, 75, 0.14);
}

.search-box svg {
  width: 20px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  color: var(--navy);
  outline: none;
  border: 0;
  background: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.search-box input::placeholder {
  color: #959aa3;
}

.search-box > span {
  padding: 2px 6px;
  color: #9297a0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 8px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-row button {
  min-height: 44px;
  padding: 0 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.filter-row button.active {
  color: #fff;
  border-color: var(--oxford);
  background: var(--oxford);
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.form-card {
  display: grid;
  grid-template-columns: minmax(80px, 0.72fr) minmax(0, 1.28fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 100px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.form-word {
  direction: ltr;
  font-family: "Manrope", sans-serif;
}

.form-word strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
}

.form-word small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.form-sounds {
  direction: ltr;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: "Manrope", sans-serif;
}

.form-sounds span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.form-sounds b {
  display: block;
  color: #7e6217;
  font-size: 13px;
}

.form-play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--oxford);
  border: 1px solid rgba(200, 168, 75, 0.5);
  border-radius: 50%;
  background: #fff9e8;
}

.form-play svg {
  width: 17px;
  fill: currentColor;
  stroke: none;
}

.form-play.is-playing {
  color: #fff;
  border-color: var(--gold);
  background: var(--oxford);
  box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.18);
}

.library-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 9px;
  text-align: center;
}

.library-more {
  display: block;
  min-height: 48px;
  margin: 22px auto 0;
  padding: 0 20px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-weight: 900;
}

.integration-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(520px, 1.3fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding-bottom: clamp(70px, 9vw, 120px);
}

.integration-map {
  position: relative;
  min-height: 430px;
}

.map-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--oxford);
  box-shadow: 0 0 0 12px rgba(200, 168, 75, 0.08), 0 20px 40px rgba(0, 33, 71, 0.2);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -50%);
}

.map-core small {
  color: var(--gold-light);
  font-family: "Cairo", sans-serif;
  font-size: 9px;
}

.map-line {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  height: 1px;
  background: #cbbf9f;
  transform-origin: left center;
}

.line-one { width: 200px; transform: rotate(0); }
.line-two { width: 220px; transform: rotate(54deg); }
.line-three { width: 220px; transform: rotate(126deg); }
.line-four { width: 210px; transform: rotate(180deg); }

.entry {
  position: absolute;
  z-index: 2;
  width: 160px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-small);
}

.entry b,
.entry span {
  display: block;
}

.entry b {
  color: var(--navy);
  font-size: 12px;
}

.entry span {
  color: var(--muted);
  font-size: 9px;
}

.entry-one { top: 25px; left: 50%; transform: translateX(-50%); }
.entry-two { top: 110px; left: 0; }
.entry-three { right: 0; bottom: 104px; }
.entry-four { bottom: 25px; left: 20%; }
.entry-five { top: 106px; right: 0; }

.toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  width: min(440px, calc(100% - 44px));
  padding: 14px;
  color: #fff;
  border: 1px solid rgba(200, 168, 75, 0.56);
  border-radius: 10px;
  background: var(--oxford);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--oxford);
  border-radius: 8px;
  background: var(--gold);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.toast strong {
  display: block;
  color: var(--gold-light);
  font-size: 12px;
}

.toast p {
  margin: 1px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.toast > button {
  min-width: 34px;
  min-height: 44px;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  border: 0;
  background: transparent;
  font-size: 22px;
}

:focus-visible {
  outline: 3px solid rgba(200, 168, 75, 0.75);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 34px;
  }

  .why-panel-inner {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }

  .section-number {
    display: none;
  }

  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .forms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .integration-section {
    grid-template-columns: 1fr;
  }

  .integration-copy {
    max-width: 680px;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

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

  .hero-lab {
    width: min(620px, 100%);
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .route-switch {
    width: 100%;
  }

  .route-brief {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .route-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .lesson-shell {
    grid-template-columns: 1fr;
  }

  .course-rail {
    border-bottom: 2px solid var(--gold);
    border-left: 0;
  }

  .module-list {
    display: flex;
    padding-bottom: 6px;
    overflow-x: auto;
  }

  .module-button {
    grid-template-columns: 30px minmax(115px, 1fr);
    min-width: 180px;
  }

  .module-button.active::after {
    top: auto;
    right: 9px;
    bottom: -1px;
    left: 9px;
    width: auto;
    height: 3px;
  }

  .module-status,
  .rail-note {
    display: none;
  }

  .library-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .preview-ribbon {
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }

  .preview-ribbon span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar {
    min-height: 64px;
    padding: 0 14px;
  }

  .brand-copy small,
  .student-level,
  .icon-button {
    display: none;
  }

  .hero-inner,
  .route-section,
  .curriculum-section,
  .integration-section {
    width: min(100% - 28px, 1320px);
  }

  .hero-inner {
    padding: 48px 0 60px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-headline {
    font-size: 23px;
  }

  .eyebrow {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 9px;
  }

  .sound-change {
    gap: 8px;
  }

  .sound-strong,
  .sound-natural {
    min-width: 80px;
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .text-button {
    width: 100%;
  }

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

  .hero-lab {
    padding: 18px;
  }

  .mastery-grid {
    gap: 6px;
  }

  .mastery-grid > div {
    padding: 8px;
  }

  .why-panel-inner {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1320px);
  }

  .why-columns {
    grid-template-columns: 1fr;
  }

  .why-columns article {
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .route-section,
  .curriculum-section {
    padding-top: 68px;
  }

  .route-brief {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .route-index {
    min-height: 74px;
  }

  .route-facts {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .lesson-shell {
    width: min(100% - 20px, 1390px);
    margin-top: 68px;
    border-radius: 11px;
  }

  .course-rail {
    padding: 20px 12px;
  }

  .rail-title {
    padding-bottom: 12px;
  }

  .module-button {
    min-width: 170px;
  }

  .lesson-stage {
    padding: 18px 14px 24px;
  }

  .stage-topbar {
    flex-direction: column;
  }

  .lesson-progress {
    width: 100%;
  }

  .lesson-why {
    padding: 14px;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    flex-direction: row;
  }

  .compare-arrow span {
    width: 28px;
    height: 1px;
  }

  .audio-copy {
    padding: 18px 16px 8px;
  }

  .audio-control {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 12px 16px 18px;
  }

  .audio-time {
    display: none;
  }

  .audio-integrity {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 9px 16px;
  }

  .audio-integrity > button {
    width: 100%;
    margin: 0;
    text-align: right;
  }

  .answer-options {
    grid-template-columns: 1fr;
  }

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

  .record-actions {
    justify-content: space-between;
  }

  .stage-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .next-button {
    width: 100%;
  }

  .section-heading.compact {
    align-items: stretch;
  }

  .content-count {
    justify-content: center;
  }

  .curriculum-grid {
    grid-template-columns: 1fr;
  }

  .library-section {
    width: min(100% - 20px, 1320px);
    margin-top: 68px;
    padding: 30px 14px;
    border-radius: 11px;
  }

  .filter-row {
    flex-wrap: nowrap;
    padding-bottom: 12px;
    overflow-x: auto;
  }

  .filter-row button {
    flex: 0 0 auto;
  }

  .forms-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    grid-template-columns: minmax(74px, 0.65fr) minmax(0, 1.35fr) 44px;
  }

  .integration-section {
    padding-bottom: 70px;
  }

  .integration-map {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }

  .map-core,
  .map-line,
  .entry {
    position: static;
    width: auto;
    transform: none;
  }

  .map-core {
    width: 130px;
    height: 130px;
    margin: 10px auto 18px;
  }

  .entry {
    padding: 14px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waveform.is-playing i {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
