:root {
  --red: #f4594f;
  --red-dark: #d94036;
  /* Primary button surface — mirrors GradientButton in the app
     (AutoBookingScreen.js / PaywallScreen.js): a light→dark vertical gradient
     in brand red, with the same radius, shadow and press-scale. */
  --btn-grad-a: #f86f66;
  --btn-grad-b: #ee4a3f;
  --btn-radius: 18px;
  --btn-shadow: 0 3px 6px rgba(0, 0, 0, .15);
  --ink: #1a1a1c;
  --body: #55555c;
  --muted: #8a8a92;
  --line: #e7e8ec;
  --tile-a: #ffffff;
  --tile-b: #eef0f3;
  --radius: 16px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); }

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

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }

section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--btn-grad-a) 0%, var(--btn-grad-b) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: var(--btn-radius);
  transition: transform .12s ease, filter .12s ease;
  box-shadow: var(--btn-shadow);
}
.btn:hover { filter: brightness(.96); }
/* 0.95 matches ScaleButton's press animation in the app. */
.btn:active { transform: scale(.95); }

/* Secondary button — the app's neutral surfaces (notifications pill, test
   cards) use the same white→light-grey gradient. */
.btn.ghost {
  background: linear-gradient(180deg, var(--tile-a) 0%, var(--tile-b) 100%);
  color: var(--ink);
  font-weight: 600;
}
.btn.small { padding: 10px 18px; font-size: .92rem; border-radius: 12px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 800; color: var(--ink); font-size: 1.02rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--body);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--ink); }
/* `.nav-links a` (0,1,1) outranks `.btn` (0,1,0), so the CTA in the nav would
   otherwise inherit the grey link colour instead of the button's white. */
.nav-links a.btn,
.nav-links a.btn:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fdecea;
  color: var(--red);
  font-weight: 700;
  font-size: .82rem;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero p.lede {
  font-size: 1.13rem;
  margin: 0 0 28px;
  max-width: 46ch;
}
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }

.hero-art {
  display: grid;
  justify-items: center;
}
/* Same testimonials card shown on the first auto-booking onboarding page.
   Source is 1000x1250 (4:5) — height-capped so it can't stretch the hero row. */
.hero-image {
  width: auto;
  height: min(64vh, 520px);
  max-width: 100%;
  object-fit: contain;
}

/* ---------- timeline (how it works) ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 4px;
}
/* The connecting line sits behind the markers, spanning from the centre of
   the first marker to the centre of the last — i.e. inset by one sixth of
   the row on each side, since each step column is a third of the row and
   the marker sits in the middle of its column. */
.timeline-track {
  position: absolute;
  top: 44px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: repeating-linear-gradient(
    90deg, var(--line) 0 8px, transparent 8px 16px
  );
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}
.step-marker {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--tile-a), var(--tile-b));
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(20, 22, 28, .06);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Sources are 160px square so they stay crisp on retina at this render size. */
.step-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.step p { margin: 0; font-size: .97rem; }



/* ---------- reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  margin: 0;
  background: linear-gradient(180deg, var(--tile-a), var(--tile-b));
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(20, 22, 28, .05);
}
.stars { color: #ff9500; font-size: .95rem; letter-spacing: 1px; }
.stars .dim { color: #d9dbe0; }
.review blockquote { margin: 12px 0 16px; font-size: .95rem; }
.review blockquote strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 7px; }
.review figcaption { font-size: .85rem; font-weight: 700; color: var(--muted); }

/* ---------- faq ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  font-weight: 650;
  color: var(--ink);
  position: relative;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.chev {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s ease;
}
.faq[open] .chev { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0 0 20px; font-size: .96rem; }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(180deg, var(--tile-a), var(--tile-b));
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-band img { width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 18px; }

/* ---------- legal pages (privacy / terms) ---------- */
.legal { padding: 48px 0 88px; }
.legal .wrap { max-width: 720px; }
.legal .back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}
.legal .back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: .92rem; margin: 0 0 36px; }
.legal h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .copyright { color: var(--muted); font-size: .85rem; margin-top: 40px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: .88rem;
  color: var(--muted);
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; margin-left: 20px; }
footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero p.lede { max-width: none; }
  .reviews { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 56px 0; }

  /* Timeline rotates to vertical: track runs down the left edge of the
     markers instead of across their centres. Marker shrinks to 64px so the
     text column (a single stacked block, not a second flex item — see
     .step-text) gets enough width to avoid wrapping headings onto 3+ lines. */
  .timeline {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 420px;
    margin: 0 auto;
  }
  .timeline-track {
    top: 0;
    bottom: 0;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(
      180deg, var(--line) 0 8px, transparent 8px 16px
    );
  }
  .step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 0;
  }
  .step-marker {
    width: 64px;
    height: 64px;
    margin: 0;
    flex: 0 0 64px;
  }
  .step-marker .step-icon { width: 34px; height: 34px; }
  .step-text { flex: 1 1 auto; min-width: 0; }
  .step-text h3 { margin-bottom: 6px; font-size: 1rem; }
  .step-text p { font-size: .92rem; }
}

/* ---------- comparison / value table ---------- */
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 em { font-style: normal; color: var(--red); }

.compare-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  text-align: center;
}
.compare-row:last-child { border-bottom: 0; }
.compare-row .rowlabel { text-align: left; font-weight: 600; color: var(--ink); }

.compare-head {
  background: #fbfbfc;
  font-weight: 700;
  color: var(--ink);
  font-size: .88rem;
}
/* Our column is tinted top-to-bottom so the eye tracks straight down it —
   neutral grey, not brand red, so it reads as "the highlighted column"
   rather than "a warning". */
.compare-row .col-ours {
  background: var(--tile-b);
  /* Negative margins cancel the row's padding so the tint runs edge-to-edge
     as one continuous column rather than stopping short of the card border. */
  margin: -15px -20px -15px 0;
  padding: 15px 20px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}
.compare-head .col-ours { color: var(--ink); }
.compare-row .bad { color: var(--muted); }
.compare-row .good { color: var(--ink); }

.compare-row svg {
  width: 19px; height: 19px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2.4;
  margin: 0 auto;
}
.compare-row svg.x { stroke: #c9ccd3; }

.compare-total {
  background: #fbfbfc;
  font-size: 1rem;
}
.compare-total s { color: var(--muted); }
.compare-total .price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}

.compare-cta { text-align: center; margin-top: 32px; }
.compare-cta .hero-note { margin-top: 12px; }

@media (max-width: 760px) {
  .compare-card {
    background: none;
    border: none;
    border-radius: 0;
  }
  .compare-row {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: left;
    padding: 18px 4px;
  }
  .compare-head { display: none; }
  /* Feature name — a real heading, not a muted eyebrow. */
  .compare-row .rowlabel {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
  }
  /* Label each cell on mobile, since the header row is hidden. Each label
     lives in its own flex row with the value so the trailing space in
     `content` can't be trimmed the way it is inside a flex container —
     see the .col-ours rule below for why that matters. */
  .compare-row > span:nth-child(2),
  .compare-row > span:nth-child(3) {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .92rem;
  }
  .compare-row > span:nth-child(2)::before { content: "RSA:"; color: var(--muted); font-weight: 600; }
  .compare-row > span:nth-child(3)::before { content: "Other apps:"; color: var(--muted); font-weight: 600; }
  /* Answer callout: the same light→dark gradient + soft shadow used on
     cards and buttons elsewhere on the site (.review, .step-marker, .btn),
     so the answer reads as a lifted, important card rather than a plain
     row — no colour-coding needed to make it stand out. */
  .compare-row .col-ours {
    margin: 10px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    justify-content: flex-start;
    font-size: 1rem;
    background: linear-gradient(180deg, var(--tile-a), var(--tile-b));
    border: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(20, 22, 28, .06);
  }
  .compare-row .col-ours::before { content: "Get Driving:"; font-weight: 700; }
  .compare-row svg { margin: 0; }
}

/* ---------- hero byline ---------- */
.byline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
}
.byline img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 30px;
}
