:root {
  --paper: #f9f8f6;
  --paper-warm: #fffdf9;
  --ink: #2c2c2c;
  --muted: #68645f;
  --primary: #1f4e6b;
  --primary-soft: #dcebf0;
  --secondary: #d97a3e;
  --secondary-dark: #b95f29;
  --sage: #7a9b7a;
  --sage-soft: #e4ece1;
  --line: rgba(31, 78, 107, 0.14);
  --shadow: 0 22px 60px rgba(31, 78, 107, 0.12);
  --radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 7%, rgba(217, 122, 62, 0.12), transparent 26rem),
    radial-gradient(circle at 92% 20%, rgba(122, 155, 122, 0.18), transparent 22rem),
    var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

a {
  color: inherit;
}

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

h1,
h2 {
  color: var(--primary);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.45rem, 12vw, 5.7rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(2rem, 8vw, 3.7rem);
  margin-bottom: 0.9rem;
}

h3 {
  color: var(--primary);
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

p {
  color: var(--muted);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1rem;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(249, 248, 246, 0.84);
  box-shadow: 0 12px 36px rgba(31, 78, 107, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  height: 3.35rem;
  width: auto;
  max-width: min(14rem, 58vw);
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 0.95rem;
}

.nav-menu {
  position: fixed;
  inset: 5.4rem 1rem auto;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-warm);
  box-shadow: var(--shadow);
}

.nav-open .nav-menu {
  display: flex;
}

.nav-menu a {
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  background: var(--primary-soft);
}

.nav-progress {
  border: 1px solid rgba(31, 78, 107, 0.22);
  background: var(--paper-warm);
  text-align: center;
}

.nav-progress:hover {
  background: var(--primary);
  color: #fff;
}

.nav-tomato {
  border: 1px solid rgba(217, 122, 62, 0.35);
  background: rgba(217, 122, 62, 0.08);
  text-align: center;
}

.nav-tomato:hover,
.nav-tomato.is-active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-selector,
.currency-selector {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-warm);
}

.lang-selector button,
.currency-selector button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  min-width: 2rem;
  padding: 0.45rem 0.65rem;
}

.lang-selector button.is-active,
.currency-selector button.is-active {
  background: var(--primary);
  color: #fff;
}

.screenshot-slot {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 78, 107, 0.1);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.72);
  margin: 0 0 1.25rem;
  box-shadow: 0 14px 38px rgba(31, 78, 107, 0.08);
}

.screenshot-slot::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 3.25rem;
  height: 3.25rem;
}

.screenshot-slot img,
.screenshot-slot picture {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-slot img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.screenshot-slot--hero {
  box-shadow: var(--shadow);
  aspect-ratio: 900 / 1600;
  max-height: min(78vh, 620px);
  margin-inline: auto;
  max-width: min(100%, 460px);
}

.screenshot-slot--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.screenshot-slot--wide {
  margin-bottom: 1.5rem;
}

.screenshot-slot--study {
  margin-bottom: 1.15rem;
  aspect-ratio: 16 / 9;
}

.study-section .screenshot-slot--study img,
.study-section .screenshot-slot--study picture {
  width: 100%;
  height: 100%;
}

.study-section .screenshot-slot--study img {
  object-fit: cover;
}

.study-section .study-img--podcast {
  object-position: center 42%;
}

.study-section .study-img--infographic {
  object-position: center center;
}

.screenshot-slot--progress {
  margin: 0;
  min-width: 0;
}

.student-progress-section {
  width: min(1200px, calc(100% - 2rem));
}

.student-progress-heading {
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.student-progress-section .screenshot-slot--progress {
  width: 100%;
  margin: 0;
  box-shadow: 0 18px 48px rgba(31, 78, 107, 0.12);
}

.student-progress-section .screenshot-slot--progress img {
  width: 100%;
  height: auto;
}

.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  gap: 2.5rem;
  min-height: calc(100vh - 5.5rem);
  align-items: start;
  padding-top: 3rem;
}

.hero-lead,
.page-hero p {
  max-width: 43rem;
  color: #4f4c48;
  font-size: clamp(1.08rem, 3vw, 1.35rem);
}

.eyebrow {
  color: var(--secondary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-free-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.25rem;
  max-width: 34rem;
}

.hero-free-cta__intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 600;
}

.hero-free-cta__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.packages-free-spotlight {
  padding-top: 0;
  padding-bottom: 0.5rem;
}

.packages-free-spotlight__card {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 1.35rem;
  border: 2px solid rgba(122, 155, 122, 0.55);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(122, 155, 122, 0.12), rgba(255, 253, 249, 0.95));
  box-shadow: 0 16px 40px rgba(122, 155, 122, 0.14);
}

.packages-free-spotlight__card h2 {
  margin: 0.25rem 0 0.5rem;
  color: var(--primary);
  font-size: 1.45rem;
}

.packages-free-spotlight__intro {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
}

.packages-free-spotlight__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.packages-free-spotlight__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.packages-free-spotlight__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (min-width: 760px) {
  .packages-free-spotlight__card {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }

  .packages-free-spotlight__actions {
    align-items: flex-end;
    text-align: right;
  }
}

.package-card.is-free-module {
  border-color: rgba(122, 155, 122, 0.65);
  box-shadow: 0 14px 38px rgba(122, 155, 122, 0.16);
}

.package-card.is-free-module .package-status {
  background: rgba(122, 155, 122, 0.18);
  color: var(--sage-dark, #4a6b4a);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.85rem 1.25rem;
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--secondary);
  box-shadow: 0 14px 26px rgba(217, 122, 62, 0.26);
  color: #fff;
}

.btn-primary:hover {
  background: var(--secondary-dark);
}

.btn-secondary {
  border: 1px solid rgba(31, 78, 107, 0.35);
  background: rgba(255, 255, 255, 0.56);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-soft);
}

.text-link {
  display: inline-flex;
  color: var(--primary);
  font-weight: 800;
  margin-top: 1.5rem;
  text-decoration-color: rgba(31, 78, 107, 0.28);
  text-underline-offset: 0.3rem;
}

.hero-media {
  position: relative;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2rem;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-card,
.price-plan,
.year-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 14px 38px rgba(31, 78, 107, 0.08);
}

.feature-card {
  padding: 1.35rem;
}

.feature-card p {
  margin-bottom: 0;
}

.icon {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--sage-soft);
  color: var(--primary);
  margin-bottom: 1rem;
}

.icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.split-section {
  display: grid;
  gap: 1.5rem;
}

.curriculum-years-grid {
  display: grid;
  gap: 0.9rem;
}

.curriculum-year-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.82);
  padding: 1.25rem;
}

.curriculum-year-card span {
  display: inline-block;
  color: var(--secondary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
}

.curriculum-year-card h3 {
  margin-bottom: 0.45rem;
}

.curriculum-year-card p {
  margin-bottom: 0;
}

.curriculum-overview-section .section-heading .btn {
  margin-top: 1.25rem;
}

.testimonial-grid {
  display: grid;
  gap: 1rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  aspect-ratio: 1;
  min-height: 15.5rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 14px 38px rgba(31, 78, 107, 0.08);
}

.testimonial-card--pending {
  border-style: dashed;
  background: rgba(255, 253, 249, 0.58);
}

.testimonial-card blockquote {
  margin: 0;
  flex: 1;
  color: #4f4c48;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(0.8rem, 1.85vw, 0.9rem);
  font-style: italic;
  line-height: 1.42;
}

.testimonial-card--pending blockquote {
  color: var(--muted);
  font-style: normal;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
}

.testimonial-meta {
  display: grid;
  gap: 0.2rem;
  margin-top: auto;
}

.testimonial-meta strong {
  color: var(--primary);
  font-size: 0.84rem;
}

.testimonial-meta span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ai-credit-card {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid rgba(31, 78, 107, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(220, 235, 240, 0.55), rgba(255, 253, 249, 0.92)),
    rgba(255, 253, 249, 0.82);
  box-shadow: 0 14px 38px rgba(31, 78, 107, 0.08);
  text-align: center;
}

.ai-credit-card h2 {
  margin-bottom: 0.85rem;
}

.ai-credit-card p:last-child {
  margin-bottom: 0;
  color: #4f4c48;
}

.footer-ai-note {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.discipline-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.discipline-highlights li {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.82);
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.study-section {
  position: relative;
}

.illustrated .feature-card {
  overflow: hidden;
}

.final-cta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 4rem;
  padding: 2rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    var(--primary);
  box-shadow: var(--shadow);
}

.final-cta h2,
.final-cta p {
  color: #fff;
}

.final-cta h2 {
  margin-bottom: 0.45rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.final-cta p {
  margin-bottom: 0;
  opacity: 0.86;
}

.page-hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.curriculum-hero-copy {
  min-width: 0;
}

.curriculum-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.35rem 0 0;
}

.curriculum-stats div {
  min-width: 5.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.82);
}

.curriculum-stats dt {
  color: var(--primary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.curriculum-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.curriculum-hero-media {
  margin: 0;
  box-shadow: var(--shadow);
}

.curriculum-list {
  padding-top: 1rem;
}

.year-panel {
  overflow: hidden;
  margin-bottom: 1rem;
}

.year-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
  list-style: none;
  padding: 1.2rem;
}

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

.year-panel summary::after {
  content: "+";
  display: grid;
  flex: 0 0 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.year-panel[open] summary::after {
  content: "−";
}

.year-panel small {
  color: var(--secondary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.module-table {
  padding: 0 1rem 1rem;
}

.module-row {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0.2rem;
}

.module-row.header {
  display: none;
}

.module-row strong {
  color: var(--primary);
}

.module-row span {
  color: var(--secondary-dark);
  font-weight: 800;
}

.module-row p {
  margin-bottom: 0;
}

.curriculum-note {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
  padding: 1.25rem;
  border-radius: 24px;
  background: var(--sage-soft);
}

.curriculum-note p {
  margin-bottom: 0;
}

.pricing-hero {
  padding-bottom: 2rem;
}

.pricing-currency-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .currency-selector button {
    font-size: 0.62rem;
    padding: 0.38rem 0.5rem;
    min-width: 0;
    letter-spacing: -0.01em;
  }
}

.calm-card {
  background: rgba(228, 236, 225, 0.7);
}

.step-number {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
}

.pricing-grid {
  display: grid;
  gap: 1rem;
}

.price-plan {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
}

.price-plan.featured-plan {
  border-color: rgba(217, 122, 62, 0.38);
  background:
    linear-gradient(180deg, rgba(217, 122, 62, 0.11), transparent 55%),
    rgba(255, 253, 249, 0.95);
  box-shadow: 0 24px 60px rgba(217, 122, 62, 0.16);
}

.plan-label {
  color: var(--secondary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.price-plan h3 {
  font-size: clamp(2.1rem, 12vw, 3.7rem);
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

.price-plan h3 span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 0.25rem;
}

.price-plan ul {
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
}

.price-plan .btn {
  margin-top: auto;
}

.faq-section {
  padding-top: 2.5rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  padding: 1rem 1.15rem;
}

.faq-list summary {
  color: var(--primary);
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 0.8rem 0 0;
}

.site-footer {
  display: grid;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.74);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--primary);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.footer-social {
  gap: 0.55rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(31, 78, 107, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--primary-soft);
  border-color: rgba(31, 78, 107, 0.28);
}

.site-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration-color: rgba(31, 78, 107, 0.25);
  text-underline-offset: 0.25rem;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

@media (min-width: 560px) {
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .curriculum-note,
  .final-cta {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .nav-menu a {
    padding: 0.65rem 0.9rem;
  }

  .nav-progress,
  .nav-tomato {
    margin-left: 0.15rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    padding-top: 1rem;
  }

  .page-hero,
  .split-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  }

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

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

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

  .module-row {
    grid-template-columns: minmax(180px, 0.9fr) 80px minmax(0, 1.6fr);
    align-items: start;
    gap: 1rem;
  }

  .module-row.header {
    display: grid;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    padding-top: 0;
    text-transform: uppercase;
  }
}

@media (min-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .section-shell {
    padding: 5.5rem 0;
  }
}

.packages-section {
  padding-top: 2rem;
}

.testimonials-section {
  padding-top: 2rem;
}

.packages-section .screenshot-slot--wide {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  aspect-ratio: 16 / 9;
}

.packages-section .screenshot-slot--wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.packages-grid {
  display: grid;
  gap: 1rem;
}

.package-card[id^="package-"] {
  scroll-margin-top: 6rem;
}

.package-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 14px 38px rgba(31, 78, 107, 0.08);
}

.package-card.is-live.is-pilot-purchase {
  border-color: rgba(217, 122, 62, 0.45);
  box-shadow: 0 14px 38px rgba(217, 122, 62, 0.12);
}

.package-card.is-live.is-open-access {
  border-color: rgba(122, 155, 122, 0.55);
  box-shadow: 0 14px 38px rgba(122, 155, 122, 0.12);
}

.package-card.is-live.is-pilot-purchase .package-status {
  background: rgba(217, 122, 62, 0.14);
  color: #9a4f24;
}

.package-card.is-live.is-open-access .package-status {
  background: var(--sage-soft);
  color: #3d6b3d;
}

.btn-pilot-purchase {
  background: linear-gradient(180deg, #e8894a, #d97a3e);
  border-color: rgba(217, 122, 62, 0.5);
  color: #fff;
  box-shadow: 0 14px 26px rgba(217, 122, 62, 0.26);
}

.btn-pilot-purchase:hover {
  background: linear-gradient(180deg, #ef9456, #e08045);
  color: #fff;
}

.btn-open-access {
  background: linear-gradient(180deg, #8fb08f, var(--sage));
  border-color: rgba(122, 155, 122, 0.55);
  color: #fff;
  box-shadow: 0 14px 26px rgba(122, 155, 122, 0.24);
}

.btn-open-access:hover {
  background: linear-gradient(180deg, #9cbc9c, #6f916f);
  color: #fff;
}

.pricing-pilot-notice {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(31, 78, 107, 0.18);
  border-radius: 16px;
  background: rgba(31, 78, 107, 0.06);
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}

.tier-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 14px 38px rgba(31, 78, 107, 0.08);
}

.tier-card-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.tier-card--s {
  border-color: rgba(122, 155, 122, 0.45);
}

.tier-card--s .tier-card-letter {
  background: var(--sage-soft);
  color: #3d6b3d;
}

.tier-card--m {
  border-color: rgba(31, 78, 107, 0.28);
}

.tier-card--m .tier-card-letter {
  background: var(--primary-soft);
  color: var(--primary);
}

.tier-card--l {
  border-color: rgba(217, 122, 62, 0.42);
  background:
    linear-gradient(180deg, rgba(217, 122, 62, 0.08), transparent 55%),
    rgba(255, 253, 249, 0.95);
}

.tier-card--l .tier-card-letter {
  background: rgba(217, 122, 62, 0.16);
  color: #9a4f24;
}

.tier-card-label {
  margin: 0 0 0.2rem;
  font-weight: 900;
  font-size: 1.05rem;
}

.tier-card-range {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tier-card-price {
  margin: 0 0 1rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.tier-card--s .tier-card-price {
  color: #3d6b3d;
}

.tier-card--m .tier-card-price {
  color: var(--primary);
}

.tier-card--l .tier-card-price {
  color: var(--secondary-dark);
}

.tier-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #4f4c48;
}

.tier-card li + li {
  margin-top: 0.35rem;
}

.volume-discounts {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.82);
  text-align: center;
}

.volume-discounts h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.volume-discount-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.volume-discount-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(31, 78, 107, 0.06);
  color: var(--primary);
  font-weight: 800;
}

.purchase-terms__label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

.purchase-terms__label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.purchase-terms__label a {
  color: var(--primary);
  font-weight: 700;
}

.purchase-terms__hint {
  margin: 0.55rem 0 0 1.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.purchase-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.purchase-terms-modal[hidden] {
  display: none;
}

body.purchase-terms-modal-open {
  overflow: hidden;
}

.purchase-terms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 28, 36, 0.48);
}

.purchase-terms-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 24px 56px rgba(31, 78, 107, 0.18);
}

.purchase-terms-modal__panel h2 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.purchase-terms-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.purchase-terms-modal .purchase-terms__hint {
  margin-bottom: 0;
}

a.btn.is-disabled,
a.is-disabled[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.legal-page {
  max-width: 46rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-header h1 {
  margin: 0.35rem 0 0.5rem;
}

.legal-updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-prose {
  display: grid;
  gap: 1.5rem;
}

.legal-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--primary);
}

.legal-section p {
  margin: 0;
  line-height: 1.65;
  color: var(--ink);
}

.legal-section a {
  color: var(--primary);
  font-weight: 600;
}

.volume-discount-note {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  color: var(--muted);
}

.contact-page {
  max-width: 56rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.contact-header {
  margin-bottom: 1.75rem;
}

.contact-header h1 {
  margin: 0.35rem 0 0.75rem;
}

.contact-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.contact-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-warm);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.contact-muted {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-status {
  margin: 0;
  font-size: 0.92rem;
}

.contact-status.is-error {
  color: #b42318;
}

.contact-status.is-ok {
  color: var(--sage-dark, #4a6b4a);
}

.contact-email {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-email a {
  color: var(--primary);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-help-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
  line-height: 1.6;
}

.contact-help-list a {
  color: var(--primary);
  font-weight: 600;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal[hidden] {
  display: none;
}

body.contact-modal-open {
  overflow: hidden;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 28, 36, 0.48);
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 24px 56px rgba(31, 78, 107, 0.18);
}

.contact-modal__panel h2 {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-modal__panel p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.contact-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.contact-modal[data-variant="ok"] .contact-modal__panel h2 {
  color: var(--sage-dark, #4a6b4a);
}

.contact-modal[data-variant="error"] .contact-modal__panel h2 {
  color: #b42318;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

.package-tier-row {
  margin-bottom: 0.65rem;
}

.package-tier-price {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
}

.package-tier-amount {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}

.package-tier-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.package-tier-price--s {
  background: var(--sage-soft);
  color: #3d6b3d;
}

.package-tier-price--s .package-tier-letter {
  background: rgba(122, 155, 122, 0.22);
}

.package-tier-price--m {
  background: var(--primary-soft);
  color: var(--primary);
}

.package-tier-price--m .package-tier-letter {
  background: rgba(31, 78, 107, 0.12);
}

.package-tier-price--l {
  background: rgba(217, 122, 62, 0.14);
  color: #9a4f24;
}

.package-tier-price--l .package-tier-letter {
  background: rgba(217, 122, 62, 0.22);
}

.price-plan.is-disabled {
  opacity: 0.72;
}

.price-plan.is-disabled .btn-disabled {
  pointer-events: none;
  cursor: not-allowed;
  background: rgba(31, 78, 107, 0.08);
  color: var(--muted);
  border-color: transparent;
}

.package-card.is-live {
  border-color: rgba(122, 155, 122, 0.45);
}

.package-card.is-soon {
  opacity: 0.92;
}

.package-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.package-number {
  color: var(--secondary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.package-status {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
}

.package-card.is-live .package-status {
  background: var(--sage-soft);
  color: var(--primary);
}

.package-card.is-soon .package-status {
  background: rgba(31, 78, 107, 0.08);
  color: var(--muted);
}

.package-card h3 {
  margin-bottom: 0.5rem;
}

.package-card p {
  flex: 1;
  margin-bottom: 1.1rem;
}

.package-card-action {
  margin-top: auto;
}

.package-syllabus {
  margin: 0 0 1rem;
  border: 1px solid rgba(31, 78, 107, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.package-syllabus summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  padding: 0.75rem 0.95rem;
  list-style: none;
}

.package-syllabus summary::-webkit-details-marker {
  display: none;
}

.package-syllabus summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}

.package-syllabus[open] summary::before {
  transform: rotate(90deg);
}

.package-syllabus-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(31, 78, 107, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.package-syllabus-note,
.package-syllabus-empty,
.package-syllabus-legend {
  margin: 0;
  padding: 0 0.95rem 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.package-syllabus-list {
  margin: 0;
  padding: 0 0.95rem 0.65rem;
  list-style: none;
  max-height: 14rem;
  overflow: auto;
}

.package-syllabus-topic {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(31, 78, 107, 0.08);
  font-size: 0.9rem;
}

.package-syllabus-label {
  flex: 1;
  line-height: 1.35;
}

.package-syllabus-badges {
  display: inline-flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.package-resource-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(31, 78, 107, 0.08);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.package-card-action .btn {
  width: 100%;
}

.package-soon {
  display: inline-flex;
  align-items: center;
  min-height: 3.05rem;
  color: var(--muted);
  font-weight: 700;
}

.package-card.is-compact .package-card-action .btn {
  width: auto;
}

.section-heading p a {
  color: var(--primary);
  font-weight: 800;
  text-underline-offset: 0.25rem;
}

@media (min-width: 560px) {
  .packages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .packages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
