/* ==========================================================================
   SideCar
   --------------------------------------------------------------------------
   EVERYTHING YOU'D WANT TO CHANGE IS IN THE :root BLOCK BELOW.
   Change a value there and it updates everywhere on the site.
   ========================================================================== */

:root {
  /* ---- Brand colors. Change these and the whole site follows. ---- */
  --bone: #faf7f2;        /* page background */
  --ink: #1c1c1c;         /* body text */
  --deep-blue: #2f4979; /* dark section backgrounds */
  --route-green: #14523c;   /* the second dark section, the waitlist band */
  --golden-hour: #b8511c; /* BUTTONS AND LINKS ONLY. Nothing else. */
  --slate: #6b7280;       /* secondary text, hints, footer */

  /* Tints derived from the brand colors. You rarely need to touch these. */
  --green-soft: #eaf0ec;
  --hairline: #e3ded4;
  --hairline-dark: rgba(255, 255, 255, 0.18);

  /* ---- Type ---- */
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Georgia, "Times New Roman", serif;

  /* ---- Spacing ---- */
  --section-y: 96px;   /* vertical padding inside each section */
  --max-width: 1120px; /* how wide content gets on a big screen */
  --radius: 14px;
}

@media (max-width: 700px) {
  :root { --section-y: 64px; }
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

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

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

a { color: var(--golden-hour); }

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(44px, 7vw, 78px); }
h2 { font-size: clamp(32px, 4.6vw, 50px); }

h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.lede { font-size: 19px; line-height: 1.6; color: #40403e; max-width: 58ch; }
.muted { color: var(--slate); font-size: 14px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--golden-hour);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--sm { padding: 10px 20px; font-size: 15px; }
.btn--block { width: 100%; }

.btn-text {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--route-green);
  text-decoration: none;
  border-bottom: 2px solid var(--hairline);
  padding-bottom: 2px;
}
.btn-text:hover { border-color: var(--route-green); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav__logo img { height: 24px; width: auto; }
.nav__links { display: none; gap: 30px; }
.nav__links a {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.75;
}
.nav__links a:hover { opacity: 1; }

@media (min-width: 900px) { .nav__links { display: flex; } }

/* Mobile menu button */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex: none;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) { .nav__toggle { display: none; } }

/* Mobile menu panel */
@media (max-width: 899px) {
  .nav__in { gap: 12px; padding: 14px 18px; }
  .nav__logo img { height: 22px; }
  .nav .btn--sm { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
  .nav__links[data-open="true"] {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 6px 18px 18px;
    background: var(--bone);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }
  .nav__links[data-open="true"] a {
    padding: 15px 0;
    font-size: 17px;
    opacity: 1;
    border-bottom: 1px solid var(--hairline);
  }
  .nav__links[data-open="true"] a:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 72px 0 var(--section-y); }
.hero h1 { margin: 18px 0 0; max-width: 14ch; }
.hero .lede { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }
.hero__note { font-size: 14px; color: var(--slate); }

/* ---- Hero rider / driver toggle ---- */

.split { margin-top: 44px; }

.split__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.split__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.split__toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
}
.sw {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 9px 26px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.sw.is-on { background: var(--route-green); color: #fff; }
.sw:focus-visible { outline: 3px solid var(--golden-hour); outline-offset: 2px; }

.split__panel {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  transition: opacity 0.15s ease;
}
.split__panel.is-swapping { opacity: 0; }

.split__head {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 30ch;
}

.split__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 62ch;
}
@media (min-width: 900px) {
  .split__list { grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: none; }
}
.split__list li {
  position: relative;
  padding-top: 16px;
  border-top: 2px solid var(--route-green);
  font-size: 16px;
  line-height: 1.5;
  color: #45453f;
}

#sp-cta { margin-top: 30px; }

@media (max-width: 640px) {
  .sw { font-size: 16px; padding: 9px 22px; }
  .split__panel { margin-top: 24px; padding-top: 24px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: var(--section-y) 0; }
.section--line { border-top: 1px solid var(--hairline); }

.section--green {
  background: var(--route-green);
  color: #fff;
}
.section--blue {
  background: var(--deep-blue);
  color: #fff;
}

/* Everything below applies to any dark section, green or blue, so the two
   colors stay interchangeable. Swap a section's class and it just works. */
.section--green .eyebrow,
.section--blue .eyebrow { color: rgba(255, 255, 255, 0.62); }
.section--green .lede,
.section--blue .lede { color: rgba(255, 255, 255, 0.85); }
.section--green .muted,
.section--blue .muted { color: rgba(255, 255, 255, 0.62); }
.section--green .step p,
.section--blue .step p { color: rgba(255, 255, 255, 0.78); }
.section--green .step__num,
.section--blue .step__num { color: #f0965c; }
.section--green .about__story p,
.section--blue .about__story p { color: rgba(255, 255, 255, 0.85); }
.section--green .about__sign,
.section--blue .about__sign { border-top-color: var(--hairline-dark); }
.section--green .about__sign span,
.section--blue .about__sign span { color: rgba(255, 255, 255, 0.62); }
.section--green .about__photo,
.section--blue .about__photo { border-color: var(--hairline-dark); }
.section--green .about__story a,
.section--blue .about__story a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.section__head { max-width: 62ch; }
.section__head h2 { margin-top: 14px; }
.section__head .lede { margin-top: 18px; }

/* ---- Steps ---- */

.steps { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 44px; } }

.step__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--golden-hour);
  line-height: 1;
}
.step h3 { margin-top: 14px; }
.step p { margin-top: 10px; color: #4a4a47; }

/* ---- Comparison table ---- */

.compare { margin-top: 44px; width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--hairline); }
.compare thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom-width: 2px;
}
.compare td:first-child { font-weight: 700; }
.compare .cost { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0.06em; }
.compare tr.is-us { background: var(--green-soft); }
.compare tr.is-us td { color: var(--route-green); font-weight: 700; border-bottom-color: transparent; }
.compare tr.is-us .cost { color: var(--golden-hour); }

/* On phones the table stacks into cards instead of scrolling sideways,
   so nothing important ends up hidden off the right edge. */
@media (max-width: 760px) {
  .compare { margin-top: 32px; }
  .compare thead { display: none; }
  .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
  .compare tr.is-us { padding: 18px 16px; border-radius: var(--radius); border-bottom: 0; }
  .compare td { padding: 5px 0; border: 0; display: flex; gap: 20px; justify-content: space-between; align-items: baseline; }
  .compare td::before {
    content: attr(data-label);
    flex: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
  }
  .compare tr.is-us td::before { color: rgba(20, 82, 60, 0.6); }
  .compare td:first-child {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 8px;
  }
  .compare td:first-child::before { content: none; }
  .compare td:last-child { text-align: right; }
}

/* ---- Three-up value cards ---- */

.cards { display: grid; gap: 36px; margin-top: 54px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.card { padding-top: 24px; border-top: 2px solid var(--hairline-dark); }
.card h3 { color: #fff; }
.card p { margin-top: 10px; color: rgba(255, 255, 255, 0.78); font-size: 16px; }

/* ==========================================================================
   Waitlist
   ========================================================================== */

.waitlist__grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 960px) { .waitlist__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }

.field input,
.field select {
  width: 100%;
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236B7280' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 42px;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--golden-hour); }
.field input::placeholder { color: #a3a3a0; }

.field__hint { font-size: 13px; color: rgba(255, 255, 255, 0.72); }

/* ---- Hometown type-ahead ---- */

.combo-wrap { position: relative; }

.combo {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin-top: 6px;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(11, 21, 36, 0.55);
  max-height: 260px;
  overflow-y: auto;
}
.combo li {
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 7px;
  cursor: pointer;
}
.combo li:hover,
.combo li.is-active { background: var(--green-soft); }

.form__note { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.form__error { font-size: 14px; color: #ffc9a8; }

.success {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
}
.success h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #fff; }
.success p { margin-top: 8px; color: rgba(255, 255, 255, 0.8); }

.hidden { display: none !important; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { margin-top: 48px; max-width: 820px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--golden-hour);
  border-bottom: 2px solid var(--golden-hour);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 24px; color: #4a4a47; max-width: 68ch; }

/* ==========================================================================
   About / founder note
   ========================================================================== */

/* One column until a photo is added, then two. Nothing to change by hand. */
.about__grid { display: block; }
.about__grid:has(img) { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) {
  .about__grid:has(img) { grid-template-columns: 200px 1fr; gap: 64px; }
}

.about__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--hairline);
}

.about__story p { font-size: 19px; line-height: 1.65; color: #40403e; max-width: 60ch; }
.about__story p + p { margin-top: 18px; }

.about__sign {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  max-width: 60ch;
}
.about__sign strong { display: block; font-family: var(--font-display); font-size: 20px; }
.about__sign strong a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.about__sign strong a:hover { text-decoration-thickness: 2px; }
.about__sign span { font-size: 15px; color: var(--slate); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }

.contact__email {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--golden-hour);
  text-decoration: none;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.contact__email:hover { text-decoration: underline; text-underline-offset: 6px; }

.callouts { display: grid; gap: 26px; }
.callout { padding-top: 20px; border-top: 1px solid var(--hairline); }
.callout h3 { font-size: 17px; }
.callout p { margin-top: 6px; color: var(--slate); font-size: 15px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--route-green); color: #fff; padding: 48px 0 40px; }
.footer__in { display: grid; gap: 28px; }
@media (min-width: 860px) {
  .footer__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
}
.footer img { height: 22px; width: auto; }
.footer__logo { display: inline-block; line-height: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.footer__links a:hover { color: #fff; }
.footer__mail { color: #fff; text-decoration: none; font-weight: 400; }
.footer__legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-dark);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   Prose pages (privacy, terms, thanks)
   ========================================================================== */

/* .prose shares an element with .wrap, and this rule comes later, so the
   horizontal value here replaces .wrap's 24px gutter. Keep the 24px. */
.prose { max-width: 720px; padding: 72px 24px var(--section-y); }
.prose h1 { font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 26px; margin: 46px 0 12px; }
.prose p, .prose li { color: #40403e; margin-top: 14px; }
.prose ul { margin-top: 10px; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose .updated { color: var(--slate); font-size: 15px; margin-top: 14px; }

.center-card { max-width: 560px; margin: 0 auto; text-align: center; padding: 120px 0; }
.center-card h1 { font-size: clamp(36px, 5vw, 56px); }
.center-card p { margin-top: 18px; color: #4a4a47; font-size: 18px; }
.center-card .btn { margin-top: 32px; }

/* ==========================================================================
   Motion
   ========================================================================== */

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