/* Kilo website — "Ink & Lime", same tokens as app/ui/theme/Theme.kt */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-medium.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-bold.ttf") format("truetype");
  font-weight: 700 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F3F4EF;
  --surface: #FFFFFF;
  --panel: #E8EAE3;
  --hero: #15171B;
  --hero-panel: #15171B;
  --hero-raised: #212328;
  --hero-track: #2A2D33;
  --on-hero: #F3F4EF;
  --on-hero-muted: #A4A8AE;
  --ink: #14161A;
  --ink-muted: #5C6169;
  --nav-inactive: #6B7078;
  --line: #E4E5DF;
  --border: #D5D7D0;
  --border-strong: #BFC2BA;
  --track: #ECEDE8;
  --lime: #C6F432;
  --lime-soft: #E3F5A8;
  --lime-tint: #F4FBD9;
  --on-lime: #14161A;
  --primary-button: #14161A;
  --on-primary-button: #FFFFFF;
  --protein: #4D7CFE;
  --carbs: #FFB21E;
  --fat: #F2557F;
  --bmr: #D9DBD3;
  --burn: #FF8A3D;
  --burn-strong: #FF5C39;
  --water: #19A7CE;
  --positive: #0B7A55;
  --warn-bg: #FFF0C7;
  --warn-text: #7A4F00;
  --warm: #B06A00;
  --tip-bg: #E3F5A8;
  --shadow: rgba(20, 22, 26, 0.10);
  --shadow-strong: rgba(20, 22, 26, 0.22);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Space Grotesk", var(--font-sans);
  --radius-xl: 40px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E0F12;
    --surface: #1A1C20;
    --panel: #141619;
    --hero: #22252B;
    --hero-panel: #17191D;
    --hero-raised: #24272C;
    --hero-track: #363A41;
    --ink: #F3F4EF;
    --ink-muted: #A4A8AE;
    --nav-inactive: #8C9097;
    --line: #2A2D33;
    --border: #3A3E45;
    --border-strong: #4F545C;
    --track: #2A2D33;
    --lime-soft: #3B4A10;
    --lime-tint: rgba(198, 244, 50, 0.09);
    --primary-button: #F3F4EF;
    --on-primary-button: #14161A;
    --protein: #6E95FF;
    --positive: #4FD39A;
    --warn-bg: #3A2E0A;
    --warn-text: #FFD27A;
    --warm: #FFB21E;
    --tip-bg: #26300C;
    --shadow: rgba(0, 0, 0, 0.45);
    --shadow-strong: rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0F12;
  --surface: #1A1C20;
  --panel: #141619;
  --hero: #22252B;
  --hero-panel: #17191D;
  --hero-raised: #24272C;
  --hero-track: #363A41;
  --ink: #F3F4EF;
  --ink-muted: #A4A8AE;
  --nav-inactive: #8C9097;
  --line: #2A2D33;
  --border: #3A3E45;
  --border-strong: #4F545C;
  --track: #2A2D33;
  --lime-soft: #3B4A10;
  --lime-tint: rgba(198, 244, 50, 0.09);
  --primary-button: #F3F4EF;
  --on-primary-button: #14161A;
  --protein: #6E95FF;
  --positive: #4FD39A;
  --warn-bg: #3A2E0A;
  --warn-text: #FFD27A;
  --warm: #FFB21E;
  --tip-bg: #26300C;
  --shadow: rgba(0, 0, 0, 0.45);
  --shadow-strong: rgba(0, 0, 0, 0.6);
}

:root:lang(en) {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
:lang(en) h1, :lang(en) .section h2 { font-family: var(--font-num); }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
small { font-size: inherit; }
[hidden] { display: none !important; }
.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; }
:focus-visible { outline: 2.5px solid var(--protein); outline-offset: 3px; border-radius: 8px; }

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.muted { color: var(--ink-muted); }
.pos { color: var(--positive); }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 12px;
  background: var(--primary-button); color: var(--on-primary-button);
}
.skip:focus { top: 12px; }

section[id] { scroll-margin-top: 76px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-xl { height: 64px; padding: 0 34px; font-size: 18px; }
.btn-lg .ico, .btn-xl .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { box-shadow: 0 10px 30px rgba(198, 244, 50, 0.28); }
.btn-ink { background: var(--primary-button); color: var(--on-primary-button); }
.btn-ghost { background: transparent; color: var(--on-hero); box-shadow: inset 0 0 0 1.5px rgba(243, 244, 239, 0.26); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(243, 244, 239, 0.6); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav[data-scrolled] { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: #14161A; color: var(--lime);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: var(--font-num); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-muted);
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn .ico { width: 18px; height: 18px; }
.lang-link {
  height: 40px; min-width: 40px; padding: 0 12px; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.lang-link:hover { border-color: var(--border-strong); }
.ico-sun { display: none; }
:root[data-eff="dark"] .ico-sun { display: block; }
:root[data-eff="dark"] .ico-moon { display: none; }

/* ---------- Hero ---------- */

.hero { padding-top: 8px; }
.hero-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px;
  min-height: 660px; padding: 72px 56px 0;
  border-radius: var(--radius-xl);
  background: var(--hero-panel); color: var(--on-hero);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.hero-copy { align-self: center; padding-bottom: 72px; position: relative; z-index: 2; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px 0 12px; border-radius: 16px;
  background: rgba(243, 244, 239, 0.07); box-shadow: inset 0 0 0 1px rgba(243, 244, 239, 0.14);
  font-size: 13px; color: var(--on-hero);
}
.pill .num { color: var(--on-hero-muted); }
.pill-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--lime); box-shadow: 0 0 0 0 rgba(198, 244, 50, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 244, 50, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(198, 244, 50, 0); } }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(46px, 6.4vw, 86px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--lime); }
:lang(en) .hero h1 { font-size: clamp(42px, 5.4vw, 76px); letter-spacing: -0.04em; }
.lede { text-wrap: pretty; margin-top: 24px; max-width: 24em; font-size: 18px; line-height: 1.75; color: var(--on-hero-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 28px; font-size: 14px; color: var(--on-hero-muted); }
.hero-meta li + li::before { content: "·"; margin: 0 10px; opacity: .6; }

.hero-visual { position: relative; display: flex; justify-content: flex-end; align-items: flex-start; height: 588px; align-self: end; padding-right: 8px; }
.hero-visual::before, .hero-visual::after {
  content: ""; position: absolute; left: calc(100% - 178px); top: 300px; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
}
.hero-visual::before { width: 620px; height: 620px; box-shadow: inset 0 0 0 1px rgba(243, 244, 239, 0.07); }
.hero-visual::after { width: 440px; height: 440px; box-shadow: inset 0 0 0 1px rgba(198, 244, 50, 0.18); }

/* Phone mockup: authored at 340×720, scaled with --ps */
.phone-wrap { --ps: 1; position: relative; z-index: 1; width: calc(340px * var(--ps)); height: calc(720px * var(--ps)); flex: none; }
.phone {
  width: 340px; height: 720px; padding: 10px;
  transform: scale(var(--ps)); transform-origin: top left;
  border-radius: 54px; background: #0A0B0D;
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 3px #1D1F23;
}
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 44px; background: var(--bg); color: var(--ink);
  padding: 22px 12px 0; font-size: 13px; line-height: 1.4;
}
.screen .ico { width: 18px; height: 18px; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 12px; }
.app-date { display: block; font-size: 11px; color: var(--ink-muted); }
.app-title { display: block; font-size: 24px; letter-spacing: -0.02em; }
.app-head-btns { display: flex; gap: 8px; }
.app-round { width: 36px; height: 36px; border-radius: 18px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.app-round-ink { background: #14161A; color: var(--lime); }
.ico-k { width: 20px; height: 20px; }

.app-hero { background: var(--hero); color: var(--on-hero); border-radius: 24px; padding: 14px 16px 16px; }
.app-hero-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--on-hero-muted); }
.app-hero-top span:last-child { display: inline-flex; align-items: center; }
.app-hero-top .ico { width: 14px; height: 14px; }
.app-hero-main { display: flex; align-items: center; gap: 16px; margin: 10px 0 14px; }
.ring { position: relative; width: 116px; height: 116px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: var(--hero-track); }
.ring-fill { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 39; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label span { font-size: 10px; color: var(--on-hero-muted); }
.ring-label b { font-size: 32px; font-weight: 600; line-height: 1.12; }
.app-kv { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.app-kv li { display: flex; flex-direction: column; }
.app-kv span { font-size: 10.5px; color: var(--on-hero-muted); display: flex; align-items: center; }
.app-kv b { font-size: 18px; font-weight: 600; line-height: 1.25; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; flex: none; }
.dot-sm { width: 6px; height: 6px; }
.dot-lime { background: var(--lime); }
.dot-burn { background: var(--burn-strong); }
.dot-ring { box-shadow: inset 0 0 0 1.5px var(--on-hero-muted); }
.app-burn .dot-burn { background: var(--burn); }
.app-hero-rule { height: 1px; background: var(--hero-track); margin-bottom: 12px; }
.app-burn-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.app-burn-row > span:first-child { font-size: 11px; color: var(--on-hero-muted); display: inline-flex; align-items: center; }
.app-burn-row b { font-size: 17px; font-weight: 600; }
.app-burn-row small { font-size: 10.5px; color: var(--on-hero-muted); margin-left: 5px; }
.seg { display: flex; gap: 2px; height: 8px; margin-top: 8px; border-radius: 4px; overflow: hidden; background: var(--hero-track); }
.seg i { display: block; height: 100%; }
.seg-bmr { background: var(--bmr); }
.seg-act { background: var(--burn); }
.seg-train { background: var(--burn-strong); }

.app-card { background: var(--surface); border-radius: 20px; padding: 13px 16px; margin-top: 10px; }
.app-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-macros span { display: block; font-size: 11px; color: var(--ink-muted); }
.app-macros b { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; }
.app-macros small, .macros small { font-size: .68em; font-weight: 500; color: var(--ink-muted); margin-left: 3px; }
.bar { display: block; height: 5px; border-radius: 3px; background: var(--track); margin-top: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; }
.app-todo-head { display: flex; justify-content: space-between; align-items: baseline; }
.app-todo-head b { font-size: 14px; }
.app-todo-head span { font-size: 12px; color: var(--ink-muted); }
.app-todo ul { margin-top: 4px; }
.app-todo li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.app-todo li + li { border-top: 1px solid var(--line); }
.tick {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 2px var(--border);
  display: flex; align-items: center; justify-content: center;
}
.tick.on { background: var(--lime); box-shadow: none; color: var(--on-lime); }
.tick .ico { width: 13px !important; height: 13px !important; stroke-width: 3.2; }
.app-todo .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-todo .t b { font-size: 13px; font-weight: 500; }
.app-todo .t small { font-size: 10.5px; color: var(--ink-muted); }
.app-todo .v { font-size: 13px; font-weight: 600; white-space: nowrap; }
.app-todo .v small { font-size: 10px; color: var(--ink-muted); margin-left: 2px; font-weight: 500; }
.app-start { height: 28px; padding: 0 13px; border-radius: 14px; background: var(--primary-button); color: var(--on-primary-button); font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; }

.app-aibar {
  position: absolute; left: 12px; right: 12px; bottom: 78px; height: 46px;
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  border-radius: 23px; font-size: 13px; color: var(--ink-muted);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px var(--shadow), inset 0 0 0 1px var(--line);
}
.app-aibar span { flex: 1; }
.app-aibar .ico:first-child { color: var(--ink); }
.app-nav {
  position: absolute; left: 0; right: 0; bottom: 0; height: 68px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start;
  padding-top: 9px; background: var(--surface); border-top: 1px solid var(--line);
}
.app-nav > span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 500; color: var(--nav-inactive); }
.app-nav > span.on { color: var(--ink); }
.app-nav .ico { width: 20px; height: 20px; }
.app-nav-ai i { width: 46px; height: 46px; margin-top: -19px; border-radius: 16px; background: var(--lime); color: var(--on-lime); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px var(--shadow-strong); }
.app-nav-ai .ico { width: 22px; height: 22px; }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 20px; white-space: nowrap;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32), inset 0 0 0 1px var(--line);
  animation: bob 6s ease-in-out infinite;
}
/* Both cards sit in the gap left of the phone and overlap it by ~28px (bezel + screen
   padding only). Their heights line up with the short lines of the copy (h1 line 2, the
   buttons), so they never touch the long first heading line or the paragraph. */
.float-a { right: calc(340px - 28px + 8px); top: 206px; }
.float-b { right: calc(340px - 28px + 8px); top: 404px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; }
.float-ico-ink { background: #14161A; color: var(--lime); }
.float-ico-lime { background: var(--lime); color: var(--on-lime); }
.float-t { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.float-t b { font-size: 14px; font-weight: 600; }
.float-t small { font-size: 12px; color: var(--ink-muted); }
.float-v { white-space: nowrap; }
.float-v b { font-size: 20px; font-weight: 600; }
.float-v small { font-size: 12px; color: var(--ink-muted); margin-left: 3px; }

/* ---------- Facts ---------- */

.facts { padding: 48px 0 8px; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-row li { padding: 4px 24px; display: flex; flex-direction: column; gap: 2px; }
.facts-row li + li { border-left: 1px solid var(--border); }
.facts-row b { font-size: clamp(38px, 4.6vw, 58px); font-weight: 700; line-height: 1.05; }
.facts-row span { font-size: 15px; color: var(--ink-muted); }

/* ---------- Sections ---------- */

.section { padding: 112px 0 0; }
.section-tight { padding-top: 96px; }
.section-head { margin-bottom: 44px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 14px 0 12px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600;
}
.eyebrow .ico { width: 16px; height: 16px; }
.eyebrow-dark { background: rgba(243, 244, 239, 0.07); box-shadow: inset 0 0 0 1px rgba(243, 244, 239, 0.14); color: var(--on-hero); }
.section h2 { font-size: clamp(36px, 5vw, 62px); letter-spacing: -0.03em; line-height: 1.08; }
.eyebrow + h2 { margin-top: 20px; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split-rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split-rev .split-copy { order: 2; }

/* ---------- AI demo ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px 0 14px; border-radius: 23px;
  border: none; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border);
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.tab .ico { width: 18px; height: 18px; }
.tab:hover { box-shadow: inset 0 0 0 1.5px var(--ink-muted); }
.tab[aria-selected="true"] { background: var(--primary-button); color: var(--on-primary-button); box-shadow: none; }
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.ticks .ico { width: 22px; height: 22px; padding: 4px; border-radius: 11px; background: var(--lime); color: var(--on-lime); stroke-width: 3; }

.chat-shell {
  display: flex; flex-direction: column;
  height: 620px; border-radius: 32px; overflow: hidden;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.chat-head { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 22px; flex: none; }
.chat-head b { font-size: 18px; }
.chat-model {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 12px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; color: var(--ink-muted);
}
.chat-model i { width: 6px; height: 6px; border-radius: 3px; background: #2DB36B; }
.chat { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 6px 22px 16px; }
.chat-input {
  flex: none; display: flex; align-items: center; gap: 4px;
  height: 54px; margin: 0 16px 16px; padding: 0 6px; border-radius: 27px;
  background: var(--surface); box-shadow: 0 6px 22px var(--shadow);
  color: var(--ink);
}
.chat-plus, .chat-cam { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.chat-ph { flex: 1; font-size: 15px; color: var(--ink-muted); }

.msg { display: flex; }
.msg.me { align-self: flex-end; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 360px; }
.msg.me time { font-size: 11px; color: var(--ink-muted); }
.bubble { text-wrap: pretty; padding: 10px 15px; border-radius: 18px 18px 4px 18px; background: var(--primary-button); color: var(--on-primary-button); font-size: 15px; line-height: 1.55; }
.photo { width: 176px; height: 124px; border-radius: 18px; background: #2B2E33; display: flex; align-items: center; justify-content: center; }
.plate { position: relative; width: 104px; height: 104px; border-radius: 52px; background: #ECE8DF; }
.plate i { position: absolute; border-radius: 50%; }
.p-rice { left: 14px; top: 18px; width: 40px; height: 40px; background: #FBFAF6; box-shadow: inset 0 0 0 2px #E2DED3; }
.p-meat { left: 50px; top: 26px; width: 42px; height: 42px; background: #B4532E; }
.p-veg { left: 24px; top: 58px; width: 34px; height: 30px; border-radius: 15px !important; background: #4E8B3B; }

.msg.ai { gap: 10px; align-items: flex-start; }
.ai-av { width: 32px; height: 32px; border-radius: 10px; flex: none; background: #14161A; color: var(--lime); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ai-av .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.rec {
  flex: 1; min-width: 0; max-width: 430px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px; border-radius: 4px 20px 20px 20px; background: var(--surface);
}
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rec-head > b { font-size: 15px; }
.rec-head > b span { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.badge { height: 24px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge .ico { width: 12px; height: 12px; stroke-width: 3.2; }
.badge-wait { background: var(--warn-bg); color: var(--warn-text); }
.badge-done { background: var(--lime-soft); color: var(--ink); }
.rec[data-state="pending"] .badge-done, .rec[data-state="done"] .badge-wait { display: none; }
.rec-items { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.rec-items li { display: flex; justify-content: space-between; gap: 12px; }
.rec-items em { font-style: normal; font-size: 13px; color: var(--ink-muted); margin-left: 4px; }
.rec-items b { font-weight: 500; }
.rec-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.rec-macros { font-size: 12px; color: var(--ink-muted); }
.rec-macros b { color: var(--ink); font-weight: 600; margin: 0 8px 0 2px; }
.rec-macros b:last-child { margin-right: 0; }
.rec-total { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.rec-total b { font-size: 19px; font-weight: 600; color: var(--ink); }
.rec-confirm {
  height: 44px; border: none; border-radius: 14px; cursor: pointer;
  background: var(--primary-button); color: var(--on-primary-button);
  font-size: 15px; font-weight: 600;
  transition: transform .15s ease;
}
.rec-confirm:active { transform: scale(.98); }
.rec-done { display: none; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; font-size: 13px; color: var(--ink-muted); }
.rec-done button {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 14px; border-radius: 18px; border: none; cursor: pointer;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); font-size: 13px; font-weight: 500;
}
.rec-done .ico { width: 15px; height: 15px; }
.rec[data-state="done"] .rec-confirm { display: none; }
.rec[data-state="done"] .rec-done { display: flex; }
.rec-weight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rec-weight > div { padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.rec-weight span { display: block; font-size: 12px; color: var(--ink-muted); }
.rec-weight b { display: block; font-size: 22px; font-weight: 600; line-height: 1.3; }
.rec-weight small { font-size: 12px; font-weight: 500; color: var(--ink-muted); margin-left: 2px; }
.rec-text { font-size: 15px; line-height: 1.7; }
.rec-orm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.rec-orm span { display: block; font-size: 12px; color: var(--ink-muted); }
.rec-orm b { font-size: 20px; font-weight: 600; }
.rec-orm small { font-size: 12px; font-weight: 500; color: var(--ink-muted); margin-left: 3px; }
.rec-orm em { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 6px; }
.rec-orm svg { width: 120px; height: 40px; flex: none; color: var(--ink); }
.orm-dot { fill: var(--lime); stroke: var(--ink); stroke-width: 2; }

.typing { display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 4px 18px 18px 18px; background: var(--surface); }
.typing i { width: 6px; height: 6px; border-radius: 3px; background: var(--ink-muted); animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.msg.enter { animation: msgIn .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Today bento ---------- */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border-radius: 28px; padding: 26px 26px 24px; min-width: 0; }
.tile h3 { font-size: 17px; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.tile-head > span { font-size: 14px; color: var(--ink-muted); }
.tile-eq { grid-column: 1 / 9; }
.tile-todo { grid-column: 9 / 13; grid-row: 1 / 3; }
.tile-macros { grid-column: 1 / 5; }
.tile-meals { grid-column: 5 / 9; }
.tile-tip { grid-column: 1 / 13; }

.tile-ink { background: var(--hero); color: var(--on-hero); }
.tile-ink h3 { font-size: 15px; font-weight: 500; color: var(--on-hero-muted); }
.eq { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; margin-top: 22px; }
.eq-term span { display: flex; align-items: center; font-size: 13px; color: var(--on-hero-muted); }
.eq-term b { display: block; font-size: clamp(34px, 4vw, 50px); font-weight: 600; line-height: 1.12; margin-top: 2px; }
.eq-op { font-style: normal; font-family: var(--font-num); font-size: 30px; line-height: 1; color: var(--on-hero-muted); padding-bottom: 10px; }
.eq-result b { color: var(--lime); }
.eq-result small { font-size: 15px; font-weight: 500; color: var(--on-hero-muted); margin-left: 6px; letter-spacing: 0; }
.eq-burn { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hero-track); }
.eq-burn .app-burn-row > span:first-child { font-size: 13px; }
.eq-burn .app-burn-row b { font-size: 22px; }
.eq-burn .app-burn-row small { font-size: 13px; }
.seg-lg { height: 12px; border-radius: 6px; margin-top: 12px; }
.seg-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--on-hero-muted); }
.seg-legend li { display: inline-flex; align-items: center; }
.seg-legend b { color: var(--on-hero); font-weight: 600; margin-left: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }

.tile-todo { display: flex; flex-direction: column; }
.todo { flex: 1; display: flex; flex-direction: column; }
.todo li { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.todo li + li { border-top: 1px solid var(--line); }
.todo .tick { width: 24px; height: 24px; }
.todo .t { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.cups { display: flex; gap: 3px; margin-top: 6px; }
.cups i { width: 16px; height: 5px; border-radius: 3px; background: var(--track); }
.cups i.on { background: var(--water); }
.todo b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.todo b small { font-size: 12px; font-weight: 500; color: var(--ink-muted); margin-left: 3px; letter-spacing: 0; }
.todo b.muted { color: var(--ink-muted); font-weight: 500; }

.macros { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.macros span { display: block; font-size: 13px; color: var(--ink-muted); }
.macros b { display: block; font-size: 22px; font-weight: 600; line-height: 1.3; }
.macros .bar { height: 6px; margin-top: 6px; }

.meals { display: flex; flex-direction: column; margin-top: 10px; }
.meals li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 124px; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; }
:lang(en) .meals li { grid-template-columns: 70px minmax(0, 1fr) 148px; }
.meals .bar { height: 8px; border-radius: 4px; margin: 0; }
.meals .bar > i { background: var(--ink); }
.meals li.over .bar > i { background: var(--burn); }
.meals .bar-dash { background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 11px); }
.meals b { text-align: right; font-weight: 600; white-space: nowrap; }
.meals b small { font-size: 12px; font-weight: 500; color: var(--ink-muted); margin-left: 2px; }
.meals li.next b { color: var(--ink-muted); font-weight: 500; }

.tile-tip { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--tip-bg); }
.tip-ico { width: 42px; height: 42px; border-radius: 13px; flex: none; background: #14161A; color: var(--lime); display: flex; align-items: center; justify-content: center; }
.tile-tip p { font-size: 17px; line-height: 1.6; }
.tile-tip b { font-weight: 700; }

/* ---------- Training ---------- */

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-top: 36px; }
.specs > div { padding: 14px 0; border-top: 1px solid var(--border); }
.specs dt { font-size: 13px; color: var(--ink-muted); }
.specs dd { margin-top: 3px; font-size: 16px; font-weight: 500; }
.specs dd > span { white-space: nowrap; }

.workout {
  width: 100%; max-width: 460px; justify-self: center;
  padding: 14px; border-radius: 34px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.wo-head { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 2px 0 0; }
.wo-btn { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.wo-title { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.35; }
.wo-title b { font-size: 15px; }
.wo-title span { font-size: 13px; color: var(--ink-muted); }
.wo-end { height: 38px; padding: 0 16px; border-radius: 19px; background: var(--primary-button); color: var(--on-primary-button); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; }
.wo-progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 6px 4px 12px; }
.wo-progress i { height: 4px; border-radius: 2px; background: var(--border); }
.wo-progress i.on { background: var(--ink); }
.wo-card { padding: 18px 16px 8px; border-radius: 24px; background: var(--surface); }
.wo-ex-name { display: flex; align-items: baseline; gap: 8px; }
.wo-ex-name b { font-size: 22px; }
.wo-ex-name span { font-size: 13px; color: var(--ink-muted); }
.wo-tags { display: flex; gap: 6px; margin-top: 8px; }
.wo-tags span { height: 24px; padding: 0 9px; border-radius: 12px; background: var(--bg); font-size: 12px; display: inline-flex; align-items: center; }
.wo-pr { display: flex; align-items: center; gap: 8px; height: 38px; margin-top: 12px; padding: 0 12px; border-radius: 12px; background: var(--lime); color: var(--on-lime); font-size: 13px; font-weight: 500; animation: msgIn .35s ease both; }
.wo-pr .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.wo-pr b { font-weight: 700; }
.sets { margin-top: 10px; }
.set-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 64px 56px 46px; align-items: center; height: 46px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.set-row > span:nth-child(1), .set-row > span:nth-child(3), .set-row > span:nth-child(4), .set-row > span:nth-child(5) { text-align: center; display: flex; justify-content: center; }
.set-row > span:nth-child(2) { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.set-th { height: 30px; border-top: none; font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.set-th > span:nth-child(2) { font-size: 12px; }
.set-row.warm > span:first-child { color: var(--warm); font-size: 13px; }
.set-row.active { background: var(--lime-tint); border-radius: 14px; border-top-color: transparent; margin: 0 -8px; padding: 0 8px; height: 54px; }
.set-row.active + .set-row { border-top-color: transparent; }
.set-row:not(.done):not(.active):not(.set-th) > span:nth-child(3),
.set-row:not(.done):not(.active):not(.set-th) > span:nth-child(4) { color: var(--ink-muted); font-weight: 500; }
.set-check {
  width: 32px; height: 32px; padding: 0; border: none; border-radius: 10px; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 2px var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; color: transparent;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.set-check .ico { width: 16px; height: 16px; stroke-width: 3.2; }
.set-check:hover { box-shadow: inset 0 0 0 2px var(--ink-muted); }
.set-check:active { transform: scale(.9); }
.set-row.active .set-check { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface); }
.set-row.done .set-check { background: var(--lime); box-shadow: none; color: var(--on-lime); }

.rest { margin-top: 12px; padding: 16px 18px; border-radius: 24px; background: var(--hero); color: var(--on-hero); }
.rest-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rest-label { display: block; font-size: 13px; color: var(--on-hero-muted); }
.rest-time { display: flex; align-items: baseline; gap: 6px; }
.rest-time b { font-size: 44px; font-weight: 600; line-height: 1.05; color: var(--lime); }
.rest-time small { font-size: 14px; color: var(--on-hero-muted); }
.rest[data-over] .rest-time b { color: var(--on-hero); }
.rest-btns { display: flex; gap: 8px; }
.rest-btns button {
  height: 44px; min-width: 52px; padding: 0 12px; border: none; border-radius: 14px; cursor: pointer;
  background: var(--hero-track); color: var(--on-hero); font-size: 14px; font-weight: 600;
}
.rest-btns button:active { transform: scale(.96); }
.rest-btns .rest-skip { background: var(--on-hero); color: #14161A; font-weight: 500; }
.rest-bar { height: 6px; margin-top: 14px; border-radius: 3px; background: var(--hero-track); overflow: hidden; }
.rest-bar i { display: block; height: 100%; border-radius: 3px; background: var(--lime); transition: width .95s linear; }

.orm-strip {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 32px;
  margin-top: 56px; padding: 26px 28px 20px; border-radius: 28px; background: var(--surface);
}
.orm-meta { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; }
.orm-meta span { font-size: 13px; color: var(--ink-muted); }
.orm-meta b { font-size: 44px; font-weight: 600; line-height: 1.15; }
.orm-meta small { font-size: 16px; font-weight: 500; color: var(--ink-muted); margin-left: 4px; }
.orm-meta em { font-style: normal; font-size: 14px; font-weight: 600; }
.orm-chart { width: 100%; height: 120px; display: block; }
.orm-weeks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: 8px; font-size: 12px; color: var(--ink-muted); text-align: center; }
.orm-weeks .now { color: var(--ink); font-weight: 700; }

/* ---------- Body ---------- */

.body-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile-weight { grid-column: 1 / 8; grid-row: 1 / 3; display: flex; flex-direction: column; }
.tile-comp { grid-column: 8 / 13; }
.tile-sources { grid-column: 8 / 13; }
.weight-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.weight-now span { display: block; font-size: 14px; color: var(--ink-muted); }
.weight-now b { display: block; font-size: 48px; font-weight: 600; line-height: 1.1; }
.weight-now small { font-size: 17px; font-weight: 500; color: var(--ink-muted); margin-left: 4px; }
.seg-switch { display: inline-flex; padding: 4px; border-radius: 13px; background: var(--bg); }
.seg-switch button {
  height: 36px; padding: 0 14px; border: none; border-radius: 10px; cursor: pointer;
  background: transparent; font-size: 14px; color: var(--ink-muted);
}
.seg-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px var(--shadow); }
.chart { position: relative; flex: 1; min-height: 240px; margin-top: 18px; touch-action: pan-y; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .ylab, .chart .xlab { fill: var(--ink-muted); font-size: 12px; font-family: var(--font-num); }
.chart .pt { fill: var(--border-strong); }
.chart .trend { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .last { fill: var(--lime); stroke: var(--ink); stroke-width: 2; }
.chart .cursor { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .cursor-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.chart-tip {
  position: absolute; top: 0; z-index: 2; pointer-events: none; white-space: nowrap;
  padding: 7px 10px; border-radius: 10px; background: #14161A; color: #F3F4EF;
  font-size: 12px; line-height: 1.4; box-shadow: 0 8px 20px var(--shadow);
}
.chart-tip b { font-family: var(--font-num); font-size: 14px; }
.chart-legend { display: flex; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--ink-muted); }
.chart-legend li { display: inline-flex; align-items: center; gap: 7px; }
.lg-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--border-strong); }
.lg-line { width: 18px; height: 3px; border-radius: 2px; background: var(--ink); }
.weight-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.weight-stats dt { font-size: 12px; color: var(--ink-muted); }
.weight-stats dd { margin-top: 3px; font-size: 19px; font-weight: 600; }

.src { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-muted); }
.src .ico { width: 14px; height: 14px; }
.comp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.comp > div { padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.comp dt { font-size: 12px; color: var(--ink-muted); }
.comp dd { margin-top: 2px; font-size: 20px; font-weight: 600; white-space: nowrap; }
.comp small { font-size: 12px; font-weight: 500; color: var(--ink-muted); margin-left: 3px; letter-spacing: 0; }

.sources li { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.sources li + li { border-top: 1px solid var(--line); }
.src-n { width: 26px; height: 26px; border-radius: 8px; flex: none; background: var(--bg); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.src-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.src-t b { font-size: 15px; font-weight: 500; }
.src-t small { font-size: 12px; color: var(--ink-muted); }
.src-on { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--positive); white-space: nowrap; }
.src-on::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.sources-note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; color: var(--ink-muted); }

/* ---------- Privacy ---------- */

.panel-ink { padding: 64px 56px 52px; border-radius: var(--radius-xl); background: var(--hero-panel); color: var(--on-hero); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.panel-ink h2 { color: var(--on-hero); }
.privacy-top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: end; }
.privacy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.privacy li { display: flex; flex-direction: column; padding: 18px 18px 20px; border-radius: 20px; background: var(--hero-raised); }
.pv-ico { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px; background: var(--lime); color: var(--on-lime); display: flex; align-items: center; justify-content: center; }
.privacy b { font-size: 17px; }
.privacy small { font-size: 13px; color: var(--on-hero-muted); margin-top: 2px; }
.providers { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--hero-track); }
.providers h3 { font-size: 14px; font-weight: 500; color: var(--on-hero-muted); margin-bottom: 14px; }
.providers ul { display: flex; flex-wrap: wrap; gap: 8px; }
.providers li { height: 38px; padding: 0 15px; border-radius: 19px; display: inline-flex; align-items: center; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(243, 244, 239, 0.18); }
.providers li.any { background: var(--lime); color: var(--on-lime); box-shadow: none; font-weight: 600; }

/* ---------- More ---------- */

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.more li { display: flex; flex-direction: column; padding: 22px 24px 24px; border-radius: 24px; background: var(--surface); }
.more-ico { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.more-ico .ico { width: 22px; height: 22px; }
.more b { font-size: 17px; }
.more small { font-size: 14px; color: var(--ink-muted); margin-top: 2px; }

/* ---------- Download ---------- */

.panel-lime {
  display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap;
  padding: 56px; border-radius: var(--radius-xl); background: var(--lime); color: #14161A;
}
.panel-lime h2 { color: #14161A; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 28px; }
.dl-meta dt { font-size: 13px; color: rgba(20, 22, 26, 0.68); }
.dl-meta dd { margin-top: 2px; font-size: 17px; font-weight: 600; }
.panel-lime .btn-ink { background: #14161A; color: #F3F4EF; }
.panel-lime .btn-ink:hover { box-shadow: 0 14px 30px rgba(20, 22, 26, 0.28); }

/* ---------- Beta signup ---------- */

.beta-copy { flex: 1 1 320px; }
.beta-tag {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; margin-bottom: 18px;
  border-radius: 15px; background: rgba(20, 22, 26, 0.08); font-size: 13px; font-weight: 600;
}
.beta-tag .pill-dot { background: #14161A; animation: none; box-shadow: 0 0 0 3px rgba(20, 22, 26, 0.12); }
.beta-form { flex: 1 1 380px; max-width: 480px; }
.beta-field {
  display: flex; align-items: center; gap: 6px; height: 64px; padding: 6px 6px 6px 24px;
  border-radius: 32px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(20, 22, 26, 0.12);
}
.beta-field:focus-within { box-shadow: 0 10px 30px rgba(20, 22, 26, 0.12), 0 0 0 3px #14161A; }
.beta-field input {
  flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent;
  font: inherit; font-size: 17px; color: #14161A;
}
.beta-field input::placeholder { color: #6B7078; }
.beta-field .btn { height: 52px; padding: 0 22px; background: #14161A; color: #F3F4EF; flex: none; }
.beta-field .btn .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.beta-field .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.beta-status { min-height: 24px; margin-top: 12px; padding-left: 24px; font-size: 15px; font-weight: 600; }
.beta-status:empty { display: none; }
.beta-status[data-tone="error"] { color: #8A1C0A; }
.beta-note { margin-top: 10px; padding-left: 24px; font-size: 13px; color: rgba(20, 22, 26, 0.68); }
.beta-form[data-done] .beta-field { box-shadow: none; background: rgba(255, 255, 255, 0.55); }
.beta-form[data-done] .beta-field .btn { background: transparent; color: #14161A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.footer { margin-top: 112px; padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.brand-mark-lg { width: 52px; height: 52px; border-radius: 16px; }
.brand-mark-lg svg { width: 36px; height: 36px; }
.footer-word { display: block; font-family: var(--font-num); font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; }
.footer-etym { font-family: var(--font-num); font-size: 14px; color: var(--ink-muted); }
.footer-etym b { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 32px; font-size: 12px; color: var(--ink-muted); }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

/* Below 1200px (1280px for the longer English copy) the floating cards would run
   into the heading or the buttons. */
@media (max-width: 1199px) {
  .float { display: none; }
}
@media (max-width: 1279px) {
  :lang(en) .float { display: none; }
}

@media (max-width: 1079px) {
  .hero-panel { grid-template-columns: minmax(0, 1fr) 340px; padding: 56px 40px 0; gap: 24px; }
  .split, .split-rev { gap: 40px; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile-eq, .tile-tip { grid-column: 1 / -1; }
  .tile-todo { grid-column: 1 / 4; grid-row: auto / span 2; }
  .tile-macros, .tile-meals { grid-column: 4 / 7; }
  .body-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-weight { grid-column: 1 / -1; grid-row: auto; }
  .tile-comp { grid-column: 1 / 2; }
  .tile-sources { grid-column: 2 / 3; }
  .comp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-top { grid-template-columns: 1fr; gap: 36px; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 859px) {
  .nav-links { display: none; }
  .hero-panel { grid-template-columns: 1fr; padding: 48px 32px 0; min-height: 0; }
  .hero-copy { padding-bottom: 8px; }
  .hero-visual { height: 520px; margin-top: 24px; justify-content: center; padding-right: 0; }
  .hero-visual::before, .hero-visual::after { left: 50%; }
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev .split-copy { order: 0; }
  .workout { justify-self: stretch; max-width: none; }
  .chat-shell { height: 600px; }
  .orm-strip { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 16px; }
  .orm-meta { grid-row: auto; }
}

@media (max-width: 639px) {
  :root { --gutter: 16px; --radius-xl: 28px; }
  .hero { padding-top: 4px; }
  .hero-panel { padding: 36px 22px 0; }
  .hero h1 { margin-top: 22px; }
  .lede { font-size: 16px; margin-top: 18px; }
  .br-wide { display: none; }
  .cta-row { margin-top: 28px; }
  .cta-row .btn { flex: 1 1 auto; }
  .hero-visual { height: 440px; margin-top: 20px; }
  .hero-visual::before { width: 460px; height: 460px; top: 240px; }
  .hero-visual::after { width: 320px; height: 320px; top: 240px; }
  .phone-wrap { --ps: .86; }
  .float { display: none; }
  .facts { padding-top: 36px; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .facts-row li { padding: 2px 16px; }
  .facts-row li:nth-child(3) { border-left: none; }
  .facts-row span { font-size: 14px; }
  .section { padding-top: 80px; }
  .section-tight { padding-top: 72px; }
  .section-head { margin-bottom: 28px; }
  .tabs { margin: 28px 0 22px; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { height: 44px; padding: 0 12px; font-size: 15px; justify-content: center; }
  .chat-shell { height: 640px; border-radius: 26px; }
  .chat { padding: 4px 14px 14px; }
  .chat-head { padding: 0 16px; }
  .chat-input { margin: 0 12px 12px; }
  .msg.me { max-width: 86%; }
  .rec { padding: 13px 14px; }
  .tile { padding: 20px 18px; border-radius: 24px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile-eq, .tile-todo, .tile-macros, .tile-meals, .tile-tip { grid-column: 1 / -1; grid-row: auto; }
  .eq { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0; margin-top: 12px; }
  .eq-term { grid-column: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; }
  .eq-op { grid-column: 1; align-self: center; padding: 0; font-size: 22px; }
  .eq-term b { font-size: 30px; margin: 0; }
  .eq-term:not(:first-child) { border-top: 1px solid var(--hero-track); }
  .eq-result b { font-size: 36px; }
  .eq-burn { margin-top: 12px; }
  .tile-tip { align-items: flex-start; padding: 18px; }
  .tile-tip p { font-size: 16px; }
  .specs { grid-template-columns: 1fr; margin-top: 28px; }
  .specs > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 12px 0; }
  .specs dd { margin: 0; font-size: 15px; }
  :lang(en) .specs > div { grid-template-columns: 92px minmax(0, 1fr); }
  .workout { padding: 10px; border-radius: 28px; }
  .wo-card { padding: 16px 12px 6px; }
  .set-row { grid-template-columns: 30px minmax(0, 1fr) 56px 46px 42px; font-size: 15px; }
  .set-row.active { margin: 0 -6px; padding: 0 6px; }
  .rest-time b { font-size: 38px; }
  .rest-btns button { min-width: 46px; padding: 0 10px; }
  .orm-strip { padding: 20px 18px 16px; }
  .orm-meta b { font-size: 36px; }
  .body-grid { grid-template-columns: 1fr; gap: 12px; }
  .tile-weight, .tile-comp, .tile-sources { grid-column: 1 / -1; }
  .weight-now b { font-size: 40px; }
  .chart { min-height: 210px; }
  .weight-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .panel-ink { padding: 40px 22px 32px; }
  .privacy, .more { grid-template-columns: 1fr; gap: 10px; }
  .privacy li, .more li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px; border-radius: 18px; }
  .pv-ico, .more-ico { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
  .privacy b, .more b { align-self: end; font-size: 16px; }
  .privacy small, .more small { align-self: start; margin-top: 0; font-size: 13px; }
  .providers { margin-top: 36px; }
  .providers li { height: 34px; padding: 0 12px; font-size: 13px; }
  .panel-lime { padding: 36px 22px; }
  .dl-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 22px; }
  .beta-form { flex-basis: 100%; }
  .beta-field { height: 58px; padding-left: 18px; }
  .beta-field input { font-size: 16px; }
  .beta-field .btn { height: 46px; padding: 0 16px; }
  .beta-status, .beta-note { padding-left: 18px; }
  .lang-link { padding: 0 10px; }
  .footer { margin-top: 80px; }
}

@media (max-width: 379px) {
  .phone-wrap { --ps: .8; }
  .hero-visual { height: 410px; }
}

@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; }
}
