/* ==========================================================================
   Duchenne — landing page design system
   Playful premium: the app's warm world, executed with precision.
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand */
  --brand-gold: #FFD55A;
  --brand-coral: #FF8A65;
  --brand-deep: #F4511E;
  --bg-cream: #FFF9F0;
  --bg-warm: #FFF3E2;
  --card: #FFFFFF;
  --ink: #231F1A;
  --ink-soft: #5C5650;
  --green-deep: #1E5B30;
  --green-bright: #7BD98C;
  --score-green: #2E7D32;
  --glow-blue: #2E9FD6;
  --android-green: #3DDC84;

  /* Type scale (fluid display, fixed body) */
  --text-hero: clamp(2rem, 1.2rem + 3.6vw, 3.65rem);
  --text-h2: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --text-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --text-lede: 1.15rem;
  --text-body: 1rem;
  --text-small: 0.875rem;

  /* Space (4pt base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;
  --space-section: clamp(4.5rem, 3rem + 5vw, 9rem);

  /* Radii & depth */
  --r-card: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(91, 51, 23, 0.06);
  --shadow-md: 0 10px 30px rgba(91, 51, 23, 0.10);
  --shadow-lg: 0 24px 60px rgba(91, 51, 23, 0.14);

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-mid: 280ms;

  /* Z scale */
  --z-ambient: 0; --z-content: 1; --z-nav: 100;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: var(--text-body);
  line-height: 1.6;
  background: var(--bg-cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  line-height: 1.12;
  text-wrap: balance;
}

p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
section { position: relative; z-index: var(--z-content); }
section[id] { scroll-margin-top: 96px; }

/* ==========================================================================
   Ambient background
   ========================================================================== */
.ambient {
  position: fixed; inset: 0;
  z-index: var(--z-ambient);
  pointer-events: none;
  overflow: hidden;
}
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.ambient-glow-a {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255, 213, 90, 0.4), transparent 70%);
  top: -160px; right: -120px;
  animation: drift-a 26s ease-in-out infinite;
}
.ambient-glow-b {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255, 138, 101, 0.28), transparent 70%);
  top: 38%; left: -180px;
  animation: drift-b 32s ease-in-out infinite;
}
.ambient-glow-c {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 196, 145, 0.30), transparent 70%);
  bottom: -140px; right: 18%;
  animation: drift-a 38s ease-in-out infinite reverse;
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 50px) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(0.94); }
}

/* ==========================================================================
   Navigation: floating pill, echoes the app's tab bar
   ========================================================================== */
nav {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 0 clamp(12px, 3vw, 24px);
}
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 14px 10px 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-mid) var(--ease-out-quart),
              background var(--dur-mid) var(--ease-out-quart);
}
nav.scrolled .nav-pill {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.nav-logo img { border-radius: 9px; }
.nav-logo span {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 1.15rem;
}
.nav-links {
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 30px);
  list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 0.95rem;
  padding: 8px 2px;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a:focus-visible,
.btn:focus-visible,
.blog-row:focus-visible {
  outline: 3px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.nav-ctas { display: flex; gap: 8px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px !important;
  border-radius: var(--r-pill);
  font-size: 0.9rem !important;
}
.nav-cta svg { flex-shrink: 0; }
.nav-cta-ios { background: var(--ink); color: #fff !important; }
.nav-cta-ios:hover { background: #000; color: #fff !important; }
.nav-cta-android { background: rgba(61, 220, 132, 0.18); color: #14572E !important; }
.nav-cta-android:hover { background: rgba(61, 220, 132, 0.32); color: #14572E !important; }

.mobile-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 10px;
}
.mobile-toggle span {
  width: 22px; height: 2.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out-quart), opacity var(--dur-mid);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: clamp(120px, 16vh, 180px) 0 var(--sp-16);
  min-height: 92svh;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card);
  border: 1px solid rgba(244, 81, 30, 0.14);
  border-radius: var(--r-pill);
  padding: 7px 16px 7px 9px;
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-6);
}
.hero-badge img { border-radius: 6px; }
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-6);
}
.hero-line { display: block; }
.hero-em {
  font-style: normal;
  position: relative;
  display: inline-block;
  color: var(--brand-deep);
}
.hero-swash {
  position: absolute;
  left: -2%; bottom: -0.18em;
  width: 104%; height: 0.32em;
  color: var(--brand-gold);
  z-index: -1;
}
.hero-swash path {
  stroke-dasharray: 330;
  stroke-dashoffset: 0;
}
.hero-sub {
  font-size: var(--text-lede);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--sp-8);
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.hero-fineprint { font-size: var(--text-small); color: var(--ink-soft); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 1rem;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-fast) var(--ease-out-quart),
              background var(--dur-fast) var(--ease-out-quart);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #0d0b09; }
.btn-outline {
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-light { background: #fff; color: var(--ink); }

/* Hero stage: mascot + floating chips */
.hero-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
}
.hero-glow {
  position: absolute;
  width: min(78%, 420px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 90, 0.55), rgba(255, 138, 101, 0.22) 55%, transparent 75%);
  filter: blur(28px);
}
.hero-mascot {
  position: relative;
  width: min(82%, 440px); height: auto;
  filter: drop-shadow(0 24px 36px rgba(184, 79, 26, 0.22));
}
.chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.chip-dot { width: 9px; height: 9px; border-radius: 50%; }
.chip-dot-green { background: var(--score-green); }
.chip-dot-orange { background: var(--brand-deep); }
.chip-dot-blue { background: var(--glow-blue); }
.chip-label { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.chip-value { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.05rem; }
.chip-value-green { color: var(--score-green); }
.chip-value-orange { color: var(--brand-deep); }
.chip-value-blue { color: var(--glow-blue); }
.chip-score { top: 8%; left: 0; }
.chip-streak { bottom: 14%; right: 0; }
.chip-crinkle { top: 38%; right: -2%; }

/* ==========================================================================
   Story: pinned scroll narrative
   ========================================================================== */
.story { padding-top: var(--space-section); }
.story-intro { max-width: 56ch; margin-bottom: var(--sp-12); }
.story-intro h2, .features-intro h2, .qf-intro h2, .blog-intro h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
}
.story-intro p, .features-intro p, .qf-intro p, .blog-intro p {
  font-size: var(--text-lede); color: var(--ink-soft);
}
.story-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-bottom: var(--sp-16);
}
@media (min-width: 861px) {
  /* Pinned frame: fill the viewport, clear the fixed nav, center the stage */
  .story-pin {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 84px;
  }
  .story-pin > .container { width: 100%; }
  .story-stage { padding-bottom: var(--sp-8); }
}
.story-steps { list-style: none; display: flex; flex-direction: column; gap: var(--sp-8); }
.story-step {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-6);
  border-radius: var(--r-card);
  transition: background var(--dur-mid) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart),
              opacity var(--dur-mid) var(--ease-out-quart);
  opacity: 0.45;
}
.story-step.is-active {
  opacity: 1;
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.story-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-coral), var(--brand-deep));
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  border-radius: 14px;
}
.story-step h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: var(--sp-2); }
.story-step p { color: var(--ink-soft); max-width: 42ch; }

.story-visual {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
}
.phone {
  position: relative;
  width: min(78%, 300px);
  aspect-ratio: 9 / 19.4;
  background: #1a1714;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a342e;
}
.phone-island {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 24px;
  background: #1a1714;
  border-radius: var(--r-pill);
  z-index: 3;
}
.phone-screens {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: var(--bg-cream);
}
.phone-screen {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms var(--ease-out-quart);
}
.phone-screen.is-active { opacity: 1; }
.story-mascots {
  position: absolute;
  bottom: -8px; right: max(-4%, -30px);
  width: clamp(110px, 14vw, 170px);
  aspect-ratio: 1;
}
.story-mascot {
  position: absolute; inset: auto 0 0 0;
  width: 100%;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 380ms var(--ease-out-quart), transform 380ms var(--ease-out-quart);
  filter: drop-shadow(0 12px 18px rgba(184, 79, 26, 0.25));
}
.story-mascot.is-active { opacity: 1; transform: translateY(0) scale(1); }

/* ==========================================================================
   Signals: the green drench
   ========================================================================== */
.signals {
  margin-top: var(--space-section);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(123, 217, 140, 0.16), transparent 50%),
    var(--green-deep);
  color: #F2FBF1;
  padding: var(--space-section) 0;
}
.signals-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.signals h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-6);
  color: #fff;
}
.signals-copy p {
  color: rgba(242, 251, 241, 0.88);
  line-height: 1.7;
  letter-spacing: 0.01em;
  max-width: 58ch;
  margin-bottom: var(--sp-4);
}
.signal-list {
  list-style: none;
  margin-top: var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-6);
}
.signal-head {
  display: flex; align-items: baseline; gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.signal-head strong { font-family: 'Baloo 2', sans-serif; font-size: 1.1rem; font-weight: 700; color: #fff; }
.signal-head span { font-size: var(--text-small); color: rgba(242, 251, 241, 0.62); font-style: italic; }
.signal-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.signal-bar span {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--green-bright), #B8F0C0);
  border-radius: var(--r-pill);
  transform-origin: left center;
}

.signals-ring {
  position: relative;
  display: grid; place-items: center;
  justify-self: center;
}
.ring-svg { width: min(100%, 280px); transform: rotate(-90deg); }
.ring-track, .ring-fill {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}
.ring-track { stroke: rgba(255, 255, 255, 0.12); }
.ring-fill {
  stroke: var(--green-bright);
  stroke-dasharray: 603;
  stroke-dashoffset: 48.3; /* 92% (overridden + animated by JS) */
}
.ring-center {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.ring-number {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ring-caption { font-size: var(--text-small); font-weight: 700; color: rgba(242, 251, 241, 0.7); }

/* ==========================================================================
   Features bento
   ========================================================================== */
.features { padding-top: var(--space-section); }
.features-intro { max-width: 56ch; margin-bottom: var(--sp-12); }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-4);
}
.bento-card {
  background: var(--card);
  border: 1px solid rgba(244, 81, 30, 0.08);
  border-radius: var(--r-card);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento-card h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: var(--sp-2); }
.bento-card p { color: var(--ink-soft); }

.bento-event {
  grid-column: span 4;
  display: flex; align-items: center; gap: var(--sp-6);
  background: linear-gradient(120deg, var(--brand-coral) 0%, var(--brand-deep) 100%);
  border: none;
  color: #fff;
  overflow: hidden;
}
.bento-event h3 { color: #fff; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.bento-event p { color: rgba(255, 248, 242, 0.92); max-width: 40ch; }
.bento-event-chip {
  display: inline-block;
  margin-top: var(--sp-4);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-pill);
}
.bento-event-chip strong { font-weight: 800; }
.bento-event-mascot {
  flex-shrink: 0;
  width: clamp(120px, 16vw, 200px);
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.18));
}
.bento-heat { grid-column: span 2; }
.heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-top: var(--sp-4);
}
.heatmap i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--brand-deep);
  opacity: var(--heat, 0.08);
}
.bento-privacy { grid-column: span 2; position: relative; }
.bento-icon {
  width: 44px; height: 44px;
  color: var(--score-green);
  margin-bottom: var(--sp-3);
}
.bento-live { grid-column: span 2; }
.live-pulse { display: flex; gap: 6px; margin-top: var(--sp-4); align-items: flex-end; height: 28px; }
.live-pulse span {
  width: 8px;
  background: linear-gradient(180deg, var(--brand-coral), var(--brand-deep));
  border-radius: var(--r-pill);
  animation: pulse-bar 1.1s var(--ease-out-quart) infinite;
}
.live-pulse span:nth-child(1) { height: 60%; animation-delay: 0s; }
.live-pulse span:nth-child(2) { height: 100%; animation-delay: 0.18s; }
.live-pulse span:nth-child(3) { height: 75%; animation-delay: 0.36s; }
@keyframes pulse-bar {
  0%, 100% { transform: scaleY(0.6); }
  40% { transform: scaleY(1); }
}
.bento-gallery {
  grid-column: span 2;
  display: flex; flex-direction: column;
}
.bento-gallery-mascot {
  width: 96px;
  margin-bottom: var(--sp-3);
  align-self: flex-end;
  margin-top: -56px;
  filter: drop-shadow(0 10px 14px rgba(184, 79, 26, 0.2));
}

/* ==========================================================================
   Quick facts
   ========================================================================== */
.quickfacts { padding-top: var(--space-section); }
.qf-intro { max-width: 56ch; margin-bottom: var(--sp-8); }
.qf-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
}
.qf-item {
  background: var(--card);
  border: 1px solid rgba(244, 81, 30, 0.08);
  border-radius: 20px;
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.qf-item dt {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}
.qf-item dd { color: var(--ink-soft); font-size: 0.95rem; }

/* ==========================================================================
   Blog strip: editorial rows
   ========================================================================== */
.blogstrip { padding-top: var(--space-section); }
.blog-intro { max-width: 56ch; margin-bottom: var(--sp-8); }
.blog-rows { display: flex; flex-direction: column; }
.blog-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.1fr) minmax(0, 1fr) 40px;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-4);
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid rgba(35, 31, 26, 0.1);
  border-radius: 14px;
  transition: background var(--dur-fast) var(--ease-out-quart);
}
.blog-row:last-child { border-bottom: 1px solid rgba(35, 31, 26, 0.1); }
.blog-row:hover { background: rgba(255, 255, 255, 0.75); }
.blog-tag {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--brand-deep);
}
.blog-title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.blog-desc { color: var(--ink-soft); font-size: 0.95rem; }
.blog-arrow {
  font-size: 1.3rem;
  color: var(--brand-deep);
  transition: transform var(--dur-fast) var(--ease-out-quart);
}
.blog-row:hover .blog-arrow { transform: translateX(5px); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { padding: var(--space-section) 0; }
.cta-card {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-coral) 55%, var(--brand-deep) 130%);
  border-radius: 32px;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 72px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-mascot {
  width: clamp(140px, 18vw, 210px);
  margin: 0 auto var(--sp-4);
  filter: drop-shadow(0 16px 22px rgba(122, 43, 6, 0.3));
}
.cta-card h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.cta-card > p {
  color: rgba(35, 31, 26, 0.78);
  font-size: var(--text-lede);
  font-weight: 600;
  margin-bottom: var(--sp-8);
}
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.cta-fineprint { font-size: var(--text-small); font-weight: 700; color: rgba(35, 31, 26, 0.65); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  position: relative; z-index: var(--z-content);
  background: #241D15;
  color: #EFE7DC;
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3); }
.footer-brand img { border-radius: 10px; }
.footer-brand span { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.2rem; }
.footer-desc { color: rgba(239, 231, 220, 0.65); max-width: 34ch; font-size: 0.95rem; }
.footer-col h5 {
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(239, 231, 220, 0.5);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  color: rgba(239, 231, 220, 0.85);
  text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--brand-gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(239, 231, 220, 0.12);
  font-size: var(--text-small);
  color: rgba(239, 231, 220, 0.55);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-event { grid-column: span 2; }
  .bento-heat, .bento-privacy, .bento-live, .bento-gallery { grid-column: span 1; }
  .blog-row { grid-template-columns: 80px minmax(0, 1fr) 32px; }
  .blog-desc { display: none; }
}

@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stage { min-height: 320px; }
  .hero-mascot { width: min(70%, 340px); }
  .chip-score { left: 2%; }
  .chip-streak { right: 2%; }
  .chip-crinkle { right: 0; top: 30%; }

  .story-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--sp-12);
  }
  .story-visual { order: -1; }
  .story-step { opacity: 1; background: var(--card); box-shadow: var(--shadow-sm); }

  .signals-grid { grid-template-columns: 1fr; }
  .signals-ring { order: -1; }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-4);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--dur-mid) var(--ease-out-quart), transform var(--dur-mid) var(--ease-out-quart);
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { display: block; padding: 12px 16px; text-align: center; }
  .nav-ctas { flex-direction: column; gap: 8px; }
  .mobile-toggle { display: flex; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-event { grid-column: span 1; flex-direction: column; text-align: center; }
  .bento-event-mascot { width: 140px; }
  .bento-heat, .bento-privacy, .bento-live, .bento-gallery { grid-column: span 1; }
  .bento-gallery-mascot { margin-top: 0; align-self: center; }
  .chip { padding: 8px 12px; }
  .chip-label { font-size: 0.72rem; }
  .chip-value { font-size: 0.92rem; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .blog-row { grid-template-columns: minmax(0, 1fr) 28px; }
  .blog-tag { grid-column: 1; }
  .blog-title { grid-column: 1; }
  .blog-arrow { grid-row: 2; grid-column: 2; }
  .story-mascots { right: 0; }
}

/* ==========================================================================
   Reduced motion: everything readable, nothing required to move
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ambient-glow { animation: none; }
  .live-pulse span { animation: none; transform: none; }
  .btn:hover, .bento-card:hover { transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
