/* ═══════════════════════════════════════════════════════════
   JK SPEEDY DRIVING SCHOOL — K72-inspired, softened
   Black canvas · white Inter 300/400 · green accents (#68A150)
   Pills are the only rounded shape; sections blend, no hard rules.
   ═══════════════════════════════════════════════════════════ */

/* Tanker (Fontshare, FFL license in assets/fonts/) — display face for
   the hero and every header; Inter stays on body/UI text.
   woff2 only: the preview portal's zip whitelist rejects .woff/.ttf
   (they stay in the repo as archival copies, unreferenced). */
@font-face {
  font-family: 'Tanker';
  src: url('fonts/Tanker-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #4d4d4d;
  --green: #68a150; /* sampled from the JK Speedy logo */
  --font-display: 'Tanker', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --hairline: rgba(255, 255, 255, 0.85);
  --hairline-soft: rgba(255, 255, 255, 0.14);
  --muted: rgba(255, 255, 255, 0.65);
  --muted-soft: rgba(255, 255, 255, 0.5);
  --pad-x: clamp(20px, 3.5vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3, p, figure, blockquote { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--white);
  color: var(--black);
  padding: 10px 28px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 400;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ── Type scale ─────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 10.5vw, 8.5625rem); /* 52 → 137px */
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5.25rem); /* 40 → 84px */
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ── Pills — the only interactive shape ─────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--white);
  border-radius: 9999px;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 28px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.pill:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.pill-lg {
  font-size: 18px;
  padding: 13px 34px;
}

/* hero conversion CTAs — solid fills so they read over photography */
.pill-book {
  background: var(--green);
  border-color: var(--green);
  color: #0b0e0b;
  font-weight: 500;
}
.pill-book:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.pill-call {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
  font-weight: 500;
}
.pill-call:hover {
  background: var(--green);
  border-color: var(--green);
  color: #0b0e0b;
}

/* mobile-only sticky call/book bar */
.sticky-cta { display: none; }

@media (max-width: 860px) {
  .sticky-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .sticky-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
  }

  .sticky-call {
    background: #101310;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .sticky-book {
    background: var(--green);
    color: #0b0e0b;
  }

  /* clearance so the bar never covers the footer's last lines
     (footer.footer outranks the base .footer padding rule below) */
  footer.footer { padding-bottom: 104px; }
}

/* ── Nav ────────────────────────────────────────────────── */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad-x);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}

.nav-brand img {
  display: block;
  height: 192px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 13px 24px;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.22s ease;
}
.nav-burger:hover span { background: var(--black); }

/* full-screen mobile menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  display: flex;
  flex-direction: column;
  padding: 20px var(--pad-x) 48px;
  overflow-y: auto;
}
.menu-overlay[hidden] { display: none; }

.menu-close { align-self: flex-end; }

.menu-links {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}
.menu-links a {
  font-size: 35px;
  font-weight: 300;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.menu-links a:first-child { border-top: 1px solid var(--hairline-soft); }
.menu-links a:hover { color: var(--green); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
}
@supports (min-height: 100svh) {
  .hero { min-height: 100svh; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* blends the photo into the black section below */
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 110px var(--pad-x) 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(460px, 44vw, 640px);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  width: 100%;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-headline {
  font-size: clamp(2.75rem, 6.3vw, 5.75rem); /* 44 → 92px */
  color: var(--white);
}

.hero-copy {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 340px;
}

.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* the green underline — brand accent on one word */
.uline-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.uline {
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.16em;
  overflow: visible;
  pointer-events: none;
}
.uline path {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: uline-draw 0.9s ease 0.6s forwards;
}
@keyframes uline-draw {
  to { stroke-dashoffset: 0; }
}

/* ── Quote box ──────────────────────────────────────────── */

.quote-box {
  width: 100%;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.66);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  scroll-margin-top: 100px;
}

.quote-title {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  text-transform: uppercase;
}

.quote-sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: -14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  color: var(--white);
  font-family: inherit;
  font-size: 19px;
  font-weight: 300;
  padding: 10px 0;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--green);
}
.field input.field-error,
.field select.field-error {
  border-bottom-color: var(--white);
  border-bottom-width: 2px;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 26px;
  cursor: pointer;
}
.field select option {
  background: var(--black);
  color: var(--white);
}

.pill-submit {
  width: 100%;
  font-size: 18px;
  padding: 18px;
  margin-top: 4px;
}

.quote-status {
  font-size: 14px;
  color: var(--muted);
  min-height: 1.2em;
}
.quote-status a {
  color: var(--white);
}

.quote-alt {
  font-size: 14px;
  color: var(--muted);
}
.quote-alt a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.quote-alt a:hover { border-bottom-color: var(--green); color: var(--green); }

/* ── Flat-black sections: anti-dither treatment ─────────────
   A perfectly flat dark fill triggers a diagonal spatial-dither
   artifact on some display pipelines. Every flat black section
   gets a barely-visible vertical gradient + low-opacity noise. */

.dark-flat {
  position: relative;
  background: linear-gradient(180deg, #070707 0%, #000000 100%);
}

.dark-flat .noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.032;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.dark-flat > :not(.noise) { position: relative; }

/* faint dashed road-marking curves — background depth for
   the pricing + reviews sections; panels sit on top of them */
.dark-flat > .bg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bg-lines-flip { transform: scaleX(-1); }

/* near-black photographic section backgrounds — fade out at the
   section edges so everything still blends into the page */
.dark-flat > .section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

/* the lessons road needs to actually read as a road */
#lessons > .section-bg {
  opacity: 0.65;
  filter: brightness(1.2);
}

/* ── Marquee (quiet, borderless) ────────────────────────── */

.marquee {
  overflow: hidden;
  padding: 26px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-run {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.35);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── Section shared ─────────────────────────────────────── */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* numbered green kicker — the page's wayfinding layer */
.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.section-intro {
  max-width: 340px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted-soft);
}

/* ── Services & Lessons rows (dark) ─────────────────────── */

.rows-section {
  padding: 88px var(--pad-x);
}

/* ── Service tiles — photos carry the section, not text ── */

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

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  grid-column: span 2;
}

.tile-lg { grid-column: span 3; }

.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  opacity: 0.85;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.tile:hover img,
.tile:focus-visible img {
  transform: scale(1.05);
  opacity: 1;
}

/* legibility scrim over the lower part of each photo */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

.tile-num {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
}

.tile-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tile-name {
  font-size: clamp(1.125rem, 1.7vw, 1.5rem); /* 18 → 24px */
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.18s ease;
}

.tile:hover .tile-name,
.tile:focus-visible .tile-name {
  color: var(--green);
}

.tile-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}

/* ── Pricing: three package cards + a slim add-on bar ────── */

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #171b18; /* lifted surface — cards must pop off the black */
  padding: 30px 30px 26px;
}

/* featured tier: green-tinted surface + green border — set apart,
   not a green slab */
.price-card.featured {
  background: #1b2119;
  border-color: var(--green);
}

.feat-tag {
  position: absolute;
  top: -9px;
  left: 26px;
  background: var(--black);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--green);
}

.pc-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem); /* 24 → 32px */
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.pc-meta {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted-soft);
  margin-top: 8px;
}

.pc-price {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 3.8vw, 3.5rem); /* 44 → 56px */
  line-height: 1;
  color: var(--green);
  margin-top: 20px;
}

.pc-per {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted-soft);
  margin-top: 6px;
  min-height: 1em;
}

.pkg-includes {
  list-style: none;
  margin: 18px 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pkg-includes li {
  position: relative;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  padding-left: 22px;
}

.pkg-includes li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
}

.price-card .pill {
  margin-top: auto;
  width: 100%;
}

/* Road Test Day is a different product — a slim add-on, not a tier */
.addon-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--green);
  background: #171b18;
  padding: 24px 30px;
  width: fit-content; /* the box ends right after GET QUOTE — no trailing void */
  max-width: 100%;
}

.addon-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 6px;
}

.addon-name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.9vw, 1.75rem); /* 22 → 28px */
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.addon-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 8px;
  max-width: 420px;
}

.addon-right {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: clamp(28px, 4vw, 56px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.addon-price {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem); /* 28 → 36px */
  line-height: 1;
  color: var(--green);
}

/* ── Reviews ────────────────────────────────────────────── */

.reviews {
  padding: 88px var(--pad-x);
}

/* ── Reviews: compact rating lockup + three tight cards ──── */

.rating-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rating-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4vw, 3.75rem); /* 44 → 60px */
  line-height: 0.9;
  color: var(--green);
}

.rating-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-stars {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 4px;
}

.rating-caption {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--muted);
}

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

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(23, 27, 24, 0.95);
  padding: 28px;
  transition: border-color 0.2s ease;
}

.review-card:hover {
  border-color: rgba(104, 161, 80, 0.65);
}

.review-card blockquote {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.review-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(104, 161, 80, 0.16);
  border: 1px solid rgba(104, 161, 80, 0.4);
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}

.review-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--white);
}

.review-meta {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--muted-soft);
  margin-top: 3px;
}

/* ── Stats ──────────────────────────────────────────────── */

.stats {
  padding: 88px var(--pad-x);
}

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 26px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.875rem); /* 48 → 94px */
  font-weight: 400;
  line-height: 0.9;
}

.stat-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

/* ── CTA (blended top & bottom) ─────────────────────────── */

.cta {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  z-index: 0;
}

/* photo emerges from black above and returns to black below */
.cta-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 68%, #000 100%);
  z-index: 0;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding: 140px var(--pad-x);
}

.cta-copy {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 340px;
}

/* ── Footer (no top rule — blends with the CTA) ─────────── */

.footer {
  padding: 56px var(--pad-x) 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand img {
  display: block;
  width: 96px;
  height: auto;
  margin-bottom: 18px;
}

.footer-blurb {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  max-width: 260px;
}

.footer-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-soft);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  margin: 0 0 10px;
}
.footer-col a:hover { color: var(--green); }

.footer-legal {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-soft);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
}

/* ── Responsive ─────────────────────────────────────────── */

/* shorter laptop screens: tighten the quote box + headline
   so the whole hero lands inside the first viewport */
@media (min-width: 1025px) and (max-height: 840px) {
  .nav-brand img { height: 140px; } /* keep the logo clear of centered hero content */
  .hero-headline { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
  .hero-inner { padding-top: 170px; padding-bottom: 44px; }
  .quote-box { padding: 26px; gap: 16px; }
  .quote-sub { display: none; }
  .field input,
  .field select { font-size: 17px; padding: 8px 0; }
  .pill-submit { font-size: 16px; padding: 14px; }
}

@media (max-width: 1024px) {
  .nav-brand img { height: 120px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  /* hero content starts BELOW the nav logo — no overlap */
  .hero-inner { padding-top: 164px; padding-bottom: 48px; }
  .hero-headline { font-size: clamp(2.75rem, 9vw, 5.75rem); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-brand img { height: 72px; }
  .hero-inner { padding-top: 120px; }

  .tile,
  .tile-lg { grid-column: 1 / -1; }

  .price-cards { grid-template-columns: 1fr; gap: 24px; }
  .review-cards { grid-template-columns: 1fr; gap: 16px; }

  .addon-bar {
    width: 100%; /* full-width again on mobile where everything stacks */
  }
  .addon-bar .addon-right {
    width: 100%;
    justify-content: space-between;
    border-left: 0;
    padding-left: 0;
  }

  /* stats stay HORIZONTAL on mobile — three compact columns */
  .stats { padding: 64px var(--pad-x); }
  .stats-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stat { padding-left: 12px; gap: 8px; }
  .stat-num { font-size: clamp(1.375rem, 6.8vw, 3rem); }
  .stat-label { font-size: 9px; }

  /* CTA sizes to its content on mobile — no giant empty band
     between the stats and the headline */
  .cta { min-height: auto; }
  .cta-inner { padding: 104px var(--pad-x) 88px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .marquee-run { font-size: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .quote-box { padding: 22px; }
}

/* ── Forced colors (Windows High Contrast) ──────────────── */

@media (forced-colors: active) {
  .field select {
    appearance: auto;
    -webkit-appearance: auto;
    background-image: none;
    padding-right: 0;
  }
  .dark-flat .noise { display: none; }
  .bg-lines { display: none; }
}

/* ── Reduced motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .uline path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .pill { transition: none; }
  .tile img { transition: none; }
  .tile:hover img { transform: none; }
}
