/* Mobile-first: base styles target 360–430px phones; media queries scale up. */

:root {
  --navy: #10233d;
  --navy-deep: #0b1a2e;
  --ink: #1c2633;
  --muted: #4b5767;
  --line: #d9e0e8;
  --field-line: #8d9aab;
  --bg: #ffffff;
  --bg-soft: #f3f5f8;
  --tint: #eaf0f7;
  --red: #c8102e;
  --red-dark: #a00d25;
  --red-soft: #fdecef;
  --focus: #1f6feb;
  --radius: 10px;
  --shadow: 0 6px 20px rgb(16 35 61 / 8%);
  --bar-height: 68px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-bottom: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px));
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 0.5em; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 6.6vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 5.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: min(1120px, 100%); margin: 0 auto; padding-inline: 18px; }
.narrow { width: min(760px, 100%); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 16px; background: #fff; font-weight: 700; }
.skip-link:focus { left: 8px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 20px;
  border: 2px solid transparent; border-radius: 8px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { color: #fff; background: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { color: var(--navy); background: #fff; border-color: var(--navy); }
.btn-outline:hover { background: var(--tint); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.75; cursor: progress; }
.btn-submit[aria-busy="true"]::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgb(255 255 255 / 40%); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.contact-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contact-buttons .btn { padding-inline: 6px; }
@media (max-width: 420px) {
  .contact-buttons .btn { flex-direction: column; gap: 2px; font-size: 0.9rem; }
}

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.wordmark { color: var(--navy); font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.wordmark strong { color: var(--red); }
.header-phone {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px;
  color: var(--navy); font-size: 0.95rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .wordmark { font-size: 0.95rem; }
  .header-phone { gap: 4px; font-size: 0.88rem; }
  .header-phone .icon { width: 18px; height: 18px; }
}

/* ---------- Hero ---------- */
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-inner { padding-block: 22px 36px; }
.eyebrow { margin-bottom: 0.6em; color: var(--red); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.6; text-transform: uppercase; }
/* The two hard requirements drivers must see first. */
.eyebrow-key { font-size: 1.05rem; font-weight: 900; letter-spacing: 0.04em; white-space: nowrap; }
.hero-sub { color: var(--muted); font-size: 1.05rem; }
.hero-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 16px; }
.hero-ctas .btn { padding-inline: 10px; }
.trust-line { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.trust-line .icon { margin-top: 3px; color: var(--navy); }
.hero-secondary { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hero-secondary a { font-weight: 700; }

@media (min-width: 1024px) {
  .hero { position: relative; display: flex; align-items: center; min-height: 580px; }
  .hero-media { position: absolute; inset: 0; }
  /* The truck sits on the left of the photo, so the text box goes on the right over the sky. */
  .hero-media img { height: 100%; aspect-ratio: auto; object-position: 25% 75%; }
  .hero-inner { position: relative; display: flex; justify-content: flex-end; padding-block: 56px; }
  .hero-content {
    max-width: 500px; padding: 32px;
    background: rgb(255 255 255 / 94%); border-radius: 12px; box-shadow: var(--shadow);
  }
}

/* ---------- Sections ---------- */
.section { padding-block: 48px; }
.section-soft { background: var(--bg-soft); }
.section-lead { max-width: 60ch; color: var(--muted); }
@media (min-width: 900px) { .section { padding-block: 72px; } }

.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { margin-top: 3px; color: var(--navy); }
.fine-print { color: var(--muted); font-size: 0.9rem; }

/* ---------- Offers ---------- */
.offer-grid { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 900px) { .offer-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.offer-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px 18px;
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.offer-card > * { margin: 0; }
.offer-tag { color: var(--navy); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1.15; text-transform: uppercase; }
.offer-figure { color: var(--navy); font-size: 1.2rem; font-weight: 600; }
.offer-figure strong { display: block; font-size: 2.8rem; line-height: 1.05; }

.accordion { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.accordion summary {
  position: relative; min-height: 52px; padding: 14px 48px 14px 16px;
  color: var(--navy); font-weight: 700; cursor: pointer; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1;
}
.accordion[open] summary::after { content: "−"; }
.accordion-body { padding: 0 16px 16px; }
.accordion-body > :last-child { margin-bottom: 0; }

.terms-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.terms-table th, .terms-table td { padding: 10px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.terms-table th { width: 42%; color: var(--navy); }
.terms-table tfoot th, .terms-table tfoot td { background: var(--tint); font-weight: 800; }
/* Very narrow phones: stack label above value instead of squeezing two columns. */
@media (max-width: 420px) {
  .terms-table th, .terms-table td { display: block; width: auto; }
  .terms-table th { padding-bottom: 2px; }
  .terms-table td { padding-top: 0; border-top: 0; }
}

.terms-note, .section-note {
  margin: 20px 0 0; padding: 14px 16px;
  background: var(--tint); border-left: 4px solid var(--navy); border-radius: 6px; font-size: 0.95rem;
}

/* ---------- Why Oscar ---------- */
.why-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .why-list { grid-template-columns: 1fr 1fr; } }
.why-list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.why-list strong { display: block; color: var(--navy); }
.why-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--navy); background: var(--tint); border-radius: 10px; }
.badge { display: inline-block; margin-top: 6px; padding: 2px 10px; color: var(--navy); background: var(--tint); border-radius: 999px; font-size: 0.8rem; font-weight: 700; }

/* ---------- Settlement examples ---------- */
.example-group { margin-top: 28px; }
.example-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .example-grid { grid-template-columns: repeat(3, 1fr); } }
.example-card { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.example-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.example-head .example-label { margin: 0; }
/* 44px tap target; negative margins keep the card header compact. */
.example-download {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -10px -8px -10px 0; padding: 0 8px;
  color: var(--navy); border-radius: 6px; font-size: 0.85rem; font-weight: 700; text-decoration: none;
}
.example-download:hover { background: var(--tint); }
.example-download .icon { width: 18px; height: 18px; }
.example-label { margin-bottom: 10px; color: var(--muted); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.example-card dl { display: grid; gap: 6px; margin: 0; }
.example-card dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.example-card dt { color: var(--muted); }
.example-card dd { margin: 0; color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.example-net { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--line); }
.example-net dt { color: var(--navy); font-weight: 700; }
.example-net dd { font-size: 1.4rem; }
.example-caption { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.disclaimer {
  margin: 28px 0 0; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 6px; font-size: 0.95rem;
}

/* ---------- Equipment ---------- */
.equipment-photos { display: grid; gap: 12px; margin: 22px 0; }
@media (min-width: 700px) { .equipment-photos { grid-template-columns: 1fr 1fr; } }
.equipment-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 700px) { .spec-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Home time ---------- */
.hometime-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 800px) { .hometime-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.hometime-card { padding: 20px 18px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--radius); }
.days-table { width: 100%; margin: 4px 0 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.days-table th, .days-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.days-table thead th { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.days-table th:last-child, .days-table td:last-child { color: var(--navy); font-weight: 700; text-align: right; }
.hometime-card .fine-print { margin: 0; }

/* ---------- Meet Oscar ---------- */
.oscar-grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 800px) { .oscar-grid { grid-template-columns: 260px 1fr; gap: 44px; } }
.oscar-photo img, .initials-badge {
  width: 180px; height: 180px; border: 4px solid #fff; border-radius: 50%; box-shadow: var(--shadow); object-fit: cover;
}
@media (min-width: 800px) { .oscar-photo img, .initials-badge { width: 260px; height: 260px; } }
.initials-badge { display: grid; place-items: center; color: #fff; background: var(--navy); font-size: 4.5rem; font-weight: 800; }
.oscar-bio { font-size: 1.1rem; }
.oscar-grid .contact-buttons { max-width: 480px; }

/* ---------- Form ---------- */
.form-section { background: var(--navy); }
.form-card { padding: 24px 18px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / 25%); }
@media (min-width: 700px) { .form-card { padding: 36px; } }
.form-step h2:focus { outline: none; }
.form-intro { color: var(--muted); }
.demo-banner { padding: 10px 14px; color: #5c4400; background: #fff6e0; border: 1px solid #e9c46a; border-radius: 8px; font-size: 0.92rem; }

.form-grid { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; color: var(--navy); font-weight: 700; }
.field > legend { margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
/* Short fields side by side even on phones, to keep step 1 compact. */
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zip-pair { grid-template-columns: 1.6fr 1fr; }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  color: var(--ink); background: #fff; border: 1.5px solid var(--field-line); border-radius: 8px;
  font: inherit; font-size: 16px; /* 16px+ stops iOS zooming into fields */
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgb(31 111 235 / 35%); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.field-error { margin: 0; color: var(--red-dark); font-size: 0.92rem; font-weight: 600; }
.field-hint { margin: 0; color: var(--muted); font-size: 0.9rem; }

.choice-grid { display: grid; gap: 8px; }
/* Short options sit in one row and wrap only when a label doesn't fit. */
.choice-row { display: flex; flex-wrap: wrap; }
.choice-row .choice { flex: 1 1 auto; }
@media (min-width: 560px) { .choice-3 { grid-template-columns: repeat(3, 1fr); } }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px;
  background: #fff; border: 1.5px solid var(--field-line); border-radius: 8px; cursor: pointer;
}
.choice input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--red); }
.choice:has(input:checked) { background: var(--tint); border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.inline-note { margin: 4px 0 0; padding: 12px 14px; background: var(--tint); border-left: 4px solid var(--navy); border-radius: 6px; font-size: 0.95rem; }

.field > .consent { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 0.92rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
.consent input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--red); }
.form-notice { margin: 12px 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

.doc-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error { margin-bottom: 16px; padding: 16px; background: var(--red-soft); border: 1px solid #f0b3bd; border-radius: 8px; }
.form-error p { margin: 0 0 12px; }

.step-actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .step-actions { grid-template-columns: 1fr 1fr; } }
.form-step > .contact-buttons { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-top: 20px; }
.faq-list .accordion-body ul { margin: 0 0 1em; }

/* ---------- Final CTA + footer ---------- */
.final-cta { text-align: center; }
.final-cta .btn-wide { width: min(100%, 360px); margin-bottom: 14px; }
.final-cta .contact-buttons { max-width: 480px; margin: 0 auto; }

.site-footer { padding-block: 28px; color: #d7dee8; background: var(--navy-deep); font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { display: inline-block; padding-block: 12px; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(16 35 61 / 10%);
  transition: transform 0.2s ease, visibility 0s;
}
.mobile-bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform 0.2s ease, visibility 0s 0.2s; }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
  color: var(--navy); background: var(--bg-soft); border-radius: 8px;
  font-size: 0.8rem; font-weight: 700; text-decoration: none;
}
.mobile-bar .bar-apply { color: #fff; background: var(--red); font-size: 1.05rem; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
}

/* ---------- Privacy page ---------- */
.draft-banner { margin: 0; padding: 12px 18px; color: #5c4400; background: #fff6e0; border-bottom: 1px solid #e9c46a; font-weight: 700; text-align: center; }
.privacy { padding-block: 40px 56px; }
.privacy h2 { margin-top: 1.6em; font-size: 1.3rem; }
.privacy-page { padding-bottom: 0; }

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