/* BiteMilo website. Tokens mirror the app's "Fresh Garden" theme
   (mobile/lib/app/theme.dart, workspace/design/DESIGN_SYSTEM.md). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122;
}

:root {
  color-scheme: light;
  --primary: #2E6B4E;
  --primary-deep: #1F4D38;
  --on-primary-deep: #F3F7F4;
  --primary-soft: #E2EEE6;
  --apricot: #D9703F;
  --apricot-soft: #FBE7DC;
  --apricot-ink: #9A4219;
  --gold: #C79A1E;
  --gold-soft: #F7EDCF;
  --bg: #F5F3EE;
  --card: #FFFFFF;
  --ink: #17201B;
  --ink-muted: #5B6660;
  --hairline: #E4E1D9;
  --wave: #7DB46A;
  --on-primary: #FFFFFF;
  --word-bite: #1F4D38;
  --word-milo: #2E6B4E;
  --shadow: 0 1px 2px rgba(23, 32, 27, .05), 0 8px 24px rgba(23, 32, 27, .06);
  --card-border: transparent;

  --r-card: 24px;
  --r-tile: 18px;
  --r-input: 16px;
  --r-pill: 999px;
  --gutter: 20px;
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --primary: #79C49A;
    --primary-deep: #1F3328;
    --on-primary-deep: #EDF2EE;
    --primary-soft: #1F3328;
    --apricot: #F0915F;
    --apricot-soft: #3A2418;
    --apricot-ink: #F7B08A;
    --gold: #E2BC4A;
    --gold-soft: #3A3018;
    --bg: #0E1411;
    --card: #17201B;
    --ink: #EDF2EE;
    --ink-muted: #A2B0A7;
    --hairline: #24302A;
    --wave: #79C49A;
    --on-primary: #0E1411;
    --word-bite: #EDF2EE;
    --word-milo: #79C49A;
    --shadow: none;
    --card-border: #24302A;
  }
}

/* Scripts the display font doesn't cover use the system font everywhere. */
:lang(ar), :lang(ur), :lang(hi) { --font-display: var(--font-body); }
:lang(ar) { --font-body: "SF Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
:lang(ur) { --font-body: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
:lang(hi) { --font-body: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.6 var(--font-body);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
:lang(ur) body, body:lang(ur) { line-height: 2.1; }
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: break-word; }
:lang(ar) :is(h1, h2, h3), :lang(ur) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.5; }
h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 800; }
h2 { font-size: clamp(24px, 4.2vw, 32px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.display { font-size: clamp(36px, 8.5vw, 60px); line-height: 1.08; }
:lang(ar) .display, :lang(ur) .display, :lang(hi) .display { line-height: 1.45; }
.lead { font-size: clamp(16px, 2.2vw, 18px); color: var(--ink-muted); }
.small { font-size: 14px; }
.muted { color: var(--ink-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 22px; height: 22px; flex: none; }
mark.ph { background: var(--gold-soft); color: var(--ink); padding: 0 .3em; border-radius: 6px; border: 1px dashed var(--gold); font-weight: 600; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 480px) { .wrap { padding-inline: var(--gutter); } }
.narrow { max-width: 820px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; min-height: 44px; }
.brand img { width: 36px; height: 36px; display: block; }
.wordmark { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1; direction: ltr; unicode-bidi: isolate; }
.w-bite { color: var(--word-bite); }
.w-milo { color: var(--word-milo); }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.main-nav a:hover { background: var(--primary-soft); }
@media (max-width: 859px) { .main-nav { display: none; } .lang-header { margin-inline-start: auto; } }

/* language menu (works without JS) */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); background: var(--card); font-weight: 600; font-size: 14px; color: var(--ink);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 18px; height: 18px; color: var(--primary); }
.lang summary .chev { width: 16px; height: 16px; color: var(--ink-muted); transition: transform .2s; }
.lang[open] summary .chev { transform: rotate(180deg); }
@media (max-width: 380px) { .lang summary > span { display: none; } }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30;
  list-style: none; margin: 0; padding: 6px; min-width: 210px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-tile); box-shadow: 0 12px 40px rgba(0,0,0,.14);
}
.lang-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.lang-list a:hover { background: var(--primary-soft); }
.lang-list a[aria-current] { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

/* ---------- buttons / badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: 16px; background: #17201B; color: #fff; text-decoration: none; border: 1px solid #17201B;
}
@media (prefers-color-scheme: dark) { .store { background: #EDF2EE; color: #0E1411; border-color: #EDF2EE; } }
.store .icon { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 600; opacity: .85; }
.store b { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.store.is-soon { opacity: .9; cursor: default; }
a.store:hover { filter: brightness(1.15); }
.pill { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 700; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); border: 1px solid var(--card-border); }
.well { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 0; }
.hero-grid { display: grid; gap: 24px; align-items: center; position: relative; z-index: 1; padding-bottom: 32px; }
@media (min-width: 860px) { .hero { padding-top: 64px; } .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; padding-bottom: 72px; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; color: var(--primary); background: var(--primary-soft); padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 18px; }
.hero-art { display: grid; place-items: center; }
.hero-card {
  position: relative; width: min(340px, 82vw); aspect-ratio: 1; border-radius: 40%;
  background: radial-gradient(circle at 50% 45%, var(--card) 0 55%, var(--primary-soft) 56% 100%);
  display: grid; place-items: center;
}
.hero-sprout { width: 78%; height: auto; }
.bubble {
  position: absolute; top: 6%; inset-inline-end: -4%; max-width: 62%;
  background: var(--primary-deep); color: var(--on-primary-deep); font-weight: 700; font-size: 15px; line-height: 1.35;
  padding: 10px 16px; border-radius: 18px; border-end-end-radius: 6px; box-shadow: var(--shadow);
}
.waves { display: block; width: 100%; height: 120px; position: absolute; inset-inline: 0; bottom: 0; pointer-events: none; }
.hero .waves { height: clamp(90px, 16vw, 200px); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 860px) { .section { padding: 88px 0; } }
.section-head { max-width: 680px; margin-bottom: 32px; }
.feature-grid { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 24px; }
.feature p { margin: 0; color: var(--ink-muted); font-size: 15px; }

.steps-section { background: var(--primary-deep); color: var(--on-primary-deep); }
.steps-section h2, .steps-section h3 { color: var(--on-primary-deep); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r-tile); background: rgba(255,255,255,.07); }
.step p { margin: 0; opacity: .88; font-size: 15px; }
.step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--on-primary-deep); color: var(--primary-deep); font-weight: 800; font-family: var(--font-display); }
@media (prefers-color-scheme: dark) { .steps-section { background: #142019; } .step-n { background: #79C49A; color: #0E1411; } }

.sprout-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .sprout-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--primary); margin-top: 2px; }
.sprout-card { padding: 24px 16px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; align-items: end; }
.stages img { width: 100%; max-width: 96px; display: block; margin-inline: auto; }
.stages span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-muted); margin-top: 6px; line-height: 1.3; }
@media (max-width: 420px) { .stages { grid-template-columns: repeat(3, 1fr); row-gap: 16px; } }

.table-card { padding: 8px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.plans th, .plans td { padding: 14px 12px; text-align: start; border-bottom: 1px solid var(--hairline); vertical-align: top; font-size: 15px; }
.plans tbody tr:last-child > * { border-bottom: 0; }
.plans thead th { font-size: 13px; color: var(--ink-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
:lang(ar) .plans thead th, :lang(ur) .plans thead th, :lang(hi) .plans thead th { text-transform: none; letter-spacing: 0; }
.plans tbody th { font-weight: 600; }
.plans td:last-child { color: var(--primary); font-weight: 700; }
@media (max-width: 520px) { .plans th, .plans td { padding: 12px 8px; font-size: 14px; } }
.plan-notes { display: grid; gap: 16px; margin: 16px 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.note-card { padding: 22px 24px; }
.note-card p { margin: 0; color: var(--ink-muted); }

.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border-radius: var(--r-tile); border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 20px; min-height: 56px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { color: var(--primary); transition: transform .2s; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 20px 6px; color: var(--ink-muted); }

.cta-card { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 32px; border-radius: 32px; background: var(--primary-soft); }
.cta-card img { width: 112px; flex: none; }
.cta-card > div { flex: 1 1 280px; }
.cta-card .stores { margin-bottom: 0; }

/* ---------- document pages ---------- */
.doc-hero { position: relative; overflow: hidden; padding: 40px 0 96px; }
.doc-hero-row { position: relative; z-index: 1; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.doc-mascot { width: 96px; flex: none; }
@media (max-width: 520px) { .doc-mascot { width: 72px; } }
.doc-hero .waves { height: 90px; }
.doc { padding-bottom: 64px; }
.doc-meta { margin: 0; }
.callout { background: var(--primary-soft); padding: 14px 18px; border-radius: 12px; border-inline-start: 4px solid var(--primary); }
.toc { padding: 18px 22px; margin: 16px 0 32px; }
.toc-h { font-size: 15px; margin-bottom: 8px; color: var(--ink-muted); }
.toc ol { margin: 0; padding-inline-start: 22px; columns: 2 220px; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.prose { overflow-wrap: break-word; }
.prose h2 { font-size: clamp(20px, 3.4vw, 24px); margin-top: 40px; padding-top: 8px; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-inline-start: 24px; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose code { font-size: .92em; background: var(--primary-soft); padding: 1px 6px; border-radius: 6px; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--hairline); border-radius: var(--r-tile); background: var(--card); }
.data th, .data td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--hairline); vertical-align: top; font-size: 14.5px; min-width: 140px; }
.data thead th { background: var(--primary-soft); font-weight: 700; }
.data tbody tr:last-child > * { border-bottom: 0; }
.data tbody th { font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 24px; padding: 120px 0 28px; overflow: hidden; }
.site-footer .waves { top: 0; bottom: auto; height: 110px; transform: scaleY(-1) scaleX(-1); }
.footer-grid { position: relative; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-brand .tagline { font-weight: 700; margin: 12px 0 8px; }
.footer-h { font-size: 14px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
:lang(ar) .footer-h, :lang(ur) .footer-h, :lang(hi) .footer-h { text-transform: none; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--primary); text-decoration: underline; }
.footer-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.footer-langs a[aria-current] { color: var(--primary); font-weight: 700; }
.copyright { position: relative; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline); }

@media print {
  .site-header, .site-footer, .waves, .toc, .doc-mascot { display: none; }
  body { background: #fff; color: #000; }
}
.waves stop { stop-color: var(--wave); }
.doc-hero-row > div, .cta-card > div, .step > div { min-width: 0; }
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
.health-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; }
.health-links .icon { width: 18px; height: 18px; color: var(--primary); }
.health-links a { font-weight: 600; }
