:root {
  --navy: #0b1f44;
  --navy-2: #162e51;
  --blue: #005ea2;
  --red: #c8102e;
  --red-2: #e52207;
  --cream: #f7f5f0;
  --ink: #1b1b1b;
  --ink-2: #565c65;
  --line: #dfe1e2;
  --white: #fff;
  --green: #00a91c;
  --radius: 20px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --bg: #f7f5f0;
  --surface: #fff;
  --card: #f7f5f0;
  --heading: #0b1f44;
  --chrome: #f0f0f0;
  --nav-bg: rgba(255,255,255,.82);
  --line-soft: rgba(0,0,0,.06);
  --btn-dark: #0b1f44;
  --checklist: #0b1f44;
  --dot: #c9c3b5;
  --open-bg: #e3f5e1; --open-fg: #19701b;
  --soon-bg: #fff1d2; --soon-fg: #8a5300;
  --closed-bg: #f3e1e4; --closed-fg: #a00b23;
  --sc-sky: #e9e3d6; --sc-cloud: #fff; --sc-ground: #ddd5c3; --sc-road: #fff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --surface: #0f172a;
    --card: #172238;
    --heading: #f1f4f9;
    --ink: #e6eaf1;
    --ink-2: #a3adbd;
    --line: #26334d;
    --line-soft: rgba(255,255,255,.07);
    --blue: #7cb8ff;
    --chrome: #080d19;
    --nav-bg: rgba(11,17,32,.82);
    --btn-dark: #24365f;
    --checklist: #13203b;
    --dot: #3a4763;
    --open-bg: rgba(46,160,67,.18); --open-fg: #74e08f;
    --soon-bg: rgba(255,190,46,.15); --soon-fg: #ffcf66;
    --closed-bg: rgba(229,34,7,.18); --closed-fg: #ff8f8f;
    --sc-sky: #18233b; --sc-cloud: #22304e; --sc-ground: #1a2540; --sc-road: #3a4763;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #0f172a;
  --card: #172238;
  --heading: #f1f4f9;
  --ink: #e6eaf1;
  --ink-2: #a3adbd;
  --line: #26334d;
  --line-soft: rgba(255,255,255,.07);
  --blue: #7cb8ff;
  --chrome: #080d19;
  --nav-bg: rgba(11,17,32,.82);
  --btn-dark: #24365f;
  --checklist: #13203b;
  --dot: #3a4763;
  --open-bg: rgba(46,160,67,.18); --open-fg: #74e08f;
  --soon-bg: rgba(255,190,46,.15); --soon-fg: #ffcf66;
  --closed-bg: rgba(229,34,7,.18); --closed-fg: #ff8f8f;
  --sc-sky: #18233b; --sc-cloud: #22304e; --sc-ground: #1a2540; --sc-road: #3a4763;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar + nav ---------- */
.topbar {
  background: var(--chrome);
  color: var(--ink);
  font-size: 12px;
  padding: 6px var(--gutter);
  display: flex; align-items: center; gap: 8px;
}
.topbar__flag {
  flex: none; width: 16px; height: 11px;
  background:
    linear-gradient(var(--navy-2), var(--navy-2)) 0 0 / 7px 6px no-repeat,
    repeating-linear-gradient(var(--red) 0 1px, #fff 1px 2px);
  outline: 1px solid #ccc;
}
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--gutter);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav > * { min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.01em; }
.nav__cta {
  white-space: nowrap;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 92px);
  display: flex; flex-direction: column;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero__flag { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; opacity: .55; }
.hero__stars { position: absolute; inset: 0; z-index: -2; }
.hero__stars i {
  position: absolute; width: 10px; height: 10px; color: #fff;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: currentColor; opacity: .8;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(11,31,68,.55), rgba(11,31,68,.92) 70%),
    linear-gradient(180deg, rgba(11,31,68,.2), var(--navy));
}
.hero__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 88px; text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 14px;
}
.hero__eyebrow { color: #ffbe2e; }
.eyebrow--light { color: #ffbe2e; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(60px, 16vw, 132px); line-height: .92; letter-spacing: -.02em;
  margin: 0 0 20px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title .line > span { display: inline-block; }
.accent {
  background: linear-gradient(90deg, #fff 0%, #ffd7d7 40%, #ff5a5f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(18px, 4.6vw, 22px); color: rgba(255,255,255,.82); margin: 0 auto 32px; max-width: 34ch; }

/* ZIP box */
.zip { width: 100%; min-width: 0; max-width: 480px; margin: 0 auto; }
.zip__field {
  display: flex; align-items: center;
  background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 4px rgba(255,255,255,.12);
  transition: box-shadow .25s;
}
.zip__field:focus-within { box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 4px #ffbe2e; }
.zip__field.shake { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.zip__pin { width: 22px; height: 22px; fill: var(--red); flex: none; }
.zip input {
  flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 700 22px/1 var(--sans); letter-spacing: .08em; color: var(--ink);
  padding: 14px 10px;
}
.zip input::placeholder { color: #9aa0a6; letter-spacing: 0; font-weight: 500; }
.zip__go {
  flex: none; display: flex; align-items: center; gap: 6px;
  border: 0; cursor: pointer; border-radius: 999px;
  background: var(--red); color: #fff; font: 700 17px var(--sans);
  padding: 14px 22px; min-height: 52px;
  transition: transform .15s, background .2s;
}
.zip__go:hover { background: var(--red-2); }
.zip__go:active { transform: scale(.96); }
.zip__go svg { width: 20px; height: 20px; }
.zip__go.loading span { opacity: .6; }
.zip__hint { font-size: 14px; color: rgba(255,255,255,.7); margin: 12px 0 0; min-height: 1.5em; }
.zip__hint.err { color: #ffbe2e; font-weight: 600; }

/* Countdown */
.countdown { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-top: 40px; }
.countdown div { display: flex; align-items: baseline; gap: 4px; }
.countdown b { font: 400 38px var(--serif); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 13px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }
.countdown p { width: 100%; margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,.6); }


/* ---------- Results ---------- */
.results { background: var(--surface); padding: 48px 0 64px; border-bottom: 1px solid var(--line); scroll-margin-top: 60px; }
.res__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.res__place { font-size: 15px; color: var(--ink-2); margin: 0; font-weight: 600; }
.res__again { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.res__title { font-family: var(--serif); font-size: clamp(42px, 10vw, 68px); line-height: 1; letter-spacing: -.015em; margin: 0 0 12px; color: var(--heading); }
.res__lede { font-size: clamp(17px, 4.4vw, 20px); color: var(--ink-2); margin: 0 0 28px; max-width: 60ch; }

.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; margin-bottom: 16px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge--open { background: var(--open-bg); color: var(--open-fg); }
.badge--open::before { animation: pulse 1.6s infinite; }
.badge--soon { background: var(--soon-bg); color: var(--soon-fg); }
.badge--closed { background: var(--closed-bg); color: var(--closed-fg); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(25,112,27,.5); } 50% { box-shadow: 0 0 0 6px rgba(25,112,27,0); } }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  border: 1px solid var(--line-soft);
}
.card h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.card .v { font: 400 32px/1.1 var(--serif); color: var(--heading); margin: 0 0 4px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

.timeline { margin: 28px 0 8px; }
.timeline__bar { position: relative; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.timeline__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--blue), var(--red)); border-radius: 999px; }
.timeline__labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-top: 8px; font-weight: 600; }

.sites { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.site { background: var(--card); border-radius: 16px; padding: 18px; display: grid; gap: 4px; }
.site b { font-size: 17px; color: var(--heading); }
.site span { color: var(--ink-2); font-size: 15px; }
.site a { font-weight: 700; font-size: 15px; margin-top: 6px; }

.actions { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 720px) { .actions { grid-template-columns: repeat(3, 1fr); } }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 14px 20px; border-radius: 16px;
  font-weight: 700; font-size: 16px; text-decoration: none; text-align: center;
  transition: background .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--red); color: #fff; }
.btn--dark { background: var(--btn-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--heading); border: 2px solid var(--heading); }

.checklist { margin: 32px 0 0; padding: 24px; background: var(--checklist); border: 1px solid var(--line-soft); color: #fff; border-radius: var(--radius); }
.checklist h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 32px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; font-size: 16px; color: rgba(255,255,255,.9); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 13px; font-weight: 400; color: #fff; }
.fine { font-size: 13px; color: var(--ink-2); margin-top: 20px; }

/* ---------- Headings ---------- */
.big { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 12vw, 96px); line-height: .98; letter-spacing: -.02em; margin: 0 0 48px; color: var(--heading); }
.big .muted { color: #8d939b; }
.big--light { color: #fff; }

/* ---------- Why ---------- */
.why { background: var(--surface); padding: clamp(56px, 10vw, 100px) 0; }
.why__grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }
.why__card { border-top: 3px solid var(--red); padding-top: 18px; }
.why__stat { display: block; font: 400 clamp(52px, 13vw, 72px)/1 var(--serif); color: var(--heading); margin-bottom: 10px; }
.why__card p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* ---------- Share ---------- */
.share { background: #b50000; color: #fff; padding: clamp(80px, 12vw, 116px) 0; text-align: center; }
.share__inner { display: flex; flex-direction: column; align-items: center; }
.share__title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9vw, 116px); line-height: .88; letter-spacing: -.01em; margin: 0 0 22px; }
.share__sub { font-size: 17px; line-height: 1.55; color: #ffe3e3; max-width: 30em; margin: 0 0 32px; }
.share__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 15px 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: #b50000; font: 600 17px var(--sans);
  transition: background .2s, color .2s;
}
.share__toggle svg { width: 19px; height: 19px; }
.share__toggle:active { transform: scale(.97); }
.share__toggle[aria-expanded="true"] { background: var(--navy); color: #fff; }
.share__tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; margin-top: 24px; }
.share__tray[hidden] { display: none; }
.share__tray a, .share__tray button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  background: rgba(115,0,0,.35); color: #fff; font: 600 14.5px var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.share__tray a:hover, .share__tray button:hover { background: #fff; color: #b50000; }
.share__toast { min-height: 1.5em; margin: 18px 0 0; color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.foot { background: var(--chrome); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-2); }
.foot p { margin: 0 0 8px; max-width: 70ch; }

/* Start hidden only when JS + motion will reveal */
.js-motion .hero__inner { opacity: 0; }
.js-motion .reveal, .js-motion .why__card { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


h1, h2, h3 { font-weight: 400; }
.card h3 { font-weight: 700; }
.walk__title .hl { color: var(--red); }

/* ---------- Walkthrough ---------- */
.walk { background: var(--bg); overflow: hidden; }
.walk__inner {
  min-height: 100svh; max-width: 900px; margin: 0 auto;
  padding: clamp(56px, 10vh, 96px) var(--gutter) 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.walk__title { font-family: var(--serif); font-size: clamp(40px, 10vw, 76px); line-height: 1; letter-spacing: -.02em; color: var(--heading); margin: 0 0 20px; max-width: 14ch; }
.walk__caps { list-style: none; margin: 0; padding: 0; position: relative; width: 100%; max-width: 30em; min-height: 6.2em; }
.walk__cap { font-size: clamp(17px, 4.4vw, 20px); color: var(--ink-2); }
.walk__cap b { display: block; font: 400 clamp(30px, 7vw, 40px)/1.1 var(--serif); color: var(--heading); }
.js-motion .walk__cap { position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden; }
.walk__dots { display: none; gap: 22px; margin: 14px 0 8px; }
.js-motion .walk__dots { display: flex; }
.walk__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); transition: background .3s, width .3s; }
.walk__dots i.on { background: var(--red); width: 22px; border-radius: 4px; }
.walk__stage { width: calc(100% + 2 * var(--gutter)); max-width: 900px; max-height: 58svh; margin: auto calc(-1 * var(--gutter)); }
html:not(.js-motion) .walk__caps { display: grid; gap: 18px; text-align: left; min-height: 0; margin-bottom: 24px; }

/* ---------- Scroll effects ---------- */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--red)); transform: scaleX(0); transform-origin: 0 50%; }
html:not(.js-motion) .progress { display: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform-origin: 0 100%; }
.why, .results { overflow: hidden; }

.local { display: inline-block; margin-top: 28px; font-weight: 700; font-size: 16px; text-decoration: none; }
.local::after { content: " ›"; }
.official { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.official::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--green); border-radius: 50%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l9 4v6c0 5.5-3.8 10.7-9 12-5.2-1.3-9-6.5-9-12V5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l9 4v6c0 5.5-3.8 10.7-9 12-5.2-1.3-9-6.5-9-12V5z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Theme ---------- */
body, .results, .why, .walk, .card, .site, .foot, .topbar, .nav { transition: background-color .35s, color .35s, border-color .35s; }
.nav__right { display: flex; align-items: center; gap: 10px; }
.theme {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--heading); cursor: pointer; display: grid; place-items: center;
}
.theme svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s; }
.theme .i-sun { opacity: 0; }
.theme.is-dark .i-moon { opacity: 0; }
.theme.is-dark .i-sun { opacity: 1; }
.sc-sky { fill: var(--sc-sky); }
.sc-cloud { fill: var(--sc-cloud); }
.sc-ground { fill: var(--sc-ground); }
.sc-road { fill: var(--sc-road); }
