/* ============================================
   FORAGE — Marketing Site
   Aesthetic: Forest Floor at Dusk
   Palette: Warm earth browns, forage green, amber gold
   ============================================ */

/* --- Reset & Custom Properties --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #17140f;
  --bg-alt: #1a1710;
  --bg-card: #211e18;
  --bg-card-hover: #2a2620;
  --green: #6DBE5A;
  --green-dim: #4A9040;
  --green-glow: rgba(109, 190, 90, 0.12);
  --gold: #C4A862;
  --gold-dim: #9A8040;
  --gold-glow: rgba(196, 168, 98, 0.1);
  --text: #e8e4dc;
  --text-secondary: #a09888;
  --text-tertiary: #706858;
  --border: rgba(160, 140, 100, 0.1);
  --border-strong: rgba(160, 140, 100, 0.2);
  --violet: rgba(139, 92, 246, 0.7);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --section-pad: clamp(72px, 10vw, 128px);
  --container: 1080px;
}

/* --- Coming-soon pill --- */
.pill-soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid var(--green-dim);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Grain Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 700; line-height: 1.2; }

h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { max-width: 640px; }

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); margin: 0 auto; font-size: 1.05rem; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--green);
  color: #111;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--green-dim); color: #111; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--text); }

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}
.site-nav.scrolled {
  background: rgba(23, 20, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo svg { width: 24px; height: 33px; }
.nav-logo span { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--green) !important;
  color: #111 !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-dim) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  background: radial-gradient(ellipse at 50% 60%, rgba(109, 190, 90, 0.04) 0%, transparent 60%);
}

.hero-logo {
  margin-bottom: 32px;
}
.hero-logo svg { width: 48px; height: 66px; }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  max-width: 700px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  animation: gentle-bob 2.5s ease-in-out infinite;
}
@keyframes gentle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== PROBLEM / HOOK ===== */
.hook {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.hook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.hook-item {
  text-align: center;
  padding: 32px 24px;
}
.hook-item .material-symbols-outlined {
  font-size: 40px;
  color: var(--green);
  margin-bottom: 16px;
  display: block;
}
.hook-item h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.hook-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features-section { padding: var(--section-pad) 0; }

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 100px);
}
.feature-block:last-child { margin-bottom: 0; }
.feature-block.reverse .feature-content { order: 2; }
.feature-block.reverse .feature-visual { order: 1; }

.feature-content .section-label { text-align: left; }

.feature-content h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}

.feature-content > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.75;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.feature-bullets .material-symbols-outlined {
  font-size: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Feature visual — abstract illustration cards */
.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-illus {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 5 / 4;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.feat-illus::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

/* Pantry illustration — inventory bars */
.feat-illus-pantry::before { background: radial-gradient(circle, var(--green-glow), transparent 70%); }
.illus-bar {
  height: 10px;
  border-radius: 5px;
  background: rgba(160, 140, 100, 0.12);
  position: relative;
  overflow: hidden;
}
.illus-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s;
}
.illus-bar-fill.full { background: var(--green); }
.illus-bar-fill.mid { background: var(--gold); }
.illus-bar-fill.low { background: #E85D4A; }

.illus-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

/* Meals illustration — weekly dot grid */
/* Pantry input illustration */
.feat-illus-input {
  aspect-ratio: auto;
  padding: 24px;
  gap: 0;
}
.feat-illus-input::before { background: radial-gradient(circle, var(--green-glow), transparent 70%); }

.input-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.input-method {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.input-method-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(109, 190, 90, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.input-method-icon .material-symbols-outlined {
  font-size: 18px;
  color: var(--green);
}

.input-speech-bubble {
  background: rgba(109, 190, 90, 0.08);
  border: 1px solid rgba(109, 190, 90, 0.15);
  border-radius: 10px 10px 10px 2px;
  padding: 8px 12px;
  flex-grow: 1;
}
.speech-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.4;
}

.input-type-field {
  flex-grow: 1;
}
.type-text {
  display: block;
  background: rgba(160, 140, 100, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 6px 6px 0 0;
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
}
.type-cursor {
  color: var(--green);
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.autocomplete-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top: none;
  border-radius: 0 0 6px 6px;
}
.autocomplete-item {
  padding: 4px 10px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.autocomplete-item.active {
  background: rgba(109, 190, 90, 0.1);
  color: var(--green);
}

.input-receipt {
  background: rgba(232, 228, 220, 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  padding: 2px 0;
  font-family: monospace;
}
.receipt-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(109, 190, 90, 0.4);
  box-shadow: 0 0 8px rgba(109, 190, 90, 0.3);
  animation: scan-sweep 2.5s ease-in-out infinite;
}
@keyframes scan-sweep {
  0%, 100% { top: 0; }
  50% { top: 100%; }
}

.input-flow-arrow {
  text-align: center;
  padding: 8px 0;
  color: var(--text-tertiary);
}
.input-flow-arrow .material-symbols-outlined {
  font-size: 18px;
  opacity: 0.4;
}

.input-result {
  background: rgba(109, 190, 90, 0.06);
  border: 1px solid rgba(109, 190, 90, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
}
.input-result-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.result-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.result-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.result-qty {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 0.65rem;
}

.feat-illus-meals::before { background: radial-gradient(circle, var(--gold-glow), transparent 70%); }
.illus-week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}
.illus-week-header span {
  font-size: 0.6rem;
  text-align: center;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.illus-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.illus-meal-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(160, 140, 100, 0.1);
  border: 1px solid var(--border);
}
.illus-meal-dot.filled { background: var(--green); border-color: var(--green); }
.illus-meal-dot.filled-gold { background: var(--gold); border-color: var(--gold); }
.illus-meal-dot.filled-dim { background: var(--green-dim); border-color: var(--green-dim); }
.illus-meal-row-label {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  text-align: right;
  padding-right: 8px;
  display: flex;
  align-items: center;
}

/* Shopping illustration — checklist */
.feat-illus-shopping::before { background: radial-gradient(circle, var(--green-glow), transparent 70%); }
.illus-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.illus-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.illus-checkbox.checked {
  background: var(--green);
  border-color: var(--green);
}
.illus-checkbox.checked::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}
.illus-check-label {
  height: 8px;
  border-radius: 4px;
  background: rgba(160, 140, 100, 0.15);
  flex-grow: 1;
}
.illus-check-label.done { opacity: 0.4; }
.illus-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Board illustration — overlapping note cards */
.feat-illus-board::before { background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%); }
.illus-board-wrap {
  position: relative;
  width: 100%;
  height: 180px;
}
.illus-note {
  position: absolute;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.illus-note .material-symbols-outlined { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.illus-note-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}
.illus-note-line {
  height: 6px;
  border-radius: 3px;
}
.illus-note-1 {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  width: 75%;
  top: 0;
  left: 5%;
  transform: rotate(-2deg);
}
.illus-note-1 .material-symbols-outlined { color: rgba(139, 92, 246, 0.8); }
.illus-note-1 .illus-note-line { background: rgba(139, 92, 246, 0.15); }

.illus-note-2 {
  background: rgba(109, 190, 90, 0.1);
  border: 1px solid rgba(109, 190, 90, 0.15);
  width: 70%;
  top: 35%;
  right: 5%;
  transform: rotate(1.5deg);
}
.illus-note-2 .material-symbols-outlined { color: rgba(109, 190, 90, 0.7); }
.illus-note-2 .illus-note-line { background: rgba(109, 190, 90, 0.12); }

.illus-note-3 {
  background: rgba(196, 168, 98, 0.1);
  border: 1px solid rgba(196, 168, 98, 0.15);
  width: 65%;
  bottom: 0;
  left: 12%;
  transform: rotate(-1deg);
}
.illus-note-3 .material-symbols-outlined { color: rgba(196, 168, 98, 0.7); }
.illus-note-3 .illus-note-line { background: rgba(196, 168, 98, 0.12); }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step-number {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== WHY FORAGE ===== */
.why-forage { padding: var(--section-pad) 0; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.diff-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.diff-item:hover { border-color: var(--border-strong); }

.diff-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.diff-icon .material-symbols-outlined { font-size: 22px; color: var(--green); }

.diff-item h4 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.diff-item p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ===== COMMUNITY VISION ===== */
.community {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
  position: relative;
}

.community-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.community-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.diagram-wrap {
  max-width: 600px;
  margin: 0 auto;
}

/* Concentric rings */
.rings-svg {
  max-width: 420px;
  margin: 0 auto;
  display: block;
}

.ring-label, .ring-label-center {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ring-label-center {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

/* Ring SVG default (dark mode) colours — moved from inline attributes */
.ring-outer { stroke: rgba(196,168,98,0.08); }
.ring-label-outer { fill: rgba(196,168,98,0.35); }
.ring-mid { stroke: rgba(109,190,90,0.12); }
.ring-label-mid { fill: rgba(109,190,90,0.4); }
.ring-inner { stroke: rgba(109,190,90,0.2); }
.ring-label-inner { fill: rgba(109,190,90,0.6); }
.ring-pulse { stroke: rgba(109,190,90,0.15); }
.ring-centre { fill: rgba(109,190,90,0.1); stroke: rgba(109,190,90,0.3); }
.ring-label-kitchen { fill: rgba(232,228,220,0.7); }

/* ===== WAITLIST CTA ===== */
.cta-banner {
  padding: var(--section-pad) 0;
  text-align: center;
}
.cta-banner h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.cta-banner > .container > p {
  color: var(--text-secondary);
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.signup-form {
  max-width: 440px;
  margin: 0 auto;
}
.signup-input-wrap {
  display: flex;
  gap: 8px;
}
.signup-input-wrap input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.signup-input-wrap input::placeholder { color: var(--text-tertiary); }
.signup-input-wrap input:focus { border-color: var(--green-dim); }

.signup-hint {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 12px;
}

.signup-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.signup-success p { color: var(--text-secondary); }

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}
.footer-brand svg { width: 20px; height: 28px; }

.footer-center {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.footer-center a { color: var(--text-secondary); }

.footer-motto {
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }

/* ===== LIGHT MODE ===== */
/* Applied via .light-mode class on <html> — set by JS from system preference or toggle */

html.light-mode {
  --bg: #F8F4ED;
  --bg-alt: #F2EDE4;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F5F1EA;
  --green: #4A9040;
  --green-dim: #3A7830;
  --green-glow: rgba(74, 144, 64, 0.1);
  --gold: #8A7030;
  --gold-dim: #6A5520;
  --gold-glow: rgba(138, 112, 48, 0.08);
  --text: #2c2c2a;
  --text-secondary: #5C5850;
  --text-tertiary: #7A756C;
  --border: rgba(100, 80, 40, 0.1);
  --border-strong: rgba(100, 80, 40, 0.18);
  --violet: rgba(139, 92, 246, 0.8);
}

.light-mode body::before { opacity: 0.012; }
.light-mode .site-nav.scrolled { background: rgba(248, 244, 237, 0.92); }
.light-mode .hero { background: radial-gradient(ellipse at 50% 60%, rgba(74, 144, 64, 0.06) 0%, transparent 60%); }
.light-mode .leaf-vein { stroke: #F8F4ED; }

/* Feature illustration cards — stronger bg on light */
.light-mode .feat-illus { background: #EDE8DF; border-color: rgba(100, 80, 40, 0.15); }

/* Pantry input illustration */
.light-mode .input-method-icon { background: rgba(74, 144, 64, 0.15); }
.light-mode .input-speech-bubble { background: rgba(74, 144, 64, 0.1); border-color: rgba(74, 144, 64, 0.25); }
.light-mode .speech-text { color: var(--text-secondary); }
.light-mode .type-text { background: #FFFFFF; border-color: rgba(100, 80, 40, 0.2); }
.light-mode .autocomplete-dropdown { background: #FFFFFF; border-color: rgba(100, 80, 40, 0.2); }
.light-mode .autocomplete-item.active { background: rgba(74, 144, 64, 0.12); }
.light-mode .autocomplete-item { color: var(--text-secondary); }
.light-mode .input-receipt { background: #FFFFFF; border-color: rgba(100, 80, 40, 0.15); }
.light-mode .receipt-line { color: var(--text-secondary); }
.light-mode .receipt-scan-line { background: rgba(74, 144, 64, 0.5); box-shadow: 0 0 8px rgba(74, 144, 64, 0.3); }
.light-mode .input-result { background: rgba(74, 144, 64, 0.08); border-color: rgba(74, 144, 64, 0.25); }
.light-mode .result-item { color: var(--text); }
.light-mode .result-qty { color: var(--text-secondary); }

/* Meal dot grid — stronger fills */
.light-mode .illus-meal-dot { background: rgba(100, 80, 40, 0.1); border-color: rgba(100, 80, 40, 0.2); }
.light-mode .illus-meal-dot.filled { background: #4A9040; border-color: #4A9040; }
.light-mode .illus-meal-dot.filled-gold { background: #8A7030; border-color: #8A7030; }
.light-mode .illus-meal-dot.filled-dim { background: #6AAA58; border-color: #6AAA58; }

/* Shopping checklist — stronger contrast */
.light-mode .illus-check-label { background: rgba(100, 80, 40, 0.18); }
.light-mode .illus-check-label.done { opacity: 0.35; }
.light-mode .illus-checkbox { border-color: rgba(100, 80, 40, 0.3); }
.light-mode .illus-checkbox.checked { background: #4A9040; border-color: #4A9040; }

/* Board note cards — more visible */
.light-mode .illus-note-1 { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.25); }
.light-mode .illus-note-1 .illus-note-line { background: rgba(139, 92, 246, 0.2); }
.light-mode .illus-note-2 { background: rgba(74, 144, 64, 0.1); border-color: rgba(74, 144, 64, 0.22); }
.light-mode .illus-note-2 .illus-note-line { background: rgba(74, 144, 64, 0.18); }
.light-mode .illus-note-3 { background: rgba(138, 112, 48, 0.1); border-color: rgba(138, 112, 48, 0.22); }
.light-mode .illus-note-3 .illus-note-line { background: rgba(138, 112, 48, 0.18); }

/* Illustration glows — slightly stronger */
.light-mode .feat-illus-board::before { background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%); }
.light-mode .feat-illus-pantry::before, .light-mode .feat-illus-input::before { background: radial-gradient(circle, rgba(74, 144, 64, 0.08), transparent 70%); }
.light-mode .feat-illus-meals::before { background: radial-gradient(circle, rgba(138, 112, 48, 0.06), transparent 70%); }
.light-mode .feat-illus-shopping::before { background: radial-gradient(circle, rgba(74, 144, 64, 0.08), transparent 70%); }

/* Diff icon backgrounds — more visible */
.light-mode .diff-icon { background: rgba(74, 144, 64, 0.12); }

/* Step numbers — more visible */
.light-mode .step-number { opacity: 0.35; }

/* Community rings — stronger on light bg */
.light-mode .ring-outer { stroke: rgba(138, 112, 48, 0.25); }
.light-mode .ring-label-outer { fill: rgba(138, 112, 48, 0.6); }
.light-mode .ring-mid { stroke: rgba(74, 144, 64, 0.3); }
.light-mode .ring-label-mid { fill: rgba(74, 144, 64, 0.65); }
.light-mode .ring-inner { stroke: rgba(74, 144, 64, 0.4); }
.light-mode .ring-label-inner { fill: rgba(74, 144, 64, 0.8); }
.light-mode .ring-pulse { stroke: rgba(74, 144, 64, 0.3); }
.light-mode .ring-centre { fill: rgba(74, 144, 64, 0.12); stroke: rgba(74, 144, 64, 0.45); }
.light-mode .ring-label-kitchen { fill: rgba(44, 44, 42, 0.8); }

/* Signup input */
.light-mode .signup-input-wrap input { background: #FFFFFF; }

/* Mobile nav */
@media (max-width: 860px) {
  .light-mode .nav-links.open { background: rgba(248, 244, 237, 0.97); }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, opacity 0.3s;
  padding: 0;
  margin-left: 8px;
  opacity: 0;
  pointer-events: none;
}
.site-nav.scrolled .theme-toggle {
  opacity: 1;
  pointer-events: auto;
}
.theme-toggle:hover { border-color: var(--gold-dim); color: var(--text); }
.theme-toggle .material-symbols-outlined { font-size: 20px; line-height: 1; }

/* Dark mode default: show sun, hide moon */
.theme-icon-light { display: inline !important; }
.theme-icon-dark { display: none !important; }

/* Light mode: show moon, hide sun */
.light-mode .theme-icon-light { display: none !important; }
.light-mode .theme-icon-dark { display: inline !important; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger .reveal:nth-child(1) { transition-delay: 0s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(23, 20, 15, 0.97);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }

  .hook-grid { grid-template-columns: 1fr; gap: 16px; }
  .hook-item { padding: 24px 16px; }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-block.reverse .feature-content { order: 1; }
  .feature-block.reverse .feature-visual { order: 2; }

  .feat-illus { max-width: 360px; margin: 0 auto; }

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

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

  .signup-input-wrap {
    flex-direction: column;
  }
  .signup-input-wrap input { border-radius: 12px; }
  .signup-input-wrap .btn-primary { border-radius: 12px; justify-content: center; }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .feat-illus { padding: 24px; }
  .illus-board-wrap { height: 150px; }
}
