:root {
  color-scheme: light dark;
  --bg: #f7f4ec;
  --panel: #fffdf8;
  --panel-2: #efe9dc;
  --text: #0a1713;
  --muted: #68716d;
  --line: #ddd8cc;
  --accent: #2f7d57;
  --accent-strong: #0a2b23;
  --accent-soft: #dbe8df;
  --body-top: #fbfaf6;
  --body-bottom: #f3efe5;
  --card-bg: rgba(255,253,248,.92);
  --feature-bg: rgba(255,253,248,.75);
  --secondary-bg: rgba(255,255,255,.55);
  --pill-bg: rgba(255,255,255,.58);
  --cta-border: #b8c9be;
  --cta-top: #e8f0eb;
  --cta-bottom: #f7f4ec;
  --shadow: rgba(10, 43, 35, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(47, 125, 87, 0.08), transparent 30rem),
    linear-gradient(180deg, var(--body-top) 0%, var(--bg) 46%, var(--body-bottom) 100%);
  color: var(--text);
  line-height: 1.5;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.22rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 7px 20px rgba(10, 43, 35, 0.14);
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}
.nav-link:hover { color: var(--accent-strong); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
  min-height: 76vh;
  padding: 72px 0 96px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin: 14px 0 22px;
  font-size: clamp(3rem, 6.6vw, 6.1rem);
  line-height: 0.96;
  letter-spacing: -0.067em;
}

h1 span { color: var(--accent); }

h2 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 { margin-bottom: 10px; font-size: 1.15rem; }

.hero-copy,
.philosophy p,
.cta p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 780;
}
.button.primary { background: var(--accent-strong); color: #fff; }
.button.secondary { border: 1px solid var(--line); color: var(--muted); background: var(--secondary-bg); }
.button.secondary:hover { color: var(--text); }

.macro-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card-bg);
  box-shadow: 0 32px 80px var(--shadow);
}

.macro-card-top,
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}
.status { color: var(--accent); font-weight: 750; }

.calories {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 36px 0 28px;
}
.calories strong { font-size: 3rem; letter-spacing: -0.05em; }
.calories span { color: var(--muted); }

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.macro-grid div {
  padding: 14px;
  border-radius: 14px;
  background: var(--panel-2);
}
.macro-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 40px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--feature-bg);
}
.feature-card p { margin-bottom: 0; color: var(--muted); }
.feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 850;
}

.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
}

.cta {
  margin-top: 72px;
  padding: 72px;
  border: 1px solid var(--cta-border);
  border-radius: 30px;
  text-align: center;
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom));
}
.cta h2, .cta p { margin-left: auto; margin-right: auto; }
.cta-mark {
  display: block;
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(10,43,35,.16);
}
.cta-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--pill-bg);
  font-size: 0.9rem;
}

.footer {
  align-items: center;
  padding: 40px 0 48px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07110e;
    --panel: #0e1915;
    --panel-2: #17231e;
    --text: #f1f5f2;
    --muted: #a8b3ad;
    --line: #25332d;
    --accent: #65b98b;
    --accent-strong: #173d30;
    --accent-soft: #173126;
    --body-top: #0a1511;
    --body-bottom: #06100d;
    --card-bg: rgba(14,25,21,.94);
    --feature-bg: rgba(14,25,21,.78);
    --secondary-bg: rgba(255,255,255,.035);
    --pill-bg: rgba(255,255,255,.04);
    --cta-border: #2e493d;
    --cta-top: #10241c;
    --cta-bottom: #09130f;
    --shadow: rgba(0,0,0,.30);
  }

  body {
    background:
      radial-gradient(circle at 15% 8%, rgba(101,185,139,.10), transparent 30rem),
      linear-gradient(180deg, var(--body-top) 0%, var(--bg) 46%, var(--body-bottom) 100%);
  }

  .button.primary {
    background: #e9f3ed;
    color: #0a1713;
  }

  .nav-link:hover { color: var(--text); }
  .brand-mark,
  .cta-mark { box-shadow: 0 10px 28px rgba(0,0,0,.28); }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
    padding: 56px 0 72px;
  }
  .feature-grid, .philosophy { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .cta { padding: 48px 24px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .site-header { padding: 18px 0; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { padding-top: 40px; }
  .macro-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}


/* Standalone legal/support pages. These pages are intentionally not linked from the home page yet. */
.legal-page {
  max-width: 820px;
  padding: 72px 0 48px;
}

.legal-title {
  margin: 12px 0 8px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-updated,
.legal-lead {
  color: var(--muted);
  font-size: 1rem;
}

.legal-lead {
  max-width: 680px;
  font-size: 1.12rem;
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  margin-top: 42px;
}

.legal-section h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.legal-section h3 {
  margin: 26px 0 8px;
}

.legal-section p {
  color: var(--muted);
  font-size: 1rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .legal-page {
    padding-top: 44px;
  }

  .legal-section {
    padding: 28px 0;
  }
}


.error-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  max-width: 760px;
  padding: 72px 0;
}

.error-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 18px;
  box-shadow: 0 12px 30px var(--shadow);
}

.error-title {
  margin: 12px 0 16px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.error-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
