/* ==========================================================================
   PlateSight — Nordic Natural Design System (Web Stylesheet)
   Tokens derived from PlateSight Android Theme & Brand Identity
   ========================================================================== */

:root {
  /* Nordic Daylight (Default Light Palette) */
  --bg-canvas: #F7F8F5;          /* NordicAlabaster */
  --bg-surface: #FFFFFF;         /* PureSnow */
  --bg-elevated: #F0F2ED;        /* Subtle secondary surface */
  --border-subtle: #E4E7E1;      /* HairlineBorder */
  --border-strong: #D5DAD0;
  --text-primary: #1A231F;       /* NordicSlate */
  --text-secondary: #5E6963;     /* MutedGranite */
  --text-muted: #9BA59F;         /* LichenGrey */
  --shadow-ambient: 0 4px 20px rgba(24, 32, 26, 0.05);
  --shadow-elevated: 0 12px 32px rgba(24, 32, 26, 0.08);

  /* Brand Accent */
  --accent-primary: #1C7450;     /* ForestAccent */
  --accent-hover: #155c3f;
  --accent-subtle: rgba(28, 116, 80, 0.09);
  --accent-glow: rgba(28, 116, 80, 0.25);

  /* Macro Nutrients Palette */
  --macro-protein: #4F7D96;      /* FjordBlue */
  --macro-fat: #C88E3A;          /* NordicAmber */
  --macro-carbs: #23815C;        /* MossSage */
  --macro-calories: #C45550;     /* Lingonberry */

  /* Status Tokens */
  --color-success: #23815C;
  --color-error: #C45550;
  --color-warning: #C88E3A;

  /* Typography & Layout */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;

  color-scheme: light dark;
}

/* Midnight Fjord (Dark Theme) */
[data-theme="dark"] {
  --bg-canvas: #0D1311;          /* FjordBasalt */
  --bg-surface: #151D1A;         /* PineShadow */
  --bg-elevated: #1E2824;        /* FjordCard */
  --border-subtle: #232F2A;      /* FjordBorder */
  --border-strong: #2F3E37;
  --text-primary: #F3F5F2;       /* BirchFrost */
  --text-secondary: #94A29B;     /* HeatherGrey */
  --text-muted: #5E6963;
  --shadow-ambient: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.5);

  --accent-primary: #4AAA80;     /* SpringAccent */
  --accent-hover: #5ec496;
  --accent-subtle: rgba(74, 170, 128, 0.12);
  --accent-glow: rgba(74, 170, 128, 0.3);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-canvas);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-center { text-align: center; }

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 14px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background-color: var(--bg-elevated);
  border-color: var(--text-secondary);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background-color: var(--accent-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(13, 19, 17, 0.85);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--bg-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  color: var(--accent-primary);
  font-weight: 700;
}

.lang-divider {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--border-subtle);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.sun-icon { display: block; }
.moon-icon { display: none; }

[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-ambient);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  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); }
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

/* ==========================================================================
   Phone Wireframe Mockup (Hero & Showcase)
   ========================================================================== */
.phone-frame {
  width: 320px;
  height: 620px;
  background-color: var(--bg-surface);
  border-radius: 42px;
  border: 10px solid var(--text-primary);
  box-shadow: var(--shadow-elevated), 0 0 0 1px var(--border-subtle);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background-color: var(--text-primary);
  border-radius: 12px;
  z-index: 10;
}

.phone-screen {
  flex: 1;
  background-color: var(--bg-canvas);
  padding: 2.2rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mockup-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  padding: 0 0.2rem;
}

.mockup-pill {
  background: var(--bg-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Hero Food Card Wireframe */
.hero-mockup-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wireframe-dish-preview {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: var(--shadow-ambient);
}

.dish-photo-slot {
  position: relative;
  height: 140px;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.dish-photo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(28, 116, 80, 0.9);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .dish-photo-badge {
  background-color: rgba(74, 170, 128, 0.95);
  color: #0D1311;
}

.dish-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 0.5rem;
}

.dish-camera-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.dish-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dish-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.dish-cals {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--macro-calories);
}

.dish-cals small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.macro-bars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.macro-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.macro-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.macro-bar {
  height: 5px;
  background-color: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.macro-fill {
  height: 100%;
  border-radius: 3px;
}

.macro-col.protein .macro-fill { background-color: var(--macro-protein); }
.macro-col.fat .macro-fill { background-color: var(--macro-fat); }
.macro-col.carbs .macro-fill { background-color: var(--macro-carbs); }

.macro-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Daily Energy Bank preview */
.wireframe-bank-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem;
}

.bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.bank-title { color: var(--text-secondary); }
.bank-badge {
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
}

.bank-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.3rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.1rem;
  font-weight: 800;
}

.stat-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.stat-divider {
  font-size: 1rem;
  color: var(--border-strong);
}

.mockup-hint-placeholder {
  text-align: center;
  font-size: 0.68rem;
  font-style: italic;
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

/* ==========================================================================
   Comparison Section (Problem vs Solution)
   ========================================================================== */
.comparison-section {
  padding: 5.5rem 0;
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comparison-card {
  padding: 2.2rem;
  position: relative;
}

.comp-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.8rem;
}

.comp-badge.bad {
  background-color: rgba(196, 85, 80, 0.12);
  color: var(--color-error);
}

.comp-badge.good {
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.95rem;
}

.comp-icon {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.4;
}

.comp-icon.red { color: var(--color-error); }
.comp-icon.green { color: var(--color-success); }

.comp-list strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.comp-list span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.feature-card {
  padding: 2rem;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-svg {
  width: 24px;
  height: 24px;
}

.feature-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.feature-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Showcase / Interactive Wireframe Tabs
   ========================================================================== */
.showcase-section {
  padding: 6rem 0;
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.tab-btn.active {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.showcase-display {
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: center;
  gap: 3.5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wireframe-card-placeholder {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mockup-header-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 0.8rem;
  text-align: center;
}

.screen-wireframe-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wireframe-ring-slot {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.ring-circle {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  border: 6px solid var(--accent-primary);
  border-top-color: var(--macro-calories);
  border-right-color: var(--macro-carbs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-num {
  font-size: 1.15rem;
  font-weight: 800;
}

.ring-label {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.wireframe-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wireframe-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.block-icon { font-size: 1.1rem; }
.block-info { display: flex; flex-direction: column; }
.block-title { font-size: 0.75rem; font-weight: 700; }
.block-sub { font-size: 0.65rem; color: var(--text-muted); }

.slot-badge {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding: 0.3rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
}

/* Camera tab view */
.camera-view {
  background-color: #0D1311;
  color: #FFFFFF;
}

.viewfinder-box {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
}

.viewfinder-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #4AAA80;
  border-style: solid;
}

.viewfinder-corner.top-left { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.viewfinder-corner.top-right { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.viewfinder-corner.bottom-left { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.viewfinder-corner.bottom-right { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.viewfinder-label {
  font-size: 0.75rem;
  color: #94A29B;
  animation: pulse-dot 1.5s infinite;
}

.recognition-sheet {
  background: #151D1A;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sheet-title { font-size: 0.78rem; font-weight: 700; color: #F3F5F2; }
.sheet-chips { display: flex; gap: 0.4rem; }
.sheet-chips .chip {
  font-size: 0.65rem;
  background: #1E2824;
  color: #4AAA80;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.sheet-input-slot {
  font-size: 0.68rem;
  color: #94A29B;
  border: 1px dashed #232F2A;
  padding: 0.4rem;
  border-radius: 4px;
}

/* MenuLens tab view */
.menu-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-item {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-item.recommended {
  border-color: var(--accent-primary);
  background-color: var(--accent-subtle);
}

.menu-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.item-name { font-size: 0.8rem; font-weight: 700; }
.item-stats { font-size: 0.68rem; color: var(--text-secondary); }

/* Trends & TDEE tab */
.trends-chart-slot {
  height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.chart-bars-mockup {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 120px;
  width: 90%;
}

.bar-mockup {
  flex: 1;
  background-color: var(--accent-primary);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

.chart-legend {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.tdee-insight-box {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  font-size: 0.72rem;
}

.tdee-insight-box strong {
  display: block;
  color: var(--accent-primary);
  margin-bottom: 0.2rem;
}

.tdee-insight-box p {
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Social & Contests tab */
.leaderboard-mockup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lead-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.lead-item.me {
  border: 1px solid var(--accent-primary);
  background: var(--accent-subtle);
  font-weight: 700;
}

.lead-rank { font-weight: 700; width: 32px; }
.lead-name { flex: 1; }
.lead-pts { font-weight: 800; color: var(--accent-primary); }

/* Promo Video Card */
.promo-video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-ambient);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.video-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.video-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.video-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0D1311;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Beta Waitlist Signup Section
   ========================================================================== */
.waitlist-section {
  padding: 6.5rem 0;
  position: relative;
}

.waitlist-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem;
  box-shadow: var(--shadow-elevated);
}

.waitlist-header {
  margin-bottom: 2.8rem;
}

.waitlist-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 0.85rem;
}

.waitlist-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label .required {
  color: var(--color-error);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: var(--bg-surface);
}

.form-control.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 2px rgba(196, 85, 80, 0.2);
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-error);
  min-height: 1.1rem;
}

/* Custom Checkbox */
.consent-group {
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background-color: var(--bg-canvas);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-top: 2px;
}

.checkbox-label input:checked ~ .checkbox-custom {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  content: "✓";
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
}

.checkbox-label a {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Submit button state */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn-text { display: none; }
.btn.is-loading .btn-spinner { display: inline-block; }

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

/* Success Card */
.waitlist-success {
  text-align: center;
  padding: 2.5rem 1rem;
  animation: fadeIn 0.3s ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-title {
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
}

.success-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

.queue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.queue-badge strong {
  color: var(--accent-primary);
  font-size: 1.15rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 6rem 0;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-ambient);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  margin-bottom: 0.85rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-group a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-status {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-bar {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-display {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-elevated);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .waitlist-card {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ==========================================================================
   Interactive Scrollytelling Tour / Walkthrough Styles
   ========================================================================== */
.scrolly-section {
  position: relative;
  padding: 5rem 0 6rem;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.scrolly-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
  transition: background 0.6s ease;
  background: radial-gradient(circle at 35% 35%, var(--accent-subtle) 0%, transparent 65%);
}

.scrolly-ambient-bg[data-step="1"] {
  background: radial-gradient(circle at 30% 40%, rgba(79, 125, 150, 0.15) 0%, transparent 60%);
}

.scrolly-ambient-bg[data-step="2"] {
  background: radial-gradient(circle at 30% 40%, rgba(28, 116, 80, 0.18) 0%, transparent 60%);
}

.scrolly-ambient-bg[data-step="3"] {
  background: radial-gradient(circle at 30% 40%, rgba(200, 142, 58, 0.18) 0%, transparent 60%);
}

.scrolly-ambient-bg[data-step="4"] {
  background: radial-gradient(circle at 30% 40%, rgba(79, 125, 150, 0.2) 0%, transparent 60%);
}

.scrolly-ambient-bg[data-step="5"] {
  background: radial-gradient(circle at 30% 40%, rgba(196, 85, 80, 0.14) 0%, rgba(28, 116, 80, 0.14) 50%, transparent 70%);
}

/* Scrubber Bar */
.step-scrubber {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-ambient);
  margin-top: 1.5rem;
}

.scrubber-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.scrubber-btn .step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  background-color: var(--bg-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.scrubber-btn .step-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.scrubber-btn:hover {
  color: var(--accent-primary);
}

.scrubber-btn.active {
  background-color: var(--accent-primary);
  color: #FFFFFF;
}

.scrubber-btn.active .step-num {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.scrubber-line {
  width: 14px;
  height: 2px;
  background-color: var(--border-strong);
  border-radius: 1px;
}

/* Scrolly Stage Layout */
.scrolly-stage {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4.5rem;
  align-items: flex-start;
  position: relative;
  margin-top: 3.5rem;
}

.scrolly-sticky-col {
  position: sticky;
  top: 5.5rem;
  display: flex;
  justify-content: center;
  z-index: 20;
}

.scrolly-phone {
  margin: 0;
  width: 320px;
  height: 590px;
  border-width: 8px;
  border-radius: 38px;
}

.scrolly-screen {
  padding: 1.8rem 0.85rem 0.85rem;
  position: relative;
}

/* Story Scenes */
.story-scene {
  display: none;
  flex-direction: column;
  height: 100%;
}

.story-scene.active {
  display: flex;
  animation: sceneFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sceneFadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.scene-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.scene-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.scene-pill.highlight {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background-color: var(--accent-subtle);
}

.scene-pill.amber {
  color: var(--macro-fat);
  border-color: var(--macro-fat);
  background-color: rgba(200, 142, 58, 0.1);
}

.scene-badge {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.scene-badge.ok {
  color: var(--accent-primary);
  font-weight: 700;
}

.scene-badge.gold {
  color: var(--macro-fat);
  font-weight: 700;
}

/* Scene 1: Camera */
.camera-scene {
  background-color: #0D1311;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: #FFFFFF;
}

.story-viewfinder {
  height: 380px;
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.crosshair-h, .crosshair-v {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.12);
}

.crosshair-h { width: 100%; height: 1px; top: 50%; left: 0; }
.crosshair-v { height: 100%; width: 1px; top: 0; left: 50%; }

.vf-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #4AAA80;
  border-style: solid;
}

.c-tl { top: 12px; left: 12px; border-width: 2.5px 0 0 2.5px; }
.c-tr { top: 12px; right: 12px; border-width: 2.5px 2.5px 0 0; }
.c-bl { bottom: 12px; left: 12px; border-width: 0 0 2.5px 2.5px; }
.c-br { bottom: 12px; right: 12px; border-width: 0 2.5px 2.5px 0; }

.vf-dish-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dish-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 170, 128, 0.3) 0%, transparent 70%);
  animation: pulse-dot 2s infinite ease-in-out;
}

.dish-emoji {
  font-size: 4.5rem;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.scan-line {
  position: absolute;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4AAA80, transparent);
  box-shadow: 0 0 8px #4AAA80;
  animation: scanMotion 2.2s infinite ease-in-out;
  z-index: 3;
}

@keyframes scanMotion {
  0% { top: -20px; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { top: 120px; opacity: 0; }
}

.vf-live-tag {
  position: absolute;
  bottom: 12px;
  font-size: 0.72rem;
  color: #94A29B;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.shutter-bar {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.shutter-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  background: radial-gradient(circle, #4AAA80 60%, transparent 65%);
}

/* Scene 2: Recognition */
.recog-scene {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.recog-hero-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: var(--shadow-ambient);
}

.recog-dish-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.recog-dish-title strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.recog-cals {
  font-size: 1rem;
  font-weight: 800;
  color: var(--macro-calories);
}

.recog-cals small { font-size: 0.7rem; color: var(--text-secondary); }

.recog-ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
}

.ing-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.ing-item strong { color: var(--text-primary); }

.recog-macro-rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.mini-macro {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.68rem;
}

.mini-bar {
  height: 4px;
  background-color: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}

.mini-bar div { height: 100%; border-radius: 2px; }
.mini-macro.protein div { background-color: var(--macro-protein); }
.mini-macro.fat div { background-color: var(--macro-fat); }
.mini-macro.carbs div { background-color: var(--macro-carbs); }

/* Scene 3: Refine */
.refine-scene {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.note-speech-bubble {
  background-color: var(--bg-surface);
  border: 1px solid var(--macro-fat);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: 0 4px 14px rgba(200, 142, 58, 0.12);
}

.bubble-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--macro-fat);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.bubble-text {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-primary);
}

.recalibrated-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.recal-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.recal-delta {
  color: var(--macro-fat);
  background: rgba(200, 142, 58, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.recal-values {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.4rem 0;
}

.recal-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
}

.recal-stat small { font-size: 0.62rem; color: var(--text-muted); }
.recal-stat.updated strong { font-size: 1.1rem; color: var(--macro-calories); }
.arrow-stat { color: var(--accent-primary); font-weight: 800; }

.portion-slider-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-size: 0.7rem;
}

.slider-title { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); }
.slider-track {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  position: relative;
}

.slider-thumb {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid #FFFFFF;
}

/* Scene 4: Bank & TDEE */
.bank-scene {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.today-ring-hero {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.ring-donut {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 8px solid var(--accent-primary);
  border-top-color: var(--macro-protein);
  border-left-color: var(--macro-carbs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-num { font-size: 1.35rem; font-weight: 800; color: var(--text-primary); }
.donut-label { font-size: 0.65rem; color: var(--text-muted); }

.weekly-bank-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.bank-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.bank-title-row strong { font-size: 0.82rem; }
.bank-pill-green {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.bank-desc { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.45; }

/* Scene 5: Social & MenuLens */
.social-scene {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.menulens-card {
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.menulens-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.menulens-rec {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.star-icon { font-size: 1.1rem; }
.menulens-rec strong { display: block; font-size: 0.82rem; }
.menulens-rec small { font-size: 0.68rem; color: var(--text-secondary); }

.social-challenge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.challenge-title { font-size: 0.75rem; font-weight: 700; display: block; margin-bottom: 0.5rem; }
.challengers-row { display: flex; flex-direction: column; gap: 0.35rem; }
.avatar-chip {
  font-size: 0.72rem;
  padding: 0.3rem 0.5rem;
  background: var(--bg-elevated);
  border-radius: 4px;
  font-weight: 600;
}

/* Narrative Cards Column */
.scrolly-narrative-col {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  padding: 2rem 0 12rem;
}

.scrolly-step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-ambient);
  transition: all var(--transition-normal);
  position: relative;
}

.scrolly-step-card.active {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px var(--accent-glow), var(--shadow-elevated);
  transform: translateX(6px);
}

.step-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.step-badge-num {
  background-color: var(--accent-subtle);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
}

.step-card-title {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.step-card-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.step-card-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background-color: var(--bg-elevated);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-primary);
}

.hint-icon { font-size: 1.1rem; line-height: 1; }

@media (max-width: 992px) {
  .scrolly-stage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .scrolly-sticky-col {
    position: relative;
    top: 0;
  }

  .scrolly-step-card {
    padding: 1.8rem;
  }

  .step-scrubber {
    overflow-x: auto;
    max-width: 100%;
  }

  .scrolly-narrative-col {
    gap: 3.5rem;
    padding-bottom: 3rem;
  }
}
