/* Uptake site. Tokens mirror the design system (brand/design-system/project/tokens.json). */
@font-face { font-family: "Archivo SemiExpanded"; src: url("/fonts/ArchivoSemiExpanded-VF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-VF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("/fonts/ArchivoNarrow-VF.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Chivo Mono"; src: url("/fonts/ChivoMono-VF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --chalk: #F5F4EF; --surface: #FFFFFF; --sunk: #EBEAE3; --control: #E6E4DC; --line: #DDDBD1; --line-strong: #85837A;
  --ink: #14151A; --muted: #56575F;
  --iron: #1B1C22; --on-iron: #F5F4EF; --on-iron-muted: #A8AAB4;
  --yolk: #FFC629; --on-yolk: #14151A; --yolk-soft: #FFF0BF; --yolk-ink: #6F4A00;
  --cobalt: #2F3CE0; --cobalt-soft: #E4E7FF; --spruce: #0A7560; --spruce-soft: #D5F0E8; --signal: #C2242D; --signal-soft: #FBDADB;
  --protein: #2F3CE0; --carbs: #A66F00; --fat: #B34A00; --faint: #85868E;
  --shadow-sm: 0 1px 2px rgba(20, 21, 26, 0.06), 0 1px 1px rgba(20, 21, 26, 0.04);
  --shadow-md: 0 6px 16px rgba(20, 21, 26, 0.08), 0 2px 4px rgba(20, 21, 26, 0.05);
  --shadow-lg: 0 18px 40px rgba(20, 21, 26, 0.14), 0 4px 10px rgba(20, 21, 26, 0.06);
  --focus: 0 0 0 2px var(--chalk), 0 0 0 4px var(--cobalt);
  --display: "Archivo SemiExpanded", "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --num: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --chalk: #0F1013; --surface: #191A1F; --sunk: #08090B; --control: #2A2C34; --line: #2B2D35; --line-strong: #747782;
    --ink: #F5F4EF; --muted: #A8AAB4;
    --yolk-soft: #3B2F0A; --yolk-ink: #FFD666;
    --cobalt: #98A2FF; --cobalt-soft: #1C2050; --spruce: #5ED4B4; --spruce-soft: #0B2F27; --signal: #FF8C8C; --signal-soft: #4A1216;
    --protein: #98A2FF; --carbs: #FFC629; --fat: #FF9A5C; --faint: #6F727D;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5); --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.55); --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.6);
  }
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--chalk); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus); border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--chalk); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.25rem); line-height: 1; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); line-height: 1.05; }
h3 { font: 700 1.125rem/1.35 var(--text); letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 34em; }
.fine { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.num { font-family: var(--num); font-weight: 700; font-feature-settings: "tnum" 1; line-height: 1; }
.unit { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.label { font: 700 0.75rem/1.3 var(--text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rule { height: 3px; border: 0; margin: 0; background: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 8px 22px; border-radius: 14px; border: 1px solid transparent; font: 650 1rem/1.2 var(--text); text-decoration: none; white-space: nowrap; transition: transform 120ms cubic-bezier(0.2, 0, 0, 1); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--yolk); color: var(--on-yolk); }
.btn-strong { background: var(--ink); color: var(--chalk); }
.btn-quiet { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-sm { min-height: 44px; padding: 6px 16px; font-size: 0.9375rem; border-radius: 12px; }
.btn[aria-disabled="true"] { cursor: default; color: var(--muted); border-style: dashed; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn-two { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.btn-two small { font: 500 0.6875rem/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.78; }
.btn-two b { font-weight: 700; font-size: 1.0625rem; }
.btn-store { flex-direction: row; align-items: center; gap: 12px; padding-left: 18px; }
.btn-store svg { width: 22px; height: 22px; flex: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--chalk); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; color: var(--ink); flex: none; }
.logo svg { height: 30px; width: auto; display: block; }
.head-nav { display: flex; gap: 22px; margin-left: auto; }
.head-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.head-nav a:hover, .head-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 760px) { .home .head-nav { display: none; } .home .head-row .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-art { position: relative; min-width: 0; padding: 28px 0 56px 0; max-width: 480px; width: 100%; justify-self: center; }
.art-plates { position: absolute; top: 0; right: 0; width: 46%; height: auto; display: block; }
.art-plates .blk { fill: var(--yolk); }
.art-plates .cut { fill: var(--chalk); }

.iron { --ink: #F5F4EF; --muted: #A8AAB4; --line: #2B2D35; --protein: #98A2FF; --carbs: #FFC629; --fat: #FF9A5C; --cobalt: #98A2FF; --spruce: #5ED4B4; --surface: #25272E; --sunk: #33353D; --control: #2A2C34; --line-strong: #747782; background: var(--iron); color: var(--on-iron); }
.energy { position: relative; display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: 32px; box-shadow: var(--shadow-lg); margin-right: 8%; }
.ring { position: relative; width: 148px; height: 148px; flex: none; }
.ring svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: #A8AAB4; stroke-opacity: 0.22; stroke-width: 10; }
.ring .fill { fill: none; stroke: var(--yolk); stroke-width: 10; }
.ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.ring-mid .num { font-size: 2.5rem; }
.macros { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.macro-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.8125rem; font-weight: 600; }
.macro-head .num { font-size: 1.0625rem; }
.bar { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.bar .p { background: var(--protein); } .bar .c { background: var(--carbs); } .bar .f { background: var(--fat); } .bar .k { background: var(--cobalt); } .bar .y { background: var(--yolk); }
.w-40 { width: 40%; } .w-59 { width: 59%; } .w-61 { width: 61%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-90 { width: 90%; } .w-93 { width: 93%; } .w-100 { width: 100%; }
@media (max-width: 420px) { .energy { flex-direction: column; align-items: stretch; margin-right: 0; } .ring { align-self: center; } }
@media (max-width: 520px) { .art-plates { display: none; } .hero-art { padding-top: 0; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-sm); }
.checkin { position: relative; width: min(100%, 320px); margin: -18px 0 0 auto; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.875rem; color: var(--muted); }
.kv b { font: 700 1.0625rem/1 var(--num); color: var(--ink); font-feature-settings: "tnum" 1; }
.kv-big { align-items: flex-end; color: var(--ink); font-weight: 600; }
.kv-big b { font-size: 1.75rem; }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: clamp(36px, 6vw, 72px) 0 0; padding: 0; border-top: 8px solid var(--ink); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { padding: 16px 0 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.facts .num { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.facts span { font-size: 0.9375rem; line-height: 1.35; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
section[id] { scroll-margin-top: 76px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 40em; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split-flip > :first-child { order: 2; } }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 3px solid var(--ink); }
.steps .n { font: 700 1.75rem/1 var(--num); color: var(--ink); }
.steps p { color: var(--muted); font-size: 1rem; margin-top: 4px; }
.modes { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--sunk); font-size: 0.9375rem; color: var(--muted); }
.modes b { color: var(--ink); }

.panel { display: flex; flex-direction: column; gap: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head h3 { font: 800 1.375rem/1.2 var(--display); letter-spacing: -0.02em; }
.chart { display: block; width: 100%; height: auto; aspect-ratio: 360 / 208; overflow: visible; }
.chart text { font: 500 11px var(--mono); fill: var(--muted); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .raw { fill: var(--faint); }
.chart .trend { fill: none; stroke: var(--cobalt); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .end { fill: var(--cobalt); stroke: var(--surface); stroke-width: 3; }
.logo img { height: 30px; width: auto; display: block; }

.ways { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.way { display: flex; flex-direction: column; gap: 10px; }
.way .disc { width: 52px; height: 52px; border-radius: 999px; background: var(--yolk); color: var(--on-yolk); display: grid; place-items: center; margin-bottom: 6px; }
.way .disc svg, .extra svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.way p, .extra p { color: var(--muted); font-size: 0.9688rem; line-height: 1.5; }
.also { margin-top: 26px; color: var(--muted); max-width: 46em; }
.also b { color: var(--ink); font-weight: 650; }

.band-iron { background: var(--iron); color: var(--on-iron); }
.band-iron .lede, .band-iron .fine { color: var(--on-iron-muted); }
.nutrients { background: var(--surface); border-radius: 22px; padding: 20px; border: 1px solid var(--line); }
.nutrients .top { border-top: 8px solid var(--ink); padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.nutrients .top h3 { font: 800 1.5rem/1.1 var(--display); letter-spacing: -0.02em; }
.nrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 0; border-top: 1px solid var(--line); align-items: baseline; font-weight: 600; font-size: 0.9375rem; }
.nrow:first-of-type { border-top: 3px solid var(--ink); margin-top: 10px; }
.nrow .val { font: 700 1.0625rem/1 var(--num); font-feature-settings: "tnum" 1; }
.nrow .val small { font: 500 0.6875rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-left: 3px; }
.nrow .bar { grid-column: 1 / -1; margin-top: 2px; }
.nrow .val small.keep { text-transform: none; }
.chart .goal { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 5; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.9688rem; }
.list li:first-child { border-top: 3px solid var(--ink); }
.list .qty { margin-left: auto; font: 700 1rem/1 var(--num); color: var(--muted); }
.box { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.box.on { background: var(--spruce-soft); border-color: transparent; color: var(--spruce); }
.box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.list li.done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }

.extras { display: grid; gap: 28px 32px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.extra { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 14px; align-content: start; }
.extra svg { grid-row: span 2; margin-top: 2px; color: var(--ink); }

.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks .box { margin-top: 2px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.faq { margin-top: 32px; border-top: 3px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 700 1.0625rem/1.4 var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 600 1.75rem/1 var(--num); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 20px; color: var(--muted); max-width: 44em; }

.band-yolk { background: var(--yolk); color: var(--on-yolk); }
.final { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .final { grid-template-columns: minmax(0, 1.2fr) auto; } }
.final h2 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 0.98; }
.final p { margin-top: 14px; font-size: 1.125rem; max-width: 30em; }
.band-yolk .btn-primary { background: var(--on-yolk); color: var(--yolk); }
.band-yolk .btn-quiet, .band-yolk .btn[aria-disabled="true"] { border-color: rgba(20, 21, 26, 0.55); color: var(--on-yolk); }
.band-yolk :focus-visible { box-shadow: 0 0 0 2px var(--yolk), 0 0 0 4px var(--on-yolk); }

/* ---------- footer ---------- */
.site-foot { padding-block: 44px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: var(--ink); font-weight: 600; }
.site-foot .small { margin-top: 22px; max-width: 70em; line-height: 1.55; }

/* ---------- document pages: privacy, delete account, 404 ---------- */
.doc main { max-width: 760px; margin: 0 auto; padding: 44px max(20px, env(safe-area-inset-right, 0px)) 72px max(20px, env(safe-area-inset-left, 0px)); }
.doc h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin-bottom: 14px; }
.doc h2 { font: 800 1.375rem/1.25 var(--display); letter-spacing: -0.02em; margin-top: 36px; padding-top: 14px; border-top: 3px solid var(--ink); }
.doc p, .doc ul { margin: 12px 0; }
.doc footer { max-width: 760px; margin: 0 auto; padding: 22px 20px 48px; border-top: 1px solid var(--line); }
.micro { color: var(--muted); font-size: 0.9rem; }
.notice { padding: 12px 16px; border-radius: 14px; background: var(--yolk-soft); color: var(--yolk-ink); font-size: 0.9375rem; }
.error { color: var(--signal); }
[role=status] { min-height: 1.6em; }
form { margin: 18px 0; }
fieldset { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
label { display: block; font-weight: 650; font-size: 0.9375rem; margin-bottom: 6px; }
input:not([type=checkbox]), textarea, select { display: block; width: 100%; color: var(--ink); background: var(--chalk); border: 1px solid var(--line-strong); border-radius: 14px; padding: 13px 14px; font: inherit; margin-bottom: 16px; min-height: 52px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 16px; font-weight: 500; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ink); }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 20px; margin: 0 8px 8px 0; border: 1px solid transparent; border-radius: 14px; background: var(--yolk); color: var(--on-yolk); font: 650 1rem/1.2 var(--text); text-decoration: none; cursor: pointer; }
button:disabled { opacity: 0.38; cursor: default; }
button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
button.danger { background: var(--signal); color: var(--chalk); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
