/* ==========================================================================
   Liverlytics design system
   Tokens → base → layout → components → pages → utilities
   ========================================================================== */

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/jakarta-latin-var.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand */
    --brand: #53ab3c;            /* Liverlytics green (logo, accents) */
    --primary: #2f7a24;          /* Accessible green for buttons/links (≥ 4.5:1 on white) */
    --primary-hover: #25661b;
    --teal-950: #062a28;
    --teal-900: #0b3b38;         /* Dark teal */
    --teal-800: #0f4f4a;
    --teal-700: #0f766e;
    --teal-100: #d5efeb;
    --green-50: #f1f8ee;         /* Light green */
    --green-100: #e2f1dc;
    --mint-50: #f3faf8;
    /* Neutrals */
    --white: #ffffff;
    --gray-25: #fafcfb;
    --gray-50: #f5f8f7;
    --gray-100: #edf2f0;
    --border: #dfe7e4;           /* Border gray */
    --gray-400: #8a9994;
    --muted: #4f615c;            /* Neutral gray text (≥ 4.5:1) */
    --text: #0f231f;             /* Dark text */
    /* Status */
    --amber: #b45309;
    --amber-50: #fff7e8;
    --red: #b42318;
    --red-50: #fdf0ee;
    --blue-50: #eef5fd;
    --blue: #1d5fa8;
    /* Type */
    --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-base: 1.0625rem;
    --fs-lg: 1.1875rem;
    --fs-h4: 1.1875rem;
    --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.4rem);
    --fs-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
    --fs-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
    /* Shape */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 2px rgba(15, 35, 31, .06), 0 1px 3px rgba(15, 35, 31, .06);
    --shadow: 0 4px 12px rgba(15, 35, 31, .06), 0 12px 32px rgba(15, 35, 31, .06);
    --shadow-lg: 0 18px 50px rgba(11, 59, 56, .14);
    --ring: 0 0 0 3px #fff, 0 0 0 5px var(--teal-700);
    /* Layout */
    --container: 1200px;
    --gutter: 16px;
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--text); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: var(--fs-h1); letter-spacing: -.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); }
ul, ol { padding-left: 1.25em; }
strong, b { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }
:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green-100); }
main:focus { outline: none; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 1000;
    background: var(--teal-900); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tint { background: var(--gray-50); }
.section--mint { background: linear-gradient(180deg, var(--mint-50), #fff); }
.section--dark { background: var(--teal-900); color: #d9ebe7; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: #9fe08b; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
    .grid { gap: 24px; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--wide-left { grid-template-columns: 1.15fr .85fr; }
    .split--wide-right { grid-template-columns: .9fr 1.1fr; }
}
.stack > * + * { margin-top: 1rem; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--teal-700); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-title { margin-bottom: .4em; }
.section-lead { font-size: var(--fs-lg); color: var(--muted); margin: 0; }
.lead { font-size: var(--fs-lg); color: var(--muted); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--gray-100); --btn-fg: var(--text);
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
    background: var(--btn-bg); color: var(--btn-fg);
    font: 650 var(--fs-sm)/1.2 var(--font-head); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary { --btn-bg: var(--primary); --btn-fg: #fff; box-shadow: 0 6px 18px rgba(47, 122, 36, .25); }
.btn-primary:hover { --btn-bg: var(--primary-hover); }
.btn-dark { --btn-bg: var(--teal-900); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: var(--teal-800); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--teal-900); border-color: var(--border); background: #fff; }
.btn-ghost:hover { border-color: var(--teal-700); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--teal-900); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 40px; padding: 8px 18px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; font-family: var(--font-head); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s var(--ease); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 6px 24px rgba(15, 35, 31, .05); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-900); flex: none; }
.brand__word { font: 800 1.35rem/1 var(--font-head); letter-spacing: -.03em; color: var(--teal-900); }
.brand--light .brand__word { color: #fff; }
.nav { display: none; margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; border: 0; background: none;
    font: 600 var(--fs-sm)/1 var(--font-head); color: var(--text); text-decoration: none; cursor: pointer;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--gray-50); color: var(--teal-900); }
.nav__link.is-active { color: var(--primary); }
.nav__toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav__item.is-open .nav__toggle .icon { transform: rotate(180deg); }
.nav__menu {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
    min-width: 260px; padding: 10px; border-radius: var(--radius); background: #fff;
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__menu--wide { min-width: 640px; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav__menu--wide ul { grid-template-columns: 1fr 1fr; }
.nav__menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { background: var(--green-50); }
.nav__menu strong { display: block; font: 650 var(--fs-sm)/1.3 var(--font-head); }
.nav__menu small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; margin-top: 2px; }
.nav__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green-50); color: var(--primary); flex: none; }
.nav__item.is-open .nav__menu,
.nav__item.has-menu:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) { .nav__item.has-menu:hover .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header__cta { display: none; }
.menu-btn {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--border); background: #fff; color: var(--teal-900); cursor: pointer;
}
.menu-btn .icon { width: 22px; height: 22px; }
@media (min-width: 1080px) {
    .nav { display: block; }
    .site-header__actions { margin-left: 8px; }
    .site-header__cta { display: inline-flex; }
    .site-header__actions .menu-btn { display: none; }
}
@media (min-width: 520px) { .site-header__cta { display: inline-flex; } }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 42, 40, .45); animation: fade .2s var(--ease); }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: #fff;
    display: flex; flex-direction: column; overflow-y: auto; animation: slide-in .25s var(--ease);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--border); }
.drawer__list { list-style: none; margin: 0; padding: 8px var(--gutter); }
.drawer__list > li { border-bottom: 1px solid var(--gray-100); }
.drawer__link, .drawer__group summary {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; min-height: 52px;
    font: 650 1.05rem/1.2 var(--font-head); color: var(--text); text-decoration: none; cursor: pointer; list-style: none;
}
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group[open] summary .icon { transform: rotate(180deg); }
.drawer__group ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 8px; }
.drawer__group a { display: block; padding: 10px 8px; color: var(--muted); text-decoration: none; border-radius: 8px; }
.drawer__group a:hover, .drawer__group a[aria-current="page"], .drawer__link[aria-current="page"] { color: var(--primary); background: var(--green-50); }
.drawer__foot { margin-top: auto; padding: 20px var(--gutter) 28px; display: grid; gap: 10px; }
body.is-locked { overflow: hidden; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--fs-xs); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; padding: 4px 2px; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }
.breadcrumbs__sep { width: 14px; height: 14px; color: var(--gray-400); }

/* ---------- Page hero ---------- */
.page-hero {
    position: relative; overflow: hidden;
    padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 6vw, 72px);
    background:
        radial-gradient(900px 380px at 88% -10%, rgba(83, 171, 60, .14), transparent 60%),
        radial-gradient(700px 320px at -5% 110%, rgba(15, 118, 110, .10), transparent 60%),
        var(--mint-50);
    border-bottom: 1px solid var(--border);
}
.page-hero__inner { max-width: calc(900px + var(--gutter) * 2); margin-left: 0; }
@media (min-width: 1248px) { .page-hero__inner { margin-left: auto; margin-right: auto; max-width: calc(var(--container) + var(--gutter) * 2); } }
.page-hero__title { max-width: 900px; margin-bottom: .35em; }
.page-hero__lead { max-width: 740px; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--muted); margin: 0; }
.page-hero__meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: var(--fs-sm); }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Home hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
    background:
        radial-gradient(1000px 520px at 85% 10%, rgba(83, 171, 60, .16), transparent 62%),
        radial-gradient(800px 420px at 0% 100%, rgba(15, 118, 110, .12), transparent 60%),
        linear-gradient(180deg, var(--mint-50), #fff 85%);
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero__title { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem); margin-bottom: .3em; }
.hero__title em { font-style: normal; color: var(--primary); background: linear-gradient(transparent 68%, var(--green-100) 68%); }
.hero__lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 580px; }
.hero__pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 22px;
    border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    font-size: var(--fs-xs); font-weight: 600; color: var(--teal-900);
}
.hero__pill span { padding: 4px 10px; border-radius: 999px; background: var(--green-50); color: var(--primary); font-weight: 700; }
.hero__trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: var(--fs-sm); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { color: var(--primary); }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-visual__ring {
    position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(83, 171, 60, .18), rgba(15, 118, 110, .06) 60%, transparent 70%);
}
.hero-visual .phone { width: min(270px, 64vw); z-index: 1; }
.float-card {
    position: absolute; z-index: 2; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: var(--fs-xs); color: var(--muted);
}
.float-card strong { display: block; font: 750 1.05rem/1.2 var(--font-head); color: var(--text); }
.float-card__label { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal-700); margin-bottom: 4px; }
.float-card--meld { top: 8%; left: 0; width: 200px; }
.float-card--sodium { bottom: 12%; left: 2%; width: 210px; }
.float-card--meds { top: 22%; right: 0; width: 190px; }
.spark { display: block; width: 100%; height: 42px; margin-top: 8px; }
.meter { height: 8px; border-radius: 999px; background: var(--gray-100); overflow: hidden; margin: 8px 0 4px; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--teal-700)); }
.meter--62 > span { width: 62%; }
.meter--92 > span { width: 92%; }
@media (max-width: 999px) {
    .hero-visual { min-height: 480px; }
    .float-card--meld { left: 2%; }
    .float-card--meds { right: 2%; }
}
@media (max-width: 520px) {
    .hero-visual { min-height: 460px; }
    .float-card { padding: 10px 12px; }
    .float-card--meld { width: 160px; top: 2%; }
    .float-card--sodium { width: 170px; bottom: 4%; }
    .float-card--meds { width: 150px; top: 30%; }
    .float-card .spark { height: 30px; }
}

/* ---------- Phone mockup ---------- */
.phone {
    margin: 0; padding: 10px; border-radius: 42px; background: #0d1f1c;
    box-shadow: 0 30px 60px rgba(6, 42, 40, .28), inset 0 0 0 2px #2a3a37;
}
.phone__screen { border-radius: 32px; overflow: hidden; background: #fff; aspect-ratio: 9 / 16; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Cards ---------- */
.card {
    position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%;
    padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border);
    color: var(--text); text-decoration: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card--link:hover { border-color: rgba(47, 122, 36, .45); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.card-icon {
    display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px;
    border-radius: 14px; background: var(--green-50); color: var(--primary);
}
.card-icon .icon { width: 24px; height: 24px; }
.card-title { font-size: 1.125rem; margin: 0 0 4px; }
.card-text { color: var(--muted); margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
.card-more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font: 650 var(--fs-sm)/1 var(--font-head); color: var(--primary); }
.card--link:hover .card-more .icon { transform: translateX(3px); }
.card-more .icon { transition: transform .2s var(--ease); }
.card--tint { background: var(--gray-50); border-color: transparent; }
.card--teal { background: var(--teal-900); border-color: var(--teal-900); color: #d6ebe6; }
.card--teal .card-title { color: #fff; }
.card--teal .card-text { color: #b9d7d1; }
.card--teal .card-icon { background: rgba(255, 255, 255, .1); color: #9fe08b; }
.card--compact { padding: 20px; }
.card--compact .card-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 8px; }
.card--compact .card-icon .icon { width: 20px; height: 20px; }
.card--number { counter-increment: step; }
.card--number .card-icon { font: 800 1.05rem/1 var(--font-head); }

/* Stat cards */
.stat { padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.stat__num { font: 800 clamp(2rem, 1.6rem + 1.5vw, 2.75rem)/1 var(--font-head); color: var(--teal-900); letter-spacing: -.03em; }
.stat__label { margin-top: 8px; color: var(--muted); font-size: var(--fs-sm); }

/* Badges */
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    background: var(--green-50); color: var(--primary); font: 650 var(--fs-xs)/1.2 var(--font-head); text-decoration: none; letter-spacing: .01em;
}
a.badge:hover { background: var(--green-100); }
.badge--teal { background: var(--teal-100); color: var(--teal-800); }
.badge--amber { background: var(--amber-50); color: var(--amber); }
.badge--red { background: var(--red-50); color: var(--red); }
.badge--gray { background: var(--gray-100); color: var(--muted); }

/* Check list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; overflow-wrap: anywhere; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .checklist li::before { background-color: rgba(255, 255, 255, .1); }
.dotlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dotlist li { position: relative; padding-left: 20px; }
.dotlist li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- Callouts ---------- */
.callout {
    display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); margin: 24px 0;
    background: var(--blue-50); border: 1px solid #d3e3f6; color: #1d3b5c; font-size: var(--fs-sm);
}
.callout p { margin: 0; }
.callout p + p { margin-top: .5em; }
.callout__icon { width: 22px; height: 22px; margin-top: 1px; color: var(--blue); }
.callout__title { font: 700 var(--fs-sm)/1.3 var(--font-head); margin-bottom: 4px !important; color: inherit; }
.callout-warning { background: var(--amber-50); border-color: #f5dfb8; color: #5c3a06; }
.callout-warning .callout__icon { color: var(--amber); }
.callout-tip { background: var(--green-50); border-color: var(--green-100); color: #1f4a17; }
.callout-tip .callout__icon { color: var(--primary); }
.callout-danger { background: var(--red-50); border-color: #f5d0cb; color: #6b1a12; }
.callout-danger .callout__icon { color: var(--red); }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.accordion__item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.accordion__item[open] { border-color: rgba(47, 122, 36, .35); box-shadow: var(--shadow-sm); }
.accordion__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.accordion__q::-webkit-details-marker { display: none; }
.accordion__q:hover .accordion__title { color: var(--primary); }
.accordion__title { margin: 0; font-size: 1.05rem; font-weight: 650; line-height: 1.4; }
.accordion__icon { width: 20px; height: 20px; color: var(--primary); transition: transform .25s var(--ease); }
.accordion__item[open] .accordion__icon { transform: rotate(180deg); }
.accordion__a { padding: 0 22px 20px; color: var(--muted); }
.accordion__a p:last-child, .accordion__a ul:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); margin: 24px 0; background: #fff; }
.table-scroll:focus-visible { outline-offset: 2px; }
.table { min-width: 560px; font-size: var(--fs-sm); }
.table th, .table td, .prose table th, .prose table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table thead th, .prose table thead th, .prose table tr:first-child th { background: var(--gray-50); font: 700 var(--fs-xs)/1.3 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--teal-800); }
.table tbody tr:last-child td, .prose table tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 650; color: var(--text); background: var(--gray-25); }
.table--compare td:nth-child(3) { color: var(--teal-900); font-weight: 500; }

/* ---------- Figures ---------- */
.figure { margin: 28px 0; }
.figure img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--gray-50); }
.figure figcaption { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

/* ---------- Prose (long-form content) ---------- */
.prose { font-size: var(--fs-base); line-height: 1.75; color: #223833; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); margin: 2.2em 0 .6em; }
.prose h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.5em 0 .4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose a { font-weight: 550; }
.prose blockquote { margin: 1.8em 0; padding: 18px 24px; border-left: 4px solid var(--brand); background: var(--green-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--teal-900); font-size: 1.1rem; }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; height: auto; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin-top: 8px; }
.prose table { min-width: 520px; font-size: var(--fs-sm); line-height: 1.55; }
.prose .table-scroll { margin: 1.6em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose pre { overflow-x: auto; background: var(--gray-50); padding: 16px; border-radius: var(--radius-sm); font-size: .9rem; }
.prose .callout { font-size: .98rem; display: block; }
.prose div.callout { padding-left: 20px; border-left-width: 4px; }
.prose hr { margin: 2.5em 0; }

/* ---------- Topic sections (education pages) ---------- */
.topic-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .topic-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.info-block { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.info-block .card-icon { margin: 0; }
.info-block h3 { font-size: 1.08rem; margin: 2px 0 6px; }
.info-block p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

.content-layout { display: grid; gap: 40px; }
@media (min-width: 1040px) { .content-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; } }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { padding: 22px; border-radius: var(--radius-lg); background: var(--gray-50); border: 1px solid var(--border); }
.side-card h2, .side-card h3 { font-size: 1rem; margin-bottom: 12px; }
.side-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-card li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); line-height: 1.4; }
.side-card li a:hover, .side-card li a.is-current { background: #fff; color: var(--primary); }
.side-card--dark { background: var(--teal-900); border-color: var(--teal-900); color: #cfe6e1; }
.side-card--dark h2, .side-card--dark h3 { color: #fff; }
.side-card--dark p { font-size: var(--fs-sm); }

/* Stage timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: stage; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline__item { position: relative; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); counter-increment: stage; }
.timeline__item::before {
    content: counter(stage); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    font: 800 1rem/1 var(--font-head); color: #fff; background: var(--sev, var(--brand)); margin-bottom: 14px;
}
.timeline__item h3 { font-size: 1.08rem; }
.timeline__item p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.timeline__bar { height: 6px; border-radius: 999px; margin-top: 18px; background: var(--gray-100); overflow: hidden; }
.timeline__bar span { display: block; height: 100%; background: var(--sev, var(--brand)); }
.sev-1 { --sev: #53ab3c; } .sev-1 .timeline__bar span { width: 25%; }
.sev-2 { --sev: #c98a12; } .sev-2 .timeline__bar span { width: 50%; }
.sev-3 { --sev: #d9622b; } .sev-3 .timeline__bar span { width: 75%; }
.sev-4 { --sev: #b42318; } .sev-4 .timeline__bar span { width: 100%; }

/* Diet do/avoid */
.do-dont { display: grid; gap: 16px; }
@media (min-width: 760px) { .do-dont { grid-template-columns: 1fr 1fr; } }
.do-dont__col { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.do-dont__col--do { background: var(--green-50); border-color: var(--green-100); }
.do-dont__col--avoid { background: var(--red-50); border-color: #f4d6d1; }
.do-dont__col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }

/* Journey (prev / next) */
.journey { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 48px; }
@media (min-width: 640px) { .journey { grid-template-columns: 1fr 1fr; } }
.journey__link { display: grid; gap: 4px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
.journey__link:hover { border-color: rgba(47, 122, 36, .45); box-shadow: var(--shadow-sm); }
.journey__link--next { text-align: right; }
.journey__link--next .journey__dir { justify-content: flex-end; }
.journey__dir { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.journey__label { font: 700 1.05rem/1.3 var(--font-head); color: var(--text); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--border); transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(47, 122, 36, .3); }
.post-card__media { display: block; aspect-ratio: 740 / 450; overflow: hidden; background: var(--gray-100); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; align-items: flex-start; }
.post-card__title { font-size: 1.14rem; line-height: 1.35; margin: 2px 0 0; }
.post-card__title a { color: var(--text); text-decoration: none; }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-xs); color: var(--muted); }
.post-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-card__cta { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font: 650 var(--fs-sm)/1 var(--font-head); text-decoration: none; }
.post-card--featured { display: grid; }
@media (min-width: 900px) {
    .post-card--featured { grid-template-columns: 1.1fr 1fr; }
    .post-card--featured .post-card__media { aspect-ratio: auto; min-height: 100%; }
    .post-card--featured .post-card__body { padding: 36px; justify-content: center; }
    .post-card--featured .post-card__title { font-size: 1.6rem; }
}

.blog-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none; font: 600 var(--fs-xs)/1 var(--font-head); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-current, .chip[aria-current] { background: var(--teal-900); color: #fff; border-color: var(--teal-900); }
.chip small { opacity: .7; font-weight: 500; }
.search-form { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.search-form .input { flex: 1; }

.article-header { padding: clamp(32px, 5vw, 56px) 0 0; background: linear-gradient(180deg, var(--mint-50), #fff); }
.article-header__inner { max-width: 860px; }
.article-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin: 14px 0 16px; }
.article-lead { font-size: var(--fs-lg); color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 18px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .avatar { width: 40px; height: 40px; }
.article-byline { display: flex; align-items: center; gap: 12px; color: var(--text); }
.article-byline small { display: block; color: var(--muted); }
.article-hero-img { margin: 32px 0 0; }
.article-hero-img img { width: 100%; border-radius: var(--radius-xl); aspect-ratio: 740 / 450; object-fit: cover; border: 1px solid var(--border); }
.article-body { padding-top: 40px; }

.answer-box { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--teal-900); color: #d5ebe6; margin-bottom: 32px; }
.answer-box__label { display: inline-flex; align-items: center; gap: 8px; font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: #9fe08b; margin-bottom: 10px; }
.answer-box p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: #eaf6f3; }
.takeaways { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--green-50); border: 1px solid var(--green-100); margin-bottom: 32px; }
.takeaways h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.toc { font-size: var(--fs-sm); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.4; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--primary); background: #fff; }
.toc li a.is-active { color: var(--primary); border-left-color: var(--brand); background: #fff; font-weight: 600; }
.toc .toc__sub a { padding-left: 22px; font-size: var(--fs-xs); }
.toc-mobile { margin-bottom: 28px; border: 1px solid var(--border); border-radius: var(--radius); }
.toc-mobile summary { padding: 14px 18px; cursor: pointer; font: 650 var(--fs-sm)/1.2 var(--font-head); display: flex; justify-content: space-between; align-items: center; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary .icon { transform: rotate(180deg); }
.toc-mobile .toc { padding: 0 10px 12px; }
@media (min-width: 1040px) { .toc-mobile { display: none; } }
.sidebar-sticky .toc-wrap { display: none; }
@media (min-width: 1040px) { .sidebar-sticky .toc-wrap { display: block; } }

.author-box { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--gray-50); margin-top: 40px; }
.author-box h2 { font-size: 1.1rem; margin-bottom: 2px; }
.author-box p { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.avatar { display: inline-grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--teal-100); color: var(--teal-800); font: 800 1rem/1 var(--font-head); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.references { margin-top: 40px; }
.references ol { font-size: var(--fs-sm); color: var(--muted); padding-left: 1.2em; }
.references li { margin-bottom: 6px; word-break: break-word; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 24px; font-size: var(--fs-sm); color: var(--muted); }
.share a, .share button { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--teal-900); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pagination ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.pagination__num, .pagination__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none; font: 600 var(--fs-sm)/1 var(--font-head); }
.pagination__num:hover, .pagination__btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination__num.is-current { background: var(--teal-900); color: #fff; border-color: var(--teal-900); }
.pagination__gap { display: grid; place-items: center; width: 24px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.label { font: 650 var(--fs-sm)/1.3 var(--font-head); color: var(--text); }
.label .req { color: var(--red); }
.hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, .textarea {
    width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--border);
    background: #fff; color: var(--text); font: 400 1rem/1.4 var(--font-body);
    transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 150px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #7d8c88; }
.input:hover, .select:hover, .textarea:hover { border-color: #c7d3cf; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { border-color: var(--red); }
.field__error { display: none; font-size: var(--fs-xs); color: var(--red); font-weight: 500; }
.field.is-invalid .field__error { display: block; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: var(--fs-sm); }
.alert ul { margin: 6px 0 0; padding-left: 1.1em; }
.alert--success { background: var(--green-50); color: #1f4a17; border: 1px solid var(--green-100); }
.alert--error { background: var(--red-50); color: #6b1a12; border: 1px solid #f4d6d1; }
.alert .icon { width: 20px; height: 20px; margin-top: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }

/* ---------- MELD calculator ---------- */
.calc { display: grid; gap: 24px; }
@media (min-width: 980px) { .calc { grid-template-columns: 1.25fr .75fr; align-items: start; } }
.calc__panel { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.calc__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.calc__head h2, .calc__head h3 { font-size: 1.35rem; margin: 0 0 4px; }
.calc__head p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.calc__grid { display: grid; gap: 18px; }
@media (min-width: 560px) { .calc__grid { grid-template-columns: 1fr 1fr; } }
.calc__grid .span-2 { grid-column: 1 / -1; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--gray-100); width: 100%; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; cursor: pointer; font: 650 var(--fs-sm)/1.2 var(--font-head); color: var(--muted); text-align: center; transition: background-color .15s, color .15s, box-shadow .15s; }
.seg input:checked + label { background: #fff; color: var(--teal-900); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + label { outline: 3px solid var(--teal-700); outline-offset: 1px; }
.unit-input { position: relative; }
.unit-input .input { padding-right: 76px; }
.unit-input__unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: var(--fs-xs); color: var(--muted); font-weight: 600; pointer-events: none; }
.calc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.calc__result { position: sticky; top: calc(var(--header-h) + 20px); padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-xl); background: var(--teal-900); color: #cde5e0; }
.calc__result h2, .calc__result h3, .calc__result h4 { color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.gauge { position: relative; width: 220px; max-width: 100%; margin: 0 auto 8px; }
.gauge svg { display: block; width: 100%; height: auto; }
.gauge__track { stroke: rgba(255, 255, 255, .12); }
.gauge__value { stroke: #9fe08b; transition: stroke-dashoffset .8s var(--ease), stroke .3s; }
.gauge__num { position: absolute; left: 0; right: 0; top: 46%; text-align: center; font: 800 3.4rem/1 var(--font-head); color: #fff; letter-spacing: -.04em; }
.gauge__cap { position: absolute; left: 0; right: 0; top: 76%; text-align: center; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: #9cc3bb; }
.band-pill { display: flex; justify-content: center; }
.band-pill span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font: 650 var(--fs-sm)/1.2 var(--font-head); }
.band-pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--band, #9fe08b); }
.band-low { --band: #7fd46b; } .band-mod { --band: #f0b429; } .band-high { --band: #f08a4b; } .band-vhigh { --band: #f87171; }
.result-rows { display: grid; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.result-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.result-row strong { color: #fff; font-family: var(--font-head); }
.calc__notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-xs); color: #a9cbc4; }
.calc__notes li { display: flex; gap: 8px; }
.calc__notes li::before { content: "•"; color: #9fe08b; }
.calc__placeholder { text-align: center; color: #9cc3bb; font-size: var(--fs-sm); padding: 8px 0; }
.calc__disclaimer { margin-top: 18px; font-size: var(--fs-xs); color: #9cc3bb; line-height: 1.55; }
.band-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; font-size: var(--fs-xs); }
.band-legend span { display: flex; align-items: center; gap: 8px; }
.band-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--band); flex: none; }
[data-calc-result][data-state="empty"] .calc__filled { display: none; }
[data-calc-result][data-state="filled"] .calc__placeholder { display: none; }

/* ---------- App section ---------- */
.app-showcase { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .app-showcase { grid-template-columns: 1fr 1fr; } }
.app-phones { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 18px; padding: 20px 0; }
.app-phones .phone { width: min(230px, 44vw); }
.app-phones .phone:nth-child(2) { margin-top: 56px; }
.feature-list { display: grid; gap: 14px; }
@media (min-width: 640px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.feature-item .card-icon { margin: 0; width: 42px; height: 42px; border-radius: 12px; }
.feature-item .card-icon .icon { width: 20px; height: 20px; }
.feature-item h3 { font-size: 1rem; margin: 0 0 3px; }
.feature-item p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.section--dark .feature-item { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section--dark .feature-item p { color: #b3d3cc; }
.section--dark .feature-item .card-icon { background: rgba(255, 255, 255, .08); color: #9fe08b; }

.screens { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .screens { grid-template-columns: 300px 1fr; gap: 64px; } }
.screens__tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; scrollbar-width: thin; }
.screens__tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted); font: 650 var(--fs-sm)/1 var(--font-head); cursor: pointer; }
.screens__tab[aria-selected="true"] { background: var(--teal-900); color: #fff; border-color: var(--teal-900); }
.screens__panel h3 { font-size: 1.4rem; }
.screens__panel ol { padding-left: 1.2em; color: var(--muted); display: grid; gap: 6px; }
.screens__panel[hidden] { display: none; }
.screens__phone { display: flex; justify-content: center; }
.screens__phone .phone { width: min(280px, 70vw); }

.compare-cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .compare-cards { grid-template-columns: 1fr 1fr; } }
.compare-card { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; }
.compare-card--after { background: var(--teal-900); border-color: var(--teal-900); color: #d5ebe6; }
.compare-card--after h3 { color: #fff; }
.compare-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.compare-card li { padding: 12px 14px; border-radius: 12px; background: var(--gray-50); font-size: var(--fs-sm); }
.compare-card--after li { background: rgba(255, 255, 255, .07); }

.pillars { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(5, 1fr); } }
.pillar { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); text-align: center; }
.pillar .card-icon { margin: 0 auto 10px; }
.pillar h3 { font-size: 1rem; margin: 0 0 4px; }
.pillar p { margin: 0; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.testimonial__mark { width: 30px; height: 30px; color: var(--brand); }
.testimonial__headline { margin: 0; font: 700 1.05rem/1.3 var(--font-head); color: var(--text); }
.testimonial__quote { margin: 0; color: #2c433e; }
.testimonial__quote p { margin: 0; }
.testimonial__who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.testimonial__who .avatar { width: 44px; height: 44px; font-size: .9rem; }
.testimonial__who strong { display: block; font-family: var(--font-head); }
.testimonial__who small { color: var(--muted); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1000px) { .scroller { grid-auto-columns: calc((100% - 40px) / 3); } }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.team-card img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.team-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(28px, 5vw, 48px) 0; }
.cta-band__inner {
    display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-xl);
    background: radial-gradient(600px 300px at 100% 0%, rgba(159, 224, 139, .22), transparent 60%), linear-gradient(135deg, var(--teal-900), var(--teal-800));
    color: #cfe6e1;
}
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.3fr auto; } }
.cta-band__title { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: .3em; }
.cta-band__text { margin: 0; font-size: var(--fs-lg); }
.cta-band .btn-row { margin-top: 0; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px; background: #0d1f1c; color: #fff; text-decoration: none; min-height: 56px; }
.store-btn:hover { background: #000; color: #fff; }
.store-btn .icon { width: 26px; height: 26px; }
.store-btn span { display: grid; font: 700 1.05rem/1.1 var(--font-head); }
.store-btn small { font: 500 .7rem/1.2 var(--font-body); opacity: .8; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: #a7c6bf; padding: clamp(48px, 6vw, 80px) 0 24px; font-size: var(--fs-sm); }
.site-footer a { color: #d6ebe6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; gap: 36px; }
@media (min-width: 700px) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .site-footer__top { grid-template-columns: 1.4fr .9fr .9fr .8fr 1.5fr; gap: 32px; } }
.site-footer__brand p { margin: 16px 0 20px; max-width: 320px; }
.site-footer__title { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__news p { margin-bottom: 14px; }
.newsletter__row { display: flex; gap: 8px; }
.newsletter .input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); color: #fff; min-height: 48px; }
.newsletter .input::placeholder { color: #86a9a1; }
.newsletter .btn { flex: none; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: center; word-break: break-word; }
.contact-list .icon { color: #9fe08b; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #fff; }
.social a:hover { background: var(--primary); text-decoration: none; }
.social .icon { width: 18px; height: 18px; }
.site-footer__disclaimer { display: flex; gap: 10px; align-items: flex-start; margin: 44px 0 0; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: #b9d4ce; font-size: var(--fs-xs); }
.site-footer__disclaimer .icon { color: #9fe08b; margin-top: 1px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: var(--fs-xs); }
.site-footer__bottom p { margin: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 14px 14px 14px 18px; border-radius: 14px; background: var(--teal-900); color: #fff; box-shadow: var(--shadow-lg); font-size: var(--fs-sm); animation: toast-in .3s var(--ease); }
.toast--error { background: #7a1c13; }
.toast .icon { color: #9fe08b; }
.toast--error .icon { color: #ffb4a8; }
.toast__close { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; display: grid; place-items: center; border-radius: 6px; }

/* ---------- Home specific ---------- */
.understand-grid { display: grid; gap: 20px; }
@media (min-width: 1000px) { .understand-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
.understand-intro { padding: 32px; border-radius: var(--radius-xl); background: var(--teal-900); color: #cfe6e1; }
.understand-intro h3 { color: #fff; font-size: 1.4rem; }
.understand-intro p { margin-bottom: 1em; }
.understand-intro .checklist li::before { background-color: rgba(255, 255, 255, .12); }
.metric-grid { display: grid; gap: 12px; }
@media (min-width: 480px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
.metric { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.metric .card-icon { width: 40px; height: 40px; border-radius: 12px; margin: 0; grid-row: span 2; }
.metric .card-icon .icon { width: 20px; height: 20px; }
.metric h3 { font-size: 1rem; margin-bottom: 4px; }
.metric p { margin: 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.trend-card { padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.trend-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.trend-card__head h3 { font-size: 1.05rem; margin: 0; }
.trend-chart { width: 100%; height: auto; display: block; }
.trend-chart .grid-line { stroke: var(--gray-100); }
.trend-chart .area { fill: url(#trendFill); }
.trend-chart .line { fill: none; stroke: var(--teal-700); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.trend-chart .dot { fill: #fff; stroke: var(--teal-700); stroke-width: 2.5; }
.trend-chart text { font: 500 11px var(--font-body); fill: var(--muted); }
.trend-note { font-size: var(--fs-xs); color: var(--muted); margin: 10px 0 0; }

/* ---------- Motion ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.float-card { animation: float 6s ease-in-out infinite; }
.float-card--sodium { animation-delay: -2s; }
.float-card--meds { animation-delay: -4s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print (calculator results, articles) ---------- */
@media print {
    .site-header, .site-footer, .drawer, .cta-band, .journey, .btn-row, .calc__actions, .share, .skip-link, .toast, .toc-mobile, .sidebar-sticky { display: none !important; }
    body { font-size: 11pt; color: #000; }
    .calc__result { background: #fff !important; color: #000 !important; border: 1px solid #999; }
    .calc__result * { color: #000 !important; }
    .page-hero, .hero { background: none !important; }
    a { color: #000; }
}
.plain-list { list-style: none; padding: 0; margin: 0; }
.article-meta .avatar { display: inline-grid; place-items: center; font-size: .9rem; }
/* Grid children may shrink below their content width (wide tables scroll inside .table-scroll) */
.content-layout > *, .screens > *, .split > *, .calc > *, .understand-grid > *, .app-showcase > *, .hero__grid > * { min-width: 0; }
