/* Generated from src/brandTheme.ts by scripts/build.ts. Do not edit by hand. */
:root {
  color-scheme: light dark;
  --palette-brand-primary: #0B4D1D;
  --palette-brand-lime: #C7F464;
  --palette-brand-coral: #FF6B45;
  --palette-brand-yellow: #FFD93D;
  --palette-food-tomato: #F44336;
  --palette-food-orange: #FF9E42;
  --palette-food-fresh-green: #7CC72B;
  --palette-food-leaf-green: #2E7D32;
  --palette-neutral-cream: #FFF8EE;
  --palette-neutral-white: #FFFFFF;
  --palette-neutral-gray: #E9E9E9;
  --palette-neutral-muted: #9CA3AF;
  --palette-neutral-ink: #1F2937;
  --palette-semantic-success: #22C55E;
  --palette-semantic-info: #3B82F6;
  --palette-semantic-warning: #F59E0B;
  --palette-semantic-error: #EF4444;
  --color-background: #FFF8EE;
  --color-surface: #FFFFFF;
  --color-surface-alt: #E9E9E9;
  --color-text: #1F2937;
  --color-heading: #2E7D32;
  --color-muted: #4B5563;
  --color-subtle: #6B7280;
  --color-disabled: #9CA3AF;
  --color-border: #E9E9E9;
  --color-divider: #E9E9E9;
  --color-input: #FFFFFF;
  --color-placeholder: #6B7280;
  --color-primary: #2E7D32;
  --color-primary-text: #FFFFFF;
  --color-accent: #C7F464;
  --color-accent-text: #1F2937;
  --color-cta: #FF6B45;
  --color-cta-text: #1F2937;
  --color-highlight: #FFD93D;
  --color-highlight-text: #1F2937;
  --color-progress: #7CC72B;
  --color-feature-start: #FF9E42;
  --color-feature-end: #FF6B45;
  --color-feature-text: #1F2937;
  --color-macro-protein: #3B82F6;
  --color-macro-fat: #F59E0B;
  --color-macro-carbohydrates: #7CC72B;
  --color-macro-protein-text: #4B5563;
  --color-macro-fat-text: #4B5563;
  --color-macro-carbohydrates-text: #4B5563;
  --color-success: #22C55E;
  --color-success-text: #2E7D32;
  --color-danger: #EF4444;
  --color-danger-text: #B91C1C;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;
  --color-camera-background: #000000;
  --color-scrim: rgba(0, 0, 0, 0.6);
  --color-on-scrim: #FFFFFF;
  --color-shadow: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0F1D14;
    --color-surface: #16291C;
    --color-surface-alt: #203626;
    --color-text: #FFF8EE;
    --color-heading: #C7F464;
    --color-muted: #C5CEC7;
    --color-subtle: #9CA3AF;
    --color-disabled: #5F6B63;
    --color-border: #2D4535;
    --color-divider: #2D4535;
    --color-input: #16291C;
    --color-placeholder: #9CA3AF;
    --color-primary: #C7F464;
    --color-primary-text: #1F2937;
    --color-accent: #C7F464;
    --color-accent-text: #1F2937;
    --color-cta: #FF6B45;
    --color-cta-text: #1F2937;
    --color-highlight: #FFD93D;
    --color-highlight-text: #1F2937;
    --color-progress: #7CC72B;
    --color-feature-start: #FF9E42;
    --color-feature-end: #FF6B45;
    --color-feature-text: #1F2937;
    --color-macro-protein: #3B82F6;
    --color-macro-fat: #FFD93D;
    --color-macro-carbohydrates: #7CC72B;
    --color-macro-protein-text: #60A5FA;
    --color-macro-fat-text: #FFD93D;
    --color-macro-carbohydrates-text: #7CC72B;
    --color-success: #22C55E;
    --color-success-text: #22C55E;
    --color-danger: #EF4444;
    --color-danger-text: #F87171;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;
    --color-camera-background: #000000;
    --color-scrim: rgba(0, 0, 0, 0.6);
    --color-on-scrim: #FFFFFF;
    --color-shadow: #000000;
  }
}

/* Colors come from the generated token block above (src/brandTheme.ts, copied from the app). Use role tokens, not palette values, for UI. */

@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --font-display: "Lexend", ui-rounded, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-card: 24px;
  --radius-pill: 999px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.logo-leaves {
  width: 22px;
  height: 15px;
  fill: var(--palette-food-fresh-green);
}

.logo-wordmark {
  margin-top: -5px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.language-switch {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.language-switch:hover {
  border-color: var(--color-primary);
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Hero */

.hero {
  display: grid;
  gap: 56px;
  align-items: center;
  padding-block: 32px 72px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-size: 14px;
  font-weight: 600;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--palette-food-leaf-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(36px, 5.2vw, 56px);
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--color-muted);
  font-size: 19px;
}

.hero-store {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-icon {
  border-radius: 13px;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.12);
}

.hero-store-title {
  font-family: var(--font-display);
  font-weight: 600;
}

.hero-store-note {
  color: var(--color-muted);
  font-size: 15px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 12px;
}

/* Organic shapes echo the app icon: sun-yellow top left, lime and coral at the bottom. */
.blob {
  position: absolute;
  z-index: 0;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  filter: blur(0.5px);
}

.blob-yellow {
  top: -6%;
  left: -2%;
  width: 60%;
  aspect-ratio: 1;
  background: var(--palette-brand-yellow);
  opacity: 0.85;
}

.blob-lime {
  right: -4%;
  bottom: -4%;
  width: 72%;
  aspect-ratio: 1.1;
  background: linear-gradient(160deg, var(--palette-brand-lime), var(--palette-food-fresh-green));
  border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
}

.blob-coral {
  right: 2%;
  top: 22%;
  width: 16%;
  aspect-ratio: 1;
  background: linear-gradient(180deg, var(--color-feature-start), var(--color-feature-end));
  border-radius: 50%;
}

/* Phone mockup */

.phone {
  position: relative;
  z-index: 1;
  width: min(300px, 100%);
  margin: 0;
  padding: 10px;
  border-radius: 46px;
  background: #1a1a1a;
  box-shadow:
    0 30px 60px -20px rgb(0 0 0 / 0.35),
    0 0 0 1px rgb(255 255 255 / 0.06) inset;
  transform: rotate(-2deg);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 14px 18px 12px;
  border-radius: 37px;
  background: var(--color-background);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-inline: 8px;
  font-size: 12px;
  font-weight: 600;
}

.phone-island {
  width: 84px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: #000;
}

.phone-signal {
  width: 22px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.7;
}

.screen-eyebrow {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
}

.screen-calories {
  margin-top: 2px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.screen-calories span {
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.calorie-bar {
  height: 8px;
  margin-top: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt);
  overflow: hidden;
}

.calorie-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-progress);
}

.rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-block: 18px 22px;
  text-align: center;
}

.ring {
  display: grid;
  justify-items: center;
}

.ring svg {
  width: 58px;
  height: 58px;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 5;
}

.ring-track {
  stroke: var(--color-surface-alt);
}

.ring-value {
  stroke-linecap: round;
}

.ring-protein {
  stroke: var(--color-macro-protein);
}

.ring-fat {
  stroke: var(--color-macro-fat);
}

.ring-carbohydrates {
  stroke: var(--color-macro-carbohydrates);
}

.ring-amount {
  margin-top: 4px;
  font-weight: 700;
}

.ring-amount small {
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 500;
}

.ring-label {
  color: var(--color-muted);
  font-size: 11px;
}

.meals {
  margin-top: 6px;
  border-radius: 18px;
  background: var(--color-surface);
  padding-inline: 12px;
}

.meal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 11px;
  border-bottom: 1px solid var(--color-border);
}

.meal:last-child {
  border-bottom: 0;
}

.meal-body {
  display: grid;
  flex: 1;
  gap: 5px;
}

.meal-name {
  font-size: 14px;
  font-weight: 600;
}

.meal-name span {
  color: var(--color-muted);
}

.meal-calories {
  justify-self: start;
  padding: 1px 7px;
  border-radius: 7px;
  background: var(--color-highlight);
  color: var(--color-highlight-text);
  font-size: 12px;
  font-weight: 600;
}

.meal-macros {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--color-muted);
  font-size: 11px;
}

.meal-macros span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-protein {
  background: var(--color-macro-protein);
}

.dot-fat {
  background: var(--color-macro-fat);
}

.dot-carbohydrates {
  background: var(--color-macro-carbohydrates);
}

.meal-add {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.tab-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  margin: auto -18px -12px;
  padding: 10px 8px 16px;
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.tab {
  opacity: 0.7;
}

.tab.is-active {
  opacity: 1;
}

.tab-add {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 44px;
  height: 44px;
  margin-top: -26px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--color-feature-start), var(--color-feature-end));
  color: var(--color-feature-text);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.2);
}

/* Features */

.features {
  padding-block: 40px 80px;
}

.features h2 {
  max-width: 18em;
  font-size: clamp(28px, 4vw, 40px);
  text-wrap: balance;
}

.feature-grid {
  display: grid;
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-plan .feature-icon {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

.feature-macros .feature-icon {
  background: var(--color-highlight);
  color: var(--color-highlight-text);
}

.feature-barcode .feature-icon {
  background: linear-gradient(180deg, var(--color-feature-start), var(--color-feature-end));
  color: var(--color-feature-text);
}

.feature-products .feature-icon {
  background: var(--color-primary);
  color: var(--color-primary-text);
}

.feature h3 {
  font-size: 20px;
}

.feature p {
  margin-top: 8px;
  color: var(--color-muted);
}

/* Launch */

.launch {
  padding-bottom: 80px;
}

.launch-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--palette-brand-yellow) 55%, transparent) 0 22%, transparent 22.5%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--palette-brand-lime) 70%, transparent) 0 30%, transparent 30.5%),
    var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  text-align: center;
}

.launch-card img {
  border-radius: 20px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.14);
}

.launch-card h2 {
  margin-top: 6px;
  font-size: clamp(26px, 4vw, 36px);
}

.launch-card p {
  max-width: 30em;
  color: var(--color-muted);
}

.launch-badge {
  margin-top: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-weight: 700;
}

/* Footer */

.site-footer {
  display: grid;
  gap: 6px;
  padding-block: 32px 48px;
  border-top: 1px solid var(--color-border);
  color: var(--color-subtle);
  font-size: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 600;
}

.footer-leaves {
  width: 18px;
  height: 12px;
  fill: var(--palette-food-fresh-green);
}

/* Wider screens */

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

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

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-block: 48px 96px;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  .blob {
    opacity: 0.35;
  }

  .blob-yellow {
    opacity: 0.25;
  }

  .phone {
    background: #050805;
  }
}

/* 404 page */

.not-found {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding-block: 64px 120px;
}

.not-found .not-found-code {
  color: var(--palette-food-fresh-green);
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.not-found h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.not-found p {
  color: var(--color-muted);
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.not-found-links a {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-weight: 600;
  text-decoration: none;
}
