/* Nutritionalyze website. Tokens match the "Website" artboard on the
   Claude Design canvas ("Nutritionalyze App Redesign"). */

:root {
  --ground: #0a0c0e;
  --panel: #14171b;
  --line: #262a30;
  --field-line: #3a3f46;
  --text: #f2f3f0;
  --text-soft: #d5d8dc;
  --muted: #b4bac2;
  --faint: #8a9099;
  --accent: #0f6e6b;
  --leaf: #a9d18e;
  --leaf-light: #c4e3ae;
  --leaf-pale: #d9f0c9;
  --peach: #f2b66d;
  --mint: #5fb8a8;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-mark: Fredoka, "Space Grotesk", Inter, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--leaf); }
a:hover { color: var(--leaf-light); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 12px;
  background: var(--text); color: var(--ground); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }

.eyebrow {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf);
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand span { font-family: var(--font-mark); font-weight: 600; font-size: 26px; line-height: 1; }
.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px;
  border-radius: 28px; background: var(--panel); border: 1px solid var(--line);
}
.site-nav a {
  padding: 10px 16px; border-radius: 22px; font-size: 15px; font-weight: 500;
  text-decoration: none; color: var(--text-soft);
}
.site-nav a:hover { background: var(--line); color: var(--text); }
.site-nav .nav-cta {
  min-height: 44px; padding: 0 20px; display: flex; align-items: center;
  background: var(--text); color: var(--ground); font-weight: 600;
}
.site-nav .nav-cta:hover { background: #ffffff; color: var(--ground); }

/* ---------- Buttons ---------- */
.btn {
  min-height: 58px; padding: 0 28px; border-radius: 29px;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-light { background: var(--text); color: var(--ground); border: 0; }
.btn-light:hover { background: #ffffff; color: var(--ground); }
.btn-outline { border: 1px solid var(--field-line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--muted); color: var(--text); }
.btn-soon { background: transparent; color: var(--muted); border: 1px dashed var(--field-line); cursor: default; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-lines { position: absolute; left: 0; top: -40px; width: 100%; height: 760px; pointer-events: none; }
.hero .wrap {
  position: relative; padding-top: 56px; padding-bottom: 96px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
}
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.25rem, 7.4vw, 6.75rem); letter-spacing: -0.045em; line-height: 0.92;
}
.hero h1 .tint { color: var(--leaf); }
.hero .lede { margin: 0; font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { flex: 0 1 440px; position: relative; width: 100%; max-width: 440px; height: 560px; margin: 0 auto; }
.blob { position: absolute; }
.blob-main {
  inset: 30px 0 10px 10px; background: var(--accent);
  border-radius: 62% 38% 55% 45% / 46% 58% 42% 54%; transform: rotate(-8deg);
}
.blob-leaf { right: 6px; top: 8px; width: 110px; height: 96px; background: var(--leaf);
  border-radius: 58% 42% 63% 37% / 52% 40% 60% 48%; }
.blob-peach { left: 0; bottom: 30px; width: 74px; height: 66px; background: var(--peach);
  border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%; }

.phone {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(4deg);
  width: 264px; padding: 10px; border-radius: 40px; background: var(--ground);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.phone-screen {
  border-radius: 32px; background: #f6f5f1; color: #16181d;
  padding: 28px 16px 20px; display: flex; flex-direction: column; gap: 12px;
}
.phone-meal { display: flex; align-items: center; gap: 12px; }
.phone-photo { width: 56px; height: 56px; border-radius: 16px; background: #e7d9c3; position: relative; overflow: hidden; flex-shrink: 0; }
.phone-photo i { position: absolute; display: block; }
.phone-photo .plate { left: 8px; top: 8px; width: 40px; height: 40px; border-radius: 20px; background: #f4efe6; }
.phone-photo .meat { left: 28px; top: 18px; width: 14px; height: 12px; border-radius: 6px; background: #c98a4b; }
.phone-photo .veg { left: 16px; top: 32px; width: 18px; height: 9px; border-radius: 5px; background: #6e9a52; }
.phone-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.phone-sub { font-size: 12px; color: #5b6069; }
.phone-card {
  background: #ffffff; border: 1px solid #e4e2dc; border-radius: 18px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.phone-label { font-size: 12px; color: #5b6069; font-weight: 500; }
.phone-number {
  font-family: var(--font-display); font-size: 48px; font-weight: 600;
  letter-spacing: -0.04em; line-height: 0.9;
}
.phone-number small { font-size: 20px; color: #5b6069; font-weight: 500; letter-spacing: 0; }
.phone-bar { position: relative; height: 10px; border-radius: 5px; background: #eceae4; }
.phone-bar .band { position: absolute; top: 0; bottom: 0; left: 45%; width: 28%; border-radius: 5px; background: rgba(15, 110, 107, 0.2); }
.phone-bar .mark { position: absolute; top: -4px; left: 55%; width: 3px; height: 18px; border-radius: 2px; background: var(--accent); }
.phone-range { font-size: 12px; color: #5b6069; }
.phone-range strong { color: #16181d; }
.phone-done {
  height: 44px; border-radius: 22px; background: var(--accent); color: #ffffff;
  font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 520px) { .hero-art { height: 480px; } .blob-main { inset: 30px 10px 10px 10px; } }

/* ---------- How it works ---------- */
.how { padding-bottom: 40px; }
.how-band {
  position: relative; overflow: hidden; background: var(--accent); color: #ffffff;
  border-radius: 200px 56px 200px 56px; padding: 64px 56px 72px;
}
@media (max-width: 720px) { .how-band { border-radius: 72px 32px 72px 32px; padding: 48px 24px 56px; } }
.how-swoop { position: absolute; right: -120px; top: -80px; width: 560px; height: 380px; opacity: 0.16; }
.how-inner { position: relative; display: flex; flex-direction: column; gap: 36px; }
.how .eyebrow { color: var(--leaf-pale); }
.section-title {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.25rem, 4.4vw, 3.75rem); letter-spacing: -0.035em; line-height: 1;
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { background: rgba(10, 12, 14, 0.28); border-radius: 28px; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.step:first-child { border-top-left-radius: 80px; }
.step:last-child { border-bottom-right-radius: 80px; }
.step-n { font-family: var(--font-mono); font-size: 14px; }
.n-peach { color: var(--peach); }
.n-pale { color: var(--leaf-pale); }
.n-white { color: #ffffff; }
.self-start { align-self: flex-start; }
.step h3 { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }

/* ---------- Help / FAQ ---------- */
.help .wrap { padding-top: 80px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 48px; }
.help-intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.help-intro p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--muted); }
.faq { flex: 2 1 520px; min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0 4px; }
.faq summary {
  min-height: 72px; display: flex; align-items: center; gap: 16px; padding: 12px 0;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-family: var(--font-mono); font-size: 1.2rem; color: var(--faint);
}
.faq details[open] summary::after { content: "–"; }
.faq-n { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.faq p { margin: 0 0 24px 44px; font-size: 1rem; line-height: 1.65; color: var(--muted); max-width: 640px; }
@media (max-width: 520px) { .faq p { margin-left: 0; } }

/* ---------- Contact + Ideas ---------- */
.cards .wrap { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.contact-card {
  position: relative; overflow: hidden; background: var(--leaf); color: var(--ground);
  border-radius: 56px 180px 56px 140px; padding: 44px;
}
@media (max-width: 520px) { .contact-card { border-radius: 40px 96px 40px 72px; padding: 32px 24px; } }
.contact-card .blob-accent {
  position: absolute; right: -60px; bottom: -70px; width: 240px; height: 220px; background: var(--accent);
  border-radius: 58% 42% 63% 37% / 52% 40% 60% 48%; opacity: 0.9;
}
.contact-inner { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.contact-card .eyebrow { color: #2c4a1e; }
.card-title { margin: 0; font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.contact-card p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: #22301a; }
.contact-card .small { margin-top: 8px; font-size: 0.92rem; line-height: 1.5; }
.contact-card a { color: var(--ground); }
.contact-card a:hover { color: #000000; }
.contact-card .email { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; overflow-wrap: anywhere; }

.ideas-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 40px; padding: 44px;
  display: flex; flex-direction: column; gap: 18px;
}
@media (max-width: 520px) { .ideas-card { padding: 32px 24px; } }
.ideas-card .eyebrow { color: var(--peach); }
.ideas-card fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ideas-card legend { font-size: 15px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--field-line);
  background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); color: var(--ground); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--faint); }
.field textarea, .field input {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.45; color: var(--text);
  background: var(--ground); border: 1px solid var(--field-line); border-radius: 18px; padding: 14px 16px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input { height: 52px; }
.form-note { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--faint); }
.form-status { margin: 0; font-size: 0.95rem; color: var(--leaf); min-height: 1.4em; }

/* ---------- Privacy summary ---------- */
.privacy .wrap { padding-top: 48px; padding-bottom: 96px; }
.privacy-grid { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 48px; border-top: 1px solid var(--line); }
.privacy-intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.privacy-intro h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.privacy-intro a { font-size: 1rem; font-weight: 600; }
.privacy-points {
  flex: 2 1 520px; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 32px;
}
.privacy-points li { display: flex; flex-direction: column; gap: 8px; }
.privacy-points .tick { width: 32px; height: 6px; border-radius: 3px; }
.privacy-points strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.privacy-points span:last-child { font-size: 1rem; line-height: 1.55; color: var(--muted); }
.tone-leaf { background: var(--leaf); }
.tone-peach { background: var(--peach); }
.tone-mint { background: var(--mint); }
.tone-light { background: var(--text); }
.disclaimer { margin: 40px 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--faint); max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--faint);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand b { font-family: var(--font-mark); font-weight: 600; font-size: 18px; color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.footer-nav a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal .wrap { padding-top: 40px; padding-bottom: 96px; }
.prose { max-width: 760px; }
.prose h1 {
  margin: 12px 0 8px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: 1;
}
.prose .updated { margin: 0 0 40px; color: var(--faint); font-size: 0.95rem; }
.prose h2 { margin: 48px 0 12px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.prose h3 { margin: 28px 0 8px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.7; color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 6px 0; }
.prose .callout {
  margin: 28px 0; padding: 20px 24px; border-radius: 24px; background: var(--panel);
  border: 1px solid var(--line); color: var(--text-soft);
}
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
.prose th { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.notfound .wrap { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-top: 60px; padding-bottom: 96px; }
