/* =====================================================
   BUDDEE WAITLIST — styles.css
   Warm, light, inviting. Everyday consumer feel.
   Palette: cream #fffcf7 · sand #f7f0e6 · sand-deep #ede3d5
            green #1ab87a · amber #f59e0b · ink #1c1209 · muted #7c6a55
   Font: DM Sans
   ===================================================== */

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --green:       #1ab87a;
  --green-dark:  #159666;
  --green-soft:  #e8f8f0;
  --sand:        #f7f0e6;
  --sand-deep:   #ede3d5;
  --amber:       #f59e0b;
  --ink:         #1c1209;
  --warm-dark:   #1c1209;
  --muted:       #7c6a55;
  --border:      #e8ddd0;
  --cream:       #f5e6c8;
  --ff:          'DM Sans', system-ui, sans-serif;
  --r-sm:        .5rem;
  --r-md:        1rem;
  --r-lg:        1.5rem;
  --r-xl:        2rem;
}

/* ── Base ───────────────────────────────────────────── */
body {
  font-family: var(--ff);
  background: #ffffff;
  color: var(--ink);
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100vw;
}

img, video { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
}

section, .stats-band, footer {
  width: 100%;
  max-width: 100vw;
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: #ffffff;
  overflow: hidden;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Hero header ────────────────────────────────────── */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  background: transparent;
  border-bottom: none;
  flex-shrink: 0;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 28px; width: auto; }
.logo-fallback { height: 28px; width: 28px; }

.legal-page .logo-img { filter: none; }

.badge {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(26,184,122,.28);
  padding: .28em .85em;
  border-radius: 999px;
}
.badge-link { color: var(--green-dark); }

/* ══════════════════════════════════════════════════════
   BENTO GRID
   ══════════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 0.85fr 0.85fr 0.44fr 1.2fr;
  gap: 8px;
  padding: 8px;
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
}

.bento-card {
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

/* ── Card 1: Hero — col 1-2, row 1-2 ── */
.bc-hero {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  background: var(--cream);
  padding: clamp(1rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  justify-content: center;
}

/* ── Cards 2-3: Stats — col 3 ── */
.bc-stat {
  padding: clamp(.9rem, 1.5vw, 1.3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
}
.bc-stat-dark  { background: #1c2e1f; }
.bc-stat-green { background: var(--green); }
.bento-stat-n {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1;
}
.bento-stat-l {
  font-size: clamp(.68rem, .85vw, .82rem);
  color: rgba(255,255,255,.55);
  line-height: 1.4;
  max-width: 18ch;
}
.bc-stat-green .bento-stat-l { color: rgba(255,255,255,.75); }

/* ── Card 4: Pac-Man — col 1-3, row 3 ── */
.bc-pacman { grid-column: 1 / 4; position: relative; }

/* ── Card 5: Demo — col 1-2, row 4 ── */
.bc-demo {
  grid-column: 1 / 3;
  background: #0f1c14;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.bc-demo .demo-frame {
  border-radius: 14px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.bc-demo .demo-screen {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Card 6: Quote — col 3, row 4 ── */
.bc-quote {
  background: var(--cream);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: space-between;
}
.founder-mark { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--green); font-weight: 900; line-height: .85; }
.founder-text { font-size: clamp(.85rem, 1vw, 1rem); color: var(--muted); line-height: 1.65; flex: 1; }
.founder-cite { font-size: .78rem; color: var(--muted); font-weight: 600; opacity: .7; }

/* ── Testimonial carousel ── */
.testimonial-carousel { position: relative; width: 100%; height: 100%; }
.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.testimonial.active { opacity: 1; pointer-events: auto; }

/* ── Inside bc-hero: compact for single-page fit ── */
.bc-hero .hero-tag {
  font-size: .68rem;
  display: flex;
  align-items: center;
  gap: .5em;
  width: 100%;
  overflow: hidden;
}

/* ── Category ticker marquee ── */
.cat-ticker {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.cat-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: catscroll 28s linear infinite;
}
.cat-item { padding: 0 .3em; }
.cat-sep   { opacity: .35; padding: 0 .1em; }
@keyframes catscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.bc-hero .headline { font-size: clamp(1.6rem, 2.4vw, 2.6rem); }
.bc-hero .sub {
  font-size: clamp(.82rem, .95vw, .92rem);
  line-height: 1.5;
  max-width: 100%;
  color: var(--muted);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
}
.batch-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(26,184,122,.18);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(26,184,122,.18); }
  50%      { box-shadow: 0 0 0 6px rgba(26,184,122,.06); }
}

.headline {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
}
.headline .accent { color: var(--green); }

.sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.7;
}

/* ── CTA form ───────────────────────────────────────── */
.cta { display: flex; flex-direction: column; gap: .65rem; width: 100%; min-width: 0; }
.cta-row { display: flex; gap: .5rem; width: 100%; min-width: 0; }

.cta-row input[type="email"] {
  flex: 1;
  padding: .7rem 1rem;
  font-family: var(--ff);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  outline: none;
  box-shadow: 0 1px 4px rgba(28,18,9,.05);
  transition: border-color .2s, box-shadow .2s;
}
.cta-row input[type="email"]::placeholder { color: #b0a090; }
.cta-row input[type="email"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,184,122,.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: .7rem 1.4rem;
  font-family: var(--ff);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 16px rgba(26,184,122,.32);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(26,184,122,.40);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }

.cta-fine {
  font-size: .76rem;
  color: #b0a090;
}
.cta-error {
  font-size: .85rem;
  color: #c0392b;
  margin-top: .2rem;
}

/* ── Referral invite banner ─────────────────────────── */
.ref-invite-banner {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(26,184,122,.28);
  padding: .45em 1em;
  border-radius: 999px;
  margin-bottom: -.25rem;
}
.ref-invite-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   DEMO WIDGET
   ══════════════════════════════════════════════════════ */
.demo-wrap { display: flex; flex-direction: column; gap: .8rem; width: 100%; min-width: 0; }

.hero-visual { position: relative; border-radius: var(--r-xl); width: 100%; min-width: 0; }
.hero-video  { width: 100%; border-radius: var(--r-xl); display: none; }

.demo-frame {
  background: #0f1c14;
  border: 1px solid rgba(26,184,122,.18);
  border-radius: var(--r-xl);
  overflow: hidden;
  width: 100%;
  min-width: 0;
  box-shadow:
    0 2px 0 rgba(26,184,122,.08),
    0 24px 64px rgba(28,18,9,.14),
    0 0 0 1px rgba(28,18,9,.04);
  transition: box-shadow .4s;
}
.demo-frame:hover {
  box-shadow:
    0 2px 0 rgba(26,184,122,.12),
    0 32px 80px rgba(28,18,9,.18),
    0 0 48px rgba(26,184,122,.10);
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.18);
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.1); }
.demo-dot:first-child  { background: rgba(248,113,113,.7); }
.demo-dot:nth-child(2) { background: rgba(245,158,11,.7); }
.demo-dot:nth-child(3) { background: rgba(26,184,122,.7); }

.demo-title-logo {
  height: 13px; width: auto;
  margin-left: auto;
  opacity: .3;
  filter: brightness(0) invert(1);
}

.demo-screen { padding: 1rem 1.1rem 1.25rem; min-height: 0; }

.workflow-dots { display: flex; gap: .35rem; margin-bottom: .9rem; }
.wf-phase  { display: none; }
.wf-phase.active { display: block; }
.workflow  { display: none; }
.workflow.active { display: block; }

.scene-label {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .6rem;
  opacity: .75;
}
.scene-prompt {
  font-size: .93rem;
  color: rgba(255,255,255,.75);
  font-style: italic;
  line-height: 1.45;
}
.cursor-blink {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--green);
  margin-left: .1em;
  vertical-align: text-bottom;
  animation: cursorBlink 1.1s step-end infinite;
}
@keyframes cursorBlink { 0%,100%{opacity:1}50%{opacity:0} }

.scene-save { font-size: .8rem; color: rgba(255,255,255,.45); margin-top: .65rem; }
.scene-save strong { color: var(--green); }

.store-rows  { display: flex; flex-direction: column; gap: .32rem; margin-top: .4rem; width: 100%; min-width: 0; }
.store-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .42rem .7rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  font-size: .81rem;
  color: rgba(255,255,255,.55);
  border: 1px solid transparent;
  min-width: 0;
  overflow: hidden;
}
.store-row.best {
  background: rgba(26,184,122,.1);
  border-color: rgba(26,184,122,.22);
  color: #fff;
}
.store-row.saving {
  background: rgba(26,184,122,.06);
  border-color: rgba(26,184,122,.14);
  color: rgba(255,255,255,.8);
}
.store-row .price { font-weight: 700; color: var(--green); }

/* ══════════════════════════════════════════════════════
   GAMIFIED STRIP — two-panel flip
   ══════════════════════════════════════════════════════ */
.hero-collective {
  position: relative;
  overflow: hidden;
  background: #0f1c14;
  border-radius: 14px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* ── Panel base ── */
.hc-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.hc-panel.hc-active {
  opacity: 1;
  pointer-events: auto;
}

/* ══ PANEL A — SCORE ══ */
.hc-score-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3.5vw, 4rem);
  width: 100%;
}
.hc-score-left {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex-shrink: 0;
}
.hc-lvl-row {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.hc-lvl-pill {
  background: var(--green);
  color: #0b1a10;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: .14em .6em;
  border-radius: 999px;
}
.hc-lvl-name {
  font-size: clamp(.55rem, .75vw, .68rem);
  font-weight: 700;
  color: rgba(255,255,255,.3);
  letter-spacing: .12em;
}
.hc-score-eyebrow {
  display: block;
  font-size: clamp(.48rem, .65vw, .6rem);
  font-weight: 600;
  color: rgba(255,255,255,.25);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .08rem;
}
.hc-amount {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.04em;
  line-height: 1;
}
.hc-score-stats {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.4vw, 1.6rem);
  flex: 1;
  justify-content: flex-end;
}
.hc-sc-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
}
.hc-sc-n {
  font-size: clamp(.88rem, 1.4vw, 1.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
}
.hc-sc-l {
  font-size: clamp(.5rem, .68vw, .62rem);
  color: rgba(255,255,255,.32);
  font-weight: 500;
  white-space: nowrap;
}
.hc-sc-sep {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ══ PANEL B — THE CHASE ══ */
.hc-chase-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(.22rem, .5vw, .4rem);
  width: 100%;
}
.hc-chase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hc-chase-eyebrow {
  font-size: clamp(.5rem, .7vw, .64rem);
  font-weight: 700;
  color: rgba(255,255,255,.25);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hc-chase-pct-label {
  font-size: clamp(.5rem, .7vw, .64rem);
  font-weight: 700;
  color: var(--green);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Chase row: pac-man + road + wall ── */
.hc-chase-row {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, .7vw, .75rem);
}
.hc-ring {
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.hc-pacman {
  width: clamp(26px, 3.5vw, 46px);
  height: clamp(26px, 3.5vw, 46px);
  box-shadow: 0 0 22px rgba(26,184,122,.55);
  animation: pacman-chomp 0.42s linear infinite;
  flex-shrink: 0;
}

/* Road */
.hc-chase-road {
  position: relative;
  flex: 1;
  height: clamp(7px, .85vw, 12px);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: visible;
}
.hc-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 0 8px rgba(26,184,122,.6);
}

/* Milestone markers */
.hc-milestone {
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.hc-milestone[data-at="10"]  { left: 10%; }
.hc-milestone[data-at="25"]  { left: 25%; }
.hc-milestone[data-at="50"]  { left: 50%; }
.hc-m-pip {
  width: clamp(9px, 1.1vw, 14px);
  height: clamp(9px, 1.1vw, 14px);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.2);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  flex-shrink: 0;
}
.hc-milestone.eaten .hc-m-pip {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(26,184,122,.8);
}
.hc-m-tag {
  font-size: clamp(.42rem, .58vw, .54rem);
  font-weight: 700;
  color: rgba(255,255,255,.25);
  letter-spacing: .05em;
  white-space: nowrap;
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  transition: color 0.4s;
}
.hc-milestone.eaten .hc-m-tag { color: var(--green); }

/* Wall */
.hc-wall {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
}
.hc-wall-bricks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.hc-wall-bricks span {
  display: block;
  background: rgba(26,184,122,.3);
  border: 1px solid rgba(26,184,122,.5);
  border-radius: 2px;
  width: clamp(10px, 1.2vw, 16px);
  height: clamp(5px, .55vw, 7px);
}
.hc-wall-bricks span:nth-child(odd) { transform: translateX(2px); }
.hc-wall-num {
  font-size: clamp(.58rem, .82vw, .76rem);
  font-weight: 800;
  color: rgba(26,184,122,.65);
  letter-spacing: .04em;
}

/* Chase footer */
.hc-chase-footer {
  font-size: clamp(.48rem, .65vw, .6rem);
  color: rgba(255,255,255,.25);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hc-chase-footer strong { color: rgba(255,255,255,.55); font-weight: 700; }

/* ── Pac-Man speed boost on signup ── */
.hc-pacman.speedy { animation-duration: 0.14s !important; }

/* ── Progress bar glow surge ── */
@keyframes barSurge {
  0%   { box-shadow: 0 0 8px rgba(26,184,122,.6); }
  40%  { box-shadow: 0 0 24px rgba(26,184,122,1), 0 0 50px rgba(26,184,122,.5); }
  100% { box-shadow: 0 0 8px rgba(26,184,122,.6); }
}
.hc-fill.surge { animation: barSurge 0.9s ease-out; }

/* ── Amount pop ── */
@keyframes amtPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.18); color: #fff; }
  60%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.hc-amount.pop { animation: amtPop 0.5s cubic-bezier(0.34,1.56,0.64,1); }

/* ── Strip flash overlay ── */
.hero-collective::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--green);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}
@keyframes stripFlash {
  0%   { opacity: .18; }
  100% { opacity: 0; }
}
.hero-collective.celebrate::after { animation: stripFlash 0.75s ease-out forwards; }

/* ── Milestone pop animation (on crossing a milestone) ── */
@keyframes pipPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.55); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.hc-m-pip.pop { animation: pipPop 0.5s cubic-bezier(0.34,1.56,0.64,1); }

/* ── Floating achievement badge ── */
.achieve-badge {
  position: absolute;
  left: clamp(1rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--green);
  color: #0b1a10;
  font-weight: 800;
  font-size: clamp(.7rem, 1vw, .88rem);
  letter-spacing: .01em;
  padding: .28em .8em;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  white-space: nowrap;
}
@keyframes badgeFloat {
  0%   { opacity: 0;   transform: translateY(4px) scale(0.8); }
  12%  { opacity: 1;   transform: translateY(-10px) scale(1.12); }
  65%  { opacity: 1;   transform: translateY(-30px) scale(1); }
  100% { opacity: 0;   transform: translateY(-48px) scale(0.88); }
}
.achieve-badge.show { animation: badgeFloat 2s cubic-bezier(0.22,1,0.36,1) forwards; }

/* ── Pac-Man animations ── */
@keyframes pacman-chomp {
  0%, 100% { clip-path: polygon(50% 50%, 100% 22%, 100% 0%, 0% 0%, 0% 100%, 100% 100%, 100% 78%); }
  50%       { clip-path: polygon(50% 50%, 100% 46%, 100% 0%, 0% 0%, 0% 100%, 100% 100%, 100% 54%); }
}

/* ══════════════════════════════════════════════════════
   SIGNUP DIALOG — Pac-Man strip
   ══════════════════════════════════════════════════════ */
.sd-strip {
  background: #0a1510;
  border: 1px solid rgba(26,184,122,.15);
  border-radius: 10px;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.sd-strip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sd-strip-label {
  font-size: .58rem;
  font-weight: 700;
  color: rgba(255,255,255,.25);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sd-strip-pct {
  font-size: .58rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sd-strip-row {
  display: flex;
  align-items: center;
  gap: .55rem;
}
/* Standalone pac-man for dialog — does not rely on .hc-ring/.hc-pacman */
.sd-pac {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: #f9d71c;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(249,215,28,.5);
  animation: pacman-chomp 0.42s linear infinite;
}
.sd-pac.speedy { animation-duration: 0.14s !important; }
.sd-road {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: visible;
  position: relative;
}
.sd-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 0 8px rgba(26,184,122,.6);
}
.sd-pellet {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(26,184,122,.9), 0 0 4px rgba(26,184,122,.6);
  animation: pellet-pulse 1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pellet-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%       { transform: translate(-50%, -50%) scale(1.4); opacity: 0.6; }
}
.sd-wall {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.sd-wall-bricks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.sd-wall-bricks span {
  display: block;
  background: rgba(26,184,122,.3);
  border: 1px solid rgba(26,184,122,.5);
  border-radius: 2px;
  width: 12px;
  height: 6px;
}
.sd-wall-bricks span:nth-child(odd) { transform: translateX(2px); }
.sd-wall-num {
  font-size: .58rem;
  font-weight: 800;
  color: rgba(26,184,122,.65);
  letter-spacing: .04em;
}
.sd-strip-impact {
  font-size: .62rem;
  color: rgba(255,255,255,.25);
  letter-spacing: .02em;
}
.sd-green { color: var(--green); font-weight: 700; }

/* ══════════════════════════════════════════════════════
   STATS BAND — warm dark, 2 stats
   ══════════════════════════════════════════════════════ */
.stats-band { background: var(--warm-dark); padding: 3rem 2rem; }
.stats-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 1rem 2rem;
}
.stat-num {
  display: block;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.025em;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.42);
  margin-top: .5rem;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 64px;
  background: rgba(255,255,255,.07);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   FOUNDER — warm cream
   ══════════════════════════════════════════════════════ */
.section-founder { background: var(--cream); padding: 7rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.founder-quote { max-width: 640px; margin: 0 auto; }
.founder-mark {
  font-size: 4.5rem;
  line-height: 1;
  color: var(--green);
  font-weight: 900;
  margin-bottom: -.4rem;
  opacity: .2;
}
.founder-quote p {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.founder-quote cite {
  font-size: .88rem;
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer { background: var(--warm-dark); padding: 2rem 2rem; margin-top: auto; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.01em;
}
.footer-nav { display: flex; gap: 1.25rem; margin-left: auto; }
.footer-nav a { font-size: .83rem; color: rgba(255,255,255,.38); transition: color .2s; }
.footer-nav a:hover { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.2); }

/* ══════════════════════════════════════════════════════
   MODAL BACKDROP (shared)
   ══════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28,18,9,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
}

/* ══════════════════════════════════════════════════════
   SUCCESS DIALOG
   ══════════════════════════════════════════════════════ */
#success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #0f1c14;
  border: 1px solid rgba(26,184,122,.3);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  color: #fff;
  box-shadow: 0 0 60px rgba(26,184,122,.15), 0 32px 80px rgba(0,0,0,.55);
  z-index: 1000;
  font-family: var(--ff);
}
.success-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  line-height: 1;
}
.success-close:hover { color: #fff; }
.success-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .6rem;
}
.success-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.success-sub {
  font-size: .93rem;
  color: rgba(255,255,255,.52);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.success-referral-stats {
  font-size: .83rem;
  color: rgba(255,255,255,.38);
  margin-bottom: 1.25rem;
}
.success-stats-sep { margin: 0 .5rem; }

.referral-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.referral-label {
  display: block;
  font-size: .76rem;
  color: rgba(255,255,255,.38);
  margin-bottom: .6rem;
}
.referral-row { display: flex; gap: .5rem; }
.referral-row input[type="text"] {
  flex: 1;
  padding: .6rem .9rem;
  font-size: .84rem;
  font-family: var(--ff);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  outline: none;
}
.success-hint { font-size: .78rem; color: rgba(255,255,255,.26); line-height: 1.5; }

/* ── Share row in success dialog ────────────────────── */
.share-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.share-label {
  font-size: .73rem;
  color: rgba(255,255,255,.35);
  font-weight: 500;
}
.share-btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .55rem 1rem;
  font-family: var(--ff);
  font-size: .8rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}
.btn-share:hover  { opacity: .88; transform: translateY(-1px); }
.btn-share:active { transform: translateY(0); }
.btn-share--x   { background: #000; color: #fff; }
.btn-share--wa  { background: #25d366; color: #fff; }
.btn-share--native {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.12);
}

/* ══════════════════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════════════════ */
.legal-page .header { background: var(--cream); }
.legal-page .logo-img { filter: none; }
.legal-main { flex: 1; }
.legal-doc { max-width: 680px; margin: 4rem auto; padding: 0 2rem; }
.legal-doc h1 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.legal-updated { font-size: .83rem; color: var(--muted); margin-bottom: 2rem; }
.legal-doc h2 { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 .6rem; }
.legal-doc p, .legal-doc li { font-size: .93rem; color: #44301a; line-height: 1.7; }
.legal-doc ul { padding-left: 1.5rem; margin-bottom: .75rem; }
.legal-doc li { margin-bottom: .35rem; }
.legal-doc a { color: var(--green-dark); text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — tablet (≤ 900px)
   Bento: 2 columns, scrollable
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { height: auto; min-height: 100dvh; overflow: visible; }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto auto;
    width: 100%; /* override desktop 80% */
    flex: none;
  }
  /* Hero card: full width row 1 */
  .bc-hero       { grid-column: 1 / 3; grid-row: 1 / 2; }
  /* Stats: side by side row 2 */
  .bc-stat       { grid-row: 2 / 3; }
  /* Pac-Man: full width row 3 */
  .bc-pacman     { grid-column: 1 / 3; grid-row: 3 / 4; }
  /* Demo: full width row 4 */
  .bc-demo       { grid-column: 1 / 3; grid-row: 4 / 5; }
  /* Quote: full width row 5 */
  .bc-quote      { grid-column: 1 / 3; grid-row: 5 / 6; }

  .demo-screen   { height: 200px; }
  .hero-collective { gap: 1.5rem; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — all phones (≤ 600px)
   Bento: single column, natural scroll
   ══════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero { height: auto; overflow: visible; }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 8px;
    padding: 8px;
    width: 100%; /* override desktop 80% */
    flex: none;
  }
  /* Stats side-by-side, everything else full width */
  .bc-hero    { grid-column: 1 / 3; grid-row: auto; }
  .bc-stat    { grid-column: auto; grid-row: auto; }
  .bc-pacman  { grid-column: 1 / 3; grid-row: auto; }
  .bc-demo    { grid-column: 1 / 3; grid-row: auto; }
  .bc-quote   { grid-column: 1 / 3; grid-row: auto; }

  .bc-hero {
    justify-content: flex-start;
    gap: .75rem;
    padding: 1.25rem;
    min-height: 0;
    overflow: visible;
  }

  .header { padding: .65rem 1rem; }

  .headline  { font-size: clamp(1.6rem, 6.5vw, 2.2rem); overflow-wrap: break-word; }
  .sub       { font-size: .85rem; line-height: 1.5; overflow-wrap: break-word; }

  /* CTA stacked vertically so email input has room */
  .cta-row { flex-direction: column; gap: .5rem; }
  .cta-row input[type="email"] { font-size: .9rem; padding: .7rem .9rem; width: 100%; }
  .cta-row .btn { width: 100%; padding: .7rem 1rem; font-size: .9rem; text-align: center; }
  .cta-fine { font-size: .66rem; }

  /* Gamified strip — mobile adjustments */
  .hero-collective { border-radius: 12px; min-height: 80px; }
  .hc-panel { padding: 0 1rem; }
  .hc-score-stats { display: none; }
  .hc-score-inner { gap: .75rem; }
  .hc-amount { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .hc-chase-footer { display: none; }
  .hc-m-tag { display: none; }

  /* Stat cards — enough room for 3-line labels */
  .bc-stat { min-height: 100px; border-radius: 12px; }
  .bento-stat-n { font-size: clamp(1.4rem, 7vw, 1.8rem); }
  .bento-stat-l { max-width: 100%; font-size: .7rem; line-height: 1.35; }

  .demo-screen { height: 160px; padding: .85rem; overflow: hidden; }
  .scene-prompt { font-size: .8rem; }
  .store-row { font-size: .73rem; padding: .3rem .55rem; }
  .scene-save { font-size: .72rem; margin-top: .35rem; }

  /* Quote — tall enough for longest testimonial */
  .bc-quote { min-height: 180px; border-radius: 12px; }
  .testimonial-carousel { min-height: 165px; }
  .founder-mark { font-size: 2rem; }
  .founder-text { font-size: .82rem; }

  /* Footer */
  .site-footer { padding: 1.5rem 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .65rem; }
  .footer-nav   { margin-left: 0; gap: 1rem; }

  /* Success dialog — target the div, not <dialog> element */
  #success { padding: 1.75rem 1.1rem; }
  .success-title { font-size: 1.5rem; }
  .share-btns    { flex-direction: column; }
  .btn-share     { flex: none; width: 100%; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — standard phones (376px – 480px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .headline     { font-size: clamp(1.5rem, 7vw, 2rem); }
  .sub          { font-size: .83rem; }
  .demo-screen  { height: 155px; }
  .bento-stat-n { font-size: clamp(1.3rem, 6.5vw, 1.6rem); }
  .badge        { font-size: .66rem; }
  .bc-hero      { padding: 1rem; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — small phones (≤ 375px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 375px) {
  .header      { padding: .6rem .9rem; }
  .bc-hero     { padding: .9rem; gap: .6rem; }
  .headline    { font-size: clamp(1.4rem, 8vw, 1.75rem); }
  .sub         { font-size: .8rem; }
  .cta-row input[type="email"] { font-size: .82rem; padding: .6rem .75rem; }
  .cta-row .btn { font-size: .82rem; padding: .6rem .85rem; }
  .cta-fine    { font-size: .64rem; }
  .demo-screen { height: 140px; padding: .75rem; }
  .scene-prompt { font-size: .76rem; }
  .store-row   { font-size: .7rem; padding: .25rem .5rem; }
  .bento-stat-n { font-size: clamp(1.2rem, 8vw, 1.5rem); }
  .site-footer  { padding: 1.25rem .9rem; }
  .footer-nav a { font-size: .74rem; }
  #success         { padding: 1.5rem 1rem; border-radius: var(--r-lg); }
  .success-title   { font-size: 1.4rem; }
  .success-sub     { font-size: .83rem; }
  .referral-row    { flex-direction: column; }
  .referral-row .btn { width: 100%; }
}

@media (max-width: 320px) {
  .header      { padding: .65rem .9rem; }
  .bc-hero     { padding: .9rem; }
  .headline    { font-size: 1.45rem; }
  .sub         { font-size: .78rem; }
  .bento-stat-n { font-size: 1.4rem; }
  .demo-screen { height: 140px; padding: .65rem; }
  .scene-prompt { font-size: .74rem; }
}

/* ══════════════════════════════════════════════════════
   PAC-MAN NAME TAG
   ══════════════════════════════════════════════════════ */
.hc-pac-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.pac-name {
  font-size: .42rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(26,184,122,.5);
  text-transform: uppercase;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════
   LIVE TICKER
   ══════════════════════════════════════════════════════ */
.live-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem 0 .75rem;
  font-size: .72rem;
  color: var(--muted);
  font-family: var(--ff);
  letter-spacing: .01em;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.75); }
}

/* ══════════════════════════════════════════════════════
   CONFETTI PARTICLES
   ══════════════════════════════════════════════════════ */
.confetti-p {
  position: absolute;
  top: -8px;
  pointer-events: none;
  animation: confetti-fall linear forwards;
  z-index: 1100;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  80%  { opacity: .8; }
  100% { transform: translateY(200px) rotate(360deg); opacity: 0; }
}

/* ══════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
