/* Mobile first. Premium but warm: off-white, charcoal ink, navy as the main colour
   and cobalt as the second, serif headings, hairline borders and plenty of space.
   Every text pairing meets WCAG 2.2 AA (4.5:1), checked in site/tests:
   ink on bg 14.9:1, on sky 12.5:1; muted on sky 5.2:1, on cobalt-tint 5.6:1;
   accent on bg 10.5:1; white on accent 11.2:1, on cobalt 6.7:1; cobalt on cobalt-tint 5.7:1;
   on-accent on accent 8.2:1; on-dark and white on footer 11.8:1 and 17.4:1.
   Input borders (field) are 4.0:1 on white: they need 3:1. */
:root {
  --ink: #1c2330;
  --muted: #565e6c;
  --accent: #1d3a6e;
  --accent-dark: #142a50;
  --accent-tint: #e6ecf6;
  --on-accent: #d3ddef;
  --sky: #dbe6f5;
  --cobalt: #2659b0;
  --cobalt-dark: #1e4790;
  --cobalt-tint: #e5edfa;
  --bg: #faf8f4;
  --surface: #ffffff;
  --sand: #f1ede5;
  --line: #e4dfd6;
  --field: #7d817c;
  --error: #b3261e;
  --footer: #111a2c;
  --on-dark: #cdd5e3;
  --radius: 10px;
  --wrap: 68rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --shadow: 0 1px 2px rgb(31 36 33 / 0.04), 0 12px 32px rgb(31 36 33 / 0.06);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3 {
  line-height: 1.15;
  color: var(--ink);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  margin: 0.5rem 0 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin: 0 0 1.5rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

/* Header */
.site-header {
  background: var(--bg);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
}

/* Buttons: at least 44px tall for touch */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}

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

/* Secondary action: same size and tap target, less pull than the filled button. */
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--sand);
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
}

/* Hero */
/* Sky blue fading into the page, so the hero has colour and the text stays on light. */
.hero {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, var(--sky), var(--bg));
}

.hero .note {
  max-width: 38rem;
}

.eyebrow {
  font-weight: 600;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin: 0;
}

.lede {
  font-size: 1.2rem;
  max-width: 38rem;
  color: var(--muted);
}

.price-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px; /* not a pill: it wraps to several lines on phones */
  background: var(--surface);
}

.price-chip strong {
  color: var(--accent);
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: var(--cobalt-tint);
}

/* The price band: centred heading and white card on navy. */
.section.band {
  background: var(--accent);
}

.band h2 {
  text-align: center;
  color: #fff;
}

.band :focus-visible {
  outline-color: #fff;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}

.steps p,
.card p {
  margin: 0;
  color: var(--muted);
}

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

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--sky);
}

/* Trust cards alternate sky and cobalt tints. */
.grid .card:nth-child(even) {
  background: var(--cobalt-tint);
}

.price-card {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.price {
  font-size: 1.4rem;
  margin: 0;
}

.price strong {
  font-size: 2.25rem;
  color: var(--accent);
}

.price-sub {
  color: var(--muted);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
}

.price-table caption {
  text-align: left;
  color: var(--muted);
  padding-bottom: 0.5rem;
}

.price-table th,
.price-table td {
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-table tbody th {
  font-weight: 400;
}

/* Size and what fits, under each item name. */
.item-size {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* The monthly price is the list price, in navy; the prepaid one is the saving, in cobalt. */
.price-table td {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent);
}

.price-table td:nth-child(3) {
  color: var(--cobalt);
}

.offer {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: var(--cobalt-tint);
  color: var(--cobalt);
  font-weight: 600;
}

.offer:empty {
  display: none;
}

/* How paying works, one point per line under the price table. */
.deal {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.deal li {
  margin-bottom: 0.5rem;
}

.deal li::marker {
  color: var(--accent);
}

.deal-example {
  color: var(--muted);
}

/* The bulk discount tiers, nested under their bullet. */
.tiers {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  list-style: circle;
}

.tiers li {
  margin-bottom: 0.15rem;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.checks li {
  padding: 0.3rem 0 0.3rem 1.75rem;
  position: relative;
}

/* The tick is decoration; the list text carries the meaning. */
.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--cobalt);
  font-weight: 700;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  min-height: 2.75rem;
}

.faq-item summary::marker {
  color: var(--cobalt);
}

.faq-item[open] {
  border-left: 3px solid var(--cobalt);
  padding-left: 0.9rem;
}

.faq-item p {
  color: var(--muted);
}

.cta-band {
  background: var(--cobalt);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .btn {
  background: #fff;
  color: var(--cobalt);
}

.cta-band .btn:hover {
  background: var(--cobalt-tint);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: var(--footer);
  color: var(--on-dark);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--on-dark);
}

.site-footer strong {
  font-family: var(--serif);
  font-weight: 600;
  color: #fff;
}

/* Focus rings that stay visible on the dark footer and the navy band. */
.site-footer :focus-visible,
.cta-band :focus-visible {
  outline-color: #fff;
}

.fine {
  font-size: 0.85rem;
}

/* Single-column pages: forms, pay, thanks, legal */
.narrow .wrap {
  max-width: 40rem;
}

.progress {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.form {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label:not(.check),
.field > legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.4rem;
}

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

.opt {
  font-weight: 400;
  color: var(--muted);
}

.form input:not([type="radio"]):not([type="checkbox"]),
.form select {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--field);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.form input:focus-visible,
.form select:focus-visible {
  border-color: var(--accent);
}

/* Only flag a field after the student has tried it, never on page load. */
.form input:user-invalid,
.form select:user-invalid {
  border: 2px solid var(--error);
}

.choices {
  display: grid;
  gap: 0.5rem;
}

.choice,
.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

/* The picked answer stands out; the ticked radio still carries the meaning. */
.choice:has(input:checked),
.check:has(input:checked) {
  border: 2px solid var(--accent);
  background: var(--accent-tint);
}

.choice input,
.check input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--accent);
}

.choice-sub {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.pay-options {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pay-option {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Whichever option is first gets the emphasis. */
.pay-option:first-child {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.pay-option h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.pay-option p:last-child {
  margin-bottom: 0;
}

.consent {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.consent a {
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-wide {
  width: 100%;
}

/* A vertical list at every width; more specific than the .steps media rules. */
.steps.steps-list {
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

.steps.steps-list li {
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
}

.legal h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

/* Photos: the files keep the whole frame; each slot crops with aspect-ratio. */
.photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}

.photo-hero {
  aspect-ratio: 4 / 3;
  margin-top: 2rem;
}

.photo-wide {
  aspect-ratio: 16 / 9;
  object-position: 50% 60%;
  margin-bottom: 1.5rem;
}

.photo-tall {
  aspect-ratio: 1 / 1;
  object-position: 50% 55%;
}

.photo-landscape {
  aspect-ratio: 3 / 2;
}

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

@media (min-width: 48rem) {
  .btn-wide {
    width: auto;
    min-width: 18rem;
  }

  .hero {
    padding: 6rem 0 5.5rem;
  }

  .section {
    padding: 5rem 0;
  }

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

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

@media (min-width: 64rem) {
  .steps,
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps li {
    padding: 4.25rem 1.25rem 1.25rem;
  }

  /* Hero: text on the left, the photo on the right. */
  .hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .photo-hero {
    aspect-ratio: 4 / 5;
    margin-top: 0;
  }

  .photo-wide {
    aspect-ratio: 21 / 8;
  }

  /* Photo beside content; the trust cards go 2 by 2 next to it. */
  .split {
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
    align-items: stretch;
  }

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

  .photo-tall {
    aspect-ratio: auto;
    height: 100%;
  }

  .split-text {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
