/* crockbot.ai - Creative Director Design System */
:root {
  --bg-deep: #0a0807;
  --bg-card: rgba(22, 17, 14, 0.72);
  --bg-card-hover: rgba(32, 24, 20, 0.85);
  --border-subtle: rgba(245, 230, 215, 0.08);
  --border-glow: rgba(235, 110, 45, 0.35);
  
  --ember-primary: #f26422;
  --ember-glow: #ff8533;
  --ember-soft: rgba(242, 100, 34, 0.15);
  --saffron-gold: #f59e0b;
  --bone-cream: #faf5ed;
  --text-muted: #a39285;
  --text-dim: #6e6055;
  
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-warm: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 35px -5px rgba(242, 100, 34, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  font-family: var(--font-display);
  background-color: var(--bg-deep);
  color: var(--bone-cream);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background: 
    radial-gradient(circle at 50% 15%, rgba(210, 75, 20, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0d0a08 0%, #080605 100%);
  overflow-x: hidden;
}

/* Background Atmosphere Grid */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.6;
}

/* 3D Scene Viewport: Fixed full-screen backdrop that moves with scroll */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
  outline: none;
}

/* Interactive Canvas is interactive when clicking/hovering near the pot */
#crockbot-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 8, 7, 0.65);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--bone-cream);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ember-primary), #a3320b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(242, 100, 34, 0.4);
  font-size: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--ember-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-primary {
  background: linear-gradient(135deg, var(--ember-primary), #cf4a0f);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(242, 100, 34, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 100, 34, 0.5);
  background: linear-gradient(135deg, #ff7733, #dc5316);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--bone-cream);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Studio Director Controls HUD (Fixed bottom bar) */
.studio-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(18, 14, 12, 0.82);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(242, 100, 34, 0.2);
  max-width: 92vw;
  flex-wrap: wrap;
  justify-content: center;
}

.studio-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.studio-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.colorway-picker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.color-obsidian { background: #1c1a19; }
.color-terracotta { background: #b8542c; }
.color-sage { background: #556b59; }
.color-cream { background: #dcd0be; }

.divider-vertical {
  width: 1px;
  height: 22px;
  background: var(--border-subtle);
}

.hud-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--bone-cream);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: rgba(242, 100, 34, 0.25);
  border-color: var(--ember-primary);
  color: #fff;
}

.hud-btn.active {
  background: var(--ember-primary);
  border-color: var(--ember-glow);
  color: #fff;
}

/* Main Scroll Content Overlay */
.scroll-container {
  position: relative;
  z-index: 10;
  pointer-events: none; /* Let 3D canvas receive pointer events where empty */
}

.interactive-panel {
  pointer-events: auto; /* Re-enable pointer events on interactive UI cards */
}

/* Content Sections (Scroll stages) */
.stage-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
  position: relative;
  box-sizing: border-box;
}

.stage-content {
  max-width: 620px;
  width: 100%;
}

/* Beat 1: Center stage hero */
.hero-stage {
  min-height: 110vh;
  justify-content: flex-start;
  align-items: center;
  padding-top: 14vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(242, 100, 34, 0.12);
  border: 1px solid rgba(242, 100, 34, 0.35);
  color: #ff9955;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.no-hardware-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #fff 30%, #ffd4b8 70%, var(--ember-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 7px;
  background: var(--ember-primary);
  border-radius: 2px;
  animation: scroll-wheel 1.6s infinite ease;
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* Beat 2: Left column card */
.stage-lid {
  justify-content: flex-start;
}

/* Beat 3: Right column recipe showcase */
.stage-reveal {
  justify-content: flex-end;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-warm);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(242, 100, 34, 0.3);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ember-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.card-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* Interactive Meal Card */
.meal-selector-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.meal-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.meal-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bone-cream);
}

.meal-pill.active {
  background: var(--ember-soft);
  border-color: var(--ember-primary);
  color: #ff9955;
  font-weight: 600;
}

.recipe-preview-box {
  background: rgba(14, 11, 10, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.recipe-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bone-cream);
}

.recipe-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--saffron-gold);
}

.ingredient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.ing-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #d1c5ba;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ing-tag::before {
  content: '✓';
  color: var(--ember-primary);
  font-weight: bold;
}

/* Beat 4: Instacart Stage */
.stage-instacart {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.instacart-mockup {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.instacart-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(235, 110, 45, 0.2), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(235, 110, 45, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.instacart-badge-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.instacart-carrot {
  color: #ff6600;
  font-size: 1.3rem;
}

.delivery-estimate {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffaa55;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Feature Grid Section */
.features-section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(18, 14, 12, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(242, 100, 34, 0.15);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(242, 100, 34, 0.12);
  border: 1px solid rgba(242, 100, 34, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ember-primary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Call to Action Footer */
.cta-section {
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;
  z-index: 20;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(32, 22, 18, 0.9) 0%, rgba(15, 12, 10, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 32px;
  padding: 4rem 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(242, 100, 34, 0.2);
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.signup-input {
  flex: 1;
  min-width: 240px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.signup-input:focus {
  border-color: var(--ember-primary);
  box-shadow: 0 0 15px rgba(242, 100, 34, 0.3);
}

.footer {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 20;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--ember-primary);
}

/* 3D Drag Tip floating prompt */
.drag-hint {
  position: fixed;
  right: 2rem;
  bottom: 5.5rem;
  z-index: 40;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(18, 14, 12, 0.7);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  animation: fadeInOut 6s infinite ease-in-out;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* Tablet & Medium Screens */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 1.75rem;
  }
  .stage-section {
    padding: 5rem 1.75rem;
  }
  .stage-reveal, .stage-lid {
    justify-content: center;
  }
}

/* Mobile & iPhone Viewports (True Split Cinematic Viewport) */
@media (max-width: 768px) {
  /* Navbar: Compact, clean, zero squished badges */
  .navbar {
    padding: 0.75rem 1.15rem;
  }

  .status-badge {
    display: none; /* Hide cluttered badge on small mobile headers */
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .nav-actions {
    gap: 0.65rem;
  }

  .navbar .btn-primary {
    font-size: 0.8rem;
    padding: 0.45rem 0.95rem;
  }

  /* Split Stage: The upper 38-42vh is reserved exclusively for the 3D Crockbot */
  .stage-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40vh 1.15rem 5.75rem 1.15rem;
    box-sizing: border-box;
  }

  .hero-stage {
    min-height: 100vh;
    justify-content: flex-end;
    align-items: center;
    padding-top: 38vh;
    padding-bottom: 5.75rem;
  }

  .stage-reveal,
  .stage-lid,
  .stage-instacart {
    justify-content: flex-end;
  }

  .stage-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  /* Mobile Glass Card: Native iOS sheet aesthetic with proper breathing room */
  .glass-card {
    padding: 1.35rem 1.15rem;
    border-radius: 20px;
    background: rgba(16, 12, 10, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(245, 230, 215, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(242, 100, 34, 0.1);
  }

  .card-tag {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  .card-title {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
  }

  .card-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
    color: #b5a496;
  }

  /* Hero Headings & CTAs on iPhone */
  .hero-title {
    font-size: clamp(2.1rem, 7.5vw, 2.7rem);
    line-height: 1.08;
    margin-bottom: 0.75rem;
  }

  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    color: #c4b3a4;
  }

  .no-hardware-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    font-size: 0.88rem;
  }

  .scroll-indicator {
    font-size: 0.75rem;
  }

  /* Compact Mobile Studio Bar: dock cleanly without overlapping buttons */
  .studio-bar {
    bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    padding: 0.35rem 0.65rem;
    gap: 0.5rem;
    max-width: 94vw;
    border-radius: 999px;
    background: rgba(18, 14, 12, 0.92);
    border-color: rgba(242, 100, 34, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(242, 100, 34, 0.2);
  }

  .studio-label {
    display: none; /* Hide label on mobile to save precious horizontal space */
  }

  .color-dot {
    width: 20px;
    height: 20px;
  }

  .divider-vertical {
    height: 18px;
  }

  .hud-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    gap: 0.3rem;
  }

  /* Touch Drag Hint: Floating micro-badge positioned at the top */
  .drag-hint {
    display: flex;
    top: 4.6rem;
    bottom: auto;
    right: 50%;
    transform: translateX(50%);
    font-size: 0.68rem;
    padding: 0.22rem 0.65rem;
    white-space: nowrap;
    opacity: 0.85;
    background: rgba(18, 14, 12, 0.85);
  }

  /* Recipe Pills: Horizontal swipeable bar */
  .meal-selector-bar {
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .meal-pill {
    padding: 0.32rem 0.7rem;
    font-size: 0.75rem;
  }

  .recipe-preview-box {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .recipe-name {
    font-size: 1.1rem;
  }

  .recipe-meta {
    font-size: 0.75rem;
  }

  /* Instacart on Mobile */
  .instacart-banner {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
  }

  .instacart-badge-logo {
    font-size: 0.95rem;
  }

  .delivery-estimate {
    font-size: 0.75rem;
  }

  .cart-item-row {
    padding: 0.6rem 0.75rem;
  }

  .cart-item-title label {
    font-size: 0.82rem;
  }

  .cart-item-price {
    font-size: 0.78rem;
  }

  .cart-total-row {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  /* Features Grid on Mobile */
  .features-section {
    padding: 4rem 1.15rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Call to Action on Mobile */
  .cta-section {
    padding: 4rem 1.15rem 3rem;
  }

  .cta-box {
    padding: 2.5rem 1.25rem;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-input {
    width: 100%;
    min-width: auto;
  }
}
