/* Fitnessy content pages (food pages, calculators). Same tokens as the homepage. */
:root, [data-theme="dark"] {
  --bg: #0E100D; --bg-soft: #131512; --surface: #191B18; --surface-2: #20231F; --border: #272A25;
  --text: #F3F4EF; --text-2: #A9ACA4; --muted: #787B74;
  --primary: #1D9E75; --primary-ink: #6FD3B4; --primary-tint: #13332B;
  --hero-from: #1C8C68; --hero-to: #0A3B2F; --gold: #E0AC1C; --warn: #E8A33D;
  --mp: #3FA7F5; --mc: #E0AC1C; --mf: #E5675A;
  --shadow: 0 30px 80px rgba(0, 0, 0, .5); --glow: rgba(29, 158, 117, .35); --img-bg: #000;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F2F4EF; --bg-soft: #EAEDE6; --surface: #FFFFFF; --surface-2: #F6F7F3; --border: #E3E6DF;
  --text: #151714; --text-2: #585B55; --muted: #8A8D86;
  --primary: #1D9E75; --primary-ink: #0F6E56; --primary-tint: #E1F5EE;
  --hero-from: #23B583; --hero-to: #0B6B53; --warn: #B76E00;
  --shadow: 0 24px 60px rgba(16, 40, 30, .14); --glow: rgba(29, 158, 117, .22); --img-bg: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.has-sticky { padding-bottom: 76px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }
h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -1.1px; margin: 10px 0 14px; }
h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.4px; line-height: 1.2; margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--text-2); max-width: 640px; margin: 0; }
.note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.center { text-align: center; margin-top: 26px; }
.pill { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--primary-tint); color: var(--primary-ink); font-weight: 700; font-size: 13px; }
section { padding: 34px 0; }

/* header + footer */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.theme-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.theme-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-moon, [data-theme="light"] .icon-sun { display: none; }
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 14px; margin-top: 30px; }
footer .container { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
footer a { color: var(--text-2); text-decoration: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs i { font-style: normal; opacity: .6; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 30px var(--glow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btns.big .btn { padding: 16px 26px; font-size: 17px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }

/* hero */
.page-hero { padding-top: 34px; }
.food-hero { padding-top: 28px; }
.food-grid { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: center; }
.food-photo { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: var(--img-bg); }
.food-photo img { width: 100%; height: auto; display: block; }
.brand { color: var(--text-2); font-weight: 600; margin: -6px 0 10px; }
.kcal-big { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.kcal-big b { font-size: clamp(44px, 6vw, 60px); line-height: 1; letter-spacing: -1.5px; background: linear-gradient(120deg, #23B583, #6FD3B4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kcal-big span { color: var(--text-2); font-weight: 600; }
.macro-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 10px; margin-bottom: 14px; }
.macro-chips div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px 12px; }
.macro-chips b { display: block; font-size: 20px; }
.macro-chips span { font-size: 13px; color: var(--muted); }
.macro-chips div:nth-child(1) { box-shadow: inset 3px 0 0 var(--mp); }
.macro-chips div:nth-child(2) { box-shadow: inset 3px 0 0 var(--mc); }
.macro-chips div:nth-child(3) { box-shadow: inset 3px 0 0 var(--mf); }
.summary { color: var(--text-2); margin: 0 0 18px; max-width: 560px; }

/* details */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.side { display: grid; gap: 18px; }
table.nutr { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.nutr th, table.nutr td { padding: 10px 6px; border-bottom: 1px solid var(--border); text-align: right; }
table.nutr th:first-child, table.nutr tbody th { text-align: left; font-weight: 600; }
table.nutr thead th { color: var(--muted); font-size: 13px; font-weight: 600; }
table.nutr tr.sub th { font-weight: 400; color: var(--text-2); padding-left: 18px; font-size: 14px; }
table.nutr td:last-child { color: var(--muted); width: 90px; }
.split-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.split-bar .sp, .split-legend .sp { background: var(--mp); }
.split-bar .sc, .split-legend .sc { background: var(--mc); }
.split-bar .sf, .split-legend .sf { background: var(--mf); }
.split-legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.portions, .burn { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.portions li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.portions span { color: var(--text-2); }
.burn { grid-template-columns: repeat(3, 1fr); }
.burn li { background: var(--surface-2); border-radius: 14px; padding: 12px; text-align: center; }
.burn b { display: block; font-size: 20px; }
.burn span { font-size: 13px; color: var(--muted); }
.source { margin-top: 16px; }

/* big CTA */
.cta-band { padding: 46px 0; }
.cta-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: center; border-radius: 32px; padding: 44px; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; overflow: hidden; position: relative; }
.cta-card h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.8px; margin: 14px 0 10px; }
.cta-card p { color: rgba(255, 255, 255, .85); font-size: 17.5px; margin: 0 0 16px; max-width: 520px; }
.cta-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.cta-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.cta-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.cta-points svg { width: 20px; height: 20px; flex: 0 0 20px; background: rgba(255, 255, 255, .18); border-radius: 50%; padding: 3px; }
.cta-card .btn-primary { background: #fff; color: #0B5A45; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.cta-phone { justify-self: center; width: 210px; max-width: 210px; border-radius: 38px; padding: 9px; background: #050605; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); transform: rotate(4deg); }
.cta-phone img { border-radius: 30px; width: 100%; height: auto; }
.btn-cta { margin-top: 2px; }

/* food lists */
.food-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.food-card { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.food-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.food-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--img-bg); flex: 0 0 64px; }
.food-card span { display: flex; flex-direction: column; min-width: 0; }
.food-card b { font-size: 15px; line-height: 1.3; }
.food-card small { color: var(--muted); font-size: 12.5px; }
.food-card em { font-style: normal; color: var(--primary-ink); font-weight: 700; font-size: 13.5px; }
.cat-h { margin-top: 30px; }
.cat-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-jump a { text-decoration: none; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.cat-jump small { color: var(--muted); margin-left: 4px; }

/* calculators */
.calc-card { padding: 26px; }
.calc-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.calc-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.calc-form label.wide, .calc-form button { grid-column: 1 / -1; }
.calc-form select, .calc-form input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.calc-form .inp { position: relative; display: block; }
.calc-form .inp i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; pointer-events: none; }
.calc-result:not(:empty) { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.stat { background: var(--surface-2); border-radius: 16px; padding: 14px; }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat b { font-size: 22px; }
.stat.big b { font-size: 32px; color: var(--primary-ink); }
.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); border-radius: 14px; padding: 12px 14px; margin: 8px 0; }
.warn.soft { font-size: 14px; }
.app-note { margin: 14px 0 0; font-weight: 600; color: var(--primary-ink); }
.bmi-scale { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #3FA7F5 0 14%, #1D9E75 14% 40%, #E0AC1C 40% 60%, #E5675A 60%); margin: 8px 0; }
.bmi-scale i { position: absolute; top: -5px; width: 4px; height: 22px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.calc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.calc-link { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.calc-link:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.calc-link svg { width: 30px; height: 30px; flex: 0 0 30px; color: var(--primary-ink); }
.calc-link b { display: block; font-size: 17px; }
.calc-link small { color: var(--text-2); font-size: 14px; }
.prose p { color: var(--text-2); font-size: 16.5px; }
.prose h2 { margin-top: 26px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { margin: 0 0 14px; }

/* sticky mobile CTA */
.sticky-cta { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 12px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sticky-cta[hidden] { display: none; }
.sticky-cta img { width: 36px; height: 36px; border-radius: 10px; }
.sticky-cta span { flex: 1; font-weight: 800; font-size: 15px; line-height: 1.2; }
.sticky-cta small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.sticky-cta .btn { padding: 11px 16px; font-size: 15px; }

@media (max-width: 900px) {
  .food-grid, .two-col, .cta-card { grid-template-columns: 1fr; }
  .food-photo { max-width: 300px; }
  .cta-phone { display: none; }
  .cta-card { padding: 30px 22px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hide-sm { display: none; }
  .nav-links { gap: 14px; }
  .calc-form { grid-template-columns: 1fr; }
  .macro-chips { grid-template-columns: repeat(3, 1fr); }
  .store-btns { flex-direction: column; }
  .store-btns .btn { width: 100%; }
  .burn { grid-template-columns: repeat(3, 1fr); }
  footer .container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* language switcher (globe + current language + dropdown) */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 17px; height: 17px; }
.lang-switch summary .chev { width: 14px; height: 14px; transition: transform .15s ease; opacity: .7; }
.lang-switch[open] summary .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); z-index: 40; display: grid; gap: 2px; }
.lang-menu a { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 11px; text-decoration: none; color: var(--text) !important; font-weight: 600; font-size: 15px; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a small { color: var(--muted); font-weight: 600; font-size: 12px; }
.lang-menu a[aria-current="true"] { color: var(--primary-ink) !important; }
.lang-menu svg { width: 16px; height: 16px; }
.lang-switch, details.lang-switch { background: none; border: 0; padding: 0; margin: 0; border-radius: 0; }
.lang-switch summary::after, details.lang-switch summary::after { content: none !important; display: none !important; }
