/* ParkGuard — marketing site
   Palette, radii, motion curves and type lifted straight from the app's
   Theme (ParkGuard/Utilities/DesignSystem.swift) so the site and the app
   read as one product. */

:root {
  /* Surfaces — warm paper canvas, not iOS grey. */
  --canvas: #F5F3EF;
  --surface: #FFFFFF;
  --surface-raised: #FBFAF8;

  /* Ink */
  --ink: #12141A;
  --ink-2: #5B6068;
  --ink-3: #9096A0;
  --hairline: #E6E2DB;

  /* Chrome accent — deep ink-teal, deliberately not system blue. */
  --brand: #0E6F5C;
  --brand-hover: #0B5A4A;
  --brand-soft: #E2F0EC;
  --on-brand: #FFFFFF;

  /* Signal ramp — urgency only, never decoration. */
  --safe: #0FA97F;
  --caution: #E08A0B;
  --danger: #E23D33;

  /* The app's hero gradients */
  --grad-relaxed: linear-gradient(135deg, #12B888, #0A7A5E);
  --grad-soon:    linear-gradient(135deg, #F0A320, #D1740A);
  --grad-urgent:  linear-gradient(135deg, #F2564A, #C22119);
  --grad-scan:    linear-gradient(135deg, #4C6FFF, #2A3FB8);

  /* Shape */
  --r-hero: 30px;
  --r-card: 22px;
  --r-control: 16px;
  --r-chip: 10px;
  --r-pill: 999px;

  /* Elevation */
  --sh-card: 0 6px 18px rgba(0,0,0,.05);
  --sh-hero: 0 12px 28px rgba(0,0,0,.14);
  --sh-float: 0 10px 24px rgba(0,0,0,.16);

  /* Motion — the app's own curves. */
  --ease-out: cubic-bezier(.23,1,.32,1);
  --ease-in-out: cubic-bezier(.77,0,.175,1);

  /* Type. ui-rounded resolves to SF Pro Rounded on Apple platforms, which is
     literally the face the app uses; Nunito covers everyone else. */
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0B0C0F;
    --surface: #16181D;
    --surface-raised: #1E2127;
    --ink: #F2F1EE;
    --ink-2: #9BA1AB;
    --ink-3: #666D78;
    --hairline: #2A2E36;
    --brand: #2ED3A7;
    --brand-hover: #55E0BC;
    --brand-soft: #14312B;
    --on-brand: #06231C;
    --sh-card: 0 6px 18px rgba(0,0,0,.4);
    --sh-hero: 0 12px 28px rgba(0,0,0,.55);
    --sh-float: 0 10px 24px rgba(0,0,0,.5);
  }
}

:root[data-theme="dark"] {
  --canvas: #0B0C0F;
  --surface: #16181D;
  --surface-raised: #1E2127;
  --ink: #F2F1EE;
  --ink-2: #9BA1AB;
  --ink-3: #666D78;
  --hairline: #2A2E36;
  --brand: #2ED3A7;
  --brand-hover: #55E0BC;
  --brand-soft: #14312B;
  --on-brand: #06231C;
  --sh-card: 0 6px 18px rgba(0,0,0,.4);
  --sh-hero: 0 12px 28px rgba(0,0,0,.55);
  --sh-float: 0 10px 24px rgba(0,0,0,.5);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

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

/* ---------- small parts ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.eyebrow--brand { color: var(--brand); }

.lede { font-size: 19px; color: var(--ink-2); max-width: 60ch; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-control);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out);
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--sh-card); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { background: var(--surface); }
.btn--soft { background: var(--brand-soft); color: var(--brand); }
.btn--soft:hover { background: color-mix(in srgb, var(--brand) 16%, var(--brand-soft)); }
.btn--sm { padding: 11px 18px; font-size: 14.5px; }
.btn--block { width: 100%; }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--sh-card);
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease-out);
}
.nav.is-stuck { border-bottom-color: var(--hairline); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 18.5px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 27px; height: 27px; flex: none; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__cta { flex: none; }
@media (max-width: 860px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }

/* ---------- hero ---------- */

.hero { padding: 76px 0 40px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 62px); }
.hero .lede { margin-top: 22px; font-size: 20px; }
.hero__form { margin-top: 30px; max-width: 480px; }
.hero__note { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }

.signal-ramp { display: flex; gap: 5px; margin-bottom: 22px; }
.signal-ramp span { height: 5px; width: 34px; border-radius: var(--r-pill); }

/* phone frame */
.phone {
  position: relative; width: 100%; max-width: 310px; margin: 0 auto;
  border-radius: 46px; padding: 9px;
  background: linear-gradient(160deg, #2b2f36, #101216 55%, #33383f);
  box-shadow: var(--sh-hero), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone img { border-radius: 38px; width: 100%; }
.phone--sm { max-width: 250px; border-radius: 40px; padding: 8px; }
.phone--sm img { border-radius: 33px; }
.phone__glow {
  position: absolute; inset: -14% -18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--safe) 30%, transparent), transparent);
  filter: blur(30px);
}

/* ---------- proof strip ---------- */

.proof { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 26px 0; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.proof__item .k { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.proof__item .v { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
@media (max-width: 760px) { .proof__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.step { position: relative; overflow: hidden; }
.step__n {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand);
}
.step h3 { font-size: 20px; margin-bottom: 9px; }
.step p { font-size: 15.5px; color: var(--ink-2); }

/* ---------- features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature__icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.feature__icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-2); }

/* ---------- gallery ---------- */

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; margin-top: 48px; }
.shot__cap { margin-top: 18px; }
.shot__cap h3 { font-size: 17px; margin-bottom: 6px; }
.shot__cap p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- coverage ---------- */

.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.cov__tier { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.cov__tier .chip { font-size: 11.5px; }
.cov ul { margin: 18px 0 0; padding: 0; list-style: none; }
.cov li { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--hairline); font-size: 15.5px; color: var(--ink-2); }
.cov li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand); }
.cov--soon .cov__tier .chip { background: color-mix(in srgb, var(--caution) 14%, transparent); color: var(--caution); border-color: color-mix(in srgb, var(--caution) 28%, transparent); }
.cov--soon li svg { color: var(--caution); }

/* ---------- honesty ---------- */

.honesty { background: var(--surface); border-radius: var(--r-hero); border: 1px solid var(--hairline); padding: 46px; }
.honesty__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; }
.honesty h3 { font-size: 17px; margin-bottom: 8px; display: flex; gap: 9px; align-items: baseline; }
.honesty h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--caution); flex: none; transform: translateY(-2px); }
.honesty p { font-size: 15px; color: var(--ink-2); }

/* ---------- reviews ---------- */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.review { display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; color: var(--caution); margin-bottom: 14px; }
.stars svg { width: 15px; height: 15px; }
.review blockquote { margin: 0 0 20px; font-size: 15.5px; color: var(--ink); line-height: 1.6; flex: 1; }
.review__who { display: flex; align-items: center; gap: 11px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13.5px;
  color: #fff; letter-spacing: .01em;
}
.review__who .n { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; }
.review__who .m { font-size: 12.5px; color: var(--ink-3); }

/* ---------- pricing ---------- */

.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 44px auto 0; }
.plan { position: relative; }
.plan--best { border-color: color-mix(in srgb, var(--brand) 42%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent), var(--sh-card); }
.plan__tag { position: absolute; top: -12px; right: 22px; }
.plan__name { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink-2); }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan__price span { font-size: 17px; color: var(--ink-3); font-weight: 700; letter-spacing: 0; }
.plan__sub { font-size: 14px; color: var(--ink-2); }
.price-foot { text-align: center; margin-top: 26px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- faq ---------- */

.faq { max-width: 780px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 800; font-size: 17.5px; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 30px;
  width: 9px; height: 9px; border-right: 2.2px solid var(--ink-3); border-bottom: 2.2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); font-size: 15.5px; max-width: 65ch; }

/* ---------- waitlist band ---------- */

.band {
  border-radius: var(--r-hero); padding: 60px 46px; color: #fff;
  background: var(--grad-relaxed); box-shadow: var(--sh-hero);
  position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(255,255,255,.16), transparent 55%);
  pointer-events: none;
}
.band > * { position: relative; z-index: 1; }
.band h2 { font-size: clamp(30px, 4.4vw, 44px); color: #fff; }
.band p { color: rgba(255,255,255,.88); margin-top: 16px; font-size: 18px; max-width: 54ch; }
.band .eyebrow { color: rgba(255,255,255,.72); }

/* ---------- signup form ---------- */

.signup { display: flex; gap: 10px; }
.signup input, .field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px;
  padding: 15px 17px; border-radius: var(--r-control);
  border: 1px solid var(--hairline); background: var(--surface); color: var(--ink);
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.signup input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.signup input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.signup .btn { flex: none; }
@media (max-width: 520px) { .signup { flex-direction: column; } .signup .btn { width: 100%; } }

.band .signup input { border-color: transparent; background: rgba(255,255,255,.95); color: #12141A; }
.band .signup input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.45); border-color: transparent; }
.band .btn--primary { background: #0B3F33; color: #fff; }
.band .btn--primary:hover { background: #072D25; }
.band__note { margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,.72); }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-msg { margin-top: 16px; font-size: 14.5px; display: none; }
.form-msg.is-error { display: block; color: var(--danger); }

.success {
  display: none; text-align: center; padding: 8px 0;
}
.success.is-on { display: block; }
.success__mark {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; background: var(--grad-relaxed); color: #fff;
  box-shadow: var(--sh-card);
}
.success__mark svg { width: 30px; height: 30px; }
.success h3 { font-size: 26px; margin-bottom: 12px; }
.success p { color: var(--ink-2); max-width: 46ch; margin: 0 auto; }
.band .success h3 { color: #fff; }
.band .success p { color: rgba(255,255,255,.88); }
.band .success__mark { background: rgba(255,255,255,.95); color: #0A7A5E; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--hairline); padding: 54px 0 44px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--ink-2); font-size: 14.5px; }
.footer li a:hover { color: var(--ink); }
.footer__blurb { font-size: 14.5px; color: var(--ink-2); margin-top: 16px; max-width: 34ch; }
.footer__base { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { text-align: left; }
  .steps, .features, .shots, .reviews, .honesty__grid { grid-template-columns: 1fr 1fr; }
  .coverage { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .steps, .features, .shots, .reviews, .honesty__grid, .pricing { grid-template-columns: 1fr; }
  .band { padding: 44px 26px; }
  .honesty { padding: 30px 24px; }
  .hero { padding: 48px 0 26px; }
}

/* Two-field inline signup: email + where you park, button beneath. */
.signup--two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signup--two input { width: 100%; }
.signup--two .btn { grid-column: 1 / -1; width: 100%; }
@media (max-width: 520px) { .signup--two { grid-template-columns: 1fr; } }
