/* ============================================================
   Parked — marketing site
   Design tokens
   ============================================================ */
:root {
  --orange: #d2691e;
  --orange-deep: #b0530f;
  --amber: #f0a049;
  --coral: #ff7a59;
  --ink: #1c1712;
  --muted: #6b6259;
  --cream: #fffaf4;
  --cream-2: #fdf1e7;
  --white: #ffffff;
  --line: #efe6da;
  --green: #188038;
  --shadow-sm: 0 1px 3px rgba(60, 40, 20, .08);
  --shadow-md: 0 10px 30px rgba(120, 70, 20, .10);
  --shadow-lg: 0 30px 70px rgba(120, 60, 10, .18);
  --radius: 16px;
  --maxw: 1140px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.grad {
  background: linear-gradient(100deg, var(--orange) 0%, var(--coral) 55%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--btn-bg);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 6px 18px rgba(210, 105, 30, .28);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(210, 105, 30, .36); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--ghost {
  background: transparent;
  color: var(--orange);
  border-color: rgba(210, 105, 30, .35);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(210, 105, 30, .06); box-shadow: none; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(255, 250, 244, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: url("assets/logo-parkd.png") center / cover no-repeat;
  box-shadow: var(--shadow-sm);
  font-size: 0; /* hide the "P" text fallback; the logo image shows the mark */
  flex: none;
}
.brand__name { font-size: 19px; letter-spacing: -.02em; }
.nav__links { margin-left: auto; display: flex; gap: 26px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* ============================================================
   Aurora background
   ============================================================ */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.aurora__blob--1 { width: 520px; height: 520px; background: radial-gradient(circle, var(--amber), transparent 70%); top: -140px; left: -80px; animation: drift1 26s var(--ease) infinite alternate; }
.aurora__blob--2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--coral), transparent 70%); top: 40px; right: -100px; animation: drift2 30s var(--ease) infinite alternate; }
.aurora__blob--3 { width: 400px; height: 400px; background: radial-gradient(circle, #ffd9a8, transparent 70%); bottom: -160px; left: 30%; animation: drift3 34s var(--ease) infinite alternate; }
.aurora--cta .aurora__blob { opacity: .4; }

@keyframes drift1 { to { transform: translate(80px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-70px, 50px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(50px, -50px) scale(1.2); } }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 150px 24px 80px; overflow: hidden; }
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.pill {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--orange-deep);
  font-weight: 600; font-size: 13.5px;
  padding: 7px 15px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero__sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 30em; margin-bottom: 30px; }
.hero__sub em { color: var(--ink); font-style: normal; font-weight: 600; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero__note { font-size: 14px; color: var(--muted); }

/* Hero art / phone */
.hero__art { position: relative; display: grid; place-items: center; }

.phone {
  position: relative;
  width: 280px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2018, #17110c);
  border-radius: 44px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone__screen {
  position: relative;
  border-radius: 33px;
  overflow: hidden;
  aspect-ratio: 300 / 508;
  background: #fff;
}
.phone__screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 74%;
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 26px;
  background: #17110c;
  border-radius: 999px;
  z-index: 3;
}
.phone--float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.floaty {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.floaty b { font-weight: 700; }
.floaty--a { top: 20%; left: -6%; animation-delay: .8s; color: var(--green); }
.floaty--b { bottom: 16%; right: -4%; animation-delay: 1.8s; color: var(--orange-deep); }

/* ============================================================
   Value strip
   ============================================================ */
.strip { border-block: 1px solid var(--line); background: var(--white); }
.strip__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 30px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.strip__item { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.strip__item b { font-family: var(--display); font-size: 26px; color: var(--orange); font-weight: 600; }
.strip__item span { font-size: 14px; color: var(--muted); }

/* ============================================================
   Feature sections
   ============================================================ */
.feature { padding: 100px 24px; }
.feature--alt { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.feature__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.feature__art { display: grid; place-items: center; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 13px; font-weight: 700; color: var(--orange);
  margin-bottom: 14px;
}
.feature h2, .how h2, .waitlist h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -.02em;
  margin-bottom: 30px;
}
.feats { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.feats li { display: flex; gap: 16px; align-items: flex-start; }
.feats__ico {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}
.feats li div { font-size: 15.5px; color: var(--muted); }
.feats li b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 3px; }
.feature .btn { margin-top: 34px; }

/* ============================================================
   How it works
   ============================================================ */
.how { padding: 100px 24px; text-align: center; }
.how__inner { max-width: var(--maxw); margin: 0 auto; }
.how h2 { margin-bottom: 50px; }
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  text-align: left;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.steps__n {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: linear-gradient(145deg, var(--orange), var(--orange-deep));
  color: #fff; font-weight: 800; font-size: 18px;
  border-radius: 12px; margin-bottom: 18px;
}
.steps li b { display: block; font-size: 19px; margin-bottom: 8px; }
.steps li p { color: var(--muted); font-size: 15px; }

/* ============================================================
   Waitlist
   ============================================================ */
.waitlist { position: relative; padding: 110px 24px; text-align: center; overflow: hidden; background: var(--cream-2); }
.waitlist__inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.waitlist h2 { margin-bottom: 14px; }
.waitlist > .waitlist__inner > p { color: var(--muted); font-size: 18px; margin-bottom: 34px; }

.wl { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-md); text-align: left; }
.wl__toggle { display: flex; gap: 8px; background: var(--cream-2); padding: 5px; border-radius: 13px; margin-bottom: 18px; }
.wl__tab {
  flex: 1; padding: 11px; border: none; background: transparent;
  font-family: var(--font); font-weight: 600; font-size: 15px; color: var(--muted);
  border-radius: 9px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.wl__tab.is-active { background: var(--white); color: var(--orange-deep); box-shadow: var(--shadow-sm); }
.wl__truck { width: 100%; margin-bottom: 12px; }
.wl__row { display: flex; gap: 10px; }
.wl__email, .wl__truck {
  font-family: var(--font); font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.wl__email { flex: 1; min-width: 0; }
.wl__email:focus, .wl__truck:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(210,105,30,.14); background: #fff; }
.wl__row .btn { flex: none; }
.wl__msg { margin-top: 14px; font-size: 15px; font-weight: 600; min-height: 1.2em; }
.wl__msg.ok { color: var(--green); }
.wl__msg.err { color: #d93025; }

/* ============================================================
   Footer
   ============================================================ */
.foot { background: var(--ink); color: #fff; padding: 54px 24px; }
.foot__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; display: grid; gap: 10px; justify-items: center; }
.brand--foot .brand__name { color: #fff; }
.foot__tag { font-family: var(--display); font-size: 22px; }
.foot__meta { color: rgba(255,255,255,.55); font-size: 14px; }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal]:nth-child(2) { transition-delay: .08s; }
[data-reveal]:nth-child(3) { transition-delay: .16s; }
[data-reveal]:nth-child(4) { transition-delay: .24s; }
[data-reveal]:nth-child(5) { transition-delay: .32s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner { gap: 12px; }
  /* The nav only shows once signed in, so the waitlist CTA is redundant here —
     hide it on phones and pin "Log out" to the right so it isn't cut off. */
  .nav a.btn--sm { display: none; }
  .nav__logout { margin-left: auto; }
  .hero { padding-top: 120px; text-align: center; }
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .feature__inner { grid-template-columns: 1fr; gap: 44px; }
  .feature__art { order: -1; }
  .feature--alt .feature__art { order: -1; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .wl__row { flex-direction: column; }
  .wl__row .btn { width: 100%; }
  .phone { width: 240px; }
}

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}
.legal__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -.02em;
}
.legal__meta { color: var(--muted); margin: 8px 0 32px; font-size: 15px; }
.legal h2 {
  font-size: 22px; font-weight: 700;
  margin: 36px 0 10px; letter-spacing: -.01em;
}
.legal p, .legal li { color: #3f382f; line-height: 1.7; font-size: 16px; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 20px; }
.legal li { margin-bottom: 8px; list-style: disc; }
.legal a { color: var(--orange); font-weight: 600; text-decoration: underline; }
.foot__meta a { color: inherit; text-decoration: underline; }

/* ============================================================
   Members / public-site links + insider page
   ============================================================ */
.nav__members {
  font-weight: 600; font-size: 15px; color: var(--muted);
  transition: color .2s;
}
.nav__members:hover { color: var(--ink); }

.members__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  text-align: center;
}
.members__inner .pill { margin-bottom: 20px; }
.members__inner .hero__sub { margin-inline: auto; }
.steps--members { grid-template-columns: repeat(2, 1fr); text-align: left; }
.steps--members .steps__n { background: var(--cream-2); font-size: 24px; }
.members__cta { text-align: center; margin-top: 40px; }

/* ============================================================
   Invite-only gate (Netlify Identity)
   ============================================================ */
#boot, #gate { display: none; }

/* While auth status is resolving, show only a spinner. */
body.auth-pending .nav,
body.auth-pending main,
body.auth-pending .foot { display: none; }
body.auth-pending #boot { display: flex; }

/* Signed-out: show only the gate. */
body.gated .nav,
body.gated main,
body.gated .foot { display: none; }
body.gated #gate { display: flex; }

/* Log out button only makes sense once signed in (nav is hidden otherwise). */
.nav__logout { margin-left: 4px; }

#boot {
  position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center;
  background: var(--cream);
}
.boot__spin {
  width: 34px; height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#gate {
  position: fixed; inset: 0; z-index: 150;
  align-items: center; justify-content: center;
  padding: 24px; overflow: hidden;
  background: var(--cream);
}
.gate__aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.gate__card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 46px 34px;
  box-shadow: var(--shadow-lg);
  display: grid; justify-items: center; gap: 16px;
}
.gate__brand { margin-bottom: 2px; }
.gate__pill { margin: 0; }
.gate__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.05; letter-spacing: -.02em;
}
.gate__sub { color: var(--muted); font-size: 16px; max-width: 36ch; }
.gate__note { font-size: 13px; color: var(--muted); }

.gate__form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.gate__form[hidden] { display: none; }
.gate__input {
  font-family: var(--font); font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.gate__input:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(210,105,30,.14); background: #fff;
}
.gate__submit { margin-top: 4px; width: 100%; }
.gate__msg { font-size: 14px; font-weight: 600; min-height: 1.1em; margin: 0; }
.gate__msg.ok { color: var(--green); }
.gate__msg.err { color: #d93025; }
.gate__link {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--orange); padding: 0;
}
.gate__link:hover { text-decoration: underline; }

/* ============================================================
   Truck Pro pitch (trucks.html)
   ============================================================ */
.feats__more { margin-top: 14px; font-size: 14px; color: var(--muted); }
.feats__more a { color: var(--orange); font-weight: 600; text-decoration: underline; }

.pro { padding: 20px 0 80px; background: var(--cream-2); }
.pro__inner { max-width: 760px; margin: 0 auto; padding: 60px 24px 0; }
.pro__card {
  background: linear-gradient(135deg, #fff7ef, #fff);
  border: 2px solid var(--orange);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pro__card .pill { margin-bottom: 18px; }
.pro__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 5vw, 40px); letter-spacing: -.02em;
}
.pro__sub { color: var(--muted); margin: 14px auto 20px; max-width: 52ch; line-height: 1.65; }
.pro__list {
  list-style: none; padding: 0; margin: 0 auto 20px;
  max-width: 46ch; text-align: left;
}
.pro__list li { padding: 8px 0; border-bottom: 1px solid #f2e2d0; color: #3c4043; font-weight: 500; }
.pro__list li:last-child { border-bottom: none; }
.pro__price { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.pro__form { text-align: left; }
.pro__label { display: block; font-size: 13px; font-weight: 600; color: #3c4043; margin-bottom: 8px; }
.pro__row { display: flex; gap: 10px; flex-wrap: wrap; }
.pro__input {
  flex: 1; min-width: 200px;
  padding: 14px 16px; font-size: 16px;
  border: 1px solid #e4c9ab; border-radius: 12px;
  background: #fff; color: #202124;
}
.pro__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(210,105,30,.15); }
.pro__row .btn { white-space: nowrap; }
.pro__input--full { width: 100%; display: block; margin-bottom: 14px; }
.pro__msg { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: var(--accent); font-weight: 600; }
.pro__msg.ok { color: #1f9d54; }
.pro__msg.err { color: #d64524; }
.pro__fine { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 10px 0 0; }
.pro__fine a { color: var(--accent); }

/* ---------- Pricing tiers ---------- */
.pricing { padding: 20px 0 80px; background: var(--cream-2); }
.pricing__inner { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px 0; text-align: center; }
.pricing .pro__title { margin-top: 14px; }
.pricing .pro__sub { margin-left: auto; margin-right: auto; }

.tiers {
  display: grid; gap: 18px; margin: 34px 0 0;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: stretch; text-align: left;
}
.tier {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm);
}
.tier--best { border-color: var(--orange); box-shadow: var(--shadow-md); }
.tier__flag {
  position: absolute; top: -11px; left: 20px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.tier__name { font-family: var(--display); font-size: 21px; font-weight: 700; margin: 0; }
.tier__price { font-size: 32px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.02em; }
.tier__price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.tier__rate { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 16px; }
.tier__rate--win { color: var(--green); }
.tier__list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.tier__list li { font-size: 14px; line-height: 1.5; color: var(--ink); }
.tier__btn { margin-top: auto; width: 100%; justify-content: center; }
.tier__cta--none { margin-top: auto; font-size: 13px; color: var(--muted); text-align: center; }

.checkout {
  max-width: 620px; margin: 34px auto 0; text-align: left;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.checkout[hidden] { display: none; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
