/* SnugPark landing: "Golden Hour". Light, warm, mobile-first. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2"); }

:root {
  --bg: #fffaf1;
  --ink: #22201c;
  --sub: #6b6358;
  --sun: #f4b23c;
  --sun-deep: #d9901a;
  --teal: #1f5c58;
  --teal-soft: #e4f1ee;
  --sky: #ffe7b8;
  --line: #ecdfc8;
  --field: #ffffff;
  --danger: #b42318;
  --focus: #1f6feb;
  --radius: 14px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p, ul, ol { margin: 0; }
a { color: var(--teal); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.top { position: relative; z-index: 3; }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; }
.logo i { width: 22px; height: 22px; border-radius: 6px; background: var(--teal); display: inline-grid; place-items: center; }
.logo i::after { content: ""; width: 11px; height: 8px; border: 2px solid var(--sun); border-bottom: 0; border-radius: 6px 6px 0 0; transform: translateY(1px); }
.chip { font-size: .72rem; font-weight: 600; background: var(--sky); color: #7a4b06; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }

/* Hero: real SF street video, warmed up to match the page */
.scene { position: relative; height: 300px; overflow: hidden; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left))); background: #c9b393 url("/media/hero-street-poster-1280.jpg") center / cover no-repeat; }
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) sepia(.18) brightness(1.04) contrast(1.02); }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(255,196,110,.25) 0%, rgba(255,196,110,0) 40%),
  linear-gradient(180deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,0) 28%),
  linear-gradient(0deg, var(--bg) 0%, rgba(255,250,241,0) 42%); }
/* On phones the header sits on the video (driver view) or the teal (owner view), in white. */
@media (max-width: 899px) {
  body[data-view] .top { position: absolute; inset: 0 0 auto 0; }
  body[data-view] .logo { color: #fff; }
  body[data-view] .chip { background: rgba(0,0,0,.35); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  body[data-view="owner"] .chip { background: rgba(255,255,255,.14); color: var(--sky); }
  body[data-view="owner"] .owner-grid { padding-top: 64px; }
  body[data-view="owner"] .logo i { background: rgba(255,255,255,.16); }
}

/* Driver hero copy */
.hero-copy { position: relative; z-index: 2; margin-top: -64px; display: grid; gap: 10px; padding-bottom: 24px; }
.hero-copy h1, .owner-copy h1 { font-weight: 800; font-size: clamp(2rem, 8.6vw, 3.6rem); }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sub { color: var(--sub); font-size: 1rem; line-height: 1.45; max-width: 52ch; }
.switch { font-size: .92rem; color: var(--sub); margin-top: 4px; }
.switch a { font-weight: 600; }

/* Forms */
.form-slot { margin-top: 6px; }
.intake { display: grid; gap: 9px; }
.field { display: grid; gap: 5px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, legend { font-weight: 600; font-size: .92rem; padding: 0; }
legend { margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--sub); font-size: .85rem; }
.hint { font-size: .85rem; color: var(--sub); }
input[type="email"], input[type="text"], input[type="number"] {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--field); width: 100%;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px; min-height: 48px; }
input::placeholder { color: #a39883; }
input:focus-visible { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
input[aria-invalid="true"], fieldset[aria-invalid="true"] .chips span { border-color: var(--danger); }
.money { position: relative; }
.money > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--sub); }
.money input { padding-left: 27px; }
.err { color: var(--danger); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.addr { gap: 9px; }
.combo { position: relative; }
.suggest { list-style: none; margin: 4px 0 0; padding: 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px -12px rgba(60,40,10,.35); }
.suggest li { display: grid; padding: 9px 10px; min-height: 44px; border-radius: 8px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--sky); }
.suggest .s1 { font-weight: 600; }
.suggest .s2 { font-size: .82rem; color: var(--sub); }
.attrib { font-size: .72rem; color: var(--sub); margin-top: 4px; }
.attrib a { color: var(--sub); }
.addr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.addr { scroll-margin-top: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.custom { margin-top: 8px; max-width: 200px; }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--sub); line-height: 1.4; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer; }
.tick input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--teal); }

.btn { font: inherit; font-weight: 700; font-size: 1rem; border: 0; border-radius: 12px; padding: 13px 14px; min-height: 52px; cursor: pointer; text-align: center; }
.btn small { display: block; font-weight: 500; font-size: .76rem; margin-top: 1px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink small { color: var(--sun); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: .9rem; background: var(--ink); color: #fff; justify-self: start; }
.btn:disabled { opacity: .6; cursor: progress; }
.status:empty { display: none; }
.status { font-weight: 600; font-size: .92rem; }
.status.bad { color: var(--danger); }
.status.good { color: var(--teal); }
.fine { font-size: .78rem; color: var(--sub); }

.lock { font-size: .8rem; color: var(--sub); text-align: center; }
.lock summary { cursor: pointer; list-style: none; padding: 4px 0; }
.lock summary::-webkit-details-marker { display: none; }
.lock .u { text-decoration: underline; text-underline-offset: 2px; }
.lock p { text-align: left; background: var(--sky); color: var(--ink); border-radius: 12px; padding: 10px 12px; margin-top: 6px; line-height: 1.45; }

/* How it works */
.how { padding-block: 8px 28px; display: grid; gap: 12px; }
.how h2 { font-size: 1.35rem; }
.steps { list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--sub); font-size: .95rem; line-height: 1.4; }
.steps b { display: block; color: var(--ink); }
.steps i { width: 32px; height: 32px; border-radius: 10px; background: var(--sky); display: grid; place-items: center; font-style: normal; font-weight: 800; color: #7a4b06; font-family: var(--display); }

/* Owner view */
.view-owner { background: var(--teal); color: #f4efe4; }
.owner-grid { display: grid; gap: 22px; padding-block: 18px 32px; }
.owner-copy { display: grid; gap: 12px; align-content: start; }
.kicker { justify-self: start; font-size: .72rem; font-weight: 600; background: rgba(255,255,255,.14); color: var(--sky); border-radius: 99px; padding: 4px 10px; }
.owner-copy h1 { color: #fff; }
.owner-copy h1 em { background: linear-gradient(transparent 62%, rgba(244,178,60,.75) 62%, rgba(244,178,60,.75) 92%, transparent 92%); }
.view-owner .sub { color: #cfe0dc; }
.perks { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 4px; }
.perks li { padding-left: 26px; position: relative; color: #dbe8e5; line-height: 1.45; }
.perks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 5px; background: var(--sun); }
.perks b { color: #fff; }
.view-owner .switch { color: #cfe0dc; }
.view-owner .switch a { color: var(--sky); }
.card { background: var(--bg); color: var(--ink); border-radius: 18px; padding: 18px 16px; display: grid; gap: 12px; box-shadow: 0 14px 30px -18px rgba(20,40,38,.5); }
.card h2 { font-size: 1.35rem; }
.view-driver .card { border: 1.5px solid var(--line); box-shadow: 0 14px 30px -20px rgba(60,40,10,.35); }

/* Step 2 / thank-you */
.done { gap: 12px; }
.done h2 { font-size: 1.8rem; }
.badge { justify-self: start; display: inline-flex; align-items: center; gap: 6px; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: .8rem; border-radius: 99px; padding: 4px 11px; }
.q-lead { font-weight: 600; }
.share { background: var(--sky); border-radius: 14px; padding: 14px; display: grid; gap: 8px; font-size: .92rem; }
.share b { font-size: 1rem; }
.share-status { font-size: .85rem; color: var(--teal); font-weight: 600; }

/* FAQ */
.faq { padding-block: 24px 16px; display: grid; gap: 6px; max-width: 760px; }
.faq h2 { font-size: 1.6rem; margin-bottom: 8px; }
.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-of-type { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; padding-block: 13px; min-height: 44px; }
.faq details p, .terms { color: var(--sub); padding-bottom: 14px; }
.terms { padding-left: 1.1em; display: grid; gap: 6px; }

/* Footer */
.foot { padding-block: 24px 40px; border-top: 1.5px solid var(--line); color: var(--sub); font-size: .85rem; margin-top: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.foot-links a { color: var(--sub); }
.gpc-note { margin-bottom: 10px; }

/* Legal pages */
.doc { max-width: 760px; padding-block: 20px 40px; display: grid; gap: 12px; }
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); margin-bottom: 4px; }
.doc h2 { font-size: 1.25rem; margin-top: 14px; }
.doc h3 { font-size: 1.05rem; margin-top: 6px; }
.doc ul { padding-left: 1.1em; display: grid; gap: 6px; }
.doc code { font-size: .9em; }
.draft { background: var(--sky); color: #5c4400; border: 1px solid var(--sun); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: .9rem; }
.choice-card { margin-block: 8px; border: 1.5px solid var(--line); }
.doc .btn { background: var(--ink); color: #fff; }

/* Laptop: real two-column layouts */
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-block: 24px 40px; }
  .scene { order: 2; height: auto; aspect-ratio: 4 / 5; max-height: 640px; margin: 0; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(120,70,10,.45); }
  .scene::after { background: linear-gradient(180deg, rgba(255,196,110,.28) 0%, rgba(255,196,110,0) 45%), linear-gradient(0deg, rgba(255,214,140,.22) 0%, rgba(255,214,140,0) 35%); }
  .hero-copy { order: 1; margin-top: 0; padding-bottom: 0; gap: 14px; }
  .hero-copy .intake { max-width: 460px; }
  .how { padding-block: 16px 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .owner-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-block: 48px 64px; align-items: start; }
  .card { padding: 26px; }
  .view-driver .form-slot .done { max-width: 520px; }
}
