:root {
  --sage: #9eb9a5;
  --sage-dark: #456957;
  --sage-soft: #edf5ef;
  --coral: #df4e73;
  --coral-dark: #be345b;
  --ink: #1f2523;
  --muted: #66716c;
  --line: #dbe5de;
  --paper: #ffffff;
  --warm: #fff8ed;
  --shadow: 0 20px 60px rgba(31, 37, 35, 0.14);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

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

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 229, 222, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: min(230px, 52vw);
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper);
  background: var(--sage-dark);
  border-radius: 50%;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:not(.button):hover {
  color: var(--sage-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--paper);
  background: var(--coral);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(223, 78, 115, 0.22);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--sage-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  color: var(--paper);
  background: var(--sage-dark);
}

.button-dark {
  background: var(--ink);
  box-shadow: none;
  white-space: nowrap;
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: clamp(52px, 8vw, 100px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(237, 245, 239, 0.97) 0%, rgba(237, 245, 239, 0.88) 42%, rgba(237, 245, 239, 0.1) 78%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(237, 245, 239, 0.98) 0%, rgba(237, 245, 239, 0.82) 38%, rgba(255, 255, 255, 0.1) 72%);
}

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

.hero-content {
  width: min(650px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: #3f4c47;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 700px;
  margin: 36px 0 0;
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.hero-stats dt {
  font-size: 1.1rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 28px clamp(20px, 4vw, 48px);
  background: var(--paper);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 6px;
  color: var(--sage-dark);
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

.section-muted {
  background: var(--sage-soft);
}

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

.section-heading h2,
.lead-copy h2,
.tutor-band h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.lead-copy p,
.tutor-band p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.subject-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.subject-grid article,
.proof-grid article,
.steps article {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.subject-grid article {
  min-height: 230px;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--paper);
  background: var(--sage-dark);
  border-radius: 50%;
  font-weight: 800;
}

.subject-grid h3,
.proof-grid h3,
.steps h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.subject-grid p,
.proof-grid p,
.steps p {
  color: var(--muted);
  line-height: 1.65;
}

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

.steps span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--paper);
  background: var(--coral);
  border-radius: 50%;
  font-weight: 800;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1.16fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.lead-copy {
  position: sticky;
  top: 110px;
}

.contact-card {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  padding: 24px;
  background: var(--warm);
  border: 1px solid #f2dec2;
  border-radius: 8px;
}

.contact-card a {
  color: var(--sage-dark);
  font-weight: 800;
}

.lead-form {
  padding: clamp(22px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--muted);
  font-weight: 800;
}

.form-progress div {
  height: 8px;
  overflow: hidden;
  background: var(--sage-soft);
  border-radius: 999px;
}

.form-progress span span,
.form-progress div span {
  display: block;
}

.form-progress div span {
  width: 25%;
  height: 100%;
  background: var(--sage-dark);
  border-radius: inherit;
  transition: width 220ms ease;
}

.form-step {
  display: none;
  min-height: 276px;
  padding: 0;
  margin: 0;
  border: 0;
}

.form-step.is-active {
  display: block;
}

legend {
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

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

.choice-grid label {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--sage-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.choice-grid input {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  accent-color: var(--coral);
}

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

.field-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.full-field {
  grid-column: 1 / -1;
}

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 4px rgba(69, 105, 87, 0.1);
}

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

.text-button {
  min-height: 48px;
  padding: 0 12px;
  color: var(--sage-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.testimonials blockquote {
  margin: 0;
  padding: clamp(42px, 6vw, 76px);
  background: var(--ink);
}

.testimonials p {
  color: var(--paper);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
}

.testimonials cite {
  color: #b7c9bd;
  font-style: normal;
  font-weight: 700;
}

.tutor-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--paper);
  background: var(--sage-dark);
}

.tutor-band .eyebrow,
.tutor-band p {
  color: #dbe9df;
}

.tutor-band div {
  max-width: 780px;
}

.faq {
  background: var(--warm);
}

details {
  max-width: 900px;
  margin: 0 auto 12px;
  background: var(--paper);
  border: 1px solid #f0dfc5;
  border-radius: 8px;
}

summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 800;
}

details p {
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 56px clamp(20px, 5vw, 72px) 28px;
  color: #dbe4df;
  background: #2f3734;
}

.site-footer p {
  max-width: 360px;
  color: #b9c5bf;
  line-height: 1.65;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--paper);
  font-size: 1rem;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: #dbe4df;
}

.footer-brand {
  margin-bottom: 18px;
  color: var(--paper);
}

.footer-logo {
  padding: 8px 10px;
  background: var(--paper);
  border-radius: 8px;
}

.footer-brand small {
  color: #c4d2cb;
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--sage-soft);
}

.thank-you-panel {
  width: min(760px, 100%);
  padding: clamp(30px, 6vw, 64px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thank-you-panel .brand-logo {
  margin-bottom: 34px;
}

.thank-you-panel h1 {
  max-width: 10ch;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}

.thank-you-panel p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  h1 {
    max-width: 11ch;
  }

  .trust-strip,
  .subject-grid,
  .proof-grid,
  .steps,
  .lead-section,
  .testimonials,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .lead-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .site-nav {
    top: 68px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: min(190px, 58vw);
    height: 44px;
  }

  .hero {
    padding: 54px 20px 64px;
    background: var(--sage-soft);
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 2;
    z-index: 0;
    margin: 36px -20px -64px;
    aspect-ratio: 4 / 3;
  }

  .hero-media::after {
    background: linear-gradient(180deg, var(--sage-soft), rgba(237, 245, 239, 0.1));
  }

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

  h1 {
    max-width: 100%;
    font-size: 3rem;
    line-height: 1;
  }

  .hero-stats,
  .choice-grid-compact,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 20px;
  }

  .section-heading {
    text-align: left;
  }

  .lead-form {
    margin: 0 -4px;
    padding: 22px;
  }

  legend {
    font-size: 1.7rem;
  }

  .tutor-band {
    align-items: flex-start;
    flex-direction: column;
  }

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