/* Healthy — Marketing site */
:root {
  --forest: #0b4a32;
  --mint: #1ecc8e;
  --deep-mint: #15a56b;
  --off-white: #f8f5ee;
  --light-mint: #d9f9e8;
  --charcoal: #111111;
  --grey: #333333;
  --muted: #666666;
  --divider: #e9e9e9;
  --white: #ffffff;
  --danger: #ff2e2e;
  --shadow-sm: 0 2px 8px rgba(11, 74, 50, 0.06);
  --shadow-md: 0 8px 32px rgba(11, 74, 50, 0.1);
  --shadow-lg: 0 24px 64px rgba(11, 74, 50, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--deep-mint);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--forest);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248, 245, 238, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
  border-color: var(--divider);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--charcoal);
  text-decoration: none;
}

.logo:hover {
  color: var(--charcoal);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

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

.nav-links a {
  color: var(--grey);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: var(--deep-mint);
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 14px rgba(21, 165, 107, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav-cta:hover {
  background: var(--forest);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11, 74, 50, 0.3);
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--light-mint);
  color: var(--forest);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--deep-mint), var(--forest));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 28rem;
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--deep-mint), var(--forest));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(21, 165, 107, 0.35);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 74, 50, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--forest);
  border-color: var(--mint);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  background: var(--charcoal);
  color: var(--white);
  border-radius: 10px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.store-badge:hover {
  color: var(--white);
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--forest);
}

.stat span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  background: var(--charcoal);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: linear-gradient(180deg, var(--light-mint) 0%, var(--off-white) 100%);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9/19;
  position: relative;
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: var(--charcoal);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.scan-ui {
  padding: 1.25rem;
}

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

.scan-header span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--forest);
}

.scan-viewfinder {
  height: 140px;
  border: 2px dashed var(--mint);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: scan 2.5s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 10%; }
  50% { top: 85%; }
}

.scan-viewfinder .food-emoji {
  font-size: 3rem;
}

.nutrition-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.nutrition-card .label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.nutrition-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: var(--light-mint);
  color: var(--forest);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.macro-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.macro {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  background: var(--off-white);
  border-radius: 8px;
  font-size: 0.6875rem;
}

.macro strong {
  display: block;
  font-size: 0.875rem;
  color: var(--forest);
}

.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 15%;
  right: -10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 20%;
  left: -15%;
  animation-delay: 1s;
}

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

.hero-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 204, 142, 0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--deep-mint);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 3rem;
}

/* Features */
.features {
  background: var(--white);
}

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

.feature-card {
  padding: 2rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--light-mint);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--mint), var(--deep-mint));
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* CTA */
.cta-section {
  padding: 4rem 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--forest) 0%, #0d5c3d 50%, var(--deep-mint) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-box p {
  opacity: 0.9;
  max-width: 32rem;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}

.cta-box .btn-primary {
  background: var(--white);
  color: var(--forest);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-box .btn-primary:hover {
  color: var(--forest);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  max-width: 20rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a:hover {
  color: var(--mint);
}

/* Legal pages */
.legal-page {
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
}

.legal-header {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.legal-header .updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal-content {
  max-width: 48rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--forest);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--grey);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.legal-content ul {
  margin: 0 0 1rem 1.25rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  word-break: break-word;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-actions,
  .store-badges {
    justify-content: center;
  }

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

  .hero-visual {
    order: -1;
  }

  .floating-card.card-1 {
    right: 0;
  }

  .floating-card.card-2 {
    left: 0;
  }

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

  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--off-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--divider);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .legal-content {
    padding: 1.5rem;
  }

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