/* Half Plate · halfplate.dobreon.com
 *
 * The site is the app's own design system — `HalfPlate/Core/DesignSystem/
 * Theme.swift` — set in a browser: the same paper, the same ink, the same
 * Bricolage Grotesque carrying headings and figures while the system face
 * carries the sentences. The tokens below are copied from Theme.swift and
 * must stay equal to it.
 *
 * Most of this file styles a landing page that no longer exists: the site is
 * four documents for now, and only `.wrap`, `.doc`, `.top`, `.lockup`,
 * `.tile`, `.lede`, `.updated`, `.made` and the footer are in use. The rest
 * is kept because the app page comes back here rather than being rewritten.
 *
 * No script runs here: the CSP in vercel.json has no script-src, and nothing
 * on these pages needs one.
 */

/* ---------- tokens ---------- */
:root {
  --paper: #faf8f5;
  --card: #ffffff;
  --ink: #141414;
  --secondary: #6b665e;
  --muted: #75716a;
  --hairline: #e6e1d8;
  --track: #eeeae3;
  --yellow: #f5c544;
  --score-ink: #141414;
  --close: #d16900;
  --over: #ae1b13;
  --bar: #bfb2a0;

  --protein: #2a78d6;
  --carbs: #eb6834;
  --fat: #1baf7a;
  --fibre: #397373;
  --sugar: #73172e;
  --sodium: #171773;

  /* the phone: a light rail around a warm bezel, measured off the store frames */
  --rail: #e5e2e1;
  --bezel: #1e1312;

  --display: "Bricolage Grotesque", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-card: 18px;
  --r-tile: 16px;
  --r-chip: 17px;
  --r-button: 26px;

  --page: 1120px;
  --column: 24px;
  --measure: 60ch;

  --shadow-card: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 32px -18px rgba(20, 20, 20, .18);
  --shadow-float: 0 2px 4px rgba(20, 20, 20, .05), 0 24px 48px -20px rgba(20, 20, 20, .28);
  --shadow-phone: 0 30px 70px -30px rgba(20, 20, 20, .45);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141414;
    --card: #1e1d1b;
    --ink: #faf8f5;
    --secondary: #c3c2b7;
    --muted: #8e8d84;
    --hairline: #32322f;
    --track: #38383a;
    --close: #f3a412;
    --over: #da281b;
    --bar: #7a746a;

    --protein: #3987e5;
    --carbs: #d95926;
    --fat: #199e70;
    --fibre: #9df2dd;
    --sugar: #8c5b7c;
    --sodium: #9dc1f2;

    --rail: #3a3634;
    --bezel: #0b0a0a;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -18px rgba(0, 0, 0, .6);
    --shadow-float: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .7);
    --shadow-phone: 0 30px 70px -30px rgba(0, 0, 0, .8);
  }
}

/* ---------- type ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
p a, li a, .doc a, .faq a { text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--ink) 30%, transparent); text-underline-offset: 3px; }
p a:hover, li a:hover, .doc a:hover, .faq a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-optical-sizing: auto; margin: 0; }
h1 { font-weight: 700; font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.035em; }
h2 { font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.025em; }
h3 { font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
.num { font-family: var(--display); font-optical-sizing: auto; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--column); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 24px; top: 16px; z-index: 30; background: var(--card); padding: 10px 16px; border-radius: 999px; }

/* ---------- components, as the app draws them ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: var(--r-button);
  background: var(--ink); color: var(--paper);
  font: 600 16px/1 var(--text); white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.985); }
.btn-secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn-small { height: 40px; padding: 0 18px; font-size: 15px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: var(--r-chip);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline);
  font: 600 14px/1 var(--text); color: var(--ink); white-space: nowrap;
}
.chip-muted { color: var(--secondary); font-weight: 500; }
.chip .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink); }
.chip-going { background: var(--track); box-shadow: none; }
.chip-eat { background: var(--ink); color: var(--paper); box-shadow: none; }
.badge {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--yellow); color: var(--score-ink);
  font-family: var(--display); font-optical-sizing: auto; font-weight: 700; font-size: 16px; letter-spacing: -.02em;
}
.badge-lg { width: 64px; height: 64px; font-size: 24px; }
.badge-outline { background: var(--card); box-shadow: inset 0 0 0 2px var(--close); color: var(--close); }
.card { background: var(--card); border-radius: var(--r-card); padding: 24px; }
.hairline { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
.mark { display: inline-block; width: 1em; height: 1em; }

/* nutrient dots: colour means a nutrient, and nothing else does */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; flex: 0 0 auto; }
.dot-protein { background: var(--protein); }
.dot-carbs { background: var(--carbs); }
.dot-fat { background: var(--fat); }
.dot-fibre { background: var(--fibre); }
.dot-sugar { background: var(--sugar); }
.dot-sodium { background: var(--sodium); }

/* ---------- the phone ---------- */
.phone {
  container-type: inline-size;
  width: 100%;
  margin: 0;
}
.phone .device {
  position: relative;
  background: var(--bezel);
  border-radius: calc(10.6cqw + 2.8cqw + 1cqw);
  padding: 2.8cqw;
  box-shadow: 0 0 0 1cqw var(--rail), var(--shadow-phone);
}
.phone .screen {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 10.6cqw;
  background: #faf8f5;
  object-fit: cover;
}
.phone figcaption { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--hairline) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-optical-sizing: auto; font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.lockup .tile {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline);
}
.lockup .tile svg { width: 26px; height: 26px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--secondary); }
.top nav a:hover { color: var(--ink); }
.top .btn { margin-left: 4px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 24px; overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 40px; align-items: center; }
.hero-copy { max-width: 560px; }
.eyebrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 26px; }
.lede { margin: 26px 0 0; font-size: 20px; line-height: 1.5; color: var(--secondary); max-width: 34em; }
.lede b { color: var(--ink); font-weight: 600; }
.cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.store { display: inline-block; height: 56px; }
.store img { height: 56px; width: auto; }
.soon { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 18px; border-radius: var(--r-button); background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); font: 500 15px/1 var(--text); color: var(--secondary); white-space: nowrap; }
.soon svg { width: 18px; height: 18px; color: var(--muted); }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

.hero-stage { position: relative; min-height: 780px; }
.hero-stage .phone { position: absolute; right: 0; top: 0; width: min(340px, 62%); z-index: 1; }
.float {
  position: absolute; z-index: 2;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-float);
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.float-tip {
  left: 0; top: 4%; width: min(250px, 44%);
  display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 14px;
  background: var(--yellow); color: var(--score-ink);
  animation-delay: .25s;
}
.float-tip .score {
  flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: #141414; color: #faf8f5; font-family: var(--display); font-weight: 700; font-size: 15px;
}
.float-tip p { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 500; }
.float-stands {
  left: 0; bottom: 3%; width: min(270px, 48%);
  padding: 16px 18px; animation-delay: .45s;
}
.float-stands h4 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.float-stands .row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--secondary); }
.float-stands .row + .row { margin-top: 10px; }
.float-stands .row b { color: var(--ink); font-weight: 600; }
.float-stands .chip { height: 26px; padding: 0 10px; font-size: 12px; flex: 0 0 auto; margin-top: 1px; }
.float-meal {
  right: -3%; bottom: 24%; width: min(250px, 44%);
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px;
  animation-delay: .6s;
}
.float-meal img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.float-meal .name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.float-meal .sub { font-size: 12.5px; color: var(--secondary); margin-top: 3px; }
.float-meal .badge { width: 34px; height: 34px; font-size: 13px; margin-left: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ---------- the strip of facts under the hero ---------- */
.facts { padding: 40px 0 8px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.facts li { padding: 22px 28px 22px 0; font-size: 15.5px; line-height: 1.45; color: var(--secondary); }
.facts li + li { border-left: 1px solid var(--hairline); padding-left: 28px; }
.facts b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ---------- sections ---------- */
section { padding: 96px 0 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.section-head .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--yellow); }
.section-head p { margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: var(--secondary); max-width: var(--measure); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; background: var(--card); border-radius: var(--r-card); padding: 26px 26px 28px; box-shadow: var(--shadow-card); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--muted); margin-bottom: 40px; }
.steps h3 { margin-bottom: 10px; }
.steps p { margin: 0; color: var(--secondary); font-size: 16px; }
.steps .glyph { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; }

/* feature rows: a phone and words beside it */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature .phone { width: min(340px, 86%); justify-self: center; }
.feature.flip .phone { order: -1; }
.feature-copy p { color: var(--secondary); font-size: 17px; max-width: var(--measure); margin: 16px 0 0; }
.feature-copy p b { color: var(--ink); font-weight: 600; }
.feature-copy h2 { max-width: 14em; }
.feature-copy .kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.feature-copy .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--yellow); }
.nutrients { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 10px 24px; width: fit-content; font-size: 15px; color: var(--secondary); }
.nutrients li { display: flex; align-items: center; gap: 9px; }
.nutrients b { color: var(--ink); font-weight: 600; }
.nutrients .num { font-size: 15px; font-weight: 600; color: var(--ink); }

/* the "why" card beside the score: the app's breakdown, drawn in CSS */
.why { background: var(--card); border-radius: var(--r-card); padding: 20px 22px 22px; margin-top: 28px; max-width: 420px; box-shadow: var(--shadow-card); }
.why header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.why header h4 { font-size: 16px; font-weight: 600; margin: 0; }
.why header .badge { width: 40px; height: 40px; font-size: 15px; }
.why .row { display: grid; grid-template-columns: 74px 1fr 36px; align-items: center; gap: 12px; font-size: 14px; color: var(--secondary); }
.why .row + .row { margin-top: 10px; }
.why .row .num { font-size: 15px; font-weight: 600; color: var(--ink); text-align: right; }
.why .track { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.why .fill { height: 100%; border-radius: 4px; background: var(--yellow); }
.why .w81 { width: 81%; } .why .w83 { width: 83%; } .why .w96 { width: 96%; } .why .w100 { width: 100%; }
.why .fill.low { background: var(--close); }
.why footer { margin-top: 14px; font-size: 13.5px; color: var(--secondary); line-height: 1.4; }

/* stands-out demo on the Progress row */
.stands { list-style: none; margin: 24px 0 0; padding: 0; max-width: 460px; }
.stands li { display: flex; align-items: flex-start; gap: 12px; background: var(--card); border-radius: var(--r-tile); padding: 14px 16px; font-size: 15px; line-height: 1.4; color: var(--secondary); box-shadow: var(--shadow-card); }
.stands li + li { margin-top: 10px; }
.stands li b { color: var(--ink); font-weight: 600; }
.stands .chip { flex: 0 0 auto; height: 28px; padding: 0 11px; font-size: 12.5px; }

/* a range menu, like the Progress title */
.ranges { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.ranges .chip { height: 30px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--secondary); }
.ranges .chip.on { color: var(--ink); font-weight: 600; }

/* the plate: numbers the way the first run shows them */
.plate-card { background: var(--card); border-radius: var(--r-card); padding: 22px 24px; margin-top: 26px; max-width: 420px; box-shadow: var(--shadow-card); }
.plate-card .big { display: flex; align-items: baseline; gap: 8px; }
.plate-card .big .num { font-size: 44px; line-height: 1; }
.plate-card .big span { font-size: 15px; color: var(--secondary); }
.plate-card .macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.plate-card .macros div { font-size: 13px; color: var(--secondary); display: flex; flex-direction: column; gap: 4px; }
.plate-card .macros .label { display: flex; align-items: center; gap: 6px; }
.plate-card .macros .num { font-size: 18px; font-weight: 600; color: var(--ink); }
.plate-card .rules { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--secondary); line-height: 1.45; }
.plate-card .rules div { display: flex; justify-content: space-between; gap: 16px; }
.plate-card .rules div + div { margin-top: 8px; }
.plate-card .rules b { color: var(--ink); font-weight: 600; text-align: right; }

/* iOS grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid .card { padding: 24px 24px 26px; box-shadow: var(--shadow-card); }
.grid .card svg { width: 28px; height: 28px; margin-bottom: 18px; }
.grid h3 { font-size: 19px; margin-bottom: 8px; }
.grid p { margin: 0; color: var(--secondary); font-size: 15.5px; }
.grid .card-dark { grid-row: span 2; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.grid .card-dark .phone { width: 74%; margin: 22px auto 0; align-self: end; }
.grid .card-dark .phone .device { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 1cqw var(--rail); }
.grid .card-dark .screen { aspect-ratio: 1320 / 1900; object-position: top; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* price */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price .card { padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.price .amount { font-family: var(--display); font-optical-sizing: auto; font-weight: 700; font-size: 44px; letter-spacing: -.03em; line-height: 1; margin: 0; }
.price .amount small { font-family: var(--text); font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--secondary); margin-left: 8px; }
.price .per { margin: 10px 0 0; color: var(--secondary); font-size: 15px; }
.price ul { margin: 22px 0 0; padding: 0; list-style: none; color: var(--secondary); font-size: 15.5px; line-height: 1.45; }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li + li { margin-top: 8px; }
.price li::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; border-radius: 999px; background: var(--track); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23141414' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 16px; }
.price .card-lead { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-card); }
.price .card-lead .tag { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--yellow); color: var(--score-ink); font-size: 12.5px; font-weight: 700; margin-bottom: 18px; }
.price .foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted); line-height: 1.45; }
.price .foot p { margin: 0; }
.price .foot p + p { margin-top: 6px; }
.price .cta { margin-top: 22px; }

/* faq */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--hairline); padding: 20px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; display: flex; gap: 16px; align-items: baseline; font-family: var(--display); font-optical-sizing: auto; font-weight: 600; font-size: 20px; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; max-width: var(--measure); color: var(--secondary); }

/* closing */
.closing { padding: 112px 0 0; text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; }
.closing .tile { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-card); margin-bottom: 30px; }
.closing .tile svg { width: 72px; height: 72px; }
.closing h2 { font-size: clamp(36px, 5.4vw, 64px); }
.closing p { margin: 18px 0 0; font-size: 18px; color: var(--secondary); max-width: 40ch; }
.closing .cta { justify-content: center; }
.closing .phone { width: min(320px, 72%); margin-top: 64px; }
.closing .phone .device { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; box-shadow: 0 0 0 1cqw var(--rail); clip-path: inset(-2cqw -2cqw 0 -2cqw); }
.closing .phone .screen { aspect-ratio: 1320 / 1560; object-position: top; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* footer */
footer { border-top: 1px solid var(--hairline); margin-top: 0; padding: 36px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .lockup { font-size: 17px; color: var(--ink); }
footer .lockup .tile { width: 28px; height: 28px; border-radius: 7px; }
footer .lockup .tile svg { width: 22px; height: 22px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-left: auto; }
footer nav a:hover { color: var(--ink); }
footer .made { flex-basis: 100%; }

/* ---------- documents: privacy, terms, support ---------- */
/* The horizontal padding has to be repeated: this shorthand overrides the
 * one on `.wrap`, and without it every document sits against the edge of
 * a phone. */
.doc { padding: 56px var(--column) 0; max-width: calc(720px + var(--column) * 2); }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 24px; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--secondary); font-size: 16.5px; }
.doc p { margin: 0 0 14px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc em { color: var(--ink); font-style: normal; font-weight: 500; }
.doc ul { padding-left: 20px; margin: 0 0 14px; }
.doc li { margin-bottom: 8px; }
.doc code { font-size: .92em; }
.doc .updated { color: var(--muted); font-size: 14.5px; margin: 12px 0 28px; }
.doc .lead { font-size: 19px; color: var(--secondary); margin: 18px 0 0; }
.doc .lead strong { color: var(--ink); }

/* The only table on the site: privacy's per-feature list of what is sent. A
 * card with hairlines between the rows rather than a grid — the same way a
 * list card looks on the phone. Below 600px the cells stack, because two
 * columns of sentences in 320px is unreadable. */
.doc table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; }
.doc thead th {
  text-align: left; padding: 0 16px 10px; font: 600 13px/1.3 var(--text);
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.doc tbody tr { border-top: 1px solid var(--hairline); }
.doc tbody td { padding: 14px 16px; font-size: 16px; line-height: 1.5; color: var(--secondary); vertical-align: top; }
.doc tbody td:first-child { color: var(--ink); font-weight: 500; width: 34%; }

@media (max-width: 600px) {
  /* Hidden by clipping rather than by `left: -9999px`, which would give
   * the page a horizontal scrollbar on the phones this rule is for. */
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .doc tbody tr { display: block; padding: 14px 0; }
  .doc tbody td { display: block; padding: 0; }
  .doc tbody td:first-child { width: auto; margin-bottom: 4px; }
}

/* ---------- widths ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 640px; }
  .hero-stage { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .hero-stage .phone { position: static; grid-column: 1 / -1; width: min(300px, 70%); margin: 0 auto 8px; }
  .float { position: static; width: auto; animation: none; }
  .float-meal { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li::before { margin-bottom: 24px; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature .phone, .feature.flip .phone { order: 0; width: min(300px, 78%); }
  .feature-copy h2 { max-width: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .card-dark { grid-row: auto; grid-column: span 2; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .grid .card-dark .phone { width: 62%; margin: 0 auto; }
  .grid .card-dark .screen { aspect-ratio: 1320 / 1500; }
}
@media (max-width: 700px) {
  :root { --column: 20px; }
  section { padding-top: 72px; }
  .top .wrap { height: 60px; gap: 14px; }
  /* The landing page hid these behind a store button. The site is now the
   * three documents they point at, so they stay — smaller and tighter. */
  .top nav { gap: 16px; font-size: 14.5px; }
  .top .wrap { gap: 10px; }
  .lockup { font-size: 19px; }
  .top .btn { margin-left: 0; }
  .hero { padding-top: 40px; }
  .lede { font-size: 18px; }
  .store, .store img { height: 50px; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li { padding: 16px 0; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; }
  .hero-stage { grid-template-columns: 1fr; }
  .hero-stage .phone { width: min(270px, 76%); }
  .nutrients { grid-template-columns: repeat(2, auto); }
  .grid { grid-template-columns: 1fr; }
  .grid .card-dark { grid-column: auto; grid-template-columns: 1fr; }
  .grid .card-dark .phone { width: 70%; margin-top: 20px; }
  .price { grid-template-columns: 1fr; }
  .price .amount { font-size: 38px; }
  .faq summary { font-size: 18px; }
  .closing { padding-top: 80px; }
  footer nav { margin-left: 0; }
}
