/* ==========================================================================
   Kiran Nijjar, Driving Instructor
   Brampton and Mississauga, Ontario

   Built from the Claude Design file "Kiran Nijjar Driving Instructor".
   Light theme throughout. Pine carries the header, the contact band and the
   footer. Blush carries the success stories. Terracotta is the one accent.
   ========================================================================== */

:root {
  /* Palette */
  --pine:        #1F3A32;
  --pine-line:   #2F4A41;
  --mist:        #E3EBE4;
  --sage:        #DCE6DD;
  --sage-deep:   #D5E0D7;
  --rule:        #C6D3C8;
  --blush:       #F0DCD4;
  --terracotta:  #A8453A;
  --rust:        #B5573A;
  --ink:         #14201C;
  --ink-soft:    #2B3C34;
  --paper:       #F3F5F0;
  --hairline:    #D3DCD6;
  --muted:       #4A574F;
  --on-pine:     #C4D2C7;
  --on-pine-dim: #9FB3A5;

  /* Type */
  --font-display: 'Cabinet Grotesk', 'Noto Sans Gurmukhi', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-body:    'Switzer', 'Noto Sans Gurmukhi', 'Noto Sans Devanagari', system-ui, sans-serif;

  --h1: clamp(2.4rem, 5.5vw, 4.2rem);
  --h2: clamp(2rem, 3.4vw, 2.5rem);

  --wrap: 1240px;
  --gutter: 24px;

  /* Two curves. Spring for lifts and presses, out for the FAQ toggle. */
  --ease-spring: cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);

  --shadow-card: 0 18px 40px -18px rgba(20, 32, 28, 0.35);

  color-scheme: light;
}

/* --------------------------------------------------------------- reset -- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
/* Terracotta disappears against Pine, so the dark bands ring in Blush. */
.on-pine :focus-visible { outline-color: var(--blush); }

p { text-wrap: pretty; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--paper);
  color: var(--pine);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

.gurmukhi   { font-family: 'Noto Sans Gurmukhi', sans-serif; }
.devanagari { font-family: 'Noto Sans Devanagari', sans-serif; }

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-spring);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn--accent { background: var(--terracotta); color: #FFFFFF; border: 0; }
.btn--accent:hover { color: #FFFFFF; }

.btn--sm { font-size: 15px; padding: 11px 22px; min-height: 44px; }
.btn--lg { font-size: 18px; padding: 16px 30px; min-height: 56px; }
.btn--md { font-size: 17px; padding: 15px 28px; min-height: 52px; }

/* ----------------------------------------------------------------- nav -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--pine);
  color: var(--paper);
}

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.wordmark { color: var(--paper); text-decoration: none; padding: 12px 0; display: block; }
.wordmark:hover { color: var(--paper); }
.wordmark__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.wordmark__role {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-pine);
  line-height: 1.3;
}

.nav__links { display: flex; gap: 26px; flex: 1 1 auto; font-size: 15px; flex-wrap: wrap; }
.nav__links a { color: var(--sage); text-decoration: none; padding: 6px 0; }
.nav__links a:hover { color: #FFFFFF; }

/* Menu button: phones only, and only when the script is there to work it. */
.nav__toggle { display: none; }

.nav__action { display: flex; align-items: center; gap: 14px; padding: 10px 0; flex-wrap: wrap; }
.nav__phone { color: var(--on-pine); font-size: 15px; text-decoration: none; }
.nav__phone:hover { color: #FFFFFF; }

/* ---------------------------------------------------------------- hero -- */

.hero { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--paper); }

.hero__copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 80px var(--gutter) 72px;
}
.hero__inner { max-width: 600px; width: 100%; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: var(--h1);
  color: var(--pine);
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero__lede { margin: 0 0 36px; font-size: 19px; line-height: 1.55; color: var(--muted); }

.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__more { color: var(--pine); font-size: 17px; min-height: 44px; display: inline-flex; align-items: center; }

.hero__photo { flex: 1 1 380px; min-width: 0; min-height: 420px; background: var(--mist); }
.hero__photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 680px;
  object-fit: cover;
  object-position: center 32%;
}

/* ------------------------------------------------------ credential strip -- */

.creds { flex: 0 0 100%; background: var(--mist); }
.creds__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.cred {
  flex: 1 1 210px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  border-right: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.cred:first-child { padding-left: 0; }
.cred:last-child { flex-basis: 230px; padding-right: 0; border-right: 0; display: block; }

.cred__figure {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--terracotta);
  flex: 0 0 auto;
}

/* Stacked, the dividers would hang off the right edge. Run them across. */
@media (max-width: 719px) {
  .cred { flex-basis: 100%; padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .cred:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------- section shared -- */

.section { padding-left: var(--gutter); padding-right: var(--gutter); }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: var(--h2);
  color: var(--pine);
  margin: 0 0 16px;
}
.section__lede { margin: 0 0 40px; color: var(--muted); }

/* ------------------------------------------------------ success stories -- */

.students { background: var(--blush); padding-top: clamp(80px, 12vw, 128px); padding-bottom: clamp(80px, 12vw, 128px); }

.mosaic { display: flex; flex-wrap: wrap; gap: 16px; }

.tile {
  flex: 1 1 260px;
  min-width: 0;
  height: 400px;
  margin: 0;
  display: flex;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

/* Only hidden once the script has confirmed it can reveal them again. */
.mosaic.is-armed .tile {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms var(--ease-spring), transform 520ms var(--ease-spring);
}
.mosaic.is-armed .tile:nth-child(2) { transition-delay: 120ms; }
.mosaic.is-armed .tile:nth-child(3) { transition-delay: 180ms; }
.mosaic.is-in .tile { opacity: 1; transform: none; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 700ms var(--ease-spring);
}
.tile:nth-child(1) img { object-position: center 26%; }
.tile:nth-child(2) img { object-position: center 22%; }
.tile:nth-child(3) img { object-position: center 24%; }

.tile__badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 28px -14px rgba(20, 32, 28, 0.45);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 420ms var(--ease-spring);
  pointer-events: none;
}
.tile__check {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.tile__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--pine);
}

.tile.is-on .tile__badge,
.tile:focus-visible .tile__badge { opacity: 1; transform: translateY(0); }
.tile.is-on img,
.tile:focus-visible img { transform: scale(1.04); }
@media (hover: hover) {
  .tile:hover .tile__badge { opacity: 1; transform: translateY(0); }
  .tile:hover img { transform: scale(1.04); }
}

/* ------------------------------------------------------------- about me -- */

.about { padding-top: clamp(88px, 13vw, 144px); padding-bottom: clamp(88px, 13vw, 144px); }
.about__inner { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }

.about__photos { flex: 1 1 380px; min-width: 0; max-width: 560px; margin: 0 auto; }
.polaroids { position: relative; width: 100%; aspect-ratio: 1 / 1.12; }

.polaroid {
  position: absolute;
  margin: 0;
  background: #FFFFFF;
  padding: 10px;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease-spring);
}
.polaroid img { width: 100%; height: auto; object-fit: cover; border-radius: 3px; }

.polaroid--home { left: 0; top: 4%; width: 64%; transform: rotate(-3deg); z-index: 1; }
.polaroid--home img { aspect-ratio: 4 / 5; object-position: center 30%; }
.polaroid--home:hover { transform: rotate(-1deg) translateY(-6px); z-index: 3; }

.polaroid--banff { right: 0; top: 22%; width: 46%; transform: rotate(4deg); z-index: 2; }
.polaroid--banff img { aspect-ratio: 3 / 5; object-position: center 55%; }
.polaroid--banff:hover { transform: rotate(2deg) translateY(-6px); }

.about__copy { flex: 1 1 400px; min-width: 0; }
.about__copy .section__title { margin-bottom: 24px; }
.about__copy p { margin: 0 0 20px; font-size: 18px; color: var(--ink); }
.about__copy .about__lead { font-size: 20px; line-height: 1.5; }

/* ------------------------------------------------------ getting licensed -- */

/* Clips the car when it drives off one edge and back in from the other. */
.licensed {
  background: var(--mist);
  padding-top: clamp(80px, 11vw, 112px);
  padding-bottom: clamp(80px, 11vw, 112px);
  overflow: hidden;
}
.licensed .section__lede { margin-bottom: 44px; }

.journey { position: relative; height: 44px; margin: 0 0 20px; }

.journey__hint {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
  transition: opacity 400ms ease;
}
/* Nothing to drag without the script. */
.no-js .journey__hint { display: none; }

.journey__road {
  position: absolute;
  left: 0;
  right: 0;
  top: 29px;
  height: 3px;
  background: var(--terracotta);
  border-radius: 999px;
}
.journey__dots { position: absolute; left: 0; right: 0; top: 24px; height: 13px; }
.journey__dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--terracotta);
  border: 3px solid var(--mist);
}
.journey__dot:nth-child(1) { left: 0; }
.journey__dot:nth-child(2) { left: 50%; }
.journey__dot:nth-child(3) { right: 0; }

.journey__rail { position: absolute; left: 0; right: 0; top: 0; height: 44px; touch-action: pan-y; }
.journey__car { position: absolute; left: 0; right: 0; top: 0; height: 30px; pointer-events: none; }
.journey__body {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 30px;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}
.journey__art { position: absolute; inset: 0; transition: transform 300ms var(--ease-spring); }

/* The little car. Drawn once here, reused in the rail and the illustrations. */
.car { position: absolute; width: 64px; height: 30px; }
.car__roof {
  position: absolute;
  left: 13px;
  top: 0;
  width: 36px;
  height: 13px;
  border-radius: 8px 9px 3px 3px;
  background: var(--pine);
}
.journey__art .car__roof { left: 14px; }
.car__head {
  position: absolute;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blush);
}
.car__body {
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 64px;
  height: 15px;
  border-radius: 7px;
  background: var(--terracotta);
}
.car__wheel {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ink);
}
.car__wheel--back { left: 11px; }
.car__wheel--front { right: 11px; }

.stages {
  display: flex;
  gap: 24px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Room for the lifted card's shadow, which the scroll box would clip. */
  margin: 0 calc(-1 * var(--gutter)) -28px;
  padding: 10px var(--gutter) 40px;
  scroll-padding: 0 var(--gutter);
}

.stage {
  flex: 1 1 300px;
  min-width: 244px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 0 rgba(31, 58, 50, 0.04);
  transition: transform 340ms var(--ease-spring), box-shadow 340ms var(--ease-spring), border-color 340ms ease;
}
.stage.is-active { transform: translateY(-10px); box-shadow: 0 18px 34px rgba(31, 58, 50, 0.16); }

/* Too narrow for three cards: a swipe carousel that runs to the screen edges,
   with the next card peeking in. The road above becomes the stage indicator. */
@media (max-width: 859px) {
  .licensed .section__lede { margin-bottom: 56px; }
  .stages {
    padding-top: 12px;
    gap: 14px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .stages::-webkit-scrollbar { display: none; }
  .stage { flex: 0 0 min(86%, 380px); min-width: 0; padding: 16px 18px 22px; }
  .stage.is-active { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(31, 58, 50, 0.14); }
  .stage__scene { height: 132px; }
}

.stage__scene { position: relative; height: 150px; border-radius: 12px; background: var(--sage); overflow: hidden; }

.stage__head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.stage__badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--paper);
  background: var(--pine);
  border-radius: 999px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
}
.stage h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--pine);
  margin: 0;
}
.stage p { margin: 0 0 10px; color: var(--ink); }
.stage .stage__mine { margin-bottom: 12px; color: var(--muted); }
.stage .stage__when { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }

/* Scene parts. Purely decorative, all aria-hidden in the markup. */
.s-abs { position: absolute; }
.s-ground { left: 0; right: 0; bottom: 0; height: 2px; background: var(--rule); }

.s-book {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 92px;
  display: flex;
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 2px 0 var(--rule);
}
.s-page { flex: 1 1 0; padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; position: relative; }
.s-spine { flex: 0 0 2px; background: var(--pine); }
.s-line { height: 2px; background: var(--rule); }
.s-reader {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 15px;
  height: 2px;
  background: var(--terracotta);
  animation: k-read 4.4s ease-in-out infinite;
}
.s-stop {
  right: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  background: var(--terracotta);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.s-dash {
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--rule) 0 18px, transparent 18px 36px);
  animation: k-dash 2.6s linear infinite;
}
.s-dash--fast { animation-duration: 0.9s; }

.s-roof { background: var(--pine); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.s-wall { background: var(--rule); }
.s-door { background: var(--mist); }
.s-verge { left: 0; right: 0; bottom: 0; background: var(--sage-deep); }

.s-cross { left: 0; right: 0; bottom: 8px; height: 30px; animation: k-cross 11s linear infinite; }
.s-bob { animation: k-bob 2.4s ease-in-out infinite; }
.s-bob--fast { animation-duration: 1.6s; }

.s-sign {
  right: 18px;
  top: 16px;
  width: 66px;
  height: 26px;
  border-radius: 3px;
  background: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.s-sign span { height: 3px; background: var(--sage); }
.s-route {
  left: 18px;
  top: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.s-streak {
  left: 50%;
  height: 3px;
  border-radius: 999px;
  background: var(--rule);
  animation: k-streak 1.4s linear infinite;
}

@keyframes k-read {
  0%, 8%   { transform: translateY(0); }
  25%, 33% { transform: translateY(9px); }
  50%, 58% { transform: translateY(18px); }
  75%, 83% { transform: translateY(27px); }
  100%     { transform: translateY(0); }
}
@keyframes k-cross { from { transform: translateX(-28%); } to { transform: translateX(108%); } }
@keyframes k-dash { from { background-position-x: 0; } to { background-position-x: -36px; } }
@keyframes k-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes k-streak {
  0%   { transform: translateX(20px); opacity: 0; }
  25%  { opacity: 0.85; }
  100% { transform: translateX(-96px); opacity: 0; }
}

/* ------------------------------------------------------------ questions -- */

.questions { padding-top: clamp(72px, 10vw, 96px); padding-bottom: clamp(72px, 10vw, 96px); }

.faq { border-top: 1px solid var(--rule); }
.faq:last-child { border-bottom: 1px solid var(--rule); }

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--pine);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rust); }
.faq summary > span:first-child { min-width: 0; }

.faq__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transition: transform 220ms var(--ease-out);
}
.faq[open] .faq__icon { transform: rotate(45deg); }

.faq p { margin: 0; padding: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* ------------------------------------------------------- what I won't do -- */

.promises { background: var(--mist); padding-top: clamp(96px, 14vw, 160px); padding-bottom: clamp(96px, 14vw, 160px); }
.promises .section__lede { margin-bottom: 48px; }

.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.promise {
  background: var(--pine);
  border-radius: 18px;
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 300ms var(--ease-spring);
}
.promise:hover { transform: translateY(-6px); }
.promise__kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blush); }
.promise h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
}
.promise p { margin: 0; color: var(--rule); }

/* -------------------------------------------------------------- lessons -- */

.lessons { padding-top: clamp(104px, 15vw, 176px); padding-bottom: clamp(104px, 15vw, 176px); }
.lessons .section__title { margin-bottom: 56px; }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  align-items: stretch;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 36px 36px 32px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 300ms var(--ease-spring), border-color 200ms ease, box-shadow 300ms ease;
}
.offer:hover {
  color: var(--ink);
  transform: translateY(-6px);
  border-color: var(--pine);
  box-shadow: 0 22px 40px -24px rgba(20, 32, 28, 0.35);
}
.offer:active { transform: translateY(-2px) scale(0.99); }
.offer h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--pine);
  margin: 0 0 2px;
}
.offer p { margin: 0; }
.offer .offer__note { color: var(--muted); }
.offer__cta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--pine);
}
.offer__cta span { color: var(--rust); }


/* -------------------------------------------------------------- contact -- */

.contact { background: var(--pine); color: var(--paper); padding-top: clamp(88px, 12vw, 128px); padding-bottom: clamp(88px, 12vw, 128px); }
.contact__inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }

.contact__copy { flex: 1.2 1 400px; min-width: 0; }
.contact .section__title { color: #FFFFFF; margin-bottom: 20px; }
.contact__lede { margin: 0 0 36px; color: var(--on-pine); }
.contact__call { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  line-height: 1.1;
}
.contact__number:hover { color: var(--blush); }
.contact__email { margin: 28px 0 0; color: var(--on-pine); }
.contact__email a, .on-pine .link-blush { color: var(--blush); }
.contact__email a:hover, .on-pine .link-blush:hover { color: #FFFFFF; }

.callback { flex: 1 1 340px; min-width: 0; max-width: 420px; }
.callback__intro { margin: 0 0 16px; font-size: 15px; color: var(--on-pine); }
/* Tally renders dark text on a transparent background, so it sits on a light card. */
.callback__card { background: var(--paper); border-radius: 16px; padding: 20px 20px 8px; }
.callback__card iframe { display: block; border: 0; }

/* --------------------------------------------------------------- footer -- */

.footer { background: var(--pine); color: var(--on-pine); border-top: 1px solid var(--pine-line); padding: 40px var(--gutter) 120px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; font-size: 14px; }
.footer p { margin: 0; }
.footer__about { flex: 1 1 320px; }
.footer__item { flex: 0 1 auto; }
.footer__full { flex: 1 1 100%; }
.footer__fine { color: var(--on-pine-dim); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--blush);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: #FFFFFF; }

/* ---------------------------------------------------------- cookie banner -- */

.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  width: calc(100% - 32px);
  max-width: 440px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.consent[hidden] { display: none; }
.consent__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--pine);
}
.consent__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.consent__actions .btn { flex: 1 1 120px; font-size: 15px; padding: 11px 20px; min-height: 44px; border: 1px solid var(--pine); }
.btn--pine { background: var(--pine); color: var(--paper); }
.btn--pine:hover { color: var(--paper); }
.btn--ghost { background: transparent; color: var(--pine); }
.btn--ghost:hover { color: var(--pine); }

/* ------------------------------------------------------------- call bar -- */

.callbar { display: none; }

@media (max-width: 767px) {
  .callbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--hairline);
  }
  .callbar a { display: flex; width: 100%; gap: 10px; font-size: 17px; padding: 15px 24px; min-height: 52px; }
  .callbar a span { color: var(--blush); }

  /* Sits above the call bar instead of over it. */
  .consent { bottom: 92px; }

  /* The call bar carries the phone CTA on phones, so the header keeps only
     the wordmark and the section links. */
  .nav__inner { gap: 0 24px; padding-bottom: 6px; }
  .nav__action { display: none; }
  .nav__links { flex-basis: 100%; gap: 20px; }
  .nav__links a { padding: 10px 0; }

  /* With the script, the section links fold into a menu under the header. */
  :root:not(.no-js) .nav__inner { padding-bottom: 0; flex-wrap: nowrap; justify-content: space-between; }
  :root:not(.no-js) .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    margin-left: auto;
    background: transparent;
    color: var(--paper);
    border: 1px solid var(--pine-line);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
  }
  .nav__toggle-bars { position: relative; width: 18px; height: 12px; }
  .nav__toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 240ms var(--ease-out), opacity 160ms ease;
  }
  .nav__toggle-bars span:nth-child(1) { top: 0; }
  .nav__toggle-bars span:nth-child(2) { top: 5px; }
  .nav__toggle-bars span:nth-child(3) { top: 10px; }
  .nav.is-open .nav__toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav.is-open .nav__toggle-bars span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  :root:not(.no-js) .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--pine);
    border-top: 1px solid var(--pine-line);
    box-shadow: 0 18px 30px -12px rgba(20, 32, 28, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 0s linear 240ms;
  }
  :root:not(.no-js) .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 0s;
  }
  :root:not(.no-js) .nav__links a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--paper);
    padding: 14px 0;
    border-bottom: 1px solid var(--pine-line);
  }
  :root:not(.no-js) .nav__links a:last-child { border-bottom: 0; }

  /* The tagline runs on two lines, "No shouting. No rushing." then
     "Just driving.", sized to the column so the first line fills it. That
     line is about 10.3 times as wide as its font size. Sized from the column,
     not 100vw, which counts the scrollbar and pushed the line past the edge. */
  .hero__copy { padding-top: 48px; justify-content: flex-start; }

  /* Phones lead with the stats, then the photo, then the tagline. */
  .hero .creds { order: -2; }
  .hero__photo { order: -1; }
  .hero__inner { container-type: inline-size; }
  .hero h1 {
    font-size: calc((100vw - 2 * var(--gutter) - 24px) / 10.8);
    font-size: calc(100cqi / 10.8);
    text-wrap: wrap;
    margin-bottom: 20px;
  }
  .hero h1 span:last-child { display: block; }

  .footer__legal a, .footer__legal .link-button { min-height: 44px; display: inline-flex; align-items: center; }
  .footer__legal { gap: 0 24px; }

  /* The legal pages have no call bar, so they keep the header button. */
  .nav--plain .nav__inner { padding-bottom: 0; }
  .nav--plain .nav__action { display: flex; }
  .nav--plain .nav__phone { display: none; }
}

/* --------------------------------------------------------- legal pages -- */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.nav--plain .nav__inner { justify-content: space-between; gap: 24px; }

.legal { flex: 1 0 auto; padding: 72px var(--gutter) 96px; }
.legal__article { max-width: 720px; margin: 0 auto; }
.legal__back { font-size: 15px; font-weight: 500; text-decoration: none; }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--pine);
  margin: 24px 0 12px;
}
.legal__date { margin: 0 0 40px; color: var(--muted); font-size: 15px; }
.legal__intro { margin: 0 0 20px; font-size: 18px; }
.legal__sections { display: flex; flex-direction: column; gap: 40px; margin-top: 48px; }
.legal section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: 26px;
  color: var(--pine);
  margin: 0;
}
.legal section p { margin: 0; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal strong { font-weight: 500; }

.footer--plain { padding-bottom: 40px; }
.footer--plain .footer__inner { gap: 16px 32px; }
.footer--plain a { color: var(--blush); }
.footer--plain a:hover { color: #FFFFFF; }

/* -------------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; }
  [data-anim] { animation: none !important; }
}
