/* ==========================================================================
   MacroCart Editorial Obsidian & Culinary Amber Design System (?v=2)
   Refined color balance: ~80% warm obsidian/ivory, amber highlights, ~15% emerald accents
   ========================================================================== */

:root {
  --bg: #0d1015;
  --bg-elevated: #12161e;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #151a22;
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-emerald: rgba(16, 185, 129, 0.34);
  --border-amber: rgba(245, 158, 11, 0.36);

  /* Signature emerald reserved strictly for savings, LIVE badges & logo accent */
  --brand: #10b981;
  --brand-light: #34d399;
  --brand-soft: #6ee7b7;
  --brand-dim: rgba(16, 185, 129, 0.13);

  /* Warm culinary accents */
  --amber: #f59e0b;
  --amber-soft: #fde68a;
  --terracotta: #fb923c;
  --amber-dim: rgba(245, 158, 11, 0.14);

  --slate-dim: rgba(148, 163, 184, 0.14);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --ink-dark: #0d1015;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.58);
  --shadow-ivory: 0 14px 36px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.45);
  --container: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* Subtle Warm Studio Depth (no heavy neon green blobs) */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.48;
  will-change: transform;
}

.aurora-1 {
  width: 660px;
  height: 660px;
  top: -260px;
  right: -180px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.11) 0%, rgba(245, 158, 11, 0) 70%);
  animation: aurora-drift-1 20s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 620px;
  height: 620px;
  top: 40%;
  left: -220px;
  background: radial-gradient(circle, rgba(248, 250, 252, 0.05) 0%, rgba(248, 250, 252, 0) 72%);
  animation: aurora-drift-2 24s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: 10%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.09) 0%, rgba(251, 146, 60, 0) 72%);
  animation: aurora-drift-1 26s ease-in-out infinite alternate-reverse;
}

@keyframes aurora-drift-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-36px, 28px, 0) scale(1.06); }
}

@keyframes aurora-drift-2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(40px, -24px, 0) scale(1.08); }
}

/* ==========================================================================
   Sticky Glassmorphic Navbar
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(13, 16, 21, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand span {
  color: var(--brand-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #f8fafc;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 22px 20px;
  border-top: 1px solid var(--border);
  background: rgba(13, 16, 21, 0.97);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-soft);
}

.mobile-drawer a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ==========================================================================
   Buttons & Pills (Crisp Ivory Primary CTAs)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
  border-radius: 11px;
}

.btn-primary {
  background: #f8fafc;
  color: #0d1015;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.16), 0 10px 26px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: #f8fafc;
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.11);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.eyebrow-pill.warm {
  background: var(--amber-dim);
  border-color: var(--border-amber);
  color: var(--amber-soft);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-ring 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ==========================================================================
   Section Layout & Neutral Frosted Glass Cards
   ========================================================================== */
.section {
  padding: 76px 0;
  position: relative;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-top: 14px;
  margin-bottom: 14px;
  color: #fff;
}

.section-header p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

.glass-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.28s var(--ease-out);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(248, 250, 252, 0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  border-color: var(--border-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ==========================================================================
   1. Cinematic Full-Bleed Stylized Hero + Layered Media Stage
   ========================================================================== */
.hero {
  position: relative;
  padding: 54px 0 76px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.03);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 16, 21, 0.96) 0%, rgba(13, 16, 21, 0.84) 48%, rgba(13, 16, 21, 0.76) 100%),
    linear-gradient(to bottom, rgba(13, 16, 21, 0.55) 0%, rgba(13, 16, 21, 0.15) 45%, #0d1015 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.hero-title {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
  margin: 18px 0 18px;
  color: #fff;
  letter-spacing: -0.035em;
}

.hero-title .accent {
  background: linear-gradient(120deg, #f8fafc 0%, #fde68a 52%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Vibe Switcher */
.vibe-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 15px;
  background: rgba(21, 26, 34, 0.88);
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  max-width: 100%;
}

.vibe-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.vibe-btn.active {
  background: #f8fafc;
  color: #0d1015;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-copy {
  font-size: 17.5px;
  color: #e2e8f0;
  max-width: 550px;
  min-height: 82px;
  transition: opacity 0.2s ease;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(21, 26, 34, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
}

.highlight-chip.emerald {
  border-color: var(--border-emerald);
  background: var(--brand-dim);
  color: var(--brand-soft);
}

.highlight-chip.amber {
  border-color: var(--border-amber);
  color: var(--amber-soft);
  background: var(--amber-dim);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.trust-item span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Hero Right Column: Layered Editorial Collage */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}

.hero-collage {
  position: relative;
  width: 100%;
  max-width: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
}

.collage-tile {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.62);
  background: #151a22;
  z-index: 1;
}

.collage-video-card {
  top: 18px;
  left: -6px;
  width: 174px;
  height: 126px;
  transform: rotate(-4deg);
}

.collage-photo-card {
  bottom: 42px;
  right: -6px;
  width: 184px;
  height: 132px;
  transform: rotate(4deg);
}

.collage-tile video,
.collage-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(13, 16, 21, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.phone-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 298px;
  perspective: 1100px;
}

.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  padding: 7px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(30, 36, 46, 0.88) 48%, rgba(245, 158, 11, 0.25));
  box-shadow: 0 34px 76px rgba(0, 0, 0, 0.72), 0 0 40px rgba(0, 0, 0, 0.45);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s var(--ease-out);
}

.phone-stage:hover .phone-frame {
  transform: rotateY(-2deg) rotateX(1deg) translateY(-4px);
}

.phone-screen-wrap {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #080d12;
  position: relative;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080d12;
  transition: opacity 0.28s ease, transform 0.35s var(--ease-out);
}

.phone-screen-img.is-fading {
  opacity: 0.22;
  transform: scale(0.985);
}

/* Floating Glass Badges around Hero Phone */
.float-badge {
  position: absolute;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12.5px;
  line-height: 1.35;
  animation: float-bob 5.5s ease-in-out infinite;
  pointer-events: none;
}

.float-badge strong {
  display: block;
  color: #fff;
  font-size: 13.5px;
}

.float-badge span {
  color: var(--brand-soft);
  font-weight: 700;
}

.float-badge-top {
  top: -12px;
  right: -46px;
}

.float-badge-bottom {
  bottom: 22px;
  left: -48px;
  animation-delay: -2.6s;
  border-color: var(--border-amber);
}

.float-badge-bottom span {
  color: var(--amber-soft);
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.screen-pills {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.screen-pill {
  border: 1px solid var(--border);
  background: rgba(21, 26, 34, 0.88);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.screen-pill:hover {
  color: #fff;
  border-color: var(--border-strong);
}

.screen-pill.active {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0d1015;
}

/* ==========================================================================
   2. Vibrant Auto-Playing Kinetic App Demo (#demo)
   ========================================================================== */
.theater-shell {
  background: linear-gradient(155deg, rgba(24, 28, 38, 0.96), rgba(11, 14, 20, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg), 0 0 70px rgba(245, 158, 11, 0.12);
}

.theater-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Vibrant Animated Motion-Graphic Backdrop */
.stage-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.stage-grid {
  position: absolute;
  inset: -40%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(600px) rotateX(24deg);
  animation: grid-glide 16s linear infinite;
}

@keyframes grid-glide {
  0% { transform: perspective(600px) rotateX(24deg) translateY(0); }
  100% { transform: perspective(600px) rotateX(24deg) translateY(46px); }
}

.stage-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.62;
  transition: background 0.8s ease;
}

.stage-orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.5), transparent 70%);
  animation: orb-float-a 9s ease-in-out infinite alternate;
}

.stage-orb-2 {
  width: 440px;
  height: 440px;
  bottom: -140px;
  right: -60px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.42), transparent 70%);
  animation: orb-float-b 11s ease-in-out infinite alternate;
}

.stage-orb-3 {
  width: 300px;
  height: 300px;
  top: 28%;
  left: 36%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.34), transparent 70%);
  animation: orb-float-a 7s ease-in-out infinite alternate-reverse;
}

.theater-stage[data-chapter="1"] .stage-orb-1 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.56), transparent 70%);
}
.theater-stage[data-chapter="2"] .stage-orb-1 {
  background: radial-gradient(circle, rgba(251, 146, 60, 0.58), transparent 70%);
}
.theater-stage[data-chapter="3"] .stage-orb-2 {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.52), transparent 70%);
}
.theater-stage[data-chapter="4"] .stage-orb-1 {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.58), transparent 70%);
}

@keyframes orb-float-a {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(42px, 28px, 0) scale(1.16); }
}

@keyframes orb-float-b {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-40px, -24px, 0) scale(1.14); }
}

.theater-native-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080a0e;
  display: block;
}

.theater-sim-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  height: 100%;
  align-items: center;
  padding: 26px 36px;
  gap: 32px;
}

.theater-phone-col {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-halo {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(245, 158, 11, 0.5), rgba(16, 185, 129, 0.45), rgba(251, 146, 60, 0.5), rgba(245, 158, 11, 0.5));
  filter: blur(42px);
  opacity: 0.55;
  animation: halo-spin 10s linear infinite;
}

@keyframes halo-spin {
  to { transform: rotate(360deg); }
}

.theater-phone-box {
  position: relative;
  z-index: 2;
  height: 100%;
  max-height: 495px;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  padding: 6px;
  background: linear-gradient(145deg, rgba(253, 230, 138, 0.72), rgba(16, 185, 129, 0.52) 52%, rgba(251, 146, 60, 0.65));
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.72), 0 0 36px rgba(245, 158, 11, 0.2);
  overflow: hidden;
}

.theater-phone-box.chapter-pop {
  animation: phone-spring 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes phone-spring {
  0% { transform: scale(0.92) translateY(14px) rotateY(-8deg); }
  100% { transform: scale(1) translateY(0) rotateY(0deg); }
}

.theater-phone-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  background: #080d12;
}

.theater-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080d12;
  transition: opacity 0.4s ease;
}

.theater-stage.is-playing .theater-screen-img.active {
  animation: ken-burns-app 4.8s ease-in-out infinite alternate;
}

@keyframes ken-burns-app {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.045) translate3d(0, -6px, 0); }
}

.screen-glint {
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.14) 50%, transparent 58%);
  pointer-events: none;
  animation: glint-sweep 5s ease-in-out infinite;
}

@keyframes glint-sweep {
  0%, 55% { transform: translateX(-60%); opacity: 0; }
  75% { opacity: 1; }
  100% { transform: translateX(60%); opacity: 0; }
}

/* Vibrant Kinetic Touch Cursor + Label */
.tap-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1), top 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.tap-core {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fbbf24 55%, #f59e0b 100%);
  border: 2.5px solid #fff;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.95);
  animation: tap-core-press 1.6s ease-in-out infinite;
}

.tap-wave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2.5px solid #34d399;
  animation: tap-wave-ring 1.6s ease-out infinite;
}

.tap-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #0d1015;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

@keyframes tap-core-press {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.76); }
}

@keyframes tap-wave-ring {
  0% { width: 20px; height: 20px; opacity: 0.95; }
  100% { width: 68px; height: 68px; opacity: 0; }
}

.theater-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.chapter-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(251, 146, 60, 0.22));
  border: 1px solid rgba(253, 230, 138, 0.5);
  color: #fef3c7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-reel-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulse-ring 1.8s infinite;
}

.theater-caption-title {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  color: #fff;
  animation: title-kinetic-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes title-kinetic-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.theater-caption-desc {
  color: #e2e8f0;
  font-size: 15.5px;
  line-height: 1.55;
}

/* Vibrant Motion-Graphic HUD Widgets inside Theater */
.mg-widget-stage {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.mg-card {
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(15, 20, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  animation: mg-pop 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.mg-card:nth-child(2) { animation-delay: 0.12s; }
.mg-card:nth-child(3) { animation-delay: 0.24s; }

@keyframes mg-pop {
  from { opacity: 0; transform: translateX(18px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.mg-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mg-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.mg-pill.hot-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 146, 60, 0.25));
  border-color: rgba(253, 230, 138, 0.55);
  color: #fef3c7;
}

.mg-pill.hot-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.22));
  border-color: rgba(110, 231, 183, 0.55);
  color: #d1fae5;
}

.mg-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.mg-meter-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.mg-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #34d399, #fbbf24);
  animation: meter-fill 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes meter-fill {
  from { width: 8%; }
  to { width: var(--target-w, 92%); }
}

.mg-timer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mg-timer-tile {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.2), rgba(15, 20, 28, 0.92));
  border: 1px solid rgba(253, 186, 116, 0.45);
}

.mg-timer-tile small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #fed7aa;
}

.mg-timer-tile strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.mg-race-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 6px;
}

.mg-race-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mg-race-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #fbbf24);
  animation: meter-fill 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mg-savings-burst {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(245, 158, 11, 0.22));
  border-color: rgba(110, 231, 183, 0.55);
}

.mg-savings-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  color: #6ee7b7;
  line-height: 1;
}

/* Theater Control Bar (Clean Auto-Looping Scrubber) */
.theater-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(13, 16, 21, 0.88);
  border: 1px solid var(--border);
}

.reel-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
}

.scrubber-wrap {
  flex: 1;
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.scrubber-track {
  position: relative;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: visible;
}

.scrubber-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #fbbf24);
  position: relative;
}

.scrubber-thumb {
  position: absolute;
  right: -7px;
  top: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #f59e0b;
  transform: translateY(-50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.theater-time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.chapter-tabs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.chapter-tab {
  text-align: left;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(21, 26, 34, 0.72);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.chapter-tab:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.chapter-tab.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(253, 230, 138, 0.55);
}

.chapter-tab small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--amber-soft);
  margin-bottom: 2px;
}

.chapter-tab span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}

/* ==========================================================================
   3. Dual-Mode Visual Split (#modes) — Human & Ambient Video Centered
   ========================================================================== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mode-card {
  display: flex;
  flex-direction: column;
}

.mode-media {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #12161e;
}

.mode-media-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.mode-card:hover .mode-media-main {
  transform: scale(1.03);
}

.mode-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 16, 21, 0.94) 4%, rgba(13, 16, 21, 0.22) 55%, rgba(13, 16, 21, 0.14) 100%);
  pointer-events: none;
}

.mode-thumb {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: 96px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.mode-tag {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(13, 16, 21, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  backdrop-filter: blur(10px);
}

.mode-tag.amber {
  border-color: var(--border-amber);
  color: var(--amber-soft);
}

.mode-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.mode-body h3 {
  font-size: 24px;
  color: #fff;
}

.mode-body > p {
  color: var(--text-soft);
  font-size: 15px;
}

.mode-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
}

.mode-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #e2e8f0;
}

.check-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-dim);
  color: var(--brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-dot.amber {
  background: var(--amber-dim);
  color: var(--amber-soft);
}

/* ==========================================================================
   3b. Real Kitchens. Real Schedules. Real Savings. (#real-life)
   ========================================================================== */
.lifestyle-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.life-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.life-card img,
.life-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.life-card:hover img,
.life-card:hover video {
  transform: scale(1.04);
}

.life-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 16, 21, 0.94) 4%, rgba(13, 16, 21, 0.16) 55%, rgba(13, 16, 21, 0.08) 100%);
  pointer-events: none;
}

.life-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}

.life-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 16, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--amber-soft);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
  backdrop-filter: blur(8px);
}

.life-caption h4 {
  font-size: 16.5px;
  line-height: 1.28;
  color: #fff;
}

/* ==========================================================================
   4. Real Meal Photography Dual-Row Infinite Marquee (#recipes)
   ========================================================================== */
.marquee-section {
  overflow: hidden;
}

.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.marquee-row {
  display: flex;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.marquee-row.left .marquee-track {
  animation: marquee-left 48s linear infinite;
}

.marquee-row.right .marquee-track {
  animation: marquee-right 52s linear infinite;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.meal-card {
  width: 278px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  transition: border-color 0.22s ease, transform 0.25s ease;
}

.meal-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.meal-photo-wrap {
  position: relative;
  height: 176px;
  overflow: hidden;
  background: #0d1015;
}

.meal-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meal-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 16, 21, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.meal-info {
  padding: 13px 15px 15px;
}

.meal-info h4 {
  font-size: 15px;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.meal-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber-soft);
}

/* ==========================================================================
   5. Weekly Grocery Showdown Mini-Simulator (#showdown)
   ========================================================================== */
.showdown-card {
  padding: 28px;
}

.showdown-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.flyer-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--amber-dim);
  border: 1px solid var(--border-amber);
  color: var(--amber-soft);
  font-size: 12.5px;
  font-weight: 700;
  max-width: 100%;
  line-height: 1.35;
}

.sim-controls {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.seg-group {
  display: inline-flex;
  padding: 4px;
  border-radius: 13px;
  background: rgba(13, 16, 21, 0.85);
  border: 1px solid var(--border);
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.seg-btn.active {
  background: #f8fafc;
  color: #0d1015;
}

.budget-slider-box {
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(13, 16, 21, 0.72);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.budget-slider-box label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

.budget-slider-box input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #f59e0b;
  cursor: pointer;
}

.budget-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-soft);
  min-width: 68px;
  text-align: right;
}

.showdown-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  align-items: stretch;
}

.store-rows {
  display: grid;
  gap: 10px;
}

.store-row {
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(13, 16, 21, 0.72);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.store-row.winner {
  border-color: var(--border-emerald);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(13, 16, 21, 0.85));
}

.store-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-soft);
}

.store-row.winner .store-rank {
  background: var(--brand);
  color: #042117;
}

.store-main {
  min-width: 0;
}

.store-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.store-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.prov-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.prov-live {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.prov-flyer {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.prov-est {
  background: var(--slate-dim);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.store-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.store-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #475569, #94a3b8);
  transition: width 0.45s var(--ease-out);
}

.store-row.winner .store-bar-fill {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.store-price-col {
  text-align: right;
}

.store-price-col strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  color: #fff;
}

.store-price-col span {
  font-size: 11.5px;
  font-weight: 700;
}

.delta-under { color: var(--brand-soft); }
.delta-over { color: #fca5a5; }

.split-callout {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(21, 26, 34, 0.94));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.split-callout h4 {
  font-size: 19px;
  color: #fff;
  margin-top: 8px;
}

.split-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-soft);
  line-height: 1.1;
}

.split-meta {
  font-size: 13.5px;
  color: var(--text-soft);
  padding: 12px;
  border-radius: 12px;
  background: rgba(13, 16, 21, 0.72);
  border: 1px solid var(--border);
}

/* ==========================================================================
   6. Interactive Feature Bento Grid (#features)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

.bento-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 6px;
}

.bento-card h3 {
  font-size: 21px;
  color: #fff;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* Cook Mode Live Timer Demo */
.timer-demo-box {
  display: grid;
  gap: 10px;
}

.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(13, 16, 21, 0.78);
  border: 1px solid var(--border);
}

.timer-row strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.timer-row span {
  font-size: 12px;
  color: var(--muted);
}

.timer-clock {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 800;
  color: var(--amber-soft);
}

.timer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Interactive Pantry Checkoff */
.pantry-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
}

.pantry-total {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.pantry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pantry-item {
  border: 1px solid var(--border);
  background: rgba(13, 16, 21, 0.78);
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s ease;
}

.pantry-item.checked {
  border-color: var(--brand);
  background: var(--brand-dim);
  color: var(--brand-soft);
}

.pantry-item.checked .pantry-name {
  text-decoration: line-through;
  opacity: 0.85;
}

/* Pill Clusters & Chains Strip */
.pill-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-pill {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(13, 16, 21, 0.78);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
}

.mini-pill.safe {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}

.mini-pill.skip {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.prep-cards-mini {
  display: grid;
  gap: 8px;
}

.prep-mini-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(13, 16, 21, 0.78);
  border: 1px solid var(--border);
  font-size: 13.5px;
}

.prep-mini-item strong {
  color: #fff;
  display: block;
}

.prep-mini-item span {
  color: var(--muted);
  font-size: 12.5px;
}

.chains-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.chains-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee-left 34s linear infinite;
}

.chains-marquee:hover .chains-track {
  animation-play-state: paused;
}

.chain-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(13, 16, 21, 0.85);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
}

/* ==========================================================================
   7. Pricing (#pricing)
   ========================================================================== */
.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card.pro {
  border-color: var(--border-amber);
  background: linear-gradient(155deg, rgba(245, 158, 11, 0.09), rgba(21, 26, 34, 0.94));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
}

.price-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
}

.price-card.pro .price-badge {
  background: var(--amber);
  color: #0d1015;
}

.price-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.price-amount small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.price-sub {
  font-size: 14px;
  color: var(--amber-soft);
  font-weight: 600;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #e2e8f0;
}

/* ==========================================================================
   8. FAQ Accordion (#faq) & Beta CTA (#beta) & Footer
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--border-strong);
}

.faq-q {
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 22px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
}

.faq-icon {
  font-size: 20px;
  color: var(--amber-soft);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease-out);
}

.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--text-soft);
  font-size: 15px;
}

.beta-cta {
  padding: 44px 34px;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(245, 158, 11, 0.14), rgba(21, 26, 34, 0.96) 68%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.beta-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: #fff;
  margin: 14px 0 12px;
}

.beta-cta p {
  max-width: 600px;
  margin: 0 auto 26px;
  color: var(--text-soft);
  font-size: 16.5px;
}

.beta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 30px 0 46px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--amber-soft);
  text-decoration: underline;
}

/* ==========================================================================
   Legal Pages (/privacy & /terms)
   ========================================================================== */
.legal-main {
  padding: 46px 0 68px;
}

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  backdrop-filter: blur(14px);
}

.legal-card h1 {
  font-size: clamp(26px, 4vw, 34px);
  color: #fff;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 24px;
}

.legal-card h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 19px;
  color: var(--amber-soft);
}

.legal-card p,
.legal-card li {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 10px;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card a {
  color: var(--amber-soft);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Overflow Safeguards (360px–390px)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-copy {
    min-height: 0;
  }
  .collage-video-card {
    left: 6px;
  }
  .collage-photo-card {
    right: 6px;
  }
  .float-badge-top { right: -12px; }
  .float-badge-bottom { left: -12px; }
  .lifestyle-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showdown-grid {
    grid-template-columns: 1fr;
  }
  .span-6 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 54px 0;
  }
  .hero {
    padding: 34px 0 54px;
  }
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-collage {
    padding: 8px 0;
  }
  .collage-tile,
  .float-badge {
    display: none;
  }
  .theater-shell {
    padding: 14px;
  }
  .theater-stage {
    aspect-ratio: auto;
    min-height: 520px;
  }
  .theater-sim-grid {
    grid-template-columns: 1fr;
    padding: 20px 14px;
    gap: 18px;
  }
  .theater-phone-box {
    max-height: 330px;
  }
  .theater-controls {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .scrubber-wrap {
    order: 3;
    flex-basis: 100%;
  }
  .chapter-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .modes-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pantry-list {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .mg-timer-grid {
    grid-template-columns: 1fr;
  }
  .mg-savings-burst {
    flex-wrap: wrap;
  }
  .vibe-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .vibe-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 8px;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: normal;
  }
  /* Exact Mobile Simulator Overflow Fix */
  .showdown-card {
    padding: 20px 14px;
  }
  .sim-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .sim-controls > * {
    width: 100%;
    min-width: 0;
  }
  .seg-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .seg-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 8px;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: normal;
  }
  .budget-slider-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    align-items: center;
    padding: 12px 14px;
  }
  .budget-slider-box label {
    grid-column: 1;
    grid-row: 1;
  }
  .budget-val {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    text-align: right;
  }
  .budget-slider-box input[type="range"] {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .pricing-toggle-wrap .seg-group {
    max-width: 380px;
  }
  .lifestyle-mosaic {
    grid-template-columns: 1fr;
  }
  .life-card {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 480px) {
  .hero-ctas .btn {
    width: 100%;
  }
  .store-row {
    padding: 12px;
    gap: 10px;
  }
  .bento-card,
  .price-card {
    padding: 22px 18px;
  }
  .chapter-tabs {
    grid-template-columns: 1fr;
  }
  .nav-actions .btn {
    display: none;
  }
  .beta-cta {
    padding: 32px 18px;
  }
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
