/* Kidmas: a Christmas Eve arrivals board in green and red.
   Evergreen night sky up top, snow below; red sleigh, bright red numbers, mint and pine greens.
   Display: Big Shoulders Display (signage). Body: Onest. */

:root {
  --night: #0E2E21;
  --night-2: #0A2219;
  --cell: #143D2D;
  --ink: #10241B;
  --snow: #F4F8F3;
  --paper: #FFFFFF;
  --holly: #E0313F;
  --holly-dk: #B81E2D;
  --gold: #FF5A64;   /* "gold" token now holds the bright Kidmas red used for numbers and glows */
  --pine: #1E7A4F;
  --frost: #B3D4C0;
  --mute: #4A6457;
  --line: #D5E4DA;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .98; letter-spacing: .002em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-red { background: var(--holly); color: #fff; }
.btn-red:hover { background: var(--holly-dk); }
.btn-ghost { border-color: rgba(244, 248, 243, .35); color: var(--snow); background: transparent; }
.btn-ghost:hover { border-color: var(--snow); }
.btn-ink { background: var(--ink); color: var(--snow); }
.btn-ink:hover { background: var(--night); }
.btn-snow { background: var(--snow); color: var(--holly-dk); }
.btn-snow:hover { background: #fff; }
.btn-line { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-line:hover { border-color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  color: var(--snow);
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.scrolled { background: rgba(14, 46, 33, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 26px/1 var(--display); letter-spacing: .01em; }
.nav-links { display: flex; gap: 26px; margin-right: auto; margin-left: 18px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--frost); transition: color .2s; }
.nav-links a:hover { color: var(--snow); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ca-pill {
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--snow);
}
.ca-pill:hover { background: rgba(255, 255, 255, .14); }
.x-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.x-btn:hover { background: rgba(255, 255, 255, .14); }

/* ---------- the sky (hero) ---------- */
.sky {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 520px at 78% 8%, rgba(255, 90, 100, .10), transparent 60%),
    linear-gradient(180deg, #092619 0%, var(--night) 55%, #155238 100%);
  color: var(--snow);
  padding: 120px 0 150px;
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hills {
  position: absolute; left: -5%; right: -5%; bottom: -2px; height: 120px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 120px at 18% 100%, var(--snow) 98%, transparent 100%),
    radial-gradient(55% 100px at 70% 100%, var(--snow) 98%, transparent 100%),
    radial-gradient(40% 70px at 100% 100%, var(--snow) 98%, transparent 100%);
}
.hills::before {   /* a faint back ridge */
  content: ''; position: absolute; inset: -30px 0 0;
  background: radial-gradient(50% 110px at 45% 100%, rgba(244, 248, 243, .14) 98%, transparent 100%);
}

.hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(46px, 6.4vw, 92px); font-weight: 900; text-wrap: balance; }
.lede { margin-top: 24px; max-width: 34em; font-size: 18px; color: var(--frost); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--frost); max-width: 36em; }
.hero-note b { color: var(--gold); font-weight: 600; }

/* the sleigh that crosses the sky at every handoff */
.flyer { position: absolute; z-index: 0; top: 110px; left: 0; width: 120px; opacity: 0; pointer-events: none; will-change: transform; }
.flyer svg { width: 120px; height: auto; filter: drop-shadow(0 0 14px rgba(255, 90, 100, .35)); }
.flyer .trail { position: absolute; right: 100%; top: 62%; width: 220px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 90, 100, .8)); border-radius: 2px; }
.flyer.go { animation: fly 4.2s cubic-bezier(.45, .05, .4, 1) forwards; }
@keyframes fly {
  0%   { opacity: 0; transform: translate(-160px, 120px) rotate(-8deg); }
  10%  { opacity: 1; }
  50%  { transform: translate(50vw, 10px) rotate(-3deg); }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(100vw + 60px), 60px) rotate(4deg); }
}

/* ---------- the arrivals board ---------- */
.board {
  position: relative;
  background: linear-gradient(180deg, #0C281D, var(--night-2));
  border: 1px solid rgba(179, 212, 192, .16);
  border-radius: var(--r-lg);
  padding: 22px 24px 18px;
  box-shadow: 0 30px 80px rgba(2, 12, 7, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.board::before {   /* two bolts, like a hung sign */
  content: ''; position: absolute; top: 12px; left: 12px; right: 12px; height: 6px;
  background: radial-gradient(circle 3px at 3px 3px, #2F6A4F 98%, transparent) 0 0 / 100% 6px no-repeat,
              radial-gradient(circle 3px at calc(100% - 3px) 3px, #2F6A4F 98%, transparent) 0 0 / 100% 6px no-repeat;
}
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--frost); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 90, 100, .18); }
body:not(.prelaunch) .status i { background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } }
.board-stop { font: 800 18px/1 var(--display); color: var(--frost); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.board-label { display: block; font-size: 13px; font-weight: 500; color: var(--frost); margin-bottom: 8px; }

/* split-flap name: every letter sits in its own cell */
.flap-name {
  min-height: 2.5em;
  font: 800 clamp(21px, 2.3vw, 28px)/1 var(--display);
  text-transform: uppercase; color: var(--snow);
  display: flex; flex-wrap: wrap; gap: .3em .32em;
}
.flap-name .w { display: inline-flex; gap: 2px; }
.flap-name .c {
  position: relative; display: inline-grid; place-items: center;
  width: .78em; height: 1.22em; border-radius: 3px;
  background: linear-gradient(180deg, #1B4A37 0 50%, var(--cell) 50% 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .35);
}
.flap-name .c::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(3, 16, 10, .75); }
.flap-name .c.spin { color: var(--gold); }

.now-meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--frost); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .08); color: var(--snow); }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--gold)); }

.board-mid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; margin-top: 20px; }
.countdown, .pot { background: rgba(255, 255, 255, .035); border: 1px solid rgba(179, 212, 192, .12); border-radius: var(--r); padding: 14px 16px; }
.digits { display: flex; gap: 4px; font: 900 clamp(44px, 5vw, 62px)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.digits b { position: relative; display: grid; place-items: center; width: .74em; height: 1.08em; border-radius: 6px; background: linear-gradient(180deg, #1B4A37 0 50%, var(--cell) 50% 100%); }
.digits b::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(3, 16, 10, .8); }
.digits b.colon { width: .3em; background: none; }
.digits b.colon::after { display: none; }
.digits b.flip { animation: flip .38s ease-out; }
@keyframes flip { 0% { transform: rotateX(70deg); filter: brightness(1.6); } 100% { transform: none; } }
.bar { display: block; height: 4px; margin-top: 12px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width .9s linear; }
.board.hot .digits { color: #FFFFFF; }
.board.hot .bar i { background: var(--holly); }
.pot b { display: block; font: 800 30px/1.05 var(--display); color: var(--snow); font-variant-numeric: tabular-nums; }
.now-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--frost); text-underline-offset: 3px; }
.now-link:hover { color: var(--snow); }

.board-next { margin-top: 20px; }
.next li {
  display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 6px; border-top: 1px solid rgba(179, 212, 192, .1);
}
.next .t { font: 800 18px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.next .n { font: 700 17px/1.15 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--snow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next .g { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--gold)); }
.next li.in { animation: rowIn .5s ease-out both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } }
.board-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 6px 0; border-top: 1px solid rgba(179, 212, 192, .1); font-size: 13px; color: var(--frost); }
.board-foot a { color: var(--snow); font-weight: 500; text-underline-offset: 3px; }

/* ---------- tally ---------- */
.tally { position: relative; z-index: 2; margin-top: -40px; }
.tally-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(14, 46, 33, .10); padding: 0; }
.tally-grid > div { padding: 26px 28px; border-left: 1px solid var(--line); }
.tally-grid > div:first-child { border-left: 0; }
.tally-grid b { display: block; font: 900 clamp(36px, 4vw, 52px)/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.tally-grid > div:first-child b { color: var(--holly); }
.tally-grid span { display: block; margin-top: 8px; font-size: 15px; color: var(--mute); }

/* ---------- section heads ---------- */
.sec-head { max-width: 640px; }
.sec-head h2 { font-size: clamp(40px, 5vw, 66px); font-weight: 900; text-wrap: balance; }
.sec-head p { margin-top: 16px; color: var(--mute); font-size: 18px; }

/* ---------- the route ---------- */
.route { padding: 110px 0 100px; }
.route-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--ink)); }
.chip[data-g="all"]::before { display: none; }
.chip small { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: #B5CDBE; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--snow); }
.chip[aria-pressed="true"] small { color: var(--frost); }
.search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--mute); min-width: 280px; }
.search:focus-within { border-color: var(--ink); }
.search input { border: 0; outline: 0; background: none; font: 400 15px var(--body); color: var(--ink); width: 100%; min-width: 0; }
.route-count { margin: 26px 0 12px; font-size: 14px; color: var(--mute); }

.stops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stop {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px 20px 18px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
}
.stop.now { border-color: var(--holly); box-shadow: 0 0 0 3px rgba(224, 49, 63, .12); }
.stop-n { display: grid; place-items: center; height: 56px; border-radius: var(--r-sm); background: var(--snow); font: 900 22px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stop-n > span { display: grid; justify-items: center; gap: 4px; }
.stop-n small { display: block; font: 600 11px/1 var(--body); color: var(--mute); }
.stop.now .stop-n { background: var(--holly); color: #fff; }
.stop.now .stop-n small { color: rgba(255, 255, 255, .8); }
.stop h3 { font: 700 21px/1.1 var(--display); letter-spacing: .005em; overflow-wrap: anywhere; }
.stop-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--mute); }
.stop-meta .grp { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.stop-meta .grp::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.stop-foot { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 14px; }
.stop-when { font-weight: 600; color: var(--pine); }
.stop.now .stop-when { color: var(--holly); }
.stop-foot a { color: var(--mute); text-underline-offset: 3px; }
.stop-foot a:hover { color: var(--ink); }
.claimed { color: var(--pine); font-size: 13px; font-weight: 500; }
.empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--mute); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); }
.more-row { display: flex; justify-content: center; margin-top: 28px; }
.more-row[hidden] { display: none; }

/* ---------- deliveries ---------- */
.deliveries { background: var(--night); color: var(--snow); padding: 100px 0; }
.deliveries .sec-head p { color: var(--frost); }
.del-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.del-total { font-size: 16px !important; }
.del-total b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.log { display: grid; gap: 10px; }
.log li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  padding: 16px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(179, 212, 192, .12);
}
.log h3 { font: 700 20px/1.1 var(--display); overflow-wrap: anywhere; }
.log p { grid-column: 1; font-size: 14px; color: var(--frost); }
.log .amt { grid-row: 1; grid-column: 2; justify-self: end; font: 800 22px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.log .rc { grid-column: 2; justify-self: end; font-size: 14px; font-weight: 500; color: var(--snow); text-underline-offset: 3px; }
.log .demo { font-size: 12px; color: var(--frost); }
.log li.in { animation: rowIn .6s ease-out both; }
.log li.blank { grid-template-columns: 1fr; border-style: dashed; }
.log li.blank p { max-width: 38em; }

/* ---------- how ---------- */
.how { padding: 110px 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px; counter-reset: s; position: relative; }
.steps::before {  /* the flight path joining the steps */
  content: ''; position: absolute; top: 27px; left: 28px; right: 12%; height: 0;
  border-top: 2px dashed #BFD6C7;
}
.steps li { position: relative; padding-right: 28px; }
.step-n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--gold); font: 900 26px/1 var(--display); }
.steps li:nth-child(3) .step-n { background: var(--holly); color: #fff; }
.steps h3 { margin-top: 22px; font-size: 28px; font-weight: 800; }
.steps p { margin-top: 10px; color: var(--mute); font-size: 16px; max-width: 24em; }

/* ---------- token ---------- */
.token { padding: 0 0 110px; }
.token-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center;
  background: var(--holly); color: #fff; border-radius: 28px; padding: 56px;
  max-width: calc(var(--wrap) - 48px);
  position: relative; overflow: hidden;
}
.token-card::after {   /* a ribbon across the corner, like a wrapped gift */
  content: ''; position: absolute; top: 0; bottom: 0; right: 38%; width: 22px; background: rgba(255, 90, 100, .9); pointer-events: none;
}
.token-copy, .facts { position: relative; z-index: 1; }
.token-card h2 { font-size: clamp(40px, 4.6vw, 62px); font-weight: 900; text-wrap: balance; }
.token-copy > p { margin-top: 14px; font-size: 18px; color: rgba(255, 255, 255, .9); max-width: 30em; }
.ca-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; padding: 14px 14px 14px 18px; border-radius: var(--r); background: rgba(0, 0, 0, .16); }
.ca-label { width: 100%; font-size: 13px; color: rgba(255, 255, 255, .8); }
.ca-box code { flex: 1 1 260px; min-width: 0; font: 500 15px/1.4 ui-monospace, 'Cascadia Mono', Menlo, monospace; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 10px; }
.facts div { padding: 14px 16px; border-radius: var(--r); background: var(--snow); }
.facts dt { font-size: 13px; color: var(--mute); }
.facts dd { margin: 4px 0 0; font: 800 26px/1 var(--display); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--frost); padding: 56px 0 30px; }
.foot .brand { color: var(--snow); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--snow); font-size: 15px; text-underline-offset: 3px; }
.disclaimer { margin-top: 30px; font-size: 13px; line-height: 1.65; max-width: 80ch; }
.foot-bar { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(179, 212, 192, .14); font-size: 13px; }
.foot-bar a { color: var(--snow); }

/* ---------- floating pill + toast ---------- */
.float {
  position: fixed; z-index: 40; left: 50%; bottom: 18px; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 8px 10px 8px 16px; border-radius: 999px; text-decoration: none;
  background: var(--night); color: var(--snow); box-shadow: 0 14px 40px rgba(14, 46, 33, .35);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.2);
}
.float.on { transform: translate(-50%, 0); }
.float-text { display: grid; min-width: 0; line-height: 1.2; }
.float-text span { font-size: 12px; color: var(--frost); }
.float-text b { font: 700 16px/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.float-time { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--cell); font: 800 18px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.toast {
  position: fixed; z-index: 60; left: 50%; top: 18px; transform: translate(-50%, calc(-100% - 40px)); visibility: hidden;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r);
  background: var(--gold); color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  transition: transform .35s ease, visibility 0s linear .35s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s ease, visibility 0s; }

/* ---------- group colours (used by chips, tags, stops) ---------- */
[data-g="sick"]    { --dot: #E0313F; }
[data-g="safe"]    { --dot: #FF9AA2; }
[data-g="home"]    { --dot: #9E1B28; }
[data-g="ability"] { --dot: #4FC98A; }
[data-g="food"]    { --dot: #A3D15C; }
[data-g="learn"]   { --dot: #2E9E6B; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .board { max-width: 620px; }
  .nav-links { display: none; }
  .del-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .token-card { grid-template-columns: 1fr; padding: 40px; }
  .token-card::after { right: 26px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 12px 16px; gap: 10px; }
  .nav.scrolled { padding: 8px 16px; }
  .brand { font-size: 23px; }
  .ca-pill { display: none; }
  .sky { padding: 96px 0 120px; }
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .board { padding: 18px 14px 14px; border-radius: 18px; }
  .board-mid { grid-template-columns: 1fr; }
  .flap-name { font-size: 19px; }
  .next li { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; }
  .next .n { font-size: 15px; }
  .tally-grid { grid-template-columns: 1fr 1fr; }
  .tally-grid > div { padding: 20px 18px; }
  .tally-grid > div:nth-child(3) { border-left: 0; }
  .tally-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .route, .how { padding: 80px 0; }
  .deliveries { padding: 80px 0; }
  .route-tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .search { min-width: 0; }
  .stops { grid-template-columns: 1fr; }
  .stop { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .stop-n { height: 48px; font-size: 19px; }
  .steps { grid-template-columns: 1fr; row-gap: 30px; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; padding-right: 0; }
  .steps .step-n { grid-row: span 2; }
  .steps h3 { margin-top: 4px; font-size: 26px; }
  .steps p { grid-column: 2; }
  .token { padding-bottom: 80px; }
  .token-card { padding: 30px 20px; border-radius: 22px; margin: 0 16px; width: auto; }
  .token-card::after { width: 14px; right: 18px; }
  .facts dd { font-size: 22px; }
  .foot-bar { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .flyer { display: none; }
}

/* =================================================================
   MOTION: the shiny layer.
   One hero entrance, a glint on the Buy buttons, a gold light circling the board,
   a sparkle burst + glitter trail at every handoff (main.js), twinkling lights,
   count-up numbers, the flight path drawing in, and a shimmer on the gift card.
   Everything here is switched off or made static under prefers-reduced-motion.
   ================================================================= */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- hero entrance (plays once) ---------- */
.js .hero-copy h1 .hw { display: inline-block; opacity: 0; transform: translateY(.35em); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(120ms + var(--i) * 55ms); }
.js .hero-copy .lede,
.js .hero-copy .cta-row,
.js .hero-copy .hero-note { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease-out) forwards; }
.js .hero-copy .lede { animation-delay: .55s; }
.js .hero-copy .cta-row { animation-delay: .68s; }
.js .hero-copy .hero-note { animation-delay: .8s; }
.js .board { opacity: 0; transform: translateY(26px) scale(.97); animation: rise 1.1s var(--ease-out) .35s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- glint across the red buttons ---------- */
.btn-red { position: relative; overflow: hidden; isolation: isolate; }
.btn-red::after {
  content: ''; position: absolute; top: -2px; bottom: -2px; left: 0; width: 38%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55) 50%, transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: glint 5.5s var(--ease-in-out) 1.8s infinite;
}
@keyframes glint { 0% { transform: translateX(-160%) skewX(-18deg); } 20%, 100% { transform: translateX(360%) skewX(-18deg); } }
@media (hover: hover) and (pointer: fine) {
  .btn-red { transition: transform .15s ease, background-color .2s ease, box-shadow .25s ease; }
  .btn-red:hover { box-shadow: 0 8px 26px rgba(224, 49, 63, .45), 0 0 0 4px rgba(255, 90, 100, .16); }
}

/* ---------- the board: a gold light circling its edge ---------- */
.board-glint {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 68%, rgba(255, 90, 100, .15) 74%, rgba(255, 175, 180, .95) 80%, rgba(255, 90, 100, .15) 86%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 7s linear infinite;
}
@keyframes orbit { to { --a: 360deg; } }

/* a sheet of light across the board at each handoff */
.board-sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 2; }
.board-sheen::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16) 45%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .16) 55%, transparent);
  transform: translateX(-130%) skewX(-12deg); opacity: 0;
}
.board.shine .board-sheen::after { animation: sheen 1.3s var(--ease-in-out); }
@keyframes sheen { 0% { transform: translateX(-130%) skewX(-12deg); opacity: 1; } 100% { transform: translateX(400%) skewX(-12deg); opacity: 1; } }

/* sparkle burst (spans are made and animated by main.js) */
.burst { position: absolute; left: 50%; top: 34%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.spark { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--c, var(--gold));
         clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* new name settles with a glow */
.flap-name .c { transition: color .4s ease, text-shadow .6s ease; }
.flap-name .c.spin { text-shadow: 0 0 10px rgba(255, 90, 100, .7); }

/* ---------- Christmas lights on the totals card ---------- */
.tally-grid { position: relative; }
.lights { position: absolute; left: 18px; right: 18px; top: -10px; height: 40px; pointer-events: none; display: block; }
.lights svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bulb {
  position: absolute; top: 0; width: 10px; height: 15px; margin-left: -5px; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%;
  background: var(--bc); transform: translateY(var(--y)) rotate(var(--r));
  animation: bulb 2.4s ease-in-out infinite alternate; animation-delay: var(--d);
}
.bulb::before { content: ''; position: absolute; left: 2px; top: -4px; width: 6px; height: 5px; border-radius: 1.5px; background: #5B6F63; }
.bulb::after {   /* the glow, faded in and out so only opacity animates */
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  background: radial-gradient(circle, var(--bc) 0%, transparent 70%); opacity: .55;
  animation: twinkle 2.4s ease-in-out infinite alternate; animation-delay: var(--d);
}
@keyframes twinkle { from { opacity: .15; } to { opacity: .8; } }
@keyframes bulb { from { filter: brightness(.7) saturate(.8); } to { filter: brightness(1.15); } }
@media (min-width: 761px) { .tally-grid > div { padding-top: 36px; } }
@media (max-width: 760px) { .tally-grid > div:nth-child(-n+2) { padding-top: 32px; } }

/* gold shimmer on the money figure */
.tally-grid > div:first-child b {
  background: linear-gradient(100deg, var(--holly) 0 40%, #FF8F96 48%, var(--gold) 50%, #FF8F96 52%, var(--holly) 60% 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: textShine 6s linear infinite;
}
@keyframes textShine { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ---------- route: the current stop glows, cards lift on hover ---------- */
.stop.now::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 6px rgba(224, 49, 63, .18), 0 0 26px rgba(224, 49, 63, .25);
  animation: nowGlow 1.8s ease-in-out infinite alternate;
}
@keyframes nowGlow { from { opacity: .25; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .stop { transition: transform .2s var(--ease-out), border-color .2s ease, box-shadow .2s ease; }
  .stop:hover { transform: translateY(-2px); border-color: #E0313F; box-shadow: 0 10px 28px rgba(14, 46, 33, .08); }
  .chip:active { transform: scale(.97); }
}
.stops.swap .stop { animation: stopIn .45s var(--ease-out) both; animation-delay: calc(min(var(--i), 10) * 30ms); }
@keyframes stopIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- deliveries: a gold flash on the newest one ---------- */
.log li.in { position: relative; overflow: hidden; }
.log li.in::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 90, 100, .22), transparent);
  transform: translateX(-120%) skewX(-12deg); animation: sheen 1.4s var(--ease-in-out) .3s;
}

/* ---------- how it works: the flight path draws itself ---------- */
.js .steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
.js .steps .step-n { opacity: 0; transform: scale(.85); transition: opacity .5s ease, transform .6s var(--ease-out); transition-delay: calc(var(--i) * 180ms + 150ms); }
.js .steps h3, .js .steps p { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .7s var(--ease-out); transition-delay: calc(var(--i) * 180ms + 260ms); }
.js .steps.in::before { transform: scaleX(1); }
.js .steps.in .step-n, .js .steps.in h3, .js .steps.in p { opacity: 1; transform: none; }
.steps li:nth-child(3) .step-n::after {   /* the "it lands" step keeps a soft ring */
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(224, 49, 63, .45);
  animation: ring 2.2s var(--ease-out) infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- token card: a slow sheen like foil wrapping paper ---------- */
.token-card::before {
  content: ''; position: absolute; top: -30%; bottom: -30%; left: 0; width: 30%; pointer-events: none; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14) 50%, transparent);
  transform: translateX(-140%) skewX(-16deg);
  animation: foil 8s var(--ease-in-out) 2s infinite;
}
@keyframes foil { 0% { transform: translateX(-140%) skewX(-16deg); } 28%, 100% { transform: translateX(460%) skewX(-16deg); } }
.token-card::after { background: linear-gradient(180deg, #2E9E6B, #1E7A4F 40%, #5CC08A 50%, #1E7A4F 60%, #2E9E6B) 0 0 / 100% 300%; animation: ribbon 5s linear infinite; }
@keyframes ribbon { from { background-position: 0 0; } to { background-position: 0 300%; } }

@media (prefers-reduced-motion: reduce) {
  .js .hero-copy h1 .hw, .js .hero-copy .lede, .js .hero-copy .cta-row, .js .hero-copy .hero-note, .js .board { opacity: 1; transform: none; animation: none; }
  .btn-red::after, .board-glint, .board-sheen, .burst, .token-card::before, .stop.now::after, .steps li:nth-child(3) .step-n::after { display: none; }
  .bulb, .bulb::after, .token-card::after, .tally-grid > div:first-child b { animation: none; }
  .js .steps::before, .js .steps .step-n, .js .steps h3, .js .steps p { opacity: 1; transform: none; transition: none; }
}

/* =================================================================
   BROWN: every section that used to be white is now warm cocoa
   (tally, route, how it works, around the gift card), and the route
   is a clean list of rows instead of a grid of cards.
   ================================================================= */
:root {
  --cocoa: #3A2416;      /* page */
  --cocoa-2: #4A2E1D;    /* panels */
  --cocoa-3: #5B3925;    /* hover / inner tiles */
  --cream: #F7EBDC;      /* text on brown */
  --latte: #CDB39B;      /* quiet text on brown */
  --mint: #5CD69A;       /* landing times */
  --paper: var(--cocoa-2);
  --mute: var(--latte);
  --line: rgba(247, 235, 220, .12);
}
body { background: var(--cocoa); color: var(--cream); }

/* the snow hills at the bottom of the sky become cocoa ground */
.hills {
  background:
    radial-gradient(60% 120px at 18% 100%, var(--cocoa) 98%, transparent 100%),
    radial-gradient(55% 100px at 70% 100%, var(--cocoa) 98%, transparent 100%),
    radial-gradient(40% 70px at 100% 100%, var(--cocoa) 98%, transparent 100%);
}
.hills::before { background: radial-gradient(50% 110px at 45% 100%, rgba(91, 57, 37, .55) 98%, transparent 100%); }

/* totals */
.tally-grid { background: var(--cocoa-2); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.tally-grid b { color: var(--cream); }

/* how it works */
.steps::before { border-top-color: rgba(247, 235, 220, .22); }
.step-n { background: var(--cocoa-2); border: 1px solid var(--line); }
.steps p { color: var(--latte); }

/* facts inside the gift card */
.facts { background: rgba(58, 36, 22, .55); color: var(--cream); }
.facts div { background: var(--cocoa-2); }
.facts dt { color: var(--latte); }

/* ---------- the route: filters on one line, then a clean list ---------- */
.route-tools { flex-wrap: nowrap; align-items: center; gap: 20px; margin-top: 36px; }
.chips {
  flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 2px 0;
  scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 92%, transparent); mask: linear-gradient(90deg, #000 92%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; padding: 0 14px; background: transparent; border-color: var(--line); color: var(--cream); font-size: 14px; }
.chip:hover { border-color: rgba(247, 235, 220, .35); }
.chip small { color: var(--latte); }
.chip::before { background: var(--dot, var(--cream)); }
.chip[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--cocoa); }
.chip[aria-pressed="true"] small { color: rgba(58, 36, 22, .65); }
.search { flex: none; width: 280px; min-width: 0; min-height: 42px; background: var(--cocoa-2); border-color: var(--line); color: var(--latte); }
.search:focus-within { border-color: var(--latte); }
.search input { color: var(--cream); }
.search input::placeholder { color: var(--latte); opacity: 1; }
.route-count { margin: 22px 0 10px; color: var(--latte); }

.stops { display: block; background: var(--cocoa-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; }
.stop {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 14px 18px 14px 10px; background: transparent; border: 0; border-radius: var(--r);
}
.stop + .stop { box-shadow: inset 0 1px 0 var(--line); }
.stop-n {
  display: block; height: auto; background: none; border-radius: 0; text-align: right;
  font: 800 22px/1 var(--display); color: rgba(247, 235, 220, .38); font-variant-numeric: tabular-nums;
}
.stop h3 { font: 700 21px/1.15 var(--display); letter-spacing: .01em; }
.stop h3 a { color: var(--cream); text-decoration: none; }
.stop h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stop-meta { margin-top: 4px; gap: 2px 14px; font-size: 14px; color: var(--latte); }
.stop-meta .grp { color: var(--cream); font-weight: 500; }
.claimed { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: rgba(92, 214, 154, .14); color: var(--mint); font-size: 12px; font-weight: 600; }
.stop-when { justify-self: end; white-space: nowrap; font: 800 17px/1 var(--display); letter-spacing: .02em; color: var(--mint); font-variant-numeric: tabular-nums; }

/* the stop landing now: red number, red label, a red bar on the left */
.stop.now { background: rgba(224, 49, 63, .12); box-shadow: none; border: 0; }
.stop.now + .stop { box-shadow: none; }
.stop.now .stop-n { background: none; color: var(--holly); }
.stop.now .stop-when { color: #fff; background: var(--holly); padding: 7px 10px; border-radius: 999px; font-size: 15px; }
.stop.now::after {
  inset: 12px auto 12px 0; width: 3px; border-radius: 3px; background: var(--holly); box-shadow: none;
}
.stop:hover { transform: none; border-color: transparent; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .stop { transition: background-color .15s ease; }
  .stop:hover { background: var(--cocoa-3); }
  .stop.now:hover { background: rgba(224, 49, 63, .18); }
  .stop:hover + .stop { box-shadow: none; }
}
.empty { background: transparent; border: 0; color: var(--latte); }
.route .btn-ink { background: transparent; border-color: rgba(247, 235, 220, .3); color: var(--cream); }
.route .btn-ink:hover { border-color: var(--cream); }

@media (max-width: 760px) {
  .route-tools { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .chips { margin: 0 -16px; padding: 2px 16px; -webkit-mask: none; mask: none; }
  .search { width: auto; }
  .stops { margin: 0 -6px; padding: 4px; }
  .stop { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 14px 12px 14px 6px; align-items: start; }
  .stop-n { font-size: 18px; padding-top: 2px; }
  .stop h3 { font-size: 19px; }
  .stop-when { grid-column: 2; justify-self: start; margin-top: 6px; font-size: 15px; }
  .stop.now .stop-when { font-size: 14px; }
}
