/* Driven Together landing page. Tokens from ui/landing-page-build-spec.md */
:root {
  --bg: #FFFFFF;
  --ink: #193B29;        /* Garage Green */
  --ink-hover: #103625;  /* Deep Green */
  --text-2: #4C5C53;
  --line: #DADDD9;
  --input-border: #8A938D;
  --accent: #D0942A;     /* Mustard: stripe and focus outline only */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.bordered { border-top: 1px solid var(--line); }

.dt-h {
  font-family: 'Archivo', sans-serif; font-style: italic; font-weight: 800; font-stretch: 80%;
  letter-spacing: -0.01em; line-height: 1; margin: 0; color: var(--ink);
}
.h2 { font-size: clamp(36px, 4.4vw, 52px); }
.muted, .small { color: var(--text-2); }
.small { margin: 0; font-size: 14px; }
.strong { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 600; }
.narrow { max-width: 320px; }
.col-side p.muted { margin: 0; font-size: 16px; line-height: 1.6; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.site-header img { width: 48px; height: 48px; display: block; }
.dealer-btn {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; color: var(--text-2);
  background: transparent; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; padding: 0 16px; cursor: not-allowed;
}

/* Hero */
.hero { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-size: clamp(48px, 8.6vw, 112px); max-width: 1000px; }
.hero-sub { margin: 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--text-2); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 4px; }

/* Buttons */
.btn, .btn-outline {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; border-radius: 8px; min-height: 52px; padding: 0 26px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  background: var(--ink); color: #FFFFFF; border: 1px solid var(--ink);
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: #FFFFFF; }
.btn-outline { background: #FFFFFF; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Stripe */
.stripe { height: 72px; overflow: hidden; position: relative; }
.stripe-inner { position: absolute; left: -5%; right: -5%; top: 24px; transform: rotate(-1.4deg); display: flex; flex-direction: column; gap: 5px; }
.stripe-m { height: 8px; background: var(--accent); }
.stripe-g { height: 18px; background: var(--ink); }

/* Two-column sections */
.two-col { display: flex; flex-wrap: wrap; gap: 48px; }
.col-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.col-main { flex: 2 1 560px; min-width: 0; }

/* Form */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.help { font-size: 14px; color: var(--text-2); }
.dt-in {
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--ink); background: #FFFFFF;
  border: 1px solid var(--input-border); border-radius: 8px; min-height: 50px; padding: 0 14px; width: 100%;
}
select.dt-in { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23193B29' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.dt-in:focus { border-color: var(--ink); }
.dt-in[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.checks { gap: 14px; padding-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; font-weight: 400 !important; min-height: 44px; }
.dt-chk { width: 20px; height: 20px; accent-color: var(--ink); margin: 2px 0 0 0; flex: none; }
.err { margin: 0; font-size: 14px; color: var(--ink); font-weight: 500; display: flex; gap: 6px; align-items: flex-start; }
.err::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #FFF;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.err[hidden] { display: none; }
.form-err { margin-bottom: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.thanks { border: 1px solid var(--line); border-radius: 12px; padding: 40px 32px; display: flex; flex-direction: column; gap: 14px; }
.thanks[hidden] { display: none; }
.thanks-title { font-size: 40px; }
.thanks p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 520px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.steps li { border-top: 1px solid var(--line); padding: 22px 0 28px; display: flex; flex-direction: column; gap: 8px; }
.step-num { font-size: 14px; font-weight: 600; color: var(--text-2); }
.steps h3 { margin: 0; font-size: 18px; font-weight: 600; }
.steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* Example quote */
.example { flex: 1 1 100%; border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.example h3 { margin: 0; font-size: 18px; font-weight: 600; }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 3px; }
.bar-a { flex: 2 1 0; background: var(--ink); }
.bar-b { flex: 38 1 0; background: var(--ink); opacity: .55; }
.bar-c { flex: 60 1 0; background: var(--line); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.figures > div { display: flex; flex-direction: column; gap: 4px; }
.fig { font-size: 34px; }
.fig-note { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.fine { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 16px; }

/* Story */
.story { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.story-photo { flex: 1 1 380px; min-width: 0; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 40%; border-radius: 12px; display: block; }
.story-photo.missing { background: var(--line); min-height: 240px; color: transparent; }
.story-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.story-text p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-2); }

/* Footer */
.footer { padding-top: 36px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-name { font-weight: 600; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.copy { flex: 1 1 100%; }

/* Privacy page */
.prose { max-width: 720px; padding-top: 48px; padding-bottom: 88px; }
.prose h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.prose h2 { font-size: 18px; font-weight: 600; margin: 32px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }

/* ===== Option A (ui/landing-page-option-a-build-spec.md, approved 14 Nov 2026) ===== */

/* Hero */
.hero { padding-top: 72px; padding-bottom: 64px; gap: 28px; }
.family-line { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text-2); }
.mark { display: inline-flex; flex-direction: column; gap: 2px; width: 28px; flex: none; transform: rotate(-8deg); }
.mark-m { height: 3px; background: var(--accent); }
.mark-g { height: 6px; background: var(--ink); }
.hero-title { font-size: clamp(46px, 5.9vw, 76px); max-width: none; }
.hero-title > span { display: block; }
.hero-sub { font-size: 20px; max-width: 560px; }
.hero-actions { gap: 16px 32px; padding-top: 4px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px;
}
.text-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.text-link svg { flex: none; }

/* Waitlist */
.waitlist .two-col, .how { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.waitlist .col-side, .how .col-side { min-width: 0; }
.h2 { font-size: 48px; }
.pill { margin: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; min-width: 0; }
.timeline li { display: grid; grid-template-columns: 36px 1fr; gap: 24px; position: relative; }
.timeline li + li { margin-top: 6px; }
.timeline .step-num {
  width: 36px; height: 36px; border: 1.5px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: var(--ink); background: #FFFFFF; position: relative; z-index: 1;
}
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 17.5px; top: 42px; bottom: -6px; width: 1px; background: var(--line);
}
.step-body { padding: 6px 0 32px; }
.timeline li:last-child .step-body { padding-bottom: 0; }
.timeline h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.timeline p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); max-width: 620px; }

/* Example quote */
.how .example { grid-column: 1 / -1; margin-top: 8px; border-radius: 16px; padding: 36px; gap: 26px; }
.example h3 { font-size: 20px; }
.bar { height: 12px; border-radius: 6px; gap: 3px; }
.bar-b { background: #7C9084; opacity: 1; }
.figures { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fig-row { display: inline-flex; align-items: center; gap: 10px; }
.key { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.key-a { background: var(--ink); } .key-b { background: #7C9084; } .key-c { background: var(--line); }
.fig { font-size: 44px; }
.fig-note { font-size: 15px; line-height: 1.5; }

/* Our story */
.story { display: flex; flex-direction: column; gap: 40px; align-items: stretch; }
.story-title > span { display: block; }
.story-grid { display: grid; grid-template-columns: 5fr 7fr; grid-template-areas: "d g" "p1 p2"; gap: 40px 24px; }
.photo-desert { grid-area: d; } .photo-gtr { grid-area: g; } .p1 { grid-area: p1; } .p2 { grid-area: p2; }
.story-photo { flex: none; width: 100%; height: 420px; aspect-ratio: auto; object-fit: cover; border-radius: 16px; }
.photo-desert { object-position: 50% 35%; }
.photo-gtr { object-position: 40% 50%; }
.story-p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-2); padding-right: 24px; }
.story-photo.missing { min-height: 0; }

/* Phones and narrow screens */
@media (max-width: 860px) {
  .waitlist .two-col, .how { grid-template-columns: 1fr; gap: 32px; }
  .how .example { margin-top: 8px; }
  .story-grid { grid-template-columns: 1fr; grid-template-areas: "d" "p1" "g" "p2"; gap: 24px; }
  .story { gap: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 40px; padding-bottom: 40px; gap: 22px; }
  .hero-sub { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .btn-main { width: 100%; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .h2 { font-size: 36px; }
  .timeline li { gap: 16px; }
  .how .example { padding: 24px; gap: 22px; }
  .example h3 { font-size: 18px; }
  .figures { grid-template-columns: 1fr; gap: 20px; }
  .fig { font-size: 40px; }
  .photo-desert { height: 300px; }
  .photo-gtr { height: 240px; }
  .story-p { padding-right: 0; }
}
