/* Macrova website
   Design: calm, clear, Apple-like. Same palette as the iPhone app
   (system colors, dark by default) plus the logo colors from the flipchart.
   No glow effects. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #000;
  --bg-alt: #0c0c0d;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --field: #1c1c1e;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, .66);
  --text-3: rgba(235, 235, 245, .42);
  --accent: #0a84ff;          /* systemBlue (dark) */
  --accent-text: #409cff;
  --btn: #0071e3;             /* button blue, 4.7:1 with white text */
  --btn-hover: #0a7cf0;
  --protein: #0a84ff;
  --carbs: #30d158;
  --fats: #ff9f0a;
  --water: #64d2ff;
  --activity: #ff453a;
  --green-text: #30d158;
  --orange-text: #ff9f0a;
  --red-text: #ff6961;
  --brand-deep: #0e3b34;
  --brand-green: #22c55e;
  --brand-orange: #f59e0b;
  --brand-sky: #7dd3fc;
  --header-bg: rgba(0, 0, 0, .72);
  --phone-frame: #2c2c2e;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(76px, 11vw, 144px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --card: #fff;
  --card-2: #f2f2f7;
  --field: #fff;
  --line: rgba(0, 0, 0, .09);
  --line-strong: rgba(0, 0, 0, .18);
  --text: #1d1d1f;
  --text-2: rgba(60, 60, 67, .78);
  --text-3: rgba(60, 60, 67, .52);
  --accent: #007aff;
  --accent-text: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --protein: #007aff;
  --carbs: #34c759;
  --fats: #ff9500;
  --water: #32ade6;
  --activity: #ff3b30;
  --green-text: #1f8a3b;
  --orange-text: #b25f00;
  --red-text: #d70015;
  --header-bg: rgba(255, 255, 255, .78);
  --phone-frame: #1d1d1f;
  --shadow: 0 30px 60px -34px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.028em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); letter-spacing: -.02em; line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.3; }
strong { font-weight: 650; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }
.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; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }
.center .lead, .center .section-intro { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; font-size: .82rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-text);
}
.eyebrow.blue { color: var(--accent-text); }
.eyebrow svg { width: 17px; height: 17px; }
.inline-icon { display: flex; gap: 10px; align-items: center; }
.inline-icon svg { width: 20px; height: 20px; flex: none; }
.eyebrow.orange { color: var(--orange-text); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.5; color: var(--text-2); max-width: 46rem; letter-spacing: -.012em; }
.section-intro { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 64px); }
.muted { color: var(--text-2); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; color: var(--text-3); }
.num { font-family: var(--font-round); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.2;
  cursor: pointer; text-decoration: none; transition: background-color .2s, transform .15s var(--ease), border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-secondary { background: var(--card-2); color: var(--text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--card-2) 85%, var(--text) 15%); }
.btn-light { background: #fff; color: #0b0b0c; }
.btn-light:hover { background: #ececf0; }
.btn-small { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: .93rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow:hover { text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-round); font-weight: 750; font-size: 1.38rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-2); font-size: .94rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--text) 7%, transparent); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: transparent; border: 0; color: var(--text-2); cursor: pointer; font: inherit;
}
.icon-btn:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); text-decoration: none; }
.icon-btn svg { width: 21px; height: 21px; }
.lang-link { width: auto; padding: 0 10px; font-size: .86rem; font-weight: 650; letter-spacing: .04em; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
}

.mobile-menu {
  position: fixed; inset: 64px 0 0; z-index: 49; background: var(--bg);
  padding: 20px var(--gutter) 40px; overflow-y: auto;
  display: none;
}
.mobile-menu.open { display: block; animation: fadeIn .25s var(--ease); }
.mobile-menu a.mm-link { display: block; padding: 16px 4px; font-size: 1.4rem; font-weight: 650; color: var(--text); border-bottom: 1px solid var(--line); letter-spacing: -.02em; }
.mobile-menu a.mm-link:hover { text-decoration: none; color: var(--accent-text); }
.mobile-menu .btn { margin-top: 28px; width: 100%; }
body.menu-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Logo ring ---------- */
.logo path { fill: none; stroke-linecap: round; stroke-width: 8.5; }
.logo .g { stroke: var(--brand-green); }
.logo .o { stroke: var(--brand-orange); }
.logo .s { stroke: var(--brand-sky); }
.logo .disc { fill: var(--brand-deep); }
.logo-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) forwards; }
.logo-draw .o { animation-delay: .16s; }
.logo-draw .s { animation-delay: .32s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .logo-draw path { animation: none; stroke-dashoffset: 0; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: 0; text-align: center; overflow: hidden; }
.hero .hero-logo { width: 72px; height: 72px; margin: 0 auto 26px; }
.hero h1 { max-width: 13ch; margin-inline: auto; margin-bottom: 22px; }
.hero .lead { margin: 0 auto 32px; max-width: 40rem; }
.hero .btn-row { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; margin-bottom: 22px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--text-2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); margin-left: 6px; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: .93rem; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { width: 18px; height: 18px; color: var(--green-text); flex: none; }

.hero-phones {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(12px, 3vw, 36px); margin-top: clamp(48px, 7vw, 80px);
  max-height: 640px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
          mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.hero-phones .phone { width: clamp(150px, 24vw, 300px); }
.hero-phones .phone.side { width: clamp(130px, 21vw, 262px); margin-bottom: 0; transform: translateY(48px); }
@media (max-width: 640px) {
  .hero-phones .phone.side { display: none; }
  .hero-phones .phone { width: min(78vw, 300px); }
}

/* ---------- Phone mockup ---------- */
/* .phone is the size container; the frame and screen corners scale with it
   (container units only resolve against an ancestor, hence the inner frame). */
.phone { position: relative; container-type: inline-size; flex: none; }
.phone .frame {
  display: block; border-radius: 15.8cqw; padding: 2.6cqw; background: var(--phone-frame);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), var(--shadow);
}
.phone img { width: 100%; height: auto; border-radius: 13.2cqw; background: #000; aspect-ratio: 720 / 1565; }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.fact { background: var(--bg); padding: 26px 24px; }
.section-alt .fact { background: var(--bg-alt); }
.fact .big { display: block; font-family: var(--font-round); font-weight: 750; font-size: 2rem; letter-spacing: -.02em; margin-bottom: 4px; }
.fact p { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.45; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1060px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 30px); }
.section-alt .card { background: var(--card); }
:root:not([data-theme="light"]) .section-alt .card { background: #161618; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-2); font-size: .98rem; line-height: 1.5; }
.icon-chip {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--tint, var(--accent)) 16%, transparent); color: var(--tint, var(--accent));
}
.icon-chip svg { width: 23px; height: 23px; }
.t-blue { --tint: var(--protein); }
.t-green { --tint: var(--carbs); }
.t-orange { --tint: var(--fats); }
.t-sky { --tint: var(--water); }
.t-red { --tint: var(--activity); }
.t-indigo { --tint: #5e5ce6; }
.t-teal { --tint: #40c8e0; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature.reverse .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; gap: clamp(12px, 2vw, 24px); }
.feature-media .phone { width: clamp(220px, 26vw, 300px); }
.feature-media.two .phone { width: clamp(170px, 20vw, 260px); }
.feature-media.two .phone:last-child { transform: translateY(40px); }
.feature h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.feature .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.list-check { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.list-check li strong { color: var(--text); }
.list-check svg { width: 22px; height: 22px; color: var(--green-text); flex: none; margin-top: 1px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .feature-media .phone { width: min(70vw, 290px); }
  .feature-media.two .phone { width: min(42vw, 230px); }
}

.mini-cards { display: grid; gap: 12px; margin-top: 28px; }
.mini-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.mini-card .icon-chip { margin: 0; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.mini-card h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.mini-card p { margin: 0; color: var(--text-2); font-size: .94rem; line-height: 1.45; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin-top: clamp(36px, 5vw, 56px); }
.step { position: relative; }
.step .badge {
  display: inline-grid; place-items: center; min-width: 46px; height: 34px; padding: 0 12px; margin-bottom: 18px;
  border-radius: 10px; background: var(--btn); color: #fff; font-weight: 700; font-family: var(--font-round); letter-spacing: .02em;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Highlight band (fridge scanner) */
.highlight-media { display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px); margin-top: clamp(40px, 6vw, 72px); }
.highlight-media .phone { width: clamp(160px, 24vw, 290px); }
.highlight-media .phone:nth-child(2) { transform: translateY(44px); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--text); font-size: .96rem; line-height: 1.5; }
.note svg { width: 20px; height: 20px; color: var(--accent-text); flex: none; margin-top: 2px; }
.note.warn { background: color-mix(in srgb, var(--fats) 13%, transparent); }
.note.warn svg { color: var(--orange-text); }
.note p { margin: 0; }

/* Goals */
.goal-card { display: flex; flex-direction: column; padding: 22px 20px; }
.goal-card h3 { font-size: 1.12rem; }
.goal-card p { font-size: .93rem; }
.goal-card .meta { margin-top: auto; padding-top: 14px; font-size: .84rem; color: var(--text-3); font-weight: 600; letter-spacing: .01em; }

/* Appearance pair */
.pair { display: flex; gap: clamp(14px, 3vw, 28px); justify-content: center; }
.pair .phone { width: clamp(150px, 22vw, 250px); }

/* Privacy */
.privacy-band { border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); padding: clamp(28px, 5vw, 64px); }
:root:not([data-theme="light"]) .privacy-band { background: #111113; }

/* CTA band (brand) */
.cta-band {
  position: relative; border-radius: var(--radius-lg); background: var(--brand-deep); color: #fff;
  padding: clamp(32px, 6vw, 72px); overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, .78); }
.cta-band .logo { width: 64px; height: 64px; margin-bottom: 26px; }
.cta-band .tiny, .cta-band .small { color: rgba(255, 255, 255, .7); }
.cta-band a:not(.btn) { color: #a7e8ff; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: .9rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: .82rem; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--field); color: var(--text); border: 1px solid var(--line-strong);
  font: inherit; font-size: 1rem; letter-spacing: -.01em; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.cta-band .input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.cta-band .input::placeholder { color: rgba(255, 255, 255, .55); }
.cta-band .field label { color: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--btn); }
.cta-band .check { color: rgba(255, 255, 255, .82); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.form-status.show { display: block; }
.form-status.ok { background: color-mix(in srgb, var(--carbs) 15%, transparent); color: var(--text); }
.form-status.err { background: color-mix(in srgb, var(--activity) 15%, transparent); color: var(--text); }
.cta-band .form-status { color: #fff; }
.form.sent .form-body { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; transition: background-color .2s; }
:root:not([data-theme="light"]) .section-alt .faq details { background: #161618; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.04rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 20px; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 44px; }
.faq-group h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 16px; }
.faq-search { position: relative; margin: 0 0 40px; }
.faq-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.faq-search .input { padding-left: 46px; min-height: 56px; font-size: 1.05rem; border-radius: 16px; }
.faq-empty { display: none; color: var(--text-2); }

/* ---------- Page header ---------- */
.page-head { padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); margin-bottom: 18px; }

/* ---------- Prose (legal pages) ---------- */
.prose { color: var(--text); }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 2.4em 0 .7em; letter-spacing: -.02em; line-height: 1.2; }
.prose h3 { font-size: 1.1rem; margin: 1.8em 0 .5em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose li { margin-bottom: .4em; }
.prose .summary-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 0 0 2em; }
.prose .summary-box ul { margin: 0; }
.prose .meta { color: var(--text-3); font-size: .92rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.prose th { color: var(--text); font-weight: 600; }
.toc { list-style: none; padding: 0; margin: 0 0 2em; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 7px 12px; border-radius: 10px; background: var(--card-2); color: var(--text-2); font-size: .88rem; font-weight: 500; }
.toc a:hover { color: var(--text); text-decoration: none; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc fieldset { border: 0; margin: 0 0 18px; padding: clamp(20px, 2.6vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.calc legend { float: left; width: 100%; padding: 0; margin: 0 0 18px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; }
.calc legend + * { clear: both; }
.calc .form-row { margin-bottom: 16px; }
.calc .form-row:last-child { margin-bottom: 0; }
.unit-input { position: relative; }
.unit-input .input { padding-right: 52px; }
.unit-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: .95rem; pointer-events: none; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: var(--card-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; min-height: 42px; padding: 6px 8px; border-radius: 10px; font-size: .92rem; font-weight: 600; color: var(--text-2); cursor: pointer; text-align: center; line-height: 1.2; transition: background-color .15s, color .15s; }
.seg input:checked + label { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
:root:not([data-theme="light"]) .seg input:checked + label { background: #48484a; }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 1px; }

.options { display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .options.cols-2 { grid-template-columns: 1fr; } }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 15px; border: 1.5px solid var(--line-strong); cursor: pointer; transition: border-color .15s, background-color .15s; }
.option label:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong)); }
.option input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.option input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.option .icon-chip { margin: 0; width: 38px; height: 38px; border-radius: 11px; flex: none; }
.option .icon-chip svg { width: 20px; height: 20px; }
.option strong { display: block; font-size: .98rem; line-height: 1.3; }
.option small { display: block; color: var(--text-2); font-size: .85rem; line-height: 1.35; margin-top: 2px; }

.result { position: sticky; top: 84px; }
@media (max-width: 960px) { .result { position: static; } }
.result-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.result-ring { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin: 6px auto 22px; }
.result-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.result-ring circle { fill: none; stroke-width: 13; }
.result-ring .track { stroke: var(--card-2); }
.result-ring .seg-p { stroke: var(--protein); }
.result-ring .seg-c { stroke: var(--carbs); }
.result-ring .seg-f { stroke: var(--fats); }
.result-ring .seg-p, .result-ring .seg-c, .result-ring .seg-f { stroke-linecap: round; transition: stroke-dasharray .7s var(--ease), stroke-dashoffset .7s var(--ease); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center .kcal { font-family: var(--font-round); font-weight: 750; font-size: clamp(2.6rem, 6vw, 3.4rem); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-center .unit { color: var(--text-2); font-weight: 600; margin-top: 6px; font-size: .95rem; }
.ring-center .cap { color: var(--text-3); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.macro { border-radius: 15px; padding: 12px 10px; text-align: center; background: color-mix(in srgb, var(--tint) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tint) 35%, transparent); }
.macro .v { display: block; font-family: var(--font-round); font-weight: 750; font-size: 1.35rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.macro .l { display: block; font-size: .78rem; color: var(--text-2); font-weight: 600; }
.macro.p { --tint: var(--protein); } .macro.c { --tint: var(--carbs); } .macro.f { --tint: var(--fats); }
.kv { display: grid; gap: 0; margin: 18px 0 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.kv .total dt, .kv .total dd { color: var(--text); font-weight: 750; }
.forecast { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--carbs) 12%, transparent); }
.forecast strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.forecast span { color: var(--text-2); font-size: .92rem; }
.result .notes { display: grid; gap: 10px; margin-top: 16px; }
.result .note { font-size: .9rem; }
.hidden { display: none !important; }
.formula { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; background: var(--card-2); border-radius: 12px; padding: 14px 16px; overflow-x: auto; color: var(--text); margin: 0 0 1em; }
.sources li { margin-bottom: .55em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 40px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--text-2); margin: 14px 0 0; max-width: 22rem; }
.site-footer h2 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .84rem; }
.footer-bottom .tools { display: flex; gap: 8px; align-items: center; }
.footer-bottom a { color: var(--text-2); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(5px); transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-phones .phone.side { transform: none; }
  .feature-media.two .phone:last-child, .highlight-media .phone:nth-child(2) { transform: none; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: grid; place-content: center; text-align: center; padding-block: 80px; }
.not-found .logo { width: 88px; height: 88px; margin: 0 auto 28px; }
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

@media print {
  .site-header, .site-footer, .mobile-menu, .btn, .hero-phones { display: none !important; }
  body { background: #fff; color: #000; }
}

.to-result { display: none; }
@media (max-width: 960px) { .to-result { display: flex; width: 100%; } }

/* ---------- v2: shorter, punchier home page ---------- */
.hero h1 { max-width: 14ch; }
.hl { color: var(--brand-green); }
:root[data-theme="light"] .hl { color: #15803d; }
.hero-note { margin: 18px 0 0; color: var(--text-3); font-size: .9rem; font-weight: 500; letter-spacing: .01em; }
@media (max-width: 480px) { .hero .btn-row .btn { width: 100%; } }

/* The three pillars use the three colours of the logo ring. */
.pillars .pillar { padding: clamp(26px, 3vw, 36px); }
.pillar h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -.02em; }
.pillar p { font-size: 1.02rem; }
.pillar .icon-chip { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 22px; }
.pillar .icon-chip svg { width: 28px; height: 28px; }
.b-green { --tint: var(--brand-green); }
.b-orange { --tint: var(--brand-orange); }
.b-sky { --tint: var(--brand-sky); }
:root[data-theme="light"] .b-green { --tint: #16a34a; }
:root[data-theme="light"] .b-orange { --tint: #d97706; }
:root[data-theme="light"] .b-sky { --tint: #0284c7; }
.pillar { border-top: 3px solid var(--tint); }

.step-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.step-list li { display: flex; gap: 14px; align-items: center; color: var(--text-2); font-size: 1.02rem; }
.step-list strong { color: var(--text); }
.step-list .badge { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--btn); color: #fff; font-family: var(--font-round); font-weight: 750; }

.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.chips svg { width: 19px; height: 19px; color: var(--accent-text); }
.center-chips { justify-content: center; }
.center-chips svg { color: var(--green-text); }

.calc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(20px, 3vw, 28px); padding: 20px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.calc-cta span { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: -.015em; }
:root:not([data-theme="light"]) .section-alt .calc-cta { background: #161618; }

.privacy-band .icon-chip { margin-inline: auto; }
.privacy-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.privacy-band .lead { margin-inline: auto; }
@media (max-width: 600px) {
  .goal-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; padding: 16px 18px; }
  .goal-card .icon-chip { grid-row: span 2; margin: 0; }
  .goal-card h3 { margin: 2px 0 2px; }
  .calc-cta .btn { width: 100%; }
}
