/* CarsTXT Rides — black and white. White pages, black type and buttons, light-gray inputs, one bold sans.
   Layout: 1280px column; split hero with a ride-request card; simple cards and bands below. */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --ink-2: #333333;
  --muted: #5e5e5e;
  --soft: #f3f3f3;
  --soft-2: #e8e8e8;
  --line: #e2e2e2;
  --dark: #000000;
  --on-dark: #ffffff;
  --on-dark-muted: #afafaf;
  --ok: #05944f;
  --bad: #d0021b;

  --f: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 8px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--f); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #276ef1; outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* type */
h1, h2, h3, h4 { font-family: var(--f); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
h4 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0; max-width: 62ch; }
.eyebrow { font: 600 .85rem/1 var(--f); color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.fine { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: 600 1rem/1 var(--f); text-decoration: none; cursor: pointer; padding: 1rem 1.5rem; border-radius: var(--r); border: 0; transition: background-color .15s ease, transform .15s ease; }
.btn:active { transform: scale(.98); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2b2b2b; }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-ghost:hover { background: var(--soft-2); }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e8e8e8; }
.btn-outline-white { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-block { width: 100%; }

/* header (black bar) */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: #000; color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { font: 700 1.6rem/1 var(--f); letter-spacing: -.03em; color: inherit; text-decoration: none; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-menu a { text-decoration: none; font-weight: 500; font-size: .98rem; color: #fff; }
.nav-menu a:not(.btn):hover { color: #cfcfcf; }
.nav-menu a.btn-white { color: #000; }
.nav-menu .btn { padding: .7rem 1.1rem; border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 1.5px solid #555; color: #fff; border-radius: 999px; font: 600 .9rem/1 var(--f); padding: .6rem .95rem; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #000; padding: .5rem var(--gutter) 1.2rem; border-top: 1px solid #222; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .95rem 0; border-bottom: 1px solid #222; }
  .nav-menu .btn { margin-top: 1rem; }
}

/* sections */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { display: grid; gap: .8rem; margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.band-soft { background: var(--soft); }
.band-dark { background: #000; color: #fff; }
.band-dark .eyebrow, .band-dark .fine { color: var(--on-dark-muted); }
.band-dark .lede { color: #e2e2e2; }

/* hero */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; }
.hero-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; display: block; filter: grayscale(1) contrast(1.05); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { aspect-ratio: 16 / 10; order: -1; } }
.launch-pill { display: inline-flex; align-items: center; gap: .5rem; font: 600 .85rem/1 var(--f); background: var(--soft); padding: .55rem .85rem; border-radius: 999px; justify-self: start; }
.launch-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ride request */
.ride-form { display: grid; gap: .75rem; max-width: 520px; }
.route { position: relative; display: grid; gap: .5rem; }
.route::before { content: ""; position: absolute; left: 1.2rem; top: 1.75rem; bottom: 1.75rem; width: 2px; background: #000; transform: translateX(4px); z-index: 1; }
.route .field { position: relative; }
.route .field input { padding-left: 2.9rem; }
.route .dot { position: absolute; left: 1.2rem; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #000; z-index: 2; }
.route .dot.sq { border-radius: 1px; }
.ride-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.ride-types legend { font-weight: 600; font-size: .9rem; margin-bottom: .45rem; padding: 0; }
.ride-types label { position: relative; display: grid; gap: .1rem; justify-items: center; text-align: center; padding: .7rem .3rem; border-radius: var(--r); background: var(--soft); cursor: pointer; font-size: .78rem; color: var(--muted); }
.ride-types label strong { color: var(--ink); font-size: .92rem; }
.ride-types input { position: absolute; opacity: 0; pointer-events: none; }
.ride-types label:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px #000; }
.ride-types label:has(input:focus-visible) { outline: 3px solid #276ef1; outline-offset: 2px; }
@media (max-width: 520px) { .ride-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font: 500 1rem/1.4 var(--f); color: var(--ink); background: var(--soft); border: 2px solid transparent; border-radius: var(--r); padding: .9rem 1rem; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: #757575; font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #000; background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radios label { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .65rem 1rem; font-weight: 500; cursor: pointer; background: var(--soft); }
.radios label:has(input:checked) { background: #000; color: #fff; }
.radios input { accent-color: #000; }
.err { color: var(--bad); font-size: .88rem; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ride options */
.options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.option { background: var(--soft); border-radius: 14px; padding: 1.6rem; display: grid; gap: .6rem; align-content: start; }
.option .icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-bottom: .4rem; }
.option .icon svg { width: 28px; height: 28px; }
.option .seats { font-size: .85rem; font-weight: 600; color: var(--muted); }
.option p { color: var(--ink-2); font-size: .95rem; }
.soon { justify-self: start; font: 600 .72rem/1 var(--f); background: #000; color: #fff; border-radius: 999px; padding: .4rem .65rem; }
@media (max-width: 1050px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.5rem); list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: .6rem; align-content: start; padding-top: 1.2rem; border-top: 2px solid #000; }
.steps li::before { content: counter(s); font: 700 .9rem/1 var(--f); width: 32px; height: 32px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; margin-bottom: .3rem; }
.steps p { color: var(--ink-2); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* split feature (drive) */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.split .media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
.split .copy { display: grid; gap: 1.2rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.band-dark .checks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E"); }

/* places + safety cards */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.place { border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; display: grid; gap: .55rem; align-content: start; }
.place .code { font: 700 2.4rem/1 var(--f); letter-spacing: -.03em; }
.place p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .places { grid-template-columns: 1fr; } }
.safety { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.safety article { display: grid; gap: .55rem; align-content: start; }
.safety svg { width: 36px; height: 36px; margin-bottom: .3rem; }
.safety p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 1000px) { .safety { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .safety { grid-template-columns: 1fr; } }

/* app download */
.app-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: center; }
@media (max-width: 800px) { .app-row { grid-template-columns: 1fr; } }
.app-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.app-badge { display: inline-flex; align-items: center; gap: .75rem; padding: .75rem 1.15rem; border-radius: 10px; background: #fff; color: #000; text-decoration: none; min-width: 200px; }
.app-badge:hover { background: #e8e8e8; }
.app-badge svg { width: 28px; height: 28px; flex: none; }
.app-badge small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.app-badge b { display: block; font-size: 1.08rem; line-height: 1.2; }

/* sub-pages */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: .9rem; }
.join { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: 5rem; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 1.3rem; }
.aside { display: grid; gap: 1.2rem; }
.aside .card { background: var(--soft); border-radius: 14px; padding: 1.5rem; display: grid; gap: .8rem; }
.done { border: 2px solid #000; border-radius: 14px; padding: 1.5rem; display: grid; gap: .9rem; }
.done pre { white-space: pre-wrap; word-break: break-word; font: 400 .86rem/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--soft); border-radius: 8px; padding: .9rem; margin: 0; max-height: 260px; overflow: auto; }
.email-line { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.email-line code { font: 500 .95rem/1 ui-monospace, Menlo, Consolas, monospace; user-select: all; background: #fff; padding: .6rem .75rem; border-radius: 8px; }
.small-btn { font: 600 .85rem/1 var(--f); padding: .62rem .9rem; border-radius: 999px; border: 0; background: #000; color: #fff; cursor: pointer; }
.legal { max-width: 820px; display: grid; gap: 1rem; padding-bottom: 5rem; }
.legal h2 { font-size: 1.8rem; margin-top: 1.5rem; }
.legal h3 { margin-top: .6rem; }
.legal p, .legal li { color: var(--ink-2); }

/* footer */
.site-footer { background: #000; color: #fff; padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-grid h4 { font: 600 .95rem/1 var(--f); margin-bottom: 1rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid a, .footer-grid span { text-decoration: none; color: var(--on-dark-muted); font-size: .95rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid .fine { color: var(--on-dark-muted); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #333; font-size: .85rem; color: var(--on-dark-muted); }
.footer-base a { color: inherit; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* service tabs */
.tabs { display: flex; gap: .35rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: .45rem; font: 600 .95rem/1 var(--f); padding: .75rem .95rem; border-radius: 999px; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; }
.tab svg { width: 19px; height: 19px; }
.tab[aria-selected="true"] { background: #000; color: #fff; }
.tab-panel { display: grid; gap: 1.1rem; }
.tab-panel h1 { font-size: clamp(2.4rem, 4.8vw, 3.8rem); }
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.svc { background: var(--soft); border-radius: 14px; padding: 1.5rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: .6rem; text-decoration: none; color: inherit; transition: background-color .15s ease; }
.svc:hover { background: var(--soft-2); }
.svc svg { width: 44px; height: 44px; margin-bottom: .3rem; }
.svc p { color: var(--ink-2); font-size: .95rem; }
.svc .go { font-weight: 600; font-size: .92rem; display: inline-flex; gap: .4rem; align-items: center; }
@media (max-width: 1150px) { .svc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-cards { grid-template-columns: 1fr; } }
.svc .go svg { width: 14px; height: 14px; margin: 0; }
.fee-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 520px; }
.fee-row div { border: 1px solid #333; border-radius: 12px; padding: 1rem; display: grid; gap: .3rem; }
.fee-row b { font: 700 2rem/1 var(--f); letter-spacing: -.03em; }
.fee-row span { font-size: .85rem; color: var(--on-dark-muted); }
.next-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; gap: .8rem; align-items: start; }
.next-steps li::before { content: counter(n); width: 32px; height: 32px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.next-steps .btn { margin-top: .5rem; justify-self: start; padding: .75rem 1.1rem; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.doc-list li { display: flex; gap: .6rem; align-items: center; font-size: .95rem; }
.doc-list li::before { content: ""; width: 8px; height: 8px; background: #000; border-radius: 2px; flex: none; }
.tab-soon { font: 700 .62rem/1 var(--f); text-transform: uppercase; letter-spacing: .06em; background: #fff; color: #000; border: 1px solid #000; border-radius: 999px; padding: .2rem .4rem; }
.tab[aria-selected="true"] .tab-soon { border-color: #fff; }
.svc .soon { margin-bottom: .2rem; }
.svc { display: flex; flex-direction: column; } .svc .go { margin-top: auto; padding-top: .4rem; }
.svc .soon { align-self: flex-start; }

/* tabs: always show every tab in full on desktop */
.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (min-width: 901px) { .tabs { flex-wrap: wrap; overflow: visible; } }
.tab { font-size: .92rem; padding: .7rem .85rem; gap: .4rem; }
.tab svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-photo { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .hero-photo { aspect-ratio: 16 / 10; } }

/* insurance form */
.field-row.three { grid-template-columns: .7fr 1fr 1fr; }
@media (max-width: 520px) { .field-row.three { grid-template-columns: 1fr 1fr; } .field-row.three .field:first-child { grid-column: 1 / -1; } }
#vin-status.ok { color: var(--ok); font-weight: 600; }
#vin-status.bad { color: var(--bad); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start; font-size: .82rem; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: #000; }
.shop { display: grid; gap: 1.1rem; max-width: 560px; border: 2px solid #000; border-radius: 14px; padding: clamp(1.2rem, 3vw, 1.8rem); }
.shop h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.shop-badge { justify-self: start; font: 700 .75rem/1 var(--f); background: #000; color: #fff; border-radius: 999px; padding: .45rem .7rem; }
.shop-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.shop-steps li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: center; color: var(--muted); }
.shop-steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #d6d6d6; border-top-color: #000; animation: spin .8s linear infinite; }
.shop-steps li.is-done { color: var(--ink); }
.shop-steps li.is-done::before { animation: none; border: 0; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .shop-steps li::before { animation: none; } }
.shop-price { display: grid; gap: .45rem; background: #000; color: #fff; border-radius: 12px; padding: 1.2rem 1.3rem; }
.shop-price .eyebrow { color: #cfcfcf; }
.price-big { margin: 0; font-size: 1.15rem; font-weight: 600; }
.price-big b { font-size: 3rem; letter-spacing: -.03em; line-height: 1; margin-left: .3rem; }
.price-big small { font-size: 1rem; font-weight: 500; color: #cfcfcf; }
.shop-price .fine { color: #b5b5b5; font-size: .75rem; }
#ins-err:not([hidden]), #form-err:not([hidden]) { display: block; background: #fdecee; border: 2px solid var(--bad); color: #8a0012; font-weight: 600; font-size: .95rem; border-radius: 10px; padding: .8rem 1rem; }
