/* Home page only, loaded after nightfeed.css: the hero, the four stories, the exhibits and the
   home nav. Anything also used by the other pages lives in nightfeed.css. */
/* ===== Night Feed landing ===== */
/* No rubber-band past the top or bottom: the overscroll area sits outside the
   page's own dark fills, so it showed the background cards far brighter. */
html { scroll-behavior: smooth; overscroll-behavior-y: none; }
body { overflow-x: hidden; overscroll-behavior-y: none; }

/* ===== Keyframes ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes coachUp { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes coachLeft { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }
@keyframes coachRight { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

/* ===== MeetupCard (static recreation of the app card) ===== */
.mcard--exhibit {
  background: rgba(8, 14, 16, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sheet-hint .mdi { font-size: 16px; line-height: 1; }

/* ===== Pills ===== */
.pill--group { border: 1px solid rgba(45, 212, 191, 0.3); }
.pill--host { background: rgba(74, 222, 128, 0.2); border: 1px solid rgba(74, 222, 128, 0.4); color: #4ADE80; }
.pill--md { padding: 5px 10px; font-size: 12px; }
.pill--md .mdi { font-size: 14px; }


/* ===== Avatars ===== */
/* 36px variant for "Who's in" panels */
.avatar-stack--lg .avatar { width: 36px; height: 36px; font-size: 14px; border-width: 2px; }
.avatar-stack--lg .avatar + .avatar { margin-left: -10px; }
.avatar-stack--lg .avatar-crown { width: 14px; height: 14px; border-radius: 7px; margin-left: -7px; top: -6px; }
.avatar-stack--lg .avatar-crown .mdi { font-size: 8px; }
.avatar-stack-label { margin-left: 12px; font-size: 13px; font-weight: 700; color: #c3cad2; }

/* ===== Fixed nav ===== */
/* Transparent over the hero; once the hero scrolls away it becomes a fixed
   glass bar so "Get the app" stays reachable (.is-stuck, toggled by JS). */
.site-nav {
  position: fixed;
  padding: 14px 28px;
  /* Clear at the very top of the page; turns to glass as soon as you scroll (.is-stuck) */
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}
/* The glass itself is nightfeed.css's, shared with Discover's nav */
.site-nav.is-stuck { padding: 9px 28px; }
.nav-brand { gap: 10px; }
.nav-brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.5)); transition: width 0.25s ease, height 0.25s ease; }
.nav-brand span { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; transition: font-size 0.25s ease; }
.site-nav.is-stuck .nav-brand img { width: 32px; height: 32px; }
.site-nav.is-stuck .nav-brand span { font-size: 19px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Flat dark fill over the drifting card wall — no gradient, no teal tint. The
   dividers reuse this exact fill (see .story-div::before) so they read identically. */
/* The base dim over the card wall is FIXED to the screen (body::after), not
   attached to the hero or the page. So when you overscroll past the top or the
   bottom, the wall is still dimmed instead of showing through bare. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
/* Extra dim for the hero only, on top of the fixed base (none by default) */
.hero-fill {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-fg {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1120px;
  box-sizing: border-box;
  padding: 72px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
/* Rotating promise under the headline: four lines share one slot, 1.5s each */
@keyframes heroRot { 0%, 100% { opacity: 0; transform: translateY(6px); } 3%, 22% { opacity: 1; transform: none; } 25% { opacity: 0; transform: translateY(-6px); } 25.1% { opacity: 0; transform: translateY(6px); } }
.hero-rot { position: relative; margin: 0 0 14px; width: 100%; height: 28px; font-size: 19px; font-weight: 500; line-height: 28px; color: #99F6E4; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9); }
.hero-rot span { position: absolute; left: 0; right: 0; opacity: 0; animation: heroRot 6s ease infinite; }
.hero-rot span:nth-child(1) { animation-delay: 0.9s; }
.hero-rot span:nth-child(2) { animation-delay: 2.4s; }
.hero-rot span:nth-child(3) { animation-delay: 3.9s; }
.hero-rot span:nth-child(4) { animation-delay: 5.4s; }

/* ===== Receipts: torn bottom edge + mint money ===== */
.receipt-edge { border-bottom: none !important; border-radius: 16px 16px 0 0 !important; background: var(--receipt-bg, #0A1315) !important; }
.receipt-edge::after {
  background:
    linear-gradient(-135deg, var(--receipt-bg, #0A1315) 5px, transparent 0) 0 0 / 12px 7px repeat-x,
    linear-gradient(135deg, var(--receipt-bg, #0A1315) 5px, transparent 0) 0 0 / 12px 7px repeat-x;
}
.hero-scene { display: none; position: relative; width: 500px; height: 600px; text-align: left; animation: fadeUp 0.9s ease 0.45s both; }
.hero-bill { position: absolute; z-index: 3; top: 0; right: 0; width: 222px; box-sizing: border-box; padding: 18px 18px 16px; border: 1px solid rgba(153, 246, 228, 0.2); display: flex; flex-direction: column; gap: 9px; transform: rotate(5deg); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55); }
.hero-bill-lines { display: flex; flex-direction: column; }
.hero-bill-lines > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(153, 246, 228, 0.1); font-size: 13px; font-weight: 600; color: #F7F9FA; }
.hero-bill-lines .bill-num { font-size: 13px; font-weight: 600; }
.hero-bill-share { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px dashed rgba(153, 246, 228, 0.25); font-size: 13px; color: #9ca3af; }
.hero-bill-share .bill-num { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; text-shadow: 0 0 20px rgba(45, 212, 191, 0.45); }
/* Variety behind the front card: a club run and a private night with friends */
.hero-mini .mcard-title { font-size: 17px; }
.hero-mini { position: absolute; width: 270px; box-sizing: border-box; background: #0A1214; border: 1px solid rgba(153, 246, 228, 0.2); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5); }
.hero-mini--club { z-index: 1; top: 12px; left: 0; transform: rotate(-3deg); }
.hero-mini--friends { z-index: 2; top: 146px; left: 12px; transform: rotate(2deg); }
/* Under the friends' card on the left, clear of the receipt, above the live meetup */
.hero-mini--happening { z-index: 3; top: 290px; left: 4px; width: 250px; transform: rotate(-2deg); }
.pill--private { background: rgba(167, 139, 250, 0.14); border: 1px solid rgba(167, 139, 250, 0.4); color: #C4B5FD; }
.hero-meet { position: absolute; z-index: 4; top: 428px; left: 150px; width: 322px; box-sizing: border-box; background: #0A1214; border: 1px solid rgba(45, 212, 191, 0.45); transform: rotate(-3deg); box-shadow: 0 0 36px rgba(45, 212, 191, 0.18), 0 18px 34px rgba(0, 0, 0, 0.55); }
.hero-meet .avatar-stack-label { margin-left: 10px; font-size: 12.5px; }
/* The hero's cards keep their own height over their photos */
.hero-mini.has-photo, .hero-meet.has-photo { min-height: 0; }
.hero-mini.has-photo .mcard-title-row { margin-top: 18px; }

/* ===== Hero "ways in": type and small marks on a hairline, no boxes ===== */
.hero-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; width: 100%; margin-top: 40px; padding: 22px 0; border-top: 1px solid rgba(153, 246, 228, 0.16); border-bottom: 1px solid rgba(153, 246, 228, 0.16); text-align: left; animation: fadeUp 0.8s ease 0.65s both; }
.way { display: flex; flex-direction: column; gap: 6px; padding: 0 18px; text-decoration: none; border-left: 1px solid rgba(153, 246, 228, 0.12); }
.way:hover { text-decoration: none; }
.way:hover .way-title { color: #5EEAD4; }
.way-pic { display: flex; align-items: center; gap: 8px; height: 26px; margin-bottom: 4px; }
.way-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: #F7F9FA; transition: color 0.2s ease; }
.way-meta { font-size: 13px; line-height: 1.5; color: #9ca3af; }
.way-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #C4B5FD; white-space: nowrap; }
.way-tag--teal { color: #5EEAD4; }
.way-tag .mdi { font-size: 13px; line-height: 1; }
.way-glyph { font-size: 20px; line-height: 1; color: #2DD4BF; }
.way-amount { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }

/* ===== Nav section links (scroll-spied) ===== */
.nav-links { display: none; align-items: center; gap: 28px; }
/* 8px of padding each side (cancelled by the margin) so the underline reaches past the label */
.nav-links a { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); padding: 6px 8px; margin: 0 -8px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: #c3cad2; text-decoration: none; white-space: nowrap; transition: color 0.2s ease, border-color 0.2s ease; }
.nav-links a:hover { color: #F7F9FA; text-decoration: none; }
.nav-links a.is-active { color: #F7F9FA; border-bottom-color: #2DD4BF; }
/* Discover: the last link, another page (never scroll-spied), marked with a live dot */
.nav-links a.nav-new { display: inline-flex; align-items: center; gap: 7px; color: #F7F9FA; font-weight: 600; }
.nav-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #2DD4BF; box-shadow: 0 0 10px rgba(45, 212, 191, 0.9); }

/* ===== Bills spotlight: its own full-bleed band between stories ===== */
.spot { position: relative; z-index: 0; padding: 84px 0 76px; scroll-margin-top: 56px; }
.spot::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(45, 212, 191, 0.1), transparent 70%), rgba(3, 10, 9, 0.97);
  border-top: 1px solid rgba(45, 212, 191, 0.28);
  border-bottom: 1px solid rgba(45, 212, 191, 0.28);
}
.spot-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.spot-h { margin: 0; font-size: clamp(32px, 5.4vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; color: #F7F9FA; text-wrap: balance; }
.spot-p { margin: 0; max-width: 560px; font-size: 16.5px; line-height: 1.65; color: #c3cad2; text-wrap: balance; }
.spot-steps { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 48px; }
.spot-step { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.spot-step-h { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #F7F9FA; }
.spot-n { width: 28px; height: 28px; border-radius: 50%; background: #2DD4BF; color: #06201c; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.spot-try { margin-left: auto; font-family: var(--font-family); font-size: 12px; font-weight: 600; letter-spacing: 0; color: #FBBF24; }
.spot-cap { margin: 0; font-size: 14px; line-height: 1.6; color: #c3cad2; }
/* The five split modes as one plain sentence (pills looked like buttons) */
.spot-modes { margin: 44px auto 0; max-width: 560px; text-align: center; font-size: 15px; line-height: 1.7; color: #9ca3af; text-wrap: balance; }
.spot-modes b { font-weight: 600; color: #F7F9FA; }
/* Step 1: camera viewfinder over a paper receipt, with a scan line */
@keyframes snapScan { 0%, 100% { top: 8%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 96% { top: 90%; opacity: 0; } }
.snap-panel { display: flex; align-items: center; justify-content: center; min-height: 300px; }
.snap-frame { position: relative; width: 200px; height: 252px; display: flex; align-items: center; justify-content: center; }
.snap-frame > i { position: absolute; width: 26px; height: 26px; border: 3px solid #2DD4BF; }
.snap-frame > i:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 9px 0 0 0; }
.snap-frame > i:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 9px 0 0; }
.snap-frame > i:nth-child(3) { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 9px 0; }
.snap-frame > i:nth-child(4) { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 9px; }
.snap-paper { width: 144px; height: 204px; box-sizing: border-box; padding: 18px 15px; background: #E8EDEB; border-radius: 4px; transform: rotate(-3deg); display: flex; flex-direction: column; gap: 10px; }
.snap-paper > b { height: 5px; border-radius: 3px; background: #6B7280; }
.snap-paper > em { margin-top: auto; padding-top: 11px; border-top: 1px dashed #9CA3AF; display: flex; justify-content: space-between; }
.snap-paper > em b { width: 40px; height: 8px; border-radius: 3px; background: #1F2937; }
.snap-scan { position: absolute; left: 6px; right: 6px; top: 8%; height: 2px; border-radius: 2px; background: #2DD4BF; box-shadow: 0 0 14px 2px rgba(45, 212, 191, 0.7); animation: snapScan 3.2s ease-in-out infinite; }

/* Wall: bill + plan cards */
.mcard--bill { --receipt-bg: #080F11; gap: 10px; padding: 14px 16px 12px; }
.mcard--bill .bill-totals { padding-top: 12px; }
.mcard--bill .bill-total { font-size: 21px; }
.mini-rail > div { position: relative; display: flex; gap: 2px; padding: 0 0 14px 24px; }

/* Closing recap */
.cta-recap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; margin: 30px 0 30px; }
.cta-recap > div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cta-recap b { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #F7F9FA; font-variant-numeric: tabular-nums; }
.cta-recap .is-money b { color: #99F6E4; }
.cta-recap span { font-size: 13px; color: #9ca3af; }
.cta-recap > i { width: 5px; height: 5px; border-radius: 50%; background: #2DD4BF; }
.hero-h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #F7F9FA;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
  text-wrap: balance;
  animation: fadeUp 0.8s ease 0.2s both;
}
/* Search-term line above the headline. Part of the h1, styled as a label. */
.hero-eyebrow {
  display: block;
  margin: 0 0 16px;
  font-family: var(--font-family);
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  color: #5EEAD4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}
.grad-teal {
  background: linear-gradient(135deg, #5EEAD4, #2DD4BF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.65;
  color: #c3cad2;
  max-width: 540px;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
  animation: fadeUp 0.8s ease 0.35s both;
}
/* Soft dark pool behind the hero copy only, so the drifting cards never run
   through the sub line or chips. The flat .hero-fill elsewhere is unchanged. */
.hero-fg::before,
.story-div::before {
  content: '';
  position: absolute;
  inset: -40px -90px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0) 72%);
}

/* ===== Store buttons =====
   Mirrors the mobile login screen's provider pills: near-opaque dark fill,
   bright seafoam hairline, soft teal glow, white label. Both stores share the
   identical pill (same as Google/Apple on the login screen). */
.store-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-row--hero { animation: fadeUp 0.8s ease 0.5s both; }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(10, 16, 18, 0.98);
  border: 0.5px solid rgba(153, 246, 228, 0.35);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.22);
}
@media (hover: hover) {
  .btn-store:hover { transform: translateY(-3px); }
}
.btn-store:hover {
  text-decoration: none;
  box-shadow: 0 0 26px rgba(45, 212, 191, 0.32);
}
.btn-store .mdi { line-height: 1; font-size: 20px; color: #F7F9FA; }
.btn-store span:last-child { font-size: 16px; font-weight: 600; color: #F7F9FA; white-space: nowrap; }
/* CTA-section variant — same look, slightly tighter */
.store-row--cta .btn-store { padding: 13px 26px; }
.store-row--cta .btn-store span:last-child { font-size: 15px; }

/* Quiet text links to /discover under the hero's and the closing store rows */
.text-link { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 2px; border-bottom: 1px solid rgba(94, 234, 212, 0.4); font-size: 15px; font-weight: 600; line-height: 1.4; color: #5EEAD4; text-decoration: none; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
.text-link:hover { color: #99F6E4; border-bottom-color: #99F6E4; text-decoration: none; }
.text-link svg { flex-shrink: 0; }
/* Follows the store row: centred on a phone, left from 1024px (the hero's text-align), same entrance */
.hero-more { margin: 18px 0 0; animation: fadeUp 0.8s ease 0.5s both; }
.cta-more { margin-top: 26px; }

/* ===== Post-hero wrapper ===== */
/* The default background fill — the same flat dark fill as the hero, so there's
   never a bare "no fill" gap over the card wall. The story blocks add MORE dark
   on top; the dividers just show this default (so they match the hero exactly). */
.post-hero {
  position: relative;
  z-index: 1;
}

/* Per-story dim: a full-bleed dark backing behind each story's beats (keeps the
   text readable). Solid fill with HARD top/bottom edges — the card wall un-dims
   at a crisp line at the dividers BETWEEN stories (no soft fade). */
.story-block { position: relative; z-index: 0; }
.story-block::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: rgba(6, 14, 13, 0.93);
}

/* ===== Timeline ===== */
.timeline { position: relative; z-index: 1; padding: 0 24px 0; }
/* The nav is fixed (glass bar once past the hero), so anchor jumps reserve room
   for it via scroll-margin-top instead of padding. Each story's breathing room
   lives INSIDE its green fill, so the green reaches the top of every story block. */
.timeline-inner > .story-block { padding-top: 56px; }
.story-div, .beat, #get { scroll-margin-top: 72px; }
.timeline-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; }
.beat { display: flex; gap: 26px; }
.beat-rail { display: flex; flex-direction: column; align-items: center; width: 90px; flex-shrink: 0; }
.beat-time { font-size: 13px; font-weight: 800; color: #2DD4BF; white-space: nowrap; padding: 6px 0; }
.beat-dot { width: 11px; height: 11px; border-radius: 50%; background: #2DD4BF; box-shadow: 0 0 14px rgba(45, 212, 191, 0.7); margin: 4px 0; transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
/* Rail fills (teal) as you scroll past each beat — .is-passed is set by JS */
.beat-line { position: relative; flex: 1; width: 1px; min-height: 40px; background: rgba(153, 246, 228, 0.14); }
.beat-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #2DD4BF;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.5);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s ease;
}
.beat.is-passed .beat-line::after { transform: scaleY(1); }
.beat--final .beat-time { color: #4ADE80; }
.beat--final .beat-dot { background: #4ADE80; box-shadow: 0 0 14px rgba(74, 222, 128, 0.7); }
.beat-body { flex: 1; min-width: 0; padding-bottom: 56px; }
.beat--last .beat-body { padding-bottom: 30px; }
/* Scroll reveal (only when JS ran — see the inline script in <head>) */
.js .beat { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .beat.is-in { opacity: 1; transform: none; }
.js .beat:not(.is-in) .beat-dot { transform: scale(0.4); }
.beat-h {
  margin: 4px 0 8px;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  line-height: 1.15;
  color: #F7F9FA;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}
.beat-p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #c3cad2;
  max-width: 480px;
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}
.exhibit { max-width: 420px; }
.exhibit--wide { max-width: 440px; }
.exhibit-stack { display: flex; flex-direction: column; gap: 14px; }

/* ===== Story divider ===== */
/* No fill of its own — it shows the post-hero default (the hero's exact dark
   fill), lighter than the 0.93 story blocks, so it reads as a breather between
   stories AND identical to the hero. */
.story-div { position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 0 60px; }
/* Story 1's divider sits right under the hero, so no lead-in line */
.story-div--first { padding-top: 64px; }
.story-div-line { width: 1px; height: 46px; background: linear-gradient(180deg, rgba(45, 212, 191, 0.35), transparent); margin-bottom: 26px; }
.story-div .eyebrow { letter-spacing: 2.5px; margin-bottom: 12px; color: #5EEAD4; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
.story-div-h {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #F7F9FA;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}
.story-div-p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #c3cad2;
  max-width: 460px;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

/* ===== Discover preview band (/home-band, homeBand.js, fetched into index.html's slot) =====
   Ported from docs/design/discover/Main.dc.html's `.band`, mobile first, the mock's desktop from
   900px. The page works without it: every rule is scoped to .home-band, and the first story only
   moves down when the band (or its skeleton) is there (the sibling rule below; `~`, since the slot's
   script sits between them while it loads), so the band-less page is unchanged. */
.home-band { position: relative; z-index: 1; padding: 24px 16px 8px; }
/* Its own full-bleed fill (.post-hero has none), fading in under the hero and out above story 1 */
.home-band::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 14, 13, 0) 0%, rgba(6, 14, 13, 0.86) 64px, rgba(6, 14, 13, 0.86) calc(100% - 64px), rgba(6, 14, 13, 0) 100%);
}
.home-band ~ .timeline .story-div--first { padding-top: 72px; }

/* While /home-band loads: the band's frame and head, its border breathing, over skeleton cards of the
   real cards' size (nightfeed.css `.sk-card`). Scripts only: without them nothing loads it. */
.home-band.is-loading { display: none; }
.js .home-band.is-loading { display: block; }
.home-band.is-loading .hb-inner { animation: hbBreathe 2.6s ease-in-out infinite; }
@keyframes hbBreathe {
  0%, 100% { border-color: rgba(153, 246, 228, 0.16); box-shadow: 0 0 80px rgba(45, 212, 191, 0.07); }
  50% { border-color: rgba(153, 246, 228, 0.34); box-shadow: 0 0 120px rgba(45, 212, 191, 0.16), inset 0 0 40px rgba(45, 212, 191, 0.04); }
}
/* Nothing came: the skeleton folds away (index.html's script sets the height it folds from). */
.home-band.is-folding { overflow: hidden; opacity: 0; padding-top: 0; padding-bottom: 0; transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.45s ease; }
/* The band took the skeleton's place: its cards rise in, one after another, under the same head. */
.home-band.is-revealed .hb-grid > * { animation: hbIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.home-band.is-revealed .hb-grid > :nth-child(2) { animation-delay: 0.07s; }
.home-band.is-revealed .hb-grid > :nth-child(3) { animation-delay: 0.14s; }
.home-band.is-revealed .hb-grid + .hb-label + .hb-grid > * { animation-delay: 0.18s; }
.home-band.is-revealed .hb-grid + .hb-label + .hb-grid > :nth-child(2) { animation-delay: 0.25s; }
.home-band.is-revealed .hb-grid + .hb-label + .hb-grid > :nth-child(3) { animation-delay: 0.32s; }
@keyframes hbIn { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.home-band a:hover { text-decoration: none; }
.home-band .ico { display: block; width: 1em; height: 1em; flex-shrink: 0; }

/* The panel and its head */
.hb-inner { max-width: 1040px; margin: 0 auto; padding: 28px 18px; border-radius: 28px; border: 1px solid rgba(153, 246, 228, 0.16); background: rgba(4, 10, 10, 0.72); box-shadow: 0 0 80px rgba(45, 212, 191, 0.07); }
.hb-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 24px; }
/* A flex basis lets the title wrap so the pill stays beside it on wide screens */
.hb-head > div { flex: 1 1 320px; min-width: 0; }
.hb-kicker { display: block; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; color: #5EEAD4; }
.hb-title { margin: 10px 0 0; font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: #F7F9FA; text-wrap: balance; }
/* The ghost pill: full width under the title on a phone, inline beside it from 900px */
.hb-ghost { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(45, 212, 191, 0.45); background: transparent; color: #F7F9FA; font-size: 15px; font-weight: 600; text-align: center; box-shadow: 0 0 18px rgba(45, 212, 191, 0.15); }
.hb-ghost:hover { color: #F7F9FA; background: rgba(45, 212, 191, 0.12); }
.hb-ghost .ico { width: 16px; height: 16px; }

/* Row label: title, a hairline, the hint, the link. On a phone the hint drops under the line. */
.hb-label { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 34px 0 14px; font-size: 13px; font-weight: 600; line-height: 1.5; color: #c3cad2; }
.hb-label::after { content: ''; order: 1; flex: 1 1 0; min-width: 0; height: 1px; background: rgba(153, 246, 228, 0.12); }
.hb-hint { order: 4; flex-basis: 100%; font-size: 12.5px; font-weight: 500; color: #9ca3af; }
.hb-link { order: 3; font-size: 13px; font-weight: 600; color: #5EEAD4; white-space: nowrap; }
.hb-link:hover { color: #99F6E4; }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }

/* Meetup cards: Discover's linked cards (nightfeed.css's last section), with the band's own looks.
   Live now: the hero's live card border and glow. */
.home-band .d-card.is-live { background: linear-gradient(180deg, rgba(45, 212, 191, 0.08) 0%, rgba(8, 14, 16, 0.94) 55%); border-color: rgba(45, 212, 191, 0.45); box-shadow: 0 0 36px rgba(45, 212, 191, 0.18), 0 10px 30px rgba(0, 0, 0, 0.45); }
.home-band .d-card.is-live:hover { border-color: rgba(45, 212, 191, 0.8); box-shadow: 0 0 48px rgba(45, 212, 191, 0.26), 0 14px 34px rgba(0, 0, 0, 0.55); }
.home-band .mcard-top-right, .home-band .mcard-top > .pill-open, .home-band .pill-after { margin-left: auto; }
.home-band .avatar-stack { min-width: 0; }
.home-band .lbl { min-width: 0; line-height: 16px; }

/* Happening rows: the poster slot, then the text */
.home-band .hrow { display: flex; align-items: center; gap: 16px; min-width: 0; background: rgba(8, 14, 16, 0.78); border: 1px solid rgba(45, 212, 191, 0.16); color: #F7F9FA; }
.home-band .hrow:hover { color: #F7F9FA; border-color: rgba(45, 212, 191, 0.5); }
/* Trending items lead each row (homeBand.js), badged and bordered as on Discover (share.css, "Trending"). */
.home-band .tr-badge { display: inline-flex; align-items: center; flex-shrink: 0; height: 22px; padding: 0 8px; border-radius: 9999px; background: rgba(251, 113, 133, 0.12); border: 0.5px solid rgba(251, 113, 133, 0.45); color: #FDA4AF; font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap; }
.home-band .has-photo .tr-badge { background: rgba(40, 8, 14, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.home-band :is(.d-card, .hrow).is-trending { border-color: rgba(251, 113, 133, 0.4); }
.home-band :is(.d-card, .hrow).is-trending:hover { border-color: rgba(251, 113, 133, 0.65); }
/* With a poster (nightfeed.css's has-photo): no thumbnail; the text sits at the bottom. */
.home-band .hrow.has-photo { align-items: flex-end; }
/* The calendar leaf of a happening without a poster (one with a poster is drawn over it) */
.hb-thumb { position: relative; box-sizing: border-box; width: 72px; height: 90px; flex-shrink: 0; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hb-thumb.is-fallback { background: linear-gradient(160deg, rgba(45, 212, 191, 0.3), rgba(129, 140, 248, 0.24) 55%, rgba(8, 14, 16, 0.92)); border: 1px solid rgba(45, 212, 191, 0.3); }
.hb-thumb .poster-month { font-family: var(--font-display); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; color: #2DD4BF; }
.hb-thumb .poster-day { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; color: #F7F9FA; }
.hb-thumb .poster-weekday { margin-top: 2px; font-size: 10px; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; color: #9ca3af; }
.hrow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hrow-title { max-width: 100%; font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.hrow-when { font-size: 13px; line-height: 1.5; color: #2DD4BF; }
.hrow-where { max-width: 100%; font-size: 13px; line-height: 1.5; color: #9ca3af; overflow-wrap: anywhere; }
.hrow-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; max-width: 100%; min-height: 24px; margin: 3px 0; }
/* A long group or happening name ellipsizes instead of widening the row */
.home-band .hrow-tags > .pill--group { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* The price and age badges sit inline with the pills, as the mock's price pill */
.hrow-tags .happening-badges { display: contents; }
.home-band .badge { display: inline-flex; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); font-size: 12px; font-weight: 600; line-height: 18px; color: #c3cad2; white-space: nowrap; }
.home-band .badge-price { border-color: rgba(45, 212, 191, 0.35); color: #5EEAD4; }

@media (min-width: 641px) {
  .home-band { padding: 32px 24px 8px; }
}
@media (min-width: 900px) {
  .hb-inner { padding: 44px 40px 40px; }
  .hb-title { font-size: 44px; }
  .hb-ghost { display: inline-flex; width: auto; min-height: 0; padding: 13px 24px; white-space: nowrap; }
  .hb-label { flex-wrap: nowrap; }
  .hb-hint { order: 2; flex-basis: auto; white-space: nowrap; }
}
@media (min-width: 1024px) {
  .home-band { padding: 48px 24px 16px; }
  /* The mock's 120px from the panel to the first story */
  .home-band ~ .timeline .story-div--first { padding-top: 104px; }
}

/* ===== Glass exhibit panels ===== */
.glass-panel {
  border-radius: 16px;
  background: rgba(8, 14, 16, 0.7);
  border: 1px solid rgba(153, 246, 228, 0.12);
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(153, 246, 228, 0.75);
}

/* Progress bar */
.progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.progress-label { font-size: 12.5px; color: #9ca3af; }
.progress-value { font-size: 12.5px; font-weight: 700; color: #F7F9FA; }
.progress-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: #2DD4BF; }

/* Chat panel */
.chat-panel { display: flex; flex-direction: column; gap: 10px; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-row--out { justify-content: flex-end; }
.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #0b0f10;
  flex-shrink: 0;
}
.bubble-in {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 18px 18px 18px 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: #F7F9FA;
  max-width: 75%;
}
.bubble-out {
  background: #2DD4BF;
  border-radius: 18px 18px 6px 18px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0b0f10;
  max-width: 75%;
}

/* Check-in card */
.checkin {
  border-radius: 16px;
  background: rgba(8, 14, 16, 0.7);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.08);
}
.checkin-head { display: flex; align-items: center; gap: 12px; }
.checkin-head > .mdi { font-size: 30px; line-height: 1; color: #4ADE80; }
.checkin-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: #F7F9FA; }
.checkin-sub { font-size: 13px; color: #9ca3af; }
.checkin-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip-reward {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.chip-reward .mdi { font-size: 13px; line-height: 1; }
.chip-reward--xp { background: rgba(45, 212, 191, 0.18); border: 1px solid rgba(45, 212, 191, 0.4); color: #2DD4BF; }
.chip-reward--streak { background: rgba(251, 191, 36, 0.16); border: 1px solid rgba(251, 191, 36, 0.4); color: #FBBF24; }

/* "When?" preset picker */
.preset-panel { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.preset-panel .eyebrow { margin-bottom: 4px; }
.preset {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(153, 246, 228, 0.1);
}
.preset > .mdi { font-size: 20px; line-height: 1; color: #9ca3af; }
.preset-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.preset-label { font-size: 14.5px; font-weight: 700; color: #F7F9FA; }
.preset-sub { font-size: 12.5px; color: #6b7280; }
.preset--selected {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.6);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.25);
}
.preset--selected > .mdi { color: #2DD4BF; }
.preset--selected .preset-sub { color: rgba(153, 246, 228, 0.7); }
.preset-check { font-size: 18px; line-height: 1; color: #2DD4BF; }

/* Swipe-deck panel */
.swiper-panel { display: flex; flex-direction: column; gap: 18px; }
/* CSS-only Tap/Swipe tab toggle */
.mode-radio { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.seg-lbl { cursor: pointer; }
#mode-swipe:checked ~ .seg-wrap label[for="mode-swipe"],
#mode-tap:checked ~ .seg-wrap label[for="mode-tap"] { background: #2DD4BF; color: #0b0f10; }
.swiper-deck-view { display: flex; flex-direction: column; gap: 18px; }
.swiper-tap-view { display: none; }
#mode-tap:checked ~ .swiper-deck-view { display: none; }
#mode-tap:checked ~ .swiper-tap-view { display: block; }
.seg-wrap { display: flex; justify-content: center; }
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(153, 246, 228, 0.12);
}
.seg-opt { padding: 6px 20px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #9ca3af; }
.seg-opt--active { background: #2DD4BF; color: #0b0f10; }
.deck { position: relative; width: 100%; height: 352px; }
.deck-card {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 320px;
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(135deg, #101D1B 0%, #0A1413 50%, #050B0A 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  transform-origin: center center;
  -webkit-user-select: none;
  user-select: none;
}
.deck-card.is-front {
  z-index: 3;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.45), 0 12px 22px rgba(0, 0, 0, 0.5);
  cursor: grab;
  touch-action: none;
}
.deck-card.is-front:active { cursor: grabbing; }
.deck-card.is-peek { z-index: 2; transform: translateY(16px) scale(0.93); opacity: 0.55; }
.deck-card.is-hidden { z-index: 1; transform: translateY(26px) scale(0.88); opacity: 0; pointer-events: none; }
.deck-hint-badge {
  position: absolute;
  top: 16px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 2px solid;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  opacity: 0;
  pointer-events: none;
}
.deck-hint-free { right: 16px; color: #2DD4BF; border-color: #2DD4BF; background: rgba(45, 212, 191, 0.18); }
.deck-hint-busy { left: 16px; color: #9CA3AF; border-color: #9CA3AF; background: rgba(156, 163, 175, 0.18); }
.deck-hint-ideal { left: 50%; transform: translateX(-50%); color: #FBBF24; border-color: #FBBF24; background: rgba(251, 191, 36, 0.18); }
/* Coach chips live above the cards as persistent swipe-direction indicators */
.coach-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
/* Deck-complete state */
.deck-done {
  position: absolute; inset: 0; z-index: 6;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 9px; padding: 24px;
  border-radius: 16px;
  background: rgba(8, 14, 16, 0.92);
  border: 1px solid rgba(45, 212, 191, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.deck-done.show { display: flex; }
.deck-done > .mdi { font-size: 46px; line-height: 1; color: #2DD4BF; }
.deck-done-count { font-size: 18px; font-weight: 800; color: #F7F9FA; }
.deck-done-sub { font-size: 13px; line-height: 1.5; color: #9ca3af; max-width: 240px; }
.deck-review {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; padding: 9px 18px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #2DD4BF; font-size: 13px; font-weight: 800;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.deck-review .mdi { font-size: 15px; line-height: 1; }
.deck-watermark {
  position: absolute;
  bottom: -30px;
  right: -6px;
  font-size: 150px;
  color: #2DD4BF;
  opacity: 0.08;
  line-height: 1;
}
.deck-grain { position: relative; display: flex; align-items: center; justify-content: center; }
.deck-grain .mdi { font-size: 15px; line-height: 1; color: #c3cad2; }
.deck-date { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.deck-dow { font-size: 16px; font-weight: 700; color: #c3cad2; }
.deck-day { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.5px; color: #F7F9FA; }
.deck-heat { position: relative; display: flex; flex-direction: column; gap: 8px; }
.deck-heat-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.deck-heat-fill { width: 62%; height: 100%; border-radius: 999px; background: #2DD4BF; }
.deck-heat-label { font-size: 14px; font-weight: 600; color: #c3cad2; text-align: center; }
.coach {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #06201c;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.coach .mdi { font-size: 16px; line-height: 1; }
.coach--ideal { top: 16px; left: 50%; background: #FBBF24; animation: coachUp 2.2s ease-in-out infinite; }
.coach--busy { top: 145px; left: 6px; background: #9CA3AF; animation: coachLeft 2.2s ease-in-out infinite; }
.coach--free { top: 145px; right: 6px; background: #2DD4BF; animation: coachRight 2.2s ease-in-out infinite; }
.deck-actions { display: flex; gap: 32px; justify-content: center; }
.deck-action { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.deck-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(8, 14, 16, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.deck-btn:focus-visible { outline: 2px solid rgba(45, 212, 191, 0.8); outline-offset: 3px; }
.deck-btn .mdi { font-size: 26px; line-height: 1; }
.deck-btn--busy { border: 2px solid #9CA3AF; } .deck-btn--busy .mdi { color: #9CA3AF; }
.deck-btn--free { border: 2px solid #2DD4BF; } .deck-btn--free .mdi { color: #2DD4BF; }
.deck-btn--ideal { border: 2px solid #FBBF24; } .deck-btn--ideal .mdi { color: #FBBF24; }
.deck-action span:last-child { font-size: 12px; font-weight: 600; color: #9ca3af; }
.deck-hint { font-size: 13px; color: #6b7280; text-align: center; }

/* Month heatmap */
.cal-panel { display: flex; flex-direction: column; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 10px; font-weight: 800; color: #6b7280; }
.cal-sep { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.cal-sep-line { flex: 1; height: 1px; background: rgba(153, 246, 228, 0.12); }
.cal-sep span { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #6b7280; }
.cal-cell {
  position: relative;
  height: 50px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(153, 246, 228, 0.07);
}
.cal-cell--blank { background: rgba(255, 255, 255, 0.015); border: none; }
.cal-day { font-size: 16px; font-weight: 700; line-height: 1; color: #F7F9FA; }
.cal-count { font-size: 11px; font-weight: 800; margin-top: 2px; opacity: 0.65; color: #99F6E4; }
.cal-cell--ink .cal-day, .cal-cell--ink .cal-count { color: #0b0f10; }
.cal-cell--front { border: 1.5px solid #2DD4BF; box-shadow: 0 0 14px rgba(45, 212, 191, 0.6); }
button.cal-cell { padding: 0; font: inherit; -webkit-appearance: none; appearance: none; cursor: pointer; transition: background 0.18s ease; }
button.cal-cell:focus-visible { outline: 2px solid rgba(45, 212, 191, 0.8); outline-offset: 2px; }
button.cal-cell:hover { filter: brightness(1.12); }
/* Your-availability mark on a tapped day: teal ring (free) / amber ring (ideal) */
.cal-cell--mine-free { outline: 2px solid rgba(45, 212, 191, 0.95); outline-offset: -2px; }
.cal-cell--mine-ideal { outline: 2px solid #FBBF24; outline-offset: -2px; }
.cal-mine { position: absolute; top: 3px; left: 4px; display: flex; align-items: center; justify-content: center; }
.cal-mine--free { width: 7px; height: 7px; border-radius: 50%; background: #2DD4BF; box-shadow: 0 0 4px rgba(45, 212, 191, 0.85); }
.cal-mine--ideal { color: #FBBF24; }
.cal-mine--ideal .mdi { font-size: 11px; line-height: 1; }
.cal-tap-hint { margin-top: 12px; }
.cal-star { position: absolute; top: 2px; right: 4px; font-size: 10px; line-height: 1; color: #FBBF24; }
.cal-frontrunner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.4);
}
.cal-frontrunner .mdi { font-size: 13px; line-height: 1; color: #FBBF24; }
.cal-frontrunner-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #2DD4BF; }
.cal-frontrunner-value { font-size: 12.5px; font-weight: 700; color: #F7F9FA; }

/* "Who's in" club panel bits */
.panel-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-foot-row { display: flex; align-items: center; gap: 7px; }
.panel-foot-row .mdi { font-size: 14px; line-height: 1; color: #4ADE80; }
.panel-foot-row span:last-child { font-size: 13px; color: #9ca3af; }
.panel-gap-12 { display: flex; flex-direction: column; gap: 12px; }

/* Happening story: the going counts as tiles, as on the app's attendance panel */
.happ-panel { display: flex; flex-direction: column; gap: 14px; }
.happ-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.happ-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(153, 246, 228, 0.1); }
.happ-tile span { font-size: 12px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.happ-n { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: #F7F9FA; }
.happ-n--teal { color: #5EEAD4; }
.happ-n--violet { color: #C4B5FD; }
.happ-audience { margin-top: 6px; }
.happ-audience .mdi { color: #C4B5FD; }
.happ-audience strong { color: #F7F9FA; font-weight: 700; }

/* Classes like .ghost-btn / .deck-review set display, which would beat the
   [hidden] attribute the demo scripts toggle. */
[hidden] { display: none !important; }

/* ===== Shared ghost pill (thin border, no fill) — the app's PillButton ghost ===== */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(153, 246, 228, 0.35);
  background: transparent;
  color: #CCFBF1;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ghost-btn:hover { border-color: rgba(153, 246, 228, 0.6); background: rgba(45, 212, 191, 0.08); }
.ghost-btn:focus-visible { outline: 2px solid rgba(45, 212, 191, 0.8); outline-offset: 2px; }
.ghost-btn .mdi { font-size: 14px; line-height: 1; }

/* ===== Stops: plan rail (mirrors PlanRailRow / PlanRailNode / planTheme) ===== */
@keyframes planHalo { from { opacity: 0.5; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes planPop { from { transform: scale(0.5); } to { transform: scale(1); } }
.plan-panel { display: flex; flex-direction: column; gap: 10px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; }
.plan-rail { display: flex; flex-direction: column; }
.plan-row { display: grid; grid-template-columns: 60px 28px minmax(0, 1fr) 36px; align-items: start; min-height: 60px; }
.plan-time { display: flex; flex-direction: column; gap: 1px; padding-top: 12px; font-variant-numeric: tabular-nums; transition: opacity 0.3s ease; }
.plan-time-a { font-size: 13px; font-weight: 700; color: #F7F9FA; white-space: nowrap; }
.plan-time-b { font-size: 12px; color: #6b7280; }
.plan-node-col { display: flex; flex-direction: column; align-items: center; align-self: stretch; padding-top: 10px; }
.plan-node { position: relative; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.plan-node::before {
  content: '';
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(153, 246, 228, 0.45);
  background: #0B1416;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.plan-node .mdi { position: absolute; font-size: 10px; line-height: 1; color: #06201c; opacity: 0; transition: opacity 0.3s ease; }
.plan-halo { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #2DD4BF; box-sizing: border-box; opacity: 0; }
.plan-seg { flex: 1; width: 2px; min-height: 18px; background: rgba(153, 246, 228, 0.18); overflow: hidden; }
.plan-seg--dashed { background: repeating-linear-gradient(180deg, rgba(153, 246, 228, 0.35) 0 4px, transparent 4px 8px); }
.plan-seg-fill { display: block; width: 100%; height: 100%; background: #2DD4BF; transform: scaleY(0); transform-origin: top; transition: transform 0.5s ease; }
.plan-row.is-done .plan-seg-fill { transform: scaleY(1); }
.plan-row.is-done .plan-node::before { border-color: transparent; background: #17574F; }
.plan-row.is-done .plan-node .mdi { opacity: 1; color: #CCFBF1; }
.plan-row.is-current .plan-node::before {
  width: 16px;
  height: 16px;
  border-color: transparent;
  background: #2DD4BF;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.65);
  animation: planPop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.plan-row.is-current .plan-halo { animation: planHalo 2.4s cubic-bezier(0.33, 1, 0.68, 1) infinite; }
.plan-content { display: flex; flex-direction: column; gap: 3px; padding: 10px 0 14px 6px; min-width: 0; transition: opacity 0.3s ease; }
.plan-row.is-done .plan-content, .plan-row.is-done .plan-time { opacity: 0.55; }
.plan-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 20px; }
.plan-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.1px; color: #F7F9FA; }
.plan-chip { display: none; }
.plan-row.is-current .plan-chip--now, .plan-row.is-done .plan-chip--done { display: inline-flex; }
.plan-place { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #9ca3af; min-width: 0; }
.plan-place { align-items: flex-start; line-height: 1.35; }
.plan-place .mdi { margin-top: 2px; }
.plan-place .mdi { font-size: 14px; line-height: 1; flex-shrink: 0; }
.plan-joiners { margin-top: 5px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.plan-move { display: none; }
.plan-row.is-next .plan-move { display: inline-flex; }
.plan-row.is-done .plan-join { display: none; }
.plan-join .mdi { display: none; }
.plan-join[aria-pressed="true"] { border-color: rgba(45, 212, 191, 0.7); background: rgba(45, 212, 191, 0.12); color: #2DD4BF; }
.plan-join[aria-pressed="true"] .mdi { display: inline; }
.plan-me { animation: planPop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.plan-dir { margin-top: 10px; justify-self: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(153, 246, 228, 0.35); display: flex; align-items: center; justify-content: center; }
.plan-dir .mdi { font-size: 16px; line-height: 1; color: #CCFBF1; }
.plan-row--add { min-height: 0; }
.plan-add { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed rgba(153, 246, 228, 0.35); background: #0B1416; display: flex; align-items: center; justify-content: center; }
.plan-add .mdi { font-size: 14px; line-height: 1; color: #2DD4BF; }
.plan-add-label { font-size: 13px; font-weight: 600; color: rgba(153, 246, 228, 0.75); padding-top: 2px; }
.plan-row--add .plan-content { padding: 10px 0 0; }
.plan-foot { display: flex; justify-content: center; align-items: center; min-height: 36px; }
.plan-foot .deck-review { margin-top: 0; }

/* ===== Bills: shared bill + balance (mirrors BillFeedCard / BillDetailScreen / BillBalancePanel) ===== */
@keyframes billTap { 0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); } }
.bill-card { display: flex; flex-direction: column; gap: 12px; }
.bill-head { display: flex; }
.bill-icon { display: flex; }
.bill-overline { flex: 1; }
.bill-when, .bill-cap { font-size: 12px; color: #6b7280; }
.bill-cap--caps { text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.bill-scan { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(153, 246, 228, 0.75); }
.bill-scan .mdi { font-size: 14px; line-height: 1; }
.bill-items { display: flex; flex-direction: column; border-top: 1px solid rgba(153, 246, 228, 0.12); }
.bill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 8px;
  border: none;
  border-bottom: 1px solid rgba(153, 246, 228, 0.08);
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.bill-item--open { cursor: pointer; border-radius: 10px; transition: background 0.18s ease; }
.bill-item--open:hover { background: rgba(255, 255, 255, 0.04); }
.bill-item--open:focus-visible { outline: 2px solid rgba(45, 212, 191, 0.8); outline-offset: -2px; }
.bill-item--open[aria-pressed="true"] { background: rgba(45, 212, 191, 0.10); }
.bill-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bill-item-name { font-size: 14.5px; font-weight: 600; color: #F7F9FA; }
.bill-item-who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9ca3af; }
.bill-item-who .avatar { width: 18px; height: 18px; font-size: 8.5px; border-width: 1px; }
.bill-item-who .avatar + .avatar { margin-left: -6px; }
.bill-item-who .avatar-stack { margin-right: 2px; }
.bill-item--open[aria-pressed="false"] .bill-who-label { color: #FBBF24; }
.bill-item--open[aria-pressed="true"] .bill-who-label { color: #CCFBF1; }
.bill-tap { width: 7px; height: 7px; border-radius: 50%; background: #FBBF24; flex-shrink: 0; animation: billTap 1.8s ease-out infinite; }
.bill-item--open[aria-pressed="true"] .bill-tap { display: none; }
.bill-num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.bill-item-amt { font-size: 14px; font-weight: 600; }
.bill-lines { display: flex; flex-direction: column; gap: 6px; }
.bill-line { display: flex; justify-content: space-between; font-size: 13px; color: #9ca3af; }
.bill-totals { display: flex; padding-top: 14px; }
.bill-total { font-size: 24px; font-weight: 700; }
.bill-share { font-size: 34px; font-weight: 800; letter-spacing: -0.8px; text-shadow: 0 0 22px rgba(45, 212, 191, 0.45); }
.bill-warn { font-size: 12px; color: #FBBF24; }
.bill-card .deck-hint { margin-top: 2px; }
.bill-balance { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 300px; text-align: center; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.bill-balance-icon { padding: 8px; border-radius: 12px; background: rgba(45, 212, 191, 0.10); display: flex; flex-shrink: 0; margin-bottom: 4px; transition: background 0.3s ease; }
.bill-balance-icon .mdi { font-size: 24px; line-height: 1; color: #CCFBF1; }
.bill-owe-amt { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; transition: color 0.3s ease, opacity 0.3s ease; }
.bill-owe-amt.is-zero { opacity: 0.35; }
.bill-balance.is-settled .bill-owe-amt { color: #4ADE80; }
.bill-balance .ghost-btn { margin-top: 8px; }
.bill-balance-title { font-size: 15px; font-weight: 600; color: #F7F9FA; }
.bill-balance.is-settled { border-color: rgba(74, 222, 128, 0.35); box-shadow: 0 0 22px rgba(74, 222, 128, 0.08); }
.bill-balance.is-settled .bill-balance-icon { background: rgba(74, 222, 128, 0.14); }
.bill-balance.is-settled .bill-balance-icon .mdi { color: #4ADE80; }

/* ===================== Motion pack ===================== */
/* 1. Hero cards deal in, then lean toward the cursor (vars set by JS) */
@keyframes dealIn { from { opacity: 0; transform: translate3d(70px, -46px, 0) rotate(16deg) scale(0.9); } 70% { opacity: 1; } to { opacity: 1; transform: var(--rest); } }
.hero-scene { animation: none; transform: perspective(1000px) rotateY(calc(var(--px, 0) * 4deg)) rotateX(calc(var(--py, 0) * -3deg)); transition: transform 0.25s ease-out; }
.hero-scene > * { --rest: translate3d(calc(var(--px, 0) * var(--d, 0) * 1px), calc(var(--py, 0) * var(--d, 0) * 1px), 0) rotate(var(--r, 0deg)); transform: var(--rest); transition: transform 0.25s ease-out; animation: dealIn 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
.hero-mini--club { --r: -3deg; --d: 4; animation-delay: 0.35s; }
.hero-mini--friends { --r: 2deg; --d: 7; animation-delay: 0.5s; }
.hero-mini--happening { --r: -2deg; --d: 9; animation-delay: 0.58s; }
.hero-bill { --r: 5deg; --d: 10; animation-delay: 0.65s; }
.hero-meet { --r: -3deg; --d: 14; animation-delay: 0.8s; }
.hero-scene > .is-dealt { animation: none; }
/* 7. Headline wipes in; the teal sweeps across "won't" last */
@keyframes heroWipe { from { clip-path: inset(0 0 100% 0); transform: translateY(20px); } to { clip-path: inset(-12% -6%); transform: none; } }
@keyframes tealSweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero-h1 { animation: heroWipe 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.grad-teal { background: linear-gradient(90deg, #5EEAD4, #2DD4BF 50%, #F7F9FA 50%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: tealSweep 0.7s ease 1s both; }
/* 4. Who's in: avatars pop in one by one, the bar fills with them */
.avatar-stack--lg .avatar, .avatar-stack--lg .avatar-stack-label { transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.js .beat:not(.is-in) .avatar-stack--lg .avatar { opacity: 0; transform: scale(0.3); }
.js .beat:not(.is-in) .avatar-stack--lg .avatar-stack-label { opacity: 0; }
.avatar-stack--lg .avatar:nth-child(1) { transition-delay: 0.3s; } .avatar-stack--lg .avatar:nth-child(2) { transition-delay: 0.5s; }
.avatar-stack--lg .avatar:nth-child(3) { transition-delay: 0.7s; } .avatar-stack--lg .avatar:nth-child(4) { transition-delay: 0.9s; }
.avatar-stack--lg .avatar:nth-child(5) { transition-delay: 1.1s; } .avatar-stack--lg .avatar:nth-child(6) { transition-delay: 1.25s; }
.avatar-stack--lg .avatar:nth-child(7) { transition-delay: 1.4s; } .avatar-stack--lg .avatar:nth-child(8) { transition-delay: 1.55s; }
.avatar-stack--lg .avatar-stack-label { transition-delay: 1.7s; }
.beat .progress-fill { transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s; }
.js .beat:not(.is-in) .progress-fill { width: 0 !important; }
/* 5. Chat: someone is typing, then the messages land in order */
@keyframes typingLife { 0%, 88% { opacity: 1; max-height: 30px; } 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -10px; } }
@keyframes typingDot { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-row { transition: opacity 0.4s ease, transform 0.4s ease; }
.js .beat:not(.is-in) .chat-row { opacity: 0; transform: translateY(12px); }
.chat-panel .chat-row:nth-child(1) { transition-delay: 0.5s; } .chat-panel .chat-row:nth-child(2) { transition-delay: 1.3s; } .chat-panel .chat-row:nth-child(3) { transition-delay: 2.2s; }
.chat-typing { display: none; align-items: center; gap: 4px; align-self: flex-start; padding: 9px 13px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9ca3af; animation: typingDot 1s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; } .chat-typing i:nth-child(3) { animation-delay: 0.3s; }
.js .beat.is-in .chat-typing { display: flex; animation: typingLife 2.3s ease forwards; }
/* 6. Stops: a glow runs down the rail to the stop the group moves to */
@keyframes railTravel { from { top: 22px; opacity: 1; } 85% { opacity: 1; } to { top: calc(100% + 12px); opacity: 0; } }
.plan-node-col { position: relative; }
.plan-node-col::after { content: ''; position: absolute; left: 50%; top: 22px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #5EEAD4; box-shadow: 0 0 12px 3px rgba(45, 212, 191, 0.8); opacity: 0; pointer-events: none; }
.plan-row.is-done .plan-node-col::after { animation: railTravel 0.5s ease-in; }
.plan-row.is-current .plan-node::before { animation-delay: 0.3s; animation-fill-mode: backwards; }
/* 2. Bill items rise in one after another once the LIST itself is on screen
   (.is-listed, set by JS) — not when the top of the section first appears. */
.js .spot .bill-items > * { transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.18s ease; }
.js .spot .bill-items:not(.is-listed) > * { opacity: 0; transform: translateY(14px); }
.spot .bill-items > *:nth-child(1) { transition-delay: 0.05s, 0.05s, 0s; }
.spot .bill-items > *:nth-child(2) { transition-delay: 0.18s, 0.18s, 0s; }
.spot .bill-items > *:nth-child(3) { transition-delay: 0.31s, 0.31s, 0s; }
.spot .bill-items > *:nth-child(4) { transition-delay: 0.44s, 0.44s, 0s; }
.spot .bill-items > *:nth-child(5) { transition-delay: 0.57s, 0.57s, 0s; }
.spot .bill-items > *:nth-child(6) { transition-delay: 0.7s, 0.7s, 0s; }
.spot .bill-items > *:nth-child(7) { transition-delay: 0.83s, 0.83s, 0s; }
/* 3. Claiming an item sends your avatar to "Your share"; paying pops the amount */
.bill-fly { position: fixed; z-index: 60; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #A78BFA; color: #0b0f10; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; pointer-events: none; box-shadow: 0 0 14px rgba(167, 139, 250, 0.8); transition: transform 0.55s cubic-bezier(0.5, -0.2, 0.3, 1), opacity 0.55s ease; }
@keyframes sharePulse { 40% { transform: scale(1.12); text-shadow: 0 0 30px rgba(45, 212, 191, 0.9); } }
.bill-share.is-pulse { animation: sharePulse 0.45s ease; }
@keyframes paidBurst { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
.bill-owe-amt.is-burst { animation: paidBurst 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
/* 8. Nav underline slides between sections */
.nav-links { position: relative; }
.nav-links a.is-active { border-bottom-color: transparent; }
.nav-ink { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px; background: #2DD4BF; box-shadow: 0 0 8px rgba(45, 212, 191, 0.7); opacity: 0; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease; }
/* 9. Store buttons lean toward the cursor, with a light that follows it */
.btn-store { background-image: radial-gradient(110px circle at var(--mx, 50%) var(--my, 50%), rgba(45, 212, 191, 0.22), transparent 65%); background-repeat: no-repeat; background-size: 0 0; }
.btn-store:hover { background-size: 100% 100%; }
/* 10. A background card occasionally goes live */
@keyframes liveIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.wall-live { animation: liveIn 0.4s ease both; }

/* ===== Desktop: copy left, exhibit right ===== */
@media (min-width: 900px) {
  /* Tighter gaps and type until 1100px so the six links fit between the brand and "Get the app" */
  .nav-links { display: flex; gap: 11px; }
  .nav-links a { font-size: 12px; }
}
@media (min-width: 1100px) {
  .nav-links { gap: 28px; }
  .nav-links a { font-size: 14px; }
}
@media (min-width: 1024px) {
  .hero { min-height: 800px; }
  @media (max-height: 800px) {
    .hero { height: auto; min-height: 100vh; padding-bottom: 28px; }
    .hero-fg { padding-top: 64px; }
    .hero-h1 { font-size: clamp(44px, 4.6vw, 58px); margin-bottom: 16px; }
    .hero-sub { margin-bottom: 22px; }
    .hero-scene { zoom: 0.8; }
    .hero-ways { margin-top: 20px; padding: 16px 0; }
  }
  /* The copy now sits left over the cards instead of in a centred pool, so dim more */
  .hero-fill { background: rgba(0, 0, 0, 0.45); }
  .hero-fg { display: grid; grid-template-columns: minmax(0, 1fr) 500px; column-gap: 36px; align-items: center; text-align: left; }
  .hero-copy { align-items: flex-start; }
  .hero-h1 { font-size: clamp(48px, 5.4vw, 72px); }
  .hero-sub { margin-bottom: 30px; }
  .store-row--hero { justify-content: flex-start; }
  .hero-scene { display: block; }
  .hero-ways { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; }
  .way:first-child { border-left: none; padding-left: 0; }
  .spot-steps { grid-template-columns: 0.8fr 1.3fr 0.9fr; gap: 28px; align-items: start; }
  .timeline-inner { max-width: 1040px; }
  .beat-body { display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 56px; align-items: start; }
  .beat-copy { padding-top: 2px; }
  .beat-p { margin-bottom: 0; max-width: 420px; }
  .exhibit, .exhibit--wide { max-width: 440px; width: 100%; }
  .story-div { padding: 64px 0 76px; }
  .story-div--first { padding-top: 84px; }
}

/* ===== Closing CTA ===== */
/* ===== FAQ (part of the closing block: no card of its own. Closed, it is a
   centred "FAQ" label, a proper heading and a plus chip, so it reads as a
   section you can open) ===== */
.faq { position: relative; max-width: 660px; margin: 52px auto 0; text-align: left; scroll-margin-top: 72px; }
/* Stacked on the centre line: label, heading, plus chip */
.faq-head { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 0; cursor: pointer; list-style: none; text-align: center; }
.faq-head > .eyebrow { color: #5EEAD4; }
.faq-head::-webkit-details-marker { display: none; }
.faq-h { margin: 0; font-size: clamp(21px, 3.2vw, 26px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: #F7F9FA; text-wrap: balance; transition: color 0.3s ease; }
.faq-head:hover .faq-h, .faq[open]:not(.is-closing) > .faq-head .faq-h { color: #99F6E4; }
/* The toggle's own chip is larger than the question rows' */
.faq > .faq-head > .mdi { width: 36px; height: 36px; font-size: 20px; margin-top: 4px; border-color: rgba(94, 234, 212, 0.4); background: rgba(45, 212, 191, 0.1); }
/* A line of light draws outward from the centre when the FAQ opens */
.faq-head::after {
  content: '';
  align-self: stretch;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.4) 50%, transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.faq[open]:not(.is-closing) > .faq-head::after { opacity: 1; transform: scaleX(1); }

/* The plus sits in a small glass chip. Opening turns it to a cross and lights
   the chip a little; every tap sends one ring out from it (.is-pulse). */
.faq-head > .mdi, .faq-item summary .mdi {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(153, 246, 228, 0.18);
  background: rgba(45, 212, 191, 0.06);
  font-size: 16px;
  line-height: 1;
  color: #5EEAD4;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-head:hover > .mdi, .faq-item summary:hover .mdi { border-color: rgba(94, 234, 212, 0.45); background: rgba(45, 212, 191, 0.12); }
.faq[open]:not(.is-closing) > .faq-head > .mdi,
.faq-item[open]:not(.is-closing) summary .mdi {
  transform: rotate(45deg);
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(45, 212, 191, 0.14);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.18);
}
@keyframes faqRing { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.4); opacity: 0; } }
.faq .mdi.is-pulse::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid #5EEAD4;
  pointer-events: none;
  animation: faqRing 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Open/close is animated by the script at the end of the page: the body's
   height, fade and settle. While that runs the body clips its content,
   with a soft lower edge instead of a hard cut. */
.faq-body.is-animating {
  overflow: hidden;
  will-change: height, opacity;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent);
}
.faq-group { padding-top: 22px; }
.faq-group:first-of-type { padding-top: 16px; }
.faq-group-label { margin-bottom: 4px; }

/* Each question is a row. Hovering lays a faint glass panel under it; the open row keeps it. */
.faq-item { position: relative; border-bottom: 1px solid rgba(153, 246, 228, 0.12); transition: border-color 0.35s ease; }
.faq-group:last-child .faq-item:last-child { border-bottom-color: transparent; }
.faq-item::before {
  content: '';
  position: absolute;
  inset: 0 -16px;
  border-radius: 14px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  border-color: rgba(94, 234, 212, 0.12);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.06), rgba(45, 212, 191, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.faq-item > * { position: relative; }
.faq-item[open]:not(.is-closing) { border-bottom-color: transparent; }
.faq-item[open]:not(.is-closing)::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .faq-item:hover { border-bottom-color: transparent; }
  .faq-item:hover::before { opacity: 0.5; }
  .faq-item[open]:not(.is-closing):hover::before { opacity: 1; }
}
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font-family: var(--font-family); font-size: 16.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: #F7F9FA; transition: color 0.3s ease; }
.faq-item summary:hover .faq-q, .faq-item[open]:not(.is-closing) .faq-q { color: #99F6E4; }
.faq-a { margin: 0; padding: 0 44px 18px 0; font-size: 15.5px; line-height: 1.65; color: #c3cad2; }
.faq-a a { color: #5EEAD4; }
@media (max-width: 640px) {
  .faq { margin-top: 40px; }
  .faq-a { padding-right: 0; }
  .faq-item::before { inset: 0 -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq *, .faq *::before, .faq *::after { transition: none !important; animation: none !important; }
}

.cta { position: relative; z-index: 1; padding: 80px 24px 44px; text-align: center; }
/* Solid full-bleed dim behind the finale (post-hero no longer provides one). The
   short top fade blends down from the last story block above it. */
.cta::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 14, 13, 0.86) 0%, rgba(6, 14, 13, 0.96) 90px);
}
.cta-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 420px;
  background: radial-gradient(ellipse at bottom, rgba(45, 212, 191, 0.12) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 660px; margin: 0 auto; }
.cta-h {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  background: linear-gradient(135deg, #F7F9FA 25%, #2DD4BF 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.cta-sub { margin: 0 0 34px; font-size: 17px; line-height: 1.6; color: #c3cad2; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85); }

/* ===== Footer ===== */
.site-footer { position: relative; z-index: 1; text-align: center; padding: 30px 24px 36px; }
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0; left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: rgba(6, 14, 13, 0.96);
}
.site-footer p { margin: 0 0 10px; font-size: 13px; color: #9ca3af; }
/* Wraps on the narrowest phones, where five links no longer fit on one line */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-links a { font-size: 13px; color: #c3cad2; text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: #2DD4BF; text-decoration: none; }

/* ===== Narrow phones: relax the rigid-width exhibit internals only ===== */
/* ===== Phones: slim the rail so exhibits get the width =====
   The 90px time column cost a third of a phone screen. Here the rail is just
   the dot + line, and the time sits above the heading. */
@media (max-width: 640px) {
  .timeline { padding: 0 16px; }
  .beat { position: relative; gap: 14px; }
  .beat-rail { width: 12px; padding-top: 3px; }
  .beat-time { position: absolute; top: 0; left: 26px; padding: 0; line-height: 18px; }
  .beat-body { padding-top: 24px; padding-bottom: 44px; }
  .exhibit, .exhibit--wide { max-width: none; }
  /* Cards are larger relative to the copy on a phone, so dim a little more
     and let the pool behind the text run edge to edge. */
  .hero-fill { background: rgba(0, 0, 0, 0.25); }
  .hero-fg::before, .story-div::before {
    inset: -36px -16px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 80%);
  }
  /* Side by side while both fit; the row wraps (labels never do) on very narrow phones */
  .store-row { gap: 10px; }
  .hero-fg { padding-top: 56px; padding-left: 16px; padding-right: 16px; }
  .hero-rot { font-size: 15.5px; height: 24px; line-height: 24px; margin-bottom: 10px; }
  .hero-sub { font-size: 16px; margin-bottom: 26px; }
  .hero-ways { margin-top: 30px; padding: 18px 0; gap: 20px 0; }
  .way { padding: 0 12px; }
  .way:nth-child(odd) { border-left: none; padding-left: 0; }
  .way-title { font-size: 15.5px; }
  .way-meta { font-size: 12.5px; }
  .spot { padding: 60px 0 56px; }
  .spot-steps { margin-top: 36px; }
  .snap-panel { min-height: 260px; }
  .bill-balance { min-height: 0; padding-top: 24px; padding-bottom: 24px; }
  .bill-share { font-size: 30px; }
  .cta-recap { gap: 12px 18px; }
  .cta-recap b { font-size: 24px; }
  /* Section links: a scrolling strip under the bar once it sticks */
  /* Symmetrical bar: the logo is centred. "Get the app" is hidden at the very top
     (the store buttons are right there) and returns as a round icon once you scroll. */
  .site-nav { flex-wrap: wrap; justify-content: center; }
  .nav-cta { position: absolute; top: 8px; right: 14px; width: 36px; height: 36px; padding: 0; gap: 0; font-size: 0; justify-content: center; opacity: 0; pointer-events: none; }
  .nav-cta .mdi { font-size: 17px; }
  .site-nav.is-stuck .nav-cta { opacity: 1; pointer-events: auto; }
  /* Section links centre under the logo when they fit, and scroll sideways when they don't */
  .nav-links a:first-child { margin-left: auto; }
  .nav-links a:nth-last-child(2) { margin-right: auto; }
  .site-nav.is-stuck .nav-links { display: flex; order: 3; width: calc(100% + 32px); margin: 6px -16px -4px; padding: 0 16px; gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 12.5px; padding: 4px 0 6px; }
  .btn-store, .store-row--cta .btn-store { padding: 12px 20px; gap: 8px; }
  .btn-store span:last-child { font-size: 15px; }
  .plan-row { grid-template-columns: 58px 26px minmax(0, 1fr) 32px; }
  .plan-time-a { font-size: 12px; }
}

@media (max-width: 480px) {
  /* Keep the brand from crowding the nav CTA on narrow phones. */
  .site-nav, .site-nav.is-stuck { padding: 10px 16px; }
  .nav-brand { gap: 8px; }
  .nav-brand img, .site-nav.is-stuck .nav-brand img { width: 32px; height: 32px; }
  .nav-brand span, .site-nav.is-stuck .nav-brand span { font-size: 19px; }
  .deck-actions { gap: 12px; }
  .deck-btn { width: 48px; height: 48px; }
  .deck-btn .mdi { font-size: 22px; }
  .cal-frontrunner { flex-wrap: wrap; }
  .panel-head-row { flex-wrap: wrap; }
  .avatar-stack--lg .avatar { width: 30px; height: 30px; font-size: 12px; }
  .avatar-stack--lg .avatar + .avatar { margin-left: -12px; }
  .avatar-stack-label { margin-left: 8px; }
  .glass-panel { padding: 14px; }
  .preset-panel { padding: 14px; }
}

/* ===== Reduced motion: pause the loops (entrances still settle) ===== */
@media (prefers-reduced-motion: reduce) {
  .wall-track,
  .coach,
  .plan-row.is-current .plan-halo,
  .snap-scan,
  .bill-tap {
    animation-play-state: paused;
  }
  .hero-rot span { animation: none; }
  .hero-rot span:first-child { opacity: 1; }
  .js .beat { opacity: 1; transform: none; transition: none; }
  .hero-scene, .hero-scene > *, .hero-h1, .grad-teal, .chat-typing, .plan-node-col::after, .home-band.is-loading .hb-inner, .home-band.is-revealed .hb-grid > * { animation: none !important; }
  .hero-scene, .hero-scene > * { transition: none; }
  .grad-teal { background-position: 0 0; }
  .js .beat.is-in .chat-typing { display: none; }
  .js .beat:not(.is-in) .beat-dot { transform: none; }
  .beat-line::after, .plan-seg-fill { transition: none; }
}
