:root {
  --ground: #F7F4EE;
  --surface: #EFEBE2;
  --surface-raised: #E4DFD3;
  --hairline: #D8D2C4;
  --ink: #161510;
  --ink-secondary: #5A5648;
  --ink-tertiary: #635E50;
  --accent: #0C7466;
  --accent-bright: #0A5A50;
  --accent-deep: #0F766E;
  --on-accent: #FFFFFF;
  --glow: #2DD4BF;
  --glow-bright: #5EEAD4;
  --warn: #9A5B00;
  --hero-1: #7DF9E4;
  --hero-2: #2DD4BF;
  --hero-3: #0E7C93;
  --star-opacity: 0;
  --map-opacity: 0.28;

  --font-sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-rounded: ui-rounded, -apple-system, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --r-card: 16px;
  --r-plate: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0A0E13;
    --surface: #141A22;
    --surface-raised: #1D262F;
    --hairline: #2A353F;
    --ink: #F2F6F8;
    --ink-secondary: #8FA0AF;
    --ink-tertiary: #7D8E9C;
    --accent: #2DD4BF;
    --accent-bright: #5EEAD4;
    --accent-deep: #0C857B;
    --on-accent: #F2F6F8;
    --glow: #2DD4BF;
    --glow-bright: #5EEAD4;
    --warn: #F5A524;
    --star-opacity: 1;
    --map-opacity: 0.4;
  }
}
:root[data-theme="dark"] {
  --ground: #0A0E13;
  --surface: #141A22;
  --surface-raised: #1D262F;
  --hairline: #2A353F;
  --ink: #F2F6F8;
  --ink-secondary: #8FA0AF;
  --ink-tertiary: #7D8E9C;
  --accent: #2DD4BF;
  --accent-bright: #5EEAD4;
  --accent-deep: #0C857B;
  --on-accent: #F2F6F8;
  --glow: #2DD4BF;
  --glow-bright: #5EEAD4;
  --warn: #F5A524;
  --star-opacity: 1;
  --map-opacity: 0.4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ---------- night sky (dark only, css stars) ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--star-opacity); transition: opacity .4s; }
.sky::before, .sky::after {
  content: ""; position: absolute; inset: -10% -10%;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 0%, transparent 60%),
    radial-gradient(1.2px 1.2px at 28% 64%, #fff 0%, transparent 60%),
    radial-gradient(1.8px 1.8px at 44% 22%, #fff 0%, transparent 60%),
    radial-gradient(1.3px 1.3px at 61% 78%, #fff 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 76% 34%, #fff 0%, transparent 60%),
    radial-gradient(1.1px 1.1px at 88% 58%, #fff 0%, transparent 60%),
    radial-gradient(1.4px 1.4px at 19% 84%, #fff 0%, transparent 60%),
    radial-gradient(1.7px 1.7px at 93% 12%, #fff 0%, transparent 60%);
  background-repeat: repeat; background-size: 900px 900px;
  animation: twinkle 13s ease-in-out infinite;
  transform: translateY(calc(var(--scroll, 0) * -0.15px));
}
.sky::after {
  opacity: .55; background-size: 1300px 1300px; animation-duration: 18s;
  transform: translateY(calc(var(--scroll, 0) * -0.3px));
}
@keyframes twinkle { 0%, 100% { opacity: .85; } 50% { opacity: .35; } }

.wrap { position: relative; z-index: 1; }

/* ---------- floating nav ---------- */
.nav-pill {
  position: sticky; top: 14px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  max-width: 640px; margin: 14px auto 0; padding: 8px 8px 8px 14px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--hairline);
  border-radius: 999px;
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav-mark { width: 22px; height: 22px; border-radius: 28%; flex: none; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  color: var(--ink-secondary); text-decoration: none; font-size: .88rem;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a:focus-visible { background: var(--surface-raised); color: var(--ink); }
a:focus-visible, .pill:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

section { padding: clamp(56px, 9vw, 108px) 20px; position: relative; }
.inner { max-width: 1120px; margin: 0 auto; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 84px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; max-width: 1120px; margin: 0 auto; position: relative;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-map { position: absolute; inset: -8% -18% auto auto; width: 78%; max-width: 900px; opacity: var(--map-opacity); pointer-events: none; z-index: 0; color: var(--ink-tertiary); }
.hero-map svg { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .hero-map { inset: -4% -30% auto auto; width: 120%; } }

@keyframes pindrop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
.hero-map .pin { animation: pindrop .6s ease-out backwards; }
.hero-map .pin-1 { animation-delay: .05s; }
.hero-map .pin-2 { animation-delay: .18s; }
.hero-map .pin-3 { animation-delay: .31s; }
.hero-map .pin-4 { animation-delay: .44s; }
.hero-map .pin-5 { animation-delay: .57s; }
.hero-map .pin-6 { animation-delay: .70s; }
@media (prefers-reduced-motion: reduce) { .hero-map .pin { animation: none; } }

.eyebrow-free {
  display: inline-block; color: var(--accent-bright); font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.2rem); margin: 6px 0 18px;
}
h1 {
  margin: 0; font-size: clamp(2.3rem, 5.4vw, 3.5rem); line-height: 1.06;
  letter-spacing: -0.02em; font-weight: 650; text-wrap: balance;
}
.subhead {
  max-width: 46ch; color: var(--ink-secondary); font-size: 1.09rem; line-height: 1.55;
  margin: 20px 0 14px;
}
.trust-line { max-width: 46ch; color: var(--ink-tertiary); font-size: .92rem; margin: 0 0 30px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  padding: 12px 22px; font-size: .96rem; font-weight: 600; border: 0.5px solid var(--hairline);
}
.pill-soon { background: var(--surface-raised); color: var(--ink-secondary); }
.pill-soon .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-tertiary); }
.link-inline { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.link-inline:hover { border-color: var(--accent); }
.fine { width: 100%; color: var(--ink-tertiary); font-size: .8rem; margin: 4px 0 0; }

/* ---------- phone frame ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; z-index: 1; }
.phone-glow {
  position: absolute; inset: -18% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--hero-1), var(--hero-2) 46%, var(--hero-3) 78%, transparent 100%);
  filter: blur(46px); opacity: .5;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.06); opacity: .68; } }

.phone {
  position: relative; z-index: 1; width: min(268px, 72vw); aspect-ratio: 268 / 580;
  border-radius: 44px; background: var(--ground);
  border: 6px solid color-mix(in srgb, var(--surface-raised) 88%, black 12%);
  box-shadow: 0 26px 60px -18px rgba(0,0,0,.45), inset 0 0 0 1px var(--hairline);
  overflow: hidden;
}
.phone.small { width: min(180px, 46vw); }
.phone-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.status-bar { display: flex; justify-content: space-between; padding: 10px 16px 4px; font-family: var(--font-rounded); font-size: 10px; font-weight: 600; color: var(--ink-tertiary); }
.phone.small .status-bar { padding: 8px 12px 2px; }

/* home base placeholder art */
.art-homebase { flex: 1; position: relative; background: var(--surface); overflow: hidden; }
.art-homebase .core {
  position: absolute; left: 50%; top: 44%; width: 46%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--hero-1), var(--hero-2) 55%, var(--hero-3) 100%);
  box-shadow: 0 0 40px 6px color-mix(in srgb, var(--glow) 55%, transparent);
}
.art-homebase .pin { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--glow-bright); box-shadow: 0 0 8px 2px color-mix(in srgb, var(--glow) 70%, transparent); }
.art-homebase .label { position: absolute; bottom: 14px; left: 16px; right: 16px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; color: var(--ink-tertiary); text-transform: uppercase; }
.art-homebase--compact { min-height: 0; }
.art-homebase .core--sm { width: 52%; }
.art-homebase .pin-a { top: 28%; left: 24%; }
.art-homebase .pin-b { top: 64%; left: 70%; }
.art-homebase .pin-c { top: 74%; left: 30%; }
.art-homebase .pin-d { top: 30%; left: 26%; }
.art-homebase .pin-e { top: 70%; left: 66%; }

/* walk home placeholder art */
.art-walkhome { flex: 1; background: var(--surface); padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.wh-row { display: flex; align-items: center; gap: 10px; }
.wh-badge {
  width: 27px; height: 27px; border-radius: 28%; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.wh-badge svg { width: 15px; height: 15px; }
.wh-badge--a { background: color-mix(in srgb, #0C7466 16%, transparent); }
.wh-badge--b { background: color-mix(in srgb, #4A5FBF 16%, transparent); }
.wh-badge--c { background: color-mix(in srgb, #9A5B00 16%, transparent); }
.wh-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wh-name { font-size: 10px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.wh-sub { height: 5px; width: 62%; border-radius: 3px; background: var(--hairline); }
.wh-amt { flex: none; width: 22px; height: 6px; border-radius: 3px; background: var(--hairline); }
.wh-street { flex: 1; margin-top: 4px; border-radius: var(--r-plate); overflow: hidden; }
.wh-street svg { width: 100%; height: 100%; display: block; }

/* departures board placeholder art */
.art-board { flex: 1; background: #0B0F14; padding: 16px 12px; display: flex; flex-direction: column; position: relative; }
.art-board::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(245,165,36,.06), transparent 70%);
  pointer-events: none;
}
.board-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; color: #F5A524; text-transform: uppercase; margin-bottom: 10px; }
.board-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: #7D8E9C; padding: 7px 0; border-top: 1px solid #1F2830; }
.board-row .r-name { color: #E7F0F3; }
.board-row .r-amt { color: #5EEAD4; font-variant-numeric: tabular-nums; }
.board-row.soonest .r-amt { color: #F5A524; animation: flap 3.4s ease-in-out infinite; }
@keyframes flap { 0%, 78%, 100% { opacity: 1; } 84% { opacity: .15; } 90% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .board-row.soonest .r-amt { animation: none; } }

/* ---------- pick your style ---------- */
.styles-head { text-align: left; max-width: 60ch; }
.styles-head h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.015em; }
.styles-head p { color: var(--ink-secondary); margin: 0; font-size: 1rem; max-width: 52ch; }
.styles-row {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 780px) { .styles-row { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }
.style-card { display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.style-card.in { opacity: 1; transform: none; }
.style-name { font-weight: 600; font-size: 1rem; }
.style-caption { color: var(--ink-tertiary); font-size: .85rem; text-align: center; max-width: 26ch; }

/* ---------- feature cards ---------- */
.features-head { max-width: 60ch; margin-bottom: 36px; }
.features-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.015em; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 18px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--hairline); border-radius: var(--r-card);
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease;
}
.feature-card.in { opacity: 1; transform: none; }
.f-badge {
  flex: none; width: 38px; height: 38px; border-radius: 28%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.f-badge svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.f-body { flex: 1; min-width: 0; }
.f-body h3 { margin: 0 0 3px; font-size: .98rem; font-weight: 600; }
.f-body p { margin: 0; color: var(--ink-secondary); font-size: .87rem; line-height: 1.4; }
.f-chev { flex: none; color: var(--ink-tertiary); }

/* ---------- tip ---------- */
.tip { padding-top: 0; }
.tip-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-card);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--hairline);
}
@media (max-width: 780px) { .tip-card { grid-template-columns: 1fr; } }
.tip-text h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -0.015em; }
.tip-text p { margin: 0; color: var(--ink-secondary); font-size: .96rem; line-height: 1.55; max-width: 42ch; }
.tip-label { display: block; font-size: .8rem; color: var(--ink-tertiary); margin-bottom: 6px; }
.tip-amount {
  font-family: var(--font-rounded); font-size: 2.1rem; font-weight: 650; color: var(--ink);
  margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.tip-range {
  width: 100%; margin: 0 0 20px; appearance: none; -webkit-appearance: none;
  height: 4px; border-radius: 999px; background: var(--hairline); outline: none;
}
.tip-range::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-deep); border: 3px solid var(--on-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer;
}
.tip-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-deep);
  border: 3px solid var(--on-accent); box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer;
}
.tip-range::-moz-range-track { height: 4px; border-radius: 999px; background: var(--hairline); }
.tip-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tip-link {
  padding: 9px 18px; font-size: .88rem; background: var(--surface-raised); color: var(--ink);
  text-decoration: none; transition: background .15s;
}
.tip-link:hover, .tip-link:focus-visible { background: color-mix(in srgb, var(--accent) 18%, var(--surface-raised)); }

/* ---------- trust block ---------- */
.trust { text-align: left; padding-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip {
  font-size: .82rem; font-weight: 600; color: var(--accent-bright);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px; padding: 7px 14px;
}
.trust p { max-width: 54ch; color: var(--ink-secondary); font-size: .96rem; margin: 0; }

/* ---------- footer ---------- */
footer { padding: 28px 20px 56px; margin-top: 8px; border-top: 0.5px solid var(--hairline); }
.foot-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.foot-inner p { margin: 0; color: var(--ink-tertiary); font-size: .85rem; }
.foot-inner a { color: var(--ink-tertiary); }
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--ink-tertiary); font-size: .85rem; text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- simple content pages (privacy / support / 404) ---------- */
.page { max-width: 68ch; margin: 0 auto; padding: clamp(64px, 10vw, 120px) 20px 80px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.page .eff-date { color: var(--ink-tertiary); font-size: .9rem; margin: 0 0 40px; }
.page h2 { font-size: 1.05rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.page p { color: var(--ink-secondary); line-height: 1.65; margin: 0 0 4px; }
.page .contact { margin-top: 44px; padding-top: 24px; border-top: 0.5px solid var(--hairline); color: var(--ink-tertiary); font-size: .92rem; }
.page .contact a { color: var(--accent); }
.page .back { display: inline-flex; gap: 6px; color: var(--ink-tertiary); text-decoration: none; font-size: .9rem; margin-top: 30px; }
.page .back:hover { color: var(--ink); }
.notfound { text-align: center; padding: clamp(120px, 20vw, 200px) 20px; }
.notfound h1 { font-size: 1.6rem; margin: 0 0 16px; }

@media (prefers-reduced-motion: reduce) {
  .sky::before, .sky::after, .phone-glow { animation: none !important; transform: none !important; }
  .hero-map .pin { animation: none !important; transform: none !important; }
  .style-card, .feature-card { opacity: 1 !important; transform: none !important; transition: none !important; }
}
