/* ============================================================
   NutriAI — Website Design System
   Light, airy wellness aesthetic matching the app
   Off-white #F3F5F4 · Ink #1A1A1A · Sage #5E9B7E
   Display: Plus Jakarta Sans · Body: Inter
   ============================================================ */

:root {
  --bg:         #F3F5F4;
  --bg-2:       #ECF0EE;
  --card:       #FFFFFF;
  --ink:        #1A1A1A;
  --ink-2:      #4A4A4A;
  --muted:      #8A938F;
  --line:       #E7EBE9;
  --sage:       #5E9B7E;
  --sage-deep:  #4A8268;
  --sage-soft:  #A8CFBC;
  --sage-tint:  #E3EFE9;
  --coral:      #E5705A;
  --amber:      #E0A33E;
  --green:      #7BA892;
  --radius:     24px;
  --radius-sm:  16px;
  --radius-pill:100px;
  --maxw:       1140px;
  --shadow:     0 4px 24px rgba(26,40,33,.06);
  --shadow-lg:  0 16px 48px rgba(26,40,33,.10);
  --ease:       cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .25s var(--ease);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(26,26,26,.5); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { transform: translateY(-2px); background: var(--sage-deep); box-shadow: 0 12px 28px -10px rgba(94,155,126,.6); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-deep); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(243,245,244,.85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 20px; }
.logo-mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--ink-2); font-weight: 600; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--sage-deep); letter-spacing: .04em;
  padding: 8px 16px; border-radius: var(--radius-pill); background: var(--sage-tint); margin-bottom: 24px;
}
.hero h1 { font-size: clamp(40px, 6vw, 66px); margin-bottom: 22px; }
.hero h1 .accent { color: var(--sage); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* hero ring visual */
.hero-visual { display: grid; place-items: center; }
.ring-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 44px; width: 100%; max-width: 380px; }
.macro-row { display: flex; justify-content: space-between; margin-top: 30px; }
.macro { text-align: center; flex: 1; }
.macro .mini-ring { width: 66px; height: 66px; margin: 0 auto 8px; }
.macro .mv { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 17px; }
.macro .ml { font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section.tinted { background: var(--bg-2); }
.section-head { max-width: 600px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--sage-deep); margin-bottom: 12px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 17px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); text-align: center; }
.stat .num { font-family: 'Plus Jakarta Sans'; font-size: 42px; font-weight: 800; color: var(--sage); }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-ico { width: 54px; height: 54px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 18px; background: var(--sage-tint); font-size: 26px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* feature pills inside cards */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip { font-size: 12px; color: var(--sage-deep); background: var(--sage-tint); padding: 5px 12px; border-radius: var(--radius-pill); font-weight: 600; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; font-size: 16px; color: var(--ink-2); }
.feature-list li .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; flex-shrink: 0; font-size: 14px; }

/* ---------- Team ---------- */
.team-card { background: var(--card); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow); }
.team-card .avatar { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 32px; color: #fff; }
.team-card h3 { font-size: 19px; margin-bottom: 4px; }
.team-card .role { color: var(--sage-deep); font-size: 14px; font-weight: 600; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
.price-card { background: var(--card); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); position: relative; }
.price-card.featured { background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.price-card.featured .per, .price-card.featured p { color: rgba(255,255,255,.7); }
.price-card .plan { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.price-card .amt { font-family: 'Plus Jakarta Sans'; font-size: 44px; font-weight: 800; }
.price-card .per { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.price-card .best { position: absolute; top: 20px; right: 20px; background: var(--sage); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); letter-spacing: .04em; }

/* ---------- CTA ---------- */
.cta-band { background: var(--ink); border-radius: 32px; padding: 64px; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(28px,4vw,42px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.7); max-width: 480px; margin: 0 auto 28px; font-size: 17px; }
.cta-band .btn-sage { background: var(--sage); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--card); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.faq-q { padding: 20px 24px; font-weight: 700; font-family: 'Plus Jakarta Sans'; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; color: var(--ink-2); transition: max-height .3s var(--ease), padding .3s; }
.faq-item.open .faq-a { padding: 0 24px 20px; max-height: 320px; }
.faq-q .pm { width: 24px; height: 24px; flex-shrink: 0; transition: transform .3s; color: var(--sage); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer p.desc { color: var(--muted); font-size: 14px; max-width: 280px; margin-top: 14px; }
.footer h4 { font-size: 14px; margin-bottom: 16px; font-family: 'Plus Jakarta Sans'; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: var(--sage-deep); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- Page hero ---------- */
.page-hero { padding: 140px 0 40px; }
.page-hero h1 { font-size: clamp(34px,5vw,52px); margin-bottom: 14px; }
.page-hero p { color: var(--ink-2); font-size: 18px; max-width: 600px; }
.crumb { display: flex; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.crumb a:hover { color: var(--sage-deep); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 36px 0 14px; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--sage-deep); font-weight: 600; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.prose strong { color: var(--ink); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink); font-size: 15px; font-family: inherit; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sage); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--card); padding: 24px; gap: 18px; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .nav .desktop-cta { display: none; }
  .grid-3, .grid-4, .grid-2, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .section { padding: 60px 0; }
}

/* ---------- Ring draw animation ---------- */
.ring-anim { animation: ringdraw 1.4s var(--ease) forwards; }
@keyframes ringdraw { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--o); } }
@media (prefers-reduced-motion: reduce) { .ring-anim { animation: none; } }
