/* The photo-first look: homepage, lessons, intensive courses, test routes and online course. Self-contained: these pages do not load styles.css. */
@font-face {
  font-family: "Overpass";
  src: url("assets/fonts/Overpass-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1a1d1f;
  --paper: #ffffff;
  --mist: #f3f4f2;
  --line: #daddd8;
  --muted: #565c59;
  --go: #0b6b43;
  --go-dark: #084f32;
  --night: #101315;
  --night-line: #3a4043;
  --night-muted: #c9cecb;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --header: 72px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }

a { color: var(--go); }
a:hover { color: var(--go-dark); }

:focus-visible { outline: 3px solid #2f9e6e; outline-offset: 3px; }

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

.container { width: 100%; margin: 0 auto; padding-inline: var(--gutter); max-width: 96rem; }
.page { position: relative; }

.skip-link {
  position: fixed;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.7rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

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

.site-notice, .site-promotion { padding: 0.65rem 1rem; text-align: center; font-weight: 700; }
.site-notice { background: #e6f1f8; color: #17364d; }
.site-notice[data-tone="success"] { background: #dff4e8; color: #145d3b; }
.site-notice[data-tone="warning"] { background: #fff0d5; color: #7a4500; }
.site-promotion { background: var(--night); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  min-height: 3.25rem;
  min-width: 15rem;
  padding: 0.5rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.btn:active { transform: scale(0.98); }
.btn-go { background: var(--go); color: #fff; }
.btn-go:hover { background: var(--go-dark); color: #fff; }
.btn-light { background: rgba(255, 255, 255, 0.94); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line-light { border-color: #fff; color: #fff; }
.btn-line-light:hover { background: #fff; color: var(--ink); }
.service-cta-limited { opacity: 0.55; pointer-events: none; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* Header: sits over the photo, then pins to the top once you scroll */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  color: #fff;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 2rem;
  min-height: var(--header);
  padding-block: 0.6rem;
}

.brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand-logo { width: auto; height: 44px; }

.nav ul { display: flex; flex-wrap: wrap; gap: 0 1.9rem; }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover { color: inherit; text-decoration: underline; text-underline-offset: 0.3em; }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0 0 1rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.topbar.is-stuck {
  position: fixed;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  animation: header-drop 0.28s ease both;
}

.topbar.is-stuck .brand-logo { filter: invert(1); }
.topbar.is-stuck.nav-open { background: #fff; }

@keyframes header-drop {
  from { transform: translateY(-100%); }
  to { transform: none; }
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; padding: 0.25rem 0 1rem; }
  .topbar.nav-open .nav { display: block; }
  .topbar.nav-open:not(.is-stuck) { background: var(--night); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .topbar.is-stuck .nav li + li { border-top-color: var(--line); }
  .nav a { display: flex; min-height: 3.25rem; font-size: 1.15rem; }
}

/* Top photo */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 56rem);
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img { object-fit: cover; object-position: 50% 30%; }

.hero::before, .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.hero::before { top: 0; height: 9rem; background: linear-gradient(to bottom, rgba(12, 14, 15, 0.6), rgba(12, 14, 15, 0)); }
.hero::after { bottom: 0; height: 72%; background: linear-gradient(to top, rgba(12, 14, 15, 0.93) 0%, rgba(12, 14, 15, 0.76) 45%, rgba(12, 14, 15, 0) 100%); }

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: calc(var(--header) + 3rem);
  padding-bottom: 1.75rem;
}

.hero-line { max-width: 34rem; color: #f1f3f2; }
.hero-line strong { font-weight: 700; color: #fff; }
.hero .actions { margin-top: 0.5rem; }
.hero-note { font-size: 0.9rem; color: #d8dcda; }

@media (max-width: 767px) {
  .hero .actions { flex-direction: column; }
  .hero .btn { width: 100%; }
}

@media (min-width: 768px) {
  .hero { min-height: min(100svh, 52rem); }
  .hero-media img { object-position: 62% 45%; }
  .hero::after { top: 0; bottom: 0; right: 30%; height: auto; background: linear-gradient(to right, rgba(12, 14, 15, 0.88) 0%, rgba(12, 14, 15, 0.62) 45%, rgba(12, 14, 15, 0) 100%); }
  .hero-copy { gap: 1.1rem; padding-bottom: 5.5rem; }
  .hero-copy h1 { max-width: 9.5em; }
  .hero-line { font-size: 1.2rem; }
}

/* Reviews and pass photos */
.proof { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.proof h2 { margin-top: 0.75rem; }

.stars { display: flex; gap: 0.25rem; }
.stars svg { width: 1.45rem; height: 1.45rem; fill: var(--ink); }

.pass-strip {
  display: flex;
  gap: 0.65rem;
  margin: 1.5rem 0;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.pass-strip::-webkit-scrollbar { display: none; }
.pass-strip li { flex: none; width: min(62vw, 17rem); scroll-snap-align: start; }
.pass-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--mist); }

.review-quote p {
  display: -webkit-box;
  max-width: 44rem;
  overflow: hidden;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.review-quote p::before { content: "\201C"; }
.review-quote p::after { content: "\201D"; }
.review-meta { margin-top: 0.75rem; }
.review-meta strong { font-weight: 700; }
.review-source { display: block; font-size: 0.95rem; color: var(--muted); }

.review-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1rem; }

.review-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.review-nav button:hover { background: var(--ink); color: #fff; }
.review-nav button:active { transform: scale(0.94); }
.review-nav button:disabled { opacity: 0.35; pointer-events: none; }
.review-nav svg, .choice-list svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.review-nav .text-link { margin-left: 0.6rem; }

@media (min-width: 900px) {
  .pass-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; max-width: 96rem; margin-inline: auto; }
  .pass-strip li { width: auto; }
}

/* Intensive courses and the online course */
.duo { display: grid; gap: 3.5rem; padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.tile-photo { width: 100%; height: min(110vw, 30rem); object-fit: cover; object-position: 50% 32%; }
.tile-frame { display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; background: var(--mist); }
.tile-frame img { border-radius: 4px; }
.tile-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.75rem var(--gutter) 0; }
.tile-copy p { max-width: 30rem; color: var(--muted); }
.tile-copy .btn { margin-top: 0.5rem; }

@media (max-width: 767px) {
  .tile-copy .btn, .cost-tool .btn, .ask .btn { width: 100%; }
}

@media (min-width: 768px) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 96rem; margin: 0 auto; padding-inline: var(--gutter); }
  .tile-photo, .tile-frame { height: 30rem; border-radius: 4px; }
  .tile-frame { padding: 2rem; }
  .tile-frame img { max-height: 100%; width: auto; }
  .tile-copy { padding-inline: 0; }
}

/* Test routes */
.routes { display: grid; background: var(--night); color: #fff; }
.routes-map { width: 100%; height: 100%; min-height: 17rem; max-height: 34rem; object-fit: cover; }
.routes-copy { display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; padding: 2rem var(--gutter) 3rem; }
.routes-copy > p { color: var(--night-muted); }

.choice-list { margin-top: 0.75rem; border-top: 1px solid var(--night-line); }

.choice-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--night-line);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.choice-list a svg { flex: none; transition: transform 0.18s ease; }
.choice-list a:hover svg { transform: translateX(5px); }
.choice-list small { display: block; font-size: 0.9rem; font-weight: 400; color: var(--night-muted); }

@media (min-width: 900px) {
  .routes { grid-template-columns: 1.2fr 1fr; }
  .routes-map { max-height: none; }
  .routes-copy { padding: 4rem var(--gutter) 4rem 4rem; }
}

/* Cost tool */
.cost { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cost-grid { display: grid; gap: 1.75rem; }
.cost-tool { display: flex; flex-direction: column; gap: 1.1rem; }

.stepper { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

.stepper button {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.stepper button:hover { background: var(--ink); color: #fff; }
.stepper button:active { transform: scale(0.92); }
.stepper button:disabled { opacity: 0.3; pointer-events: none; }
.stepper-value { display: flex; align-items: baseline; gap: 0.5rem; color: var(--muted); }
.stepper-number { color: var(--ink); font-size: clamp(3.2rem, 6vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cost-note { font-size: 0.9rem; color: var(--muted); }
.cost-more { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

@media (min-width: 900px) {
  .cost-grid { grid-template-columns: 1.2fr minmax(0, 28rem); align-items: center; gap: 4rem; }
}

/* Meet Josh */
.meet { display: grid; background: var(--mist); }
.meet-photo { width: 100%; height: 100%; min-height: 20rem; max-height: 34rem; object-fit: cover; object-position: 32% 40%; }
.meet-copy { display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; padding: 2rem var(--gutter) 3rem; }
.meet-copy > p { color: var(--muted); }
.meet-links { display: flex; flex-direction: column; align-items: flex-start; }

@media (min-width: 900px) {
  .meet { grid-template-columns: 1.2fr 1fr; }
  .meet-photo { max-height: none; height: 34rem; }
  .meet-copy { padding: 4rem var(--gutter) 4rem 4rem; }
}

/* Contact */
.ask { padding: clamp(3.5rem, 6vw, 5.5rem) 0; background: var(--night); color: #fff; }
.ask-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.ask .actions { flex: 1 1 18rem; justify-content: flex-end; }

@media (max-width: 767px) {
  .ask .actions { flex-direction: column; }
}

/* Phone button that follows you down the page */
.sticky-cta {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 25;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border-radius: 6px;
  background: var(--go);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(16, 19, 21, 0.28);
  visibility: hidden;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.3s;
}

.sticky-cta:hover { color: #fff; background: var(--go-dark); }

.sticky-cta.is-on {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

@media (max-width: 767px) {
  .sticky-cta { display: flex; }
}

/* Shared footer (same markup as every other page) */
.footer.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2.75rem;
  border-top: 1px solid var(--night-line);
  background: var(--night);
  color: var(--night-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 2.25rem 3rem; }
.site-footer p { margin: 0 0 0.65rem; }
.site-footer .site-footer-title { color: #fff; font-size: 1rem; font-weight: 700; }
.site-footer a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.site-footer a:hover { color: #9fe3c2; }
.site-footer-links { columns: 2; column-gap: 2rem; }
.site-footer-links li { break-inside: avoid; }
.site-footer-links a { display: inline-block; padding: 0.5rem 0; text-decoration: none; white-space: nowrap; }
.site-footer-links a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .site-footer-grid { grid-template-columns: 1fr; }
  .footer.site-footer { padding-bottom: 6rem; }
}

/* ---------- Inner pages ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn.primary { background: var(--go); color: #fff; }
.btn.primary:hover { background: var(--go-dark); color: #fff; }
.btn.is-loading, .btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

h3 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--mist { background: var(--mist); }
.section--night { background: var(--night); color: #fff; }
.section--night a:not(.btn) { color: #fff; }
.narrow { max-width: 56rem; }
.lede { max-width: 40rem; margin-top: 0.9rem; color: var(--muted); font-size: 1.1rem; }
.section--night .lede, .section--night > .container > p { color: var(--night-muted); }
.small-note { max-width: 44rem; margin-top: 1.5rem; font-size: 0.95rem; color: var(--muted); }

.service-availability:not([hidden]) {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  background: #e3f1ea;
  color: #0a4f33;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero .service-availability:not([hidden]) { background: rgba(255, 255, 255, 0.92); }
/* Only show a status when it is news: full, paused or a waiting list. */
.service-availability[data-status="available"] { display: none !important; }

/* Shorter photo header for inner pages */
.hero--page { min-height: min(88svh, 50rem); }

/* On phones, selfie photos sit above the words so no face is covered */
@media (max-width: 767px) {
  .hero--stack { display: block; min-height: 0; }
  .hero--stack::after { display: none; }
  .hero--stack .hero-media { position: relative; display: block; height: min(64svh, 34rem); overflow: hidden; }
  .hero--stack .hero-media img { object-position: 50% 30%; }
  .hero--stack .hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: linear-gradient(to top, var(--night), rgba(16, 19, 21, 0)); }
  .hero--stack .hero-copy { padding-top: 0.25rem; padding-bottom: 2.25rem; }
}

@media (min-width: 768px) {
  .hero--page { min-height: min(92svh, 52rem); }
  .hero--lessons .hero-media img { object-position: 50% 30%; }
}

/* Header with the photo beside the words on wide screens */
@media (min-width: 900px) {
  .hero--split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: end;
    min-height: min(100svh, 50rem);
  }

  .hero--split .hero-media { position: relative; inset: auto; grid-column: 2; grid-row: 1; align-self: stretch; }
  .hero--split::after { display: none; }
  .hero--split .hero-media img { object-position: 50% 35%; }
  .hero--split .hero-copy { grid-column: 1; grid-row: 1; max-width: 46rem; margin: 0; padding-bottom: 5rem; }
}

/* Header that carries the test-centre choices */
.hero--routes .hero-copy { gap: 0.75rem; }
.hero--routes .choice-list { max-width: 36rem; margin-top: 0.5rem; }
.hero--routes .hero-media img { object-position: 50% 50%; }

@media (min-width: 768px) {
  .hero--routes::after { right: 15%; }
}

/* Header with a course page beside the words */
.hero--course { align-items: center; min-height: auto; }
.hero--course::after { display: none; }
.course-hero-grid { position: relative; z-index: 2; display: grid; gap: 2rem; padding-top: calc(var(--header) + 2.5rem); padding-bottom: 3rem; }
.hero--course .hero-copy { padding: 0; }
.course-hero-figure { margin: 0; padding: 0.75rem; border-radius: 6px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.course-hero-figure img { width: 100%; border-radius: 3px; }

@media (min-width: 900px) {
  .course-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 4rem; padding-top: calc(var(--header) + 4rem); padding-bottom: 5rem; }
}

.hero-note a { color: #fff; text-underline-offset: 0.2em; }
.hero-note a:hover { color: #9fe3c2; }

/* A short list of facts: label on the left, answer on the right */
.facts { margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 0.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; font-size: 1.15rem; line-height: 1.4; }

@media (min-width: 700px) {
  .facts > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; padding: 1.15rem 0; }
  .facts dt { font-size: 1.05rem; padding-top: 0.1rem; }
}

/* Choice rows on a light background */
.choice-list--light { border-top-color: var(--line); }
.choice-list--light a { border-bottom-color: var(--line); color: var(--ink); }
.choice-list--light a:hover { color: var(--go-dark); }
.choice-list--light small { color: var(--muted); }

/* Intensive course hours and prices */
.price-list { margin-top: 2rem; border-top: 1px solid var(--ink); }

.price-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.5rem;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.price-list a:hover { color: var(--go-dark); }
.price-hours { font-size: 1.3rem; font-weight: 600; }
.price-amount { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.price-list svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s ease; }
.price-list a:hover svg { transform: translateX(5px); }
.price-list .price-soft .price-amount { font-size: 1.3rem; color: var(--go); }

/* Photo beside a short block of words */
.split { display: grid; background: var(--mist); }
.split--night { background: var(--night); color: #fff; }
.split-photo { width: 100%; height: 100%; min-height: 20rem; max-height: 34rem; object-fit: cover; object-position: 50% 35%; }
.split-copy { display: flex; flex-direction: column; justify-content: center; gap: 0.85rem; padding: 2.25rem var(--gutter) 3rem; }
.split-copy > p { max-width: 34rem; color: var(--muted); font-size: 1.1rem; }
.split--night .split-copy > p { color: var(--night-muted); }
.split-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.1fr; }
  .split-photo { max-height: none; height: 36rem; }
  .split-copy { padding: 4rem var(--gutter) 4rem 4.5rem; }
}

/* Questions that open and close */
.qa { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--go); }
.qa details[open] summary::after { content: "\2212"; }
.qa details > p { max-width: 44rem; padding: 0 0 1.25rem; color: var(--muted); }

/* Phone screenshots of the Driving Test Expert app */
.app-strip { display: flex; justify-content: center; gap: clamp(0.6rem, 2vw, 1.5rem); margin-top: 2.5rem; }
.app-strip li { flex: 0 1 13rem; }
.app-strip img { width: 100%; border-radius: 18px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.app-strip li:nth-child(2) { transform: translateY(-1.25rem); }

/* Pages from the online course */
.course-strip {
  display: flex;
  gap: 0.75rem;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.course-strip::-webkit-scrollbar { display: none; }
.course-strip li { flex: none; width: min(78vw, 22rem); scroll-snap-align: start; }
.course-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }

@media (min-width: 900px) {
  .course-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 96rem; margin: 0 auto; overflow: visible; }
  .course-strip li { width: auto; }
}

.text-cols { display: grid; gap: 1.75rem; margin-top: 2rem; }
.text-cols > div { padding-top: 1rem; border-top: 1px solid var(--ink); }
.text-cols p { margin-top: 0.5rem; color: var(--muted); }

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

.syllabus { display: grid; margin: 2rem 0 0; padding-left: 2.2rem; counter-reset: none; }
.syllabus li { padding: 1rem 0 1rem 0.4rem; border-top: 1px solid var(--line); }
.syllabus li::marker { color: var(--go); font-weight: 700; }
.syllabus p { margin-top: 0.3rem; color: var(--muted); }

@media (min-width: 768px) {
  .syllabus { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem; }
}

.preview-grid { display: grid; gap: 2rem; }
.preview-figure { margin: 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 6px; }
.preview-figure img { width: 100%; border-radius: 3px; }
.preview-copy > p { margin-top: 0.9rem; max-width: 36rem; color: var(--muted); }
.sample { margin: 1.5rem 0; border-top: 1px solid var(--line); }
.sample > div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.sample dt { font-weight: 700; }
.sample dd { margin: 0.25rem 0 0; color: var(--muted); }

@media (min-width: 900px) {
  .preview-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 4rem; }
}

/* Buy the course */
.buy { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--night); color: #fff; text-align: center; }
.buy .container { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.buy h2 { max-width: 16em; }
.buy-price { color: var(--night-muted); font-size: 1.15rem; }
.buy-price strong { color: #fff; font-size: 1.6rem; }
.buy .paywall-status { min-height: 1.5em; color: #ffd2c2; }
.buy-note { color: var(--night-muted); }
.buy-note a { color: #fff; }

@media (max-width: 767px) {
  .buy .btn { width: 100%; }
}

/* Access code for people who have already bought */
.access { margin-top: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.access summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; font-size: 1.1rem; font-weight: 600; list-style: none; cursor: pointer; }
.access summary::-webkit-details-marker { display: none; }
.access summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--go); }
.access[open] summary::after { content: "\2212"; }
.access .muted { color: var(--muted); }
.paywall-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin: 1rem 0; }
.paywall-label { flex: 1 0 100%; font-weight: 600; }
.paywall-input { flex: 1 1 14rem; min-height: 3.25rem; padding: 0 1rem; border: 1.5px solid var(--ink); border-radius: 6px; font: inherit; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }
.paywall-input:focus-visible { outline: 3px solid #2f9e6e; outline-offset: 2px; }
.paywall-form .btn { min-width: 10rem; }
.paywall-status { font-weight: 600; }
.access .paywall-status { padding-bottom: 1.25rem; }
.access .paywall-status .btn { margin-top: 0.5rem; }
.paywall-status:empty { display: none; }
#access-code-section p a, .preview-copy a:not(.btn), .section p a:not(.btn) { text-underline-offset: 0.2em; }

/* Page-specific spacing */
.section--head { padding-bottom: 2rem; }
.duo--first { padding-top: clamp(3.5rem, 7vw, 6rem); }
.tile-photo--map { height: auto; aspect-ratio: 4 / 3; object-position: 50% 50%; }
.app-section { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.app-section .app-strip { padding-inline: var(--gutter); }
.app-actions { margin-top: 1.5rem; align-items: center; gap: 0.75rem 1.5rem; }

@media (min-width: 768px) {
  .tile-photo--map { height: auto; }
}

@media (max-width: 767px) {
  .app-actions .btn { width: 100%; }
}

/* Things appear as you scroll to them. Only when the script is running. */
.motion .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .app-strip li, .motion .pass-strip li { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .pass-strip.is-in li, .motion .app-strip.is-in li { opacity: 1; transform: none; }
.motion .app-strip.is-in li:nth-child(2) { transform: translateY(-1.25rem); transition-delay: 0.1s; }
.motion .app-strip.is-in li:nth-child(3) { transition-delay: 0.2s; }
.motion .pass-strip.is-in li:nth-child(2) { transition-delay: 0.07s; }
.motion .pass-strip.is-in li:nth-child(3) { transition-delay: 0.14s; }
.motion .pass-strip.is-in li:nth-child(4) { transition-delay: 0.21s; }
.motion .pass-strip.is-in li:nth-child(5) { transition-delay: 0.28s; }
.motion .pass-strip.is-in li:nth-child(6) { transition-delay: 0.35s; }

.hero-media img { animation: hero-settle 7s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero-copy > * { animation: hero-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.3s; }

@keyframes hero-settle {
  from { transform: scale(1.07); }
  to { transform: none; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion .reveal, .motion .pass-strip li, .motion .app-strip li { opacity: 1; transition: none; }
  .motion .reveal, .motion .pass-strip li, .motion .app-strip li:not(:nth-child(2)) { transform: none; }
  .motion .app-strip li:nth-child(2) { transform: translateY(-1.25rem); }
  .hero-media img, .hero-copy > *, .topbar.is-stuck { animation: none; }
  .btn, .sticky-cta, .choice-list a svg, .price-list svg, .stepper button, .review-nav button { transition: none; }
}
