:root {
  --ink: #24312b;
  --ink-soft: #3f5349;
  --paper: #f6efe4;
  --white: #fffaf3;
  --butter: #fff3d2;
  --peach: #ffe3d0;
  --sage: #e3f3e6;
  --sky: #e3f3f2;
  --pine: #1d6454;
  --pine-deep: #163f36;
  --clay: #c24f2a;
  --clay-deep: #9a3b1e;
  --gold: #9a5414;
  --honey: #f0c14b;
  --line: #efd9c4;
  --shadow: 0 16px 34px rgba(146, 84, 38, 0.1);
  --title: "Arial Rounded MT Bold", "Arial Rounded MT", Arial, sans-serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(540px 340px at 96% 0%, #ffd7a4 0%, transparent 70%),
    radial-gradient(460px 320px at -4% 12%, #ffd4c2 0%, transparent 68%),
    radial-gradient(620px 420px at 78% 78%, #d7efdc 0%, transparent 72%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 239, 228, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 40, 36, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
}

.brand span {
  line-height: 1.15;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -6px;
}

.bars::after {
  top: 6px;
}

body.nav-open .bars {
  background: transparent;
}

body.nav-open .bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px 20px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
  gap: 6px;
}

body.nav-open .site-nav {
  display: grid;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 10px;
}

.site-nav a[aria-current="page"]:not(.nav-cta) {
  color: var(--clay);
}

.nav-cta {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 8px 16px rgba(194, 79, 42, 0.22);
}

.btn-primary:hover {
  background: var(--clay-deep);
}

.btn-secondary {
  background: var(--white);
  color: var(--pine-deep);
  border-color: #efc7a4;
}

.btn-secondary:hover {
  background: var(--butter);
}

.btn-light {
  background: var(--white);
  color: var(--pine-deep);
}

.hero,
.page-hero,
.section {
  padding: 56px 0;
}

.hero-grid,
.page-hero-grid,
.offer-grid,
.grade-grid,
.subject-grid,
.aim-grid,
.footer-grid,
.split,
.step-grid {
  display: grid;
  gap: 22px;
}

h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--pine-deep);
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  max-width: 11ch;
}

.page-hero h1 {
  max-width: 14ch;
}

h1 em {
  font-style: normal;
  font-weight: inherit;
  color: var(--clay);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 20ch;
}

.plan-card h2,
.side-card h2,
.offer h3,
.step h3 {
  max-width: none;
}

h3 {
  font-size: 1.35rem;
}

.eyebrow,
.plan-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffe6bf;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.lede,
.intro {
  max-width: 42rem;
  margin: 18px 0 0;
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.plan-card,
.side-card,
.offer,
.grade,
.subject,
.aim,
.step,
.form,
.success {
  background: var(--white);
  border: none;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.plan-card,
.side-card {
  padding: 24px;
}

.side-card {
  background: var(--sage);
}

.side-card .btn {
  margin-top: 18px;
}

.footer-label {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--pine);
}

.plan-card {
  position: relative;
  background: var(--butter);
}

.sun {
  position: absolute;
  top: -18px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 8px #ffe8ad;
}

.hero-visual {
  display: grid;
  gap: 0;
}

.scene {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.scene-hero,
.scene-page {
  aspect-ratio: 4 / 3;
}

.hero-visual .plan-card {
  margin: -36px 16px 0;
  position: relative;
  z-index: 1;
}

.offer-scene {
  width: calc(100% + 44px);
  height: 210px;
  margin: -22px -22px 16px;
  border-radius: 28px 28px 18px 18px;
  box-shadow: none;
}

.grade-scene {
  height: 190px;
  margin-bottom: 12px;
  border-radius: 18px;
  box-shadow: none;
  object-position: center 35%;
}

.grade:last-child .grade-scene {
  object-position: center 28%;
}

.plan-card h2 {
  margin-top: 10px;
  font-size: 1.8rem;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.plan-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.8);
  font-weight: 600;
}

.plan-list span:first-child {
  color: var(--clay);
  font-family: var(--title);
}

.plan-foot {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.fact-row {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.fact {
  margin: 0;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--butter);
}

.fact:nth-child(2) {
  background: var(--sage);
}

.fact:nth-child(3) {
  background: var(--peach);
}

.fact strong {
  display: block;
  font-family: var(--title);
  font-size: 1.2rem;
  color: var(--pine-deep);
}

.fact span {
  color: var(--ink-soft);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 28px;
}

.section-head p,
.offer p,
.grade p,
.subject p,
.aim p,
.step p,
.side-card p,
.prose p {
  color: var(--ink-soft);
}

.offer,
.grade,
.subject,
.aim,
.step {
  padding: 22px;
}

.offer,
.grade {
  overflow: hidden;
}

.offer-tutoring {
  background: var(--pine);
  color: #f6f1e7;
}

.offer:not(.offer-tutoring) {
  background: var(--peach);
}

.side-card {
  background: var(--sage);
}

.grade:nth-child(4n + 1),
.subject:nth-child(3n + 1),
.aim:nth-child(3n + 1),
.step:nth-child(2n + 1) {
  background: var(--butter);
}

.grade:nth-child(4n + 2),
.subject:nth-child(3n + 2),
.aim:nth-child(3n + 2),
.step:nth-child(2n) {
  background: var(--sage);
}

.grade:nth-child(4n + 3),
.subject:nth-child(3n + 3),
.aim:nth-child(3n + 3) {
  background: var(--peach);
}

.grade:nth-child(4n) {
  background: var(--sky);
}

.offer-tutoring h2,
.offer-tutoring h3,
.offer-tutoring p {
  color: #f6f1e7;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--pine);
  font-weight: 700;
}

.offer-tutoring .plan-kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #ffe7c2;
}

.offer-tutoring .text-link {
  color: #ffe0b8;
}

.grade strong,
.subject strong,
.aim strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--title);
  font-size: 1.35rem;
  color: var(--pine-deep);
  letter-spacing: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 1.3rem;
}

.check-list li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--clay);
  position: absolute;
  left: 0;
  top: 0.45em;
}

.step-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--title);
  font-size: 1.8rem;
  color: var(--clay);
}

.cta-band {
  background: transparent;
  color: #f6f1e7;
  padding: 8px 0 56px;
}

.cta-band .wrap {
  position: relative;
  overflow: hidden;
  width: min(var(--wrap), calc(100% - 40px));
  background: var(--pine);
  border-radius: 36px;
  padding: 48px 36px;
}

.cta-band .wrap::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--honey);
  right: -42px;
  bottom: -58px;
}

.cta-band .wrap > * {
  position: relative;
  z-index: 1;
}

.cta-band h2,
.cta-band p {
  color: #f6f1e7;
}

.cta-band p {
  max-width: 38rem;
  margin-top: 12px;
}

.site-footer {
  padding: 28px 0 28px;
  background: #fff6ea;
  border-top: none;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 0;
}

.footer-base {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-base p {
  margin: 0;
}

.prose {
  max-width: 68ch;
}

.page-hero {
  padding-bottom: 12px;
}

.form,
.success {
  padding: 22px;
  display: grid;
  gap: 16px;
  background: #fffaf3;
}

.form[hidden],
.success[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d3c8b8;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note,
.success p {
  margin: 0;
  color: var(--ink-soft);
}

#request-summary {
  white-space: pre-wrap;
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--paper);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92rem;
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    align-items: center;
    gap: 8px;
  }

  .site-nav a {
    padding: 8px 12px;
  }

  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
  }

  .fact-row,
  .aim-grid,
  .step-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-grid.steps-four {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    align-items: start;
  }

  .offer-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
  }

  .grade-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .subject-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  body.nav-open {
    overflow: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
