:root {
  --ink: #162922;
  --muted: #5d6d67;
  --green: #23795d;
  --green-dark: #15523f;
  --mint: #e7f2ec;
  --paper: #fbfaf6;
  --white: #ffffff;
  --blue: #3177a8;
  --gold: #e0a72f;
  --coral: #c95b48;
  --line: #d8e0dc;
  --shadow: 0 12px 34px rgba(23, 49, 40, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  border-bottom: 1px solid rgba(22, 41, 34, 0.12);
  background: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { width: 38px; height: 38px; }
.brand span { color: var(--green); }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: #344740;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--green); }

.button,
.nav-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.nav-cta:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button.secondary { background: #fff; color: var(--green) !important; }
.button.secondary:hover { background: var(--mint); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.hero {
  min-height: min(620px, calc(100vh - 105px));
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(13, 47, 36, 0.96) 0%, rgba(13, 47, 36, 0.85) 38%, rgba(13, 47, 36, 0.26) 72%, rgba(13, 47, 36, 0.08) 100%),
    url("/site-assets/teacher-hero.png") 74% 38% / cover no-repeat;
  color: #fff;
}

.hero-inner,
.section-inner,
.page-hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy { max-width: 610px; padding: 58px 0 72px; }
.eyebrow {
  margin: 0 0 10px;
  color: #a8e2cb;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1, h2, h3, p { letter-spacing: 0; }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: 1; }
.hero .lead { max-width: 590px; margin: 22px 0 28px; color: #edf7f2; font-size: 21px; line-height: 1.55; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button.secondary { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); color: #fff !important; }

.proof-band { background: #fff; border-bottom: 1px solid var(--line); }
.proof-grid {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.proof-item { min-height: 112px; padding: 24px 22px; border-right: 1px solid var(--line); }
.proof-item:first-child { border-left: 1px solid var(--line); }
.proof-item strong { display: block; margin-bottom: 5px; font-size: 16px; }
.proof-item span { color: var(--muted); font-size: 14px; line-height: 1.45; }

.section { padding: 82px 0; }
.section.alt { background: #eef4f1; }
.section.blue { background: #eaf2f7; }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section h2, .page-hero h1 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; }
.section-heading p, .page-hero p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 42px;
  align-items: center;
}
.classroom-image {
  overflow: hidden;
  border: 1px solid #bfcfc7;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.classroom-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.feature-list { display: grid; gap: 18px; }
.feature-line { padding-left: 18px; border-left: 4px solid var(--green); }
.feature-line:nth-child(2) { border-color: var(--blue); }
.feature-line:nth-child(3) { border-color: var(--gold); }
.feature-line:nth-child(4) { border-color: var(--coral); }
.feature-line h3 { margin: 0 0 5px; font-size: 19px; }
.feature-line p { margin: 0; color: var(--muted); line-height: 1.55; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.info-card .number { color: var(--green); font-size: 14px; font-weight: 900; }
.info-card h3 { margin: 22px 0 10px; font-size: 22px; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.compare-table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.compare-table th, .compare-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { background: var(--green-dark); color: #fff; }
.compare-table th:first-child { width: 24%; }
.compare-table td { color: var(--muted); line-height: 1.5; }
.compare-table td strong { color: var(--ink); }

.cta-band { padding: 62px 0; background: var(--green-dark); color: #fff; }
.cta-layout { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.cta-layout h2 { margin: 0 0 8px; font-size: 34px; }
.cta-layout p { margin: 0; color: #d8eee5; line-height: 1.55; }
.cta-band .button { background: #fff; border-color: #fff; color: var(--green-dark) !important; white-space: nowrap; }

.page-hero { padding: 82px 0 70px; background: #e7f2ec; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { color: var(--green); }
.page-hero p { max-width: 760px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; }
.prose h2 { margin: 46px 0 12px; font-size: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 21px; }
.prose p, .prose li { color: var(--muted); font-size: 17px; line-height: 1.7; }
.prose ul { padding-left: 22px; }
.side-note { align-self: start; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.side-note h2 { margin: 0 0 10px; font-size: 22px; }
.side-note p { color: var(--muted); line-height: 1.55; }
.side-note .button { width: 100%; }

.coverage-browser { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.coverage-loading, .coverage-error { margin: 0; padding: 30px; color: var(--muted); }
.coverage-totals { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.coverage-totals div { padding: 22px 26px; border-right: 1px solid var(--line); }
.coverage-totals div:last-child { border-right: 0; }
.coverage-totals strong, .coverage-totals span, .coverage-subject-name strong, .coverage-subject-name span { display: block; }
.coverage-totals strong { margin-bottom: 4px; color: var(--green-dark); font-size: 28px; }
.coverage-totals span { color: var(--muted); font-size: 13px; font-weight: 750; }
.coverage-path { display: flex; align-items: center; gap: 11px; padding: 15px 24px; border-bottom: 1px solid var(--line); background: #f7faf8; }
.coverage-path span { font-size: 13px; font-weight: 850; text-transform: uppercase; }
.coverage-path b { color: var(--green); }
.coverage-country { border-bottom: 1px solid var(--line); }
.coverage-country:last-child { border-bottom: 0; }
.coverage-country > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style-position: inside; font-size: 22px; font-weight: 850; }
.coverage-country > summary small { color: var(--muted); font-size: 13px; font-weight: 700; }
.coverage-years { display: grid; gap: 16px; padding: 0 26px 26px; }
.coverage-year { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.coverage-year > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; background: #f5f8f6; }
.coverage-year h3 { margin: 0 0 3px; font-size: 18px; }
.coverage-year header p, .coverage-year header > span { margin: 0; color: var(--muted); font-size: 13px; }
.coverage-subject { display: grid; grid-template-columns: minmax(180px, 1fr) auto 150px; align-items: center; gap: 18px; min-height: 74px; padding: 13px 20px; border-top: 1px solid var(--line); }
.coverage-subject-name span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.coverage-status { min-width: 88px; padding: 7px 10px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 850; }
.coverage-status.available { background: #dff3e9; color: #176548; }
.coverage-status.expanding { background: #e4eff8; color: #24658f; }
.coverage-status.planned { background: #f6edcf; color: #775b0c; }
.button.compact { min-height: 39px; padding: 8px 13px; font-size: 13px; }
.coverage-wait { color: var(--muted); font-size: 13px; text-align: right; }

.price-panel { max-width: 760px; margin: 0 auto; padding: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.price-panel h2 { font-size: 32px; }
.price-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 28px 0; }
.price-point { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; }

.faq-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); background: #fff; }
.faq-list summary { padding: 22px 24px; cursor: pointer; font-size: 18px; font-weight: 800; }
.faq-list details p { margin: 0; padding: 0 24px 24px; color: var(--muted); line-height: 1.65; }

.site-footer { padding: 42px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-layout { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-copy { max-width: 470px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--green); }

.signup-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(10, 32, 25, 0.34);
}
.signup-dialog::backdrop { background: rgba(11, 35, 27, 0.66); backdrop-filter: blur(2px); }
.signup-dialog h2 { margin: 0 42px 10px 0; font-size: 30px; }
.signup-dialog > p:not(.eyebrow) { margin: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .menu-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; gap: 16px; }
  .site-nav .nav-cta { width: 100%; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .product-showcase, .content-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .side-note { order: -1; }
}

@media (max-width: 620px) {
  .nav-shell, .hero-inner, .section-inner, .page-hero-inner, .proof-grid { width: min(100% - 28px, 1120px); }
  .brand { font-size: 16px; }
  .brand img { width: 34px; height: 34px; }
  .hero { min-height: 650px; background-position: 62% center; }
  .hero-copy { padding: 64px 0 86px; }
  .hero h1 { font-size: 48px; }
  .hero .lead { font-size: 18px; }
  .proof-grid, .card-grid, .price-points { grid-template-columns: 1fr; }
  .proof-item, .proof-item:first-child { border-left: 1px solid var(--line); }
  .section { padding: 60px 0; }
  .cta-layout, .footer-layout { align-items: stretch; flex-direction: column; }
  .cta-actions .button, .hero-actions .button { width: 100%; }
  .compare-table { display: block; overflow-x: auto; }
  .price-panel { padding: 26px 20px; }
  .coverage-totals { grid-template-columns: 1fr; }
  .coverage-totals div { border-right: 0; border-bottom: 1px solid var(--line); }
  .coverage-totals div:last-child { border-bottom: 0; }
  .coverage-country > summary, .coverage-year > header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .coverage-years { padding-inline: 14px; }
  .coverage-subject { grid-template-columns: 1fr auto; }
  .coverage-subject .button, .coverage-wait { grid-column: 1 / 3; width: 100%; text-align: center; }
}

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