/* GlowFood website. Colors and type follow the app's Organic design system (src/theme.ts). */
:root {
  --bg: #f5ead8;
  --cream: #f9f4ed;
  --surface: #ebddc5;
  --text: #201e1d;
  --muted: #645c50;
  --accent: #c67139;
  --accent-dark: #8c491a;
  --peach: #ffe1d0;
  --peach-2: #ffc6a5;
  --sage: #7a8a5e;
  --sage-light: #e1eecc;
  --divider: rgba(32, 30, 29, 0.14);
  --shadow: 0 12px 32px rgba(46, 43, 37, 0.14);
  --heading: 'Caprasimo', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 400 22px var(--heading); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 6px rgba(46, 43, 37, 0.18); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding: 48px 0 88px; }
.hero > * { min-width: 0; }
.stage::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 130%; max-width: 520px; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 198, 165, 0.55), rgba(255, 198, 165, 0) 75%);
}
.eyebrow { display: inline-block; background: var(--sage-light); color: #3d472b; font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 30em; margin: 22px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #d67f48, #b2622d); padding: 16px 28px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(178, 98, 45, 0.3); transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.cta-note { color: var(--muted); font-size: 15px; }

.stage { position: relative; isolation: isolate; display: flex; justify-content: center; }
.dewy { width: min(280px, 70vw); animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(246, 160, 107, 0.35)); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-18deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-12deg); } }

.score-card {
  position: absolute; background: var(--cream); border-radius: 22px; box-shadow: var(--shadow);
  padding: 14px 16px; font-size: 14px; font-weight: 600;
}
.score-card.one { left: 0; top: 6%; }
.score-card.two { right: 0; bottom: 4%; }
.score-card .big { font: 400 30px var(--heading); color: var(--accent); display: block; line-height: 1; margin-top: 4px; }
.score-card .tag { color: var(--muted); font-weight: 600; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(34px, 5vw, 50px); }
.section-head p { color: var(--muted); font-size: 19px; margin: 16px 0 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--cream); border-radius: 28px; padding: 30px 26px; box-shadow: 0 1px 2px rgba(46, 43, 37, 0.08); }
.step .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 400 20px var(--heading); color: #fff; background: var(--accent); margin-bottom: 18px; }
.step:nth-child(2) .num { background: var(--sage); }
.step:nth-child(3) .num { background: #d67f48; }
.step h3 { font-size: 25px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }

.glow-band { background: var(--cream); border-radius: 40px; padding: 64px 40px; }
.glows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.glow { border-radius: 24px; padding: 24px 20px; background: var(--bg); }
.glow .icon { font-size: 30px; line-height: 1; }
.glow h3 { font-size: 24px; margin: 14px 0 8px; }
.glow p { margin: 0; color: var(--muted); font-size: 16px; }
.glow:nth-child(1) { background: #fff2eb; }
.glow:nth-child(2) { background: #eef6f9; }
.glow:nth-child(3) { background: #f0fae1; }
.glow:nth-child(4) { background: #fff4dc; }

.foods { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; margin: 0 auto; }
.food { background: var(--cream); border: 1px solid var(--divider); border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.food span { color: var(--muted); font-weight: 400; }

.closing { text-align: center; padding: 88px 0 96px; }
.closing h2 { font-size: clamp(36px, 5.5vw, 56px); max-width: 14em; margin: 0 auto; }
.closing p { color: var(--muted); font-size: 19px; margin: 18px auto 32px; max-width: 32em; }
.closing .small-dewy { width: 96px; margin: 0 auto 24px; animation: bob 3.2s ease-in-out infinite; }

/* Footer */
footer { border-top: 1px solid var(--divider); padding: 32px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--text); }
.disclaimer { width: 100%; font-size: 13px; margin: 0; }

/* Legal pages */
.legal { max-width: 720px; padding: 32px 20px 80px; }
.legal h1 { font-size: clamp(40px, 6vw, 56px); }
.legal .updated { color: var(--muted); margin: 12px 0 32px; }
.legal .summary { background: var(--cream); border-radius: 24px; padding: 22px 26px; margin-bottom: 36px; }
.legal .summary p { margin: 0 0 10px; font-weight: 600; }
.legal .summary ul { margin: 0; padding-left: 20px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { color: #2e2b25; }
.legal li { margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--divider); }
.legal th { font-weight: 700; }


/* Health + AI notice (home) */
.notice {
  display: flex; gap: 24px; align-items: flex-start; max-width: 860px; margin: 0 auto;
  background: #fff2eb; border: 1px solid #ffc6a5; border-radius: 32px; padding: 32px 34px;
}
.notice img { flex: none; width: 72px; height: auto; }
.notice h2 { font-size: 30px; margin-bottom: 10px; }
.notice p { margin: 0 0 12px; color: #474238; }
.notice ul { margin: 0; padding-left: 20px; color: #474238; }
.notice li { margin-bottom: 8px; }

/* Legal pages: header, contents, callouts */
.legal-head { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.legal-head img { width: 84px; height: auto; flex: none; animation: bob 3.2s ease-in-out infinite; }
.legal .entity { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.legal .callout { background: #fff2eb; border: 1px solid #ffc6a5; border-radius: 24px; padding: 20px 24px; margin: 0 0 28px; }
.legal .callout.sage { background: #f0fae1; border-color: #ccdbb2; }
.legal .callout > :first-child { margin-top: 0; }
.legal .callout > :last-child { margin-bottom: 0; }
.legal .callout h3 { font-size: 21px; margin: 0 0 8px; }
.legal .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: 0.01em; line-height: 1.65; }
.legal h3 { font-size: 20px; margin: 26px 0 8px; }
.toc { background: var(--cream); border-radius: 24px; padding: 20px 26px; margin: 0 0 32px; }
.toc p { margin: 0 0 8px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; font-size: 15px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent-dark); text-decoration: underline; }
.legal h2 { scroll-margin-top: 16px; }
.legal .summary { border: 1px solid #ccdbb2; background: #f0fae1; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; gap: 28px; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .stage { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .glows { grid-template-columns: repeat(2, 1fr); }
  .glow-band { padding: 48px 20px; border-radius: 28px; }
  .notice { flex-direction: column; padding: 26px 22px; border-radius: 28px; }
}
@media (max-width: 520px) {
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
  .glows { grid-template-columns: 1fr; }
  .score-card { padding: 10px 12px; font-size: 12px; }
  .score-card .big { font-size: 24px; }
  section { padding: 56px 0; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border: 0; padding: 2px 0; }
  .legal tr { border-bottom: 1px solid var(--divider); padding: 10px 0; }
  .toc ol { columns: 1; }
  .legal-head img { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .dewy, .closing .small-dewy, .legal-head img { animation: none; }
}
