/* Honest Plate — shared styles for every page.
 *
 * Tokens first, then base, then components in page order. Colors only come
 * from the tokens, so the dark theme is the token block at the bottom of this
 * section and nothing else.
 */

@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/geologica-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: "Geologica";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/geologica-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light dark;

  /* brand */
  --raspberry: #c81e5b;
  --raspberry-hi: #f0457a;
  --raspberry-lo: #b5174e;
  --apricot: #f4a259;
  --protein: #7c6cf2;
  --carbs: #2fb3a8;
  --fat: var(--apricot);

  /* surfaces and text, light */
  --bg: #fff8f5;
  --plate: #fffdfb;
  --plate-ring: #f6e2cf;
  --ink: #1f1418;
  --ink-2: #6e5a61;
  --line: #eddcd6;
  --link: #b5174e;
  --tint-raspberry: #fdeaf0;
  --tint-apricot: #fdeedf;
  --track: #f3e4df;
  --screen: #fff8f5;
  --bezel: #1f1418;
  --badge-bg: #1f1418;
  --badge-fg: #fff8f5;
  --badge-line: #1f1418;
  --shadow-soft: 0 1px 2px rgba(80, 20, 40, 0.06), 0 24px 48px -24px rgba(120, 24, 60, 0.28);
  --shadow-plate: 0 2px 4px rgba(80, 20, 40, 0.05), 0 40px 80px -40px rgba(120, 24, 60, 0.35);

  /* type */
  --font: "Geologica", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.1875rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(1.875rem, 1.2rem + 2.8vw, 3rem);
  --fs-h1: clamp(3rem, 1.6rem + 6.4vw, 5.75rem);

  /* layout */
  --gutter: 16px;
  --max: 1160px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --fs-body: 1.125rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1215;
    --plate: #271a1f;
    --plate-ring: #3a2a30;
    --ink: #f8ecef;
    --ink-2: #c7b2b9;
    --line: #3b2b31;
    --link: #ff7aa2;
    --tint-raspberry: #3a1825;
    --tint-apricot: #33231a;
    --track: #3a2a30;
    --screen: #1f1519;
    --bezel: #0a0607;
    --badge-bg: #000;
    --badge-fg: #fff;
    --badge-line: #6e5a61;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
    --shadow-plate: 0 2px 4px rgba(0, 0, 0, 0.3), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-variation-settings: "CRSV" 0, "SHRP" 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-variation-settings: "CRSV" 1, "SHRP" 0;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--raspberry-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Language: both languages live in the markup; the inactive one is hidden.
   With no script the page stays English (the source default). Language
   buttons and .lang-keep blocks (text that exists in one language only)
   are always shown. */
html[data-lang="ru"] [lang="en"]:not([data-set-lang], .lang-keep),
html:not([data-lang="ru"]) [lang="ru"]:not([data-set-lang], .lang-keep) {
  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;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted {
  color: var(--ink-2);
}

.small {
  font-size: var(--fs-small);
  line-height: 1.5;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-variation-settings: "CRSV" 1, "SHRP" 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 26px;
}

.nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }
}

.lang-switch {
  display: inline-flex;
  margin-left: auto;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--plate);
}

@media (min-width: 960px) {
  .nav ~ .lang-switch {
    margin-left: 8px;
  }
}

.lang-btn {
  appearance: none;
  border: 0;
  margin: 0;
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- buttons and store badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--raspberry);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--raspberry-lo);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  background: var(--plate);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  min-height: 54px;
  padding: 7px 18px 7px 14px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--badge-fg);
  box-shadow: inset 0 0 0 1px var(--badge-line);
  text-decoration: none;
  line-height: 1.1;
}

.badge:hover {
  text-decoration: none;
  opacity: 0.92;
}

.badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-text small {
  font-size: 0.6875rem;
  opacity: 0.82;
}

.badge-text strong {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ---------- hero ---------- */

.hero {
  padding: 28px 0 8px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 36px;
}

@media (min-width: 960px) {
  .hero {
    padding: 56px 0 96px;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 48px;
  }
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 760;
}

.hero h1 .h1-tag {
  display: block;
  margin-top: 0.32em;
  font-size: 0.4em;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 560;
  color: var(--raspberry);
}

@media (prefers-color-scheme: dark) {
  .hero h1 .h1-tag {
    color: var(--raspberry-hi);
  }
}

.hero .lead {
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.4;
  max-width: 22em;
}

.hero-actions {
  margin-top: 30px;
}

.hero-note {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: var(--fs-small);
}

/* The stage: a bitten plate with the phone resting on it and the meal draft
   card overlapping the phone's lower edge. Straight-on, no tilt. */
.stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 16%;
}

.stage-plate {
  position: absolute;
  left: -9%;
  top: 7%;
  width: 118%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(120, 24, 60, 0.14));
}

@media (prefers-color-scheme: dark) {
  .stage-plate {
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
  }
}

.stage-plate .plate-disc {
  fill: var(--plate);
}

.stage-plate .plate-ring {
  fill: none;
  stroke: var(--plate-ring);
}

.stage .phone {
  position: relative;
  width: 62%;
  margin-left: 2%;
}

.stage .draft {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 57%;
}

@media (min-width: 960px) {
  .stage {
    padding-bottom: 6%;
  }
  .stage .phone {
    width: 54%;
    margin-left: 4%;
  }
  .stage .draft {
    right: 10%;
    width: 48%;
  }
}

/* ---------- phone mockup ---------- */

/* Built at a fixed 300px design width and scaled with the container via
   container query units, so every size inside stays proportional. */
.phone {
  container-type: inline-size;
}

.phone-frame {
  position: relative;
  aspect-ratio: 300 / 620;
  padding: 3.4cqw;
  border-radius: 15cqw;
  background: var(--bezel);
  box-shadow: var(--shadow-plate), inset 0 0 0 0.6cqw rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 12cqw;
  background: var(--screen);
  color: var(--ink);
  font-size: 4.6cqw;
  line-height: 1.3;
}

.phone-island {
  position: absolute;
  top: 3cqw;
  left: 50%;
  width: 30cqw;
  height: 8.4cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: var(--bezel);
}

.ph-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4.2cqw 8cqw 0;
  font-size: 4.2cqw;
  font-weight: 600;
}

.ph-status i {
  display: inline-block;
  width: 6.5cqw;
  height: 3.2cqw;
  margin-left: 1.4cqw;
  border-radius: 1cqw;
  background: currentColor;
  opacity: 0.85;
}

.ph-body {
  padding: 7cqw 6.5cqw 0;
}

.ph-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ph-title b {
  font-size: 8.6cqw;
  font-weight: 740;
  letter-spacing: -0.03em;
  font-variation-settings: "CRSV" 1, "SHRP" 0;
}

.ph-title > span {
  color: var(--ink-2);
  font-size: 3.9cqw;
}

.ph-ring {
  position: relative;
  width: 58cqw;
  margin: 5cqw auto 0;
}

.ph-ring svg {
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--track);
}

.ring-fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke-linecap: round;
}

.ph-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ph-ring-center b {
  font-size: 12cqw;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ph-ring-center span {
  margin-top: 1.2cqw;
  color: var(--ink-2);
  font-size: 3.7cqw;
}

.ph-split {
  display: flex;
  justify-content: space-between;
  margin-top: 4cqw;
  font-size: 3.7cqw;
  color: var(--ink-2);
}

.ph-split b {
  display: block;
  color: var(--ink);
  font-size: 4.6cqw;
  font-weight: 650;
}

.ph-split > div:last-child {
  text-align: right;
}

.macros {
  display: grid;
  gap: 2.6cqw;
  margin-top: 5cqw;
}

.macro {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 1.2cqw;
  font-size: 3.7cqw;
}

.macro span:last-of-type {
  color: var(--ink-2);
}

.bar {
  grid-column: 1 / -1;
  height: 1.8cqw;
  border-radius: 9px;
  background: var(--track);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar-protein i {
  background: var(--protein);
}

.bar-fat i {
  background: var(--fat);
}

.bar-carbs i {
  background: var(--carbs);
}

.meals {
  margin: 5cqw 0 0;
  padding: 0;
  list-style: none;
}

.meals li {
  display: flex;
  justify-content: space-between;
  gap: 2cqw;
  padding: 2.6cqw 0;
  border-top: 1px solid var(--line);
  font-size: 3.9cqw;
}

.meals li span {
  color: var(--ink-2);
}

/* ---------- meal draft card ---------- */

.draft {
  container-type: inline-size;
}

.draft-card {
  padding: 6cqw;
  border-radius: 8cqw;
  background: var(--plate);
  color: var(--ink);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--line);
  font-size: 4.7cqw;
  line-height: 1.35;
}

.draft-head {
  display: flex;
  gap: 3.6cqw;
  align-items: center;
}

.draft-thumb {
  flex: none;
  width: 15cqw;
  height: 15cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 38%, var(--apricot) 0 16%, transparent 17%),
    radial-gradient(circle at 64% 40%, #f6f0e8 0 18%, transparent 19%),
    radial-gradient(circle at 48% 70%, var(--carbs) 0 15%, transparent 16%), var(--plate-ring);
  box-shadow: inset 0 0 0 1.6cqw var(--plate);
  outline: 1px solid var(--line);
}

.draft-head b {
  display: block;
  font-size: 5.4cqw;
  font-weight: 680;
}

.draft-head span {
  color: var(--ink-2);
  font-size: 4cqw;
}

.draft-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2cqw;
  margin-top: 4.5cqw;
}

.draft-total b {
  font-size: 10cqw;
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1;
}

.draft-total b small {
  font-size: 0.48em;
  font-weight: 560;
  letter-spacing: 0;
}

.chips {
  display: flex;
  gap: 2.6cqw;
  font-size: 3.8cqw;
  color: var(--ink-2);
}

.chips > span::before {
  content: "";
  display: inline-block;
  width: 2.2cqw;
  height: 2.2cqw;
  margin-right: 1cqw;
  border-radius: 50%;
  vertical-align: 0.15em;
  background: currentColor;
}

.chips .c-p::before {
  background: var(--protein);
}

.chips .c-f::before {
  background: var(--fat);
}

.chips .c-c::before {
  background: var(--carbs);
}

.draft-items {
  margin: 4cqw 0 0;
  padding: 0;
  list-style: none;
}

.draft-items li {
  display: flex;
  justify-content: space-between;
  gap: 3cqw;
  padding: 2.3cqw 0;
  border-top: 1px solid var(--line);
  font-size: 4.2cqw;
}

.draft-items li span:last-child {
  flex: none;
  color: var(--ink-2);
}

.draft-items em {
  font-style: normal;
  color: var(--ink-2);
}

.draft-note {
  margin-top: 3cqw;
  padding: 3.4cqw 4cqw;
  border-radius: 4.5cqw;
  background: var(--tint-apricot);
  font-size: 4cqw;
  line-height: 1.4;
}

.draft-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.6cqw;
  margin-top: 4cqw;
}

.draft-actions span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11cqw;
  border-radius: 99px;
  font-size: 4.2cqw;
  font-weight: 650;
}

.draft-actions .a-edit {
  box-shadow: inset 0 0 0 1px var(--line);
}

.draft-actions .a-save {
  background: var(--raspberry);
  color: #fff;
}

/* The one orchestrated moment: on load the ring fills and the draft card
   settles onto the plate. CSS only, so the hero never waits for script. */
@media (prefers-reduced-motion: no-preference) {
  .hero .ring-fill {
    animation: ring-fill 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }
  .hero .draft {
    animation: draft-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both;
  }
}

@keyframes ring-fill {
  from {
    stroke-dashoffset: var(--ring-len);
  }
}

@keyframes draft-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- sections ---------- */

.section {
  padding: 72px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 112px 0;
  }
}

.section-head {
  max-width: 40rem;
  margin-bottom: 40px;
}

.section-head .lead {
  margin-top: 16px;
}

@media (min-width: 960px) {
  .section-head {
    margin-bottom: 56px;
  }
}

/* how it works: a real sequence, so it is numbered */
.steps {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.step {
  position: relative;
  counter-increment: step;
}

@media (max-width: 859px) {
  .step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 18px;
  }
  .step::before {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: inset 0 0 0 5px var(--plate), inset 0 0 0 7px var(--plate-ring), var(--shadow-soft);
  color: var(--raspberry);
  font-size: 1.375rem;
  font-weight: 760;
  font-variation-settings: "CRSV" 1, "SHRP" 0;
}

@media (prefers-color-scheme: dark) {
  .step::before {
    color: var(--raspberry-hi);
  }
}

@media (min-width: 860px) {
  /* the thread between the plates */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: 76px;
    right: -28px;
    border-top: 1.5px dashed var(--plate-ring);
  }
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--ink-2);
  max-width: 24em;
}

/* honest AI */
.honest {
  border-top: 1px solid var(--line);
}

.honest-grid {
  display: grid;
  gap: 44px;
}

@media (min-width: 960px) {
  .honest-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}

.approx {
  width: 92px;
  height: auto;
  margin-bottom: 26px;
}

.approx path {
  fill: none;
  stroke: var(--raspberry);
  stroke-width: 11;
  stroke-linecap: round;
}

@media (prefers-color-scheme: dark) {
  .approx path {
    stroke: var(--raspberry-hi);
  }
}

.points {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding-left: 22px;
  border-left: 2px solid var(--plate-ring);
}

.points h3 {
  margin-bottom: 6px;
}

.points p {
  color: var(--ink-2);
}

/* the edit example: one line of a draft, corrected */
.edit-demo {
  container-type: inline-size;
  max-width: 460px;
}

.edit-card {
  padding: 24px;
  border-radius: var(--radius-l);
  background: var(--plate);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--line);
}

.edit-card > p {
  color: var(--ink-2);
  font-size: var(--fs-small);
}

.edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-m);
  background: var(--bg);
}

.edit-row .what {
  font-weight: 620;
}

.edit-row .stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-variant-numeric: tabular-nums;
}

.stepper i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--plate);
  font-style: normal;
  font-weight: 700;
  color: var(--ink-2);
}

.stepper b {
  min-width: 4.2em;
  text-align: center;
  font-weight: 650;
}

.edit-row .was {
  color: var(--ink-2);
  font-size: var(--fs-small);
}

.edit-row .kcal {
  grid-column: 2;
  justify-self: end;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}

.edit-row s {
  color: var(--ink-2);
  text-decoration-thickness: 1px;
}

.edit-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.edit-total b {
  font-weight: 700;
}

/* no shame */
.noshame {
  background: var(--tint-apricot);
}

.noshame-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .noshame-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 72px;
  }
}

.noshame h2 {
  font-size: clamp(2.125rem, 1.3rem + 3.4vw, 3.75rem);
  max-width: 14em;
}

.noshame .lead {
  margin-top: 20px;
  color: var(--ink);
}

.overate-card {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  padding: 22px;
  border-radius: var(--radius-l);
  background: var(--plate);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--line);
}

.overate-day {
  margin: 0 0 4px;
  color: var(--ink-2);
  font-size: var(--fs-small);
}

.overate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--bg);
  font-size: 1rem;
  font-weight: 560;
}

.overate-row::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--apricot);
}

.overate-row.is-meal::before {
  background: var(--carbs);
}

.overate-row > span:last-child {
  margin-left: auto;
  color: var(--ink-2);
  font-weight: 400;
}

.overate-btn {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-height: 56px;
  margin-top: 8px;
  padding: 0 24px 0 12px;
  border-radius: 999px;
  background: var(--tint-apricot);
  font-size: 1.0625rem;
  font-weight: 650;
}

.overate-btn svg {
  width: 32px;
  height: 32px;
}

/* coach */
.coach {
  position: relative;
  color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, var(--raspberry-hi) 0%, rgba(240, 69, 122, 0) 46%),
    var(--raspberry-lo);
  /* The bite out of the top-right corner: three circles, the icon's geometry. */
  --bx: calc(100% - 30px);
  --by: 18px;
  --br: 56px;
  --bs: 43px;
  --b2x: -56px;
  --b2y: -40px;
  --b3x: 43px;
  --b3y: 57px;
  -webkit-mask: radial-gradient(circle var(--br) at var(--bx) var(--by), transparent 99%, #000 100%),
    radial-gradient(circle var(--bs) at calc(var(--bx) + var(--b2x)) calc(var(--by) + var(--b2y)), transparent 99%, #000 100%),
    radial-gradient(circle var(--bs) at calc(var(--bx) + var(--b3x)) calc(var(--by) + var(--b3y)), transparent 99%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--br) at var(--bx) var(--by), transparent 99%, #000 100%),
    radial-gradient(circle var(--bs) at calc(var(--bx) + var(--b2x)) calc(var(--by) + var(--b2y)), transparent 99%, #000 100%),
    radial-gradient(circle var(--bs) at calc(var(--bx) + var(--b3x)) calc(var(--by) + var(--b3y)), transparent 99%, #000 100%);
  mask-composite: intersect;
}

@media (min-width: 960px) {
  .coach {
    --bx: calc(100% - 64px);
    --by: 34px;
    --br: 104px;
    --bs: 79px;
    --b2x: -104px;
    --b2y: -75px;
    --b3x: 81px;
    --b3y: 106px;
  }
}

@media (prefers-color-scheme: dark) {
  .coach {
    background: radial-gradient(120% 90% at 100% 0%, #c8285f 0%, rgba(200, 40, 95, 0) 46%), #7f0f37;
  }
}

.coach h2,
.coach h3 {
  color: #fff;
}

.coach .lead {
  color: rgba(255, 255, 255, 0.9);
}

.coach a {
  color: #fff;
}

.coach-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .coach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 0.9fr);
    gap: 48px;
  }
}

.coach-col h3 {
  margin-bottom: 14px;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.92);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff8f5
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23B5174E' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.coach-seats {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: var(--fs-lead);
  max-width: 40em;
}

/* Laura: a placeholder slot until her photo exists. Marked so it is easy to find. */
.laura {
  display: grid;
  gap: 18px;
  align-content: start;
}

.laura-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 248, 245, 0.12);
  box-shadow: inset 0 0 0 10px rgba(255, 248, 245, 0.08), inset 0 0 0 11.5px rgba(255, 248, 245, 0.5);
}

.laura-slot span {
  font-size: 3.25rem;
  font-weight: 760;
  font-variation-settings: "CRSV" 1, "SHRP" 0;
  color: #fff8f5;
}

.laura p {
  color: rgba(255, 255, 255, 0.92);
}

/* pricing */
.plans {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--plate);
  box-shadow: 0 0 0 1px var(--line);
}

.plan.is-featured {
  box-shadow: 0 0 0 2px var(--raspberry), var(--shadow-soft);
}

.plan h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trial {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tint-raspberry);
  color: var(--link);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0;
}

.price {
  margin: 18px 0 2px;
  font-size: 2.5rem;
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price small {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
}

.price-alt {
  color: var(--ink-2);
  font-size: var(--fs-small);
  min-height: 1.5em;
}

.plan .ticks {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.plan .ticks li {
  color: var(--ink);
}

.plan .ticks li::before {
  background-color: var(--tint-raspberry);
}

.plans-note {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: var(--fs-small);
  max-width: 46em;
}

/* faq */
.faq {
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: 72px;
  }
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa:first-child {
  border-top: 1px solid var(--line);
}

.qa summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font-size: 1.125rem;
  font-weight: 620;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform 0.2s ease;
}

.qa[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat;
}

.qa .answer {
  padding: 0 0 22px;
  color: var(--ink-2);
  max-width: 40em;
}

/* notify */
.notify-card {
  display: grid;
  gap: 24px;
  padding: 32px 24px;
  border-radius: var(--radius-l);
  background: var(--tint-raspberry);
}

@media (min-width: 860px) {
  .notify-card {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
    padding: 48px 56px;
  }
}

.notify-card h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
}

.notify-card p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 34em;
}

.notify-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}

@media (min-width: 860px) {
  .notify-actions {
    justify-items: end;
  }
}

/* disclaimer + footer */
.disclaimer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-small);
}

.disclaimer p {
  max-width: 60em;
}

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .site-footer .wrap {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-legal {
  grid-column: 1 / -1;
  color: var(--ink-2);
  font-size: var(--fs-small);
}

/* ---------- document pages (legal, help) ---------- */

.doc {
  padding: 40px 0 80px;
}

.doc .wrap {
  max-width: calc(46rem + 2 * var(--gutter));
}

.doc h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  letter-spacing: -0.03em;
}

.doc .meta {
  margin: 14px 0 28px;
  color: var(--ink-2);
  font-size: var(--fs-small);
}

.doc h2 {
  margin: 44px 0 14px;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 1.125rem;
}

.doc ul,
.doc ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc li::marker {
  color: var(--raspberry);
}

.summary-box {
  margin: 24px 0 8px;
  padding: 22px 24px;
  border-radius: var(--radius-m);
  background: var(--tint-raspberry);
}

.summary-box ul {
  margin: 10px 0 0;
}

.table-scroll {
  margin: 8px 0 20px;
  overflow-x: auto;
  border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px var(--line);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.doc th,
.doc td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--plate);
  font-weight: 650;
}

.doc tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  /* stack the processor table into labelled rows instead of side-scrolling */
  .doc table.stack thead {
    display: none;
  }
  .doc table.stack tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .doc table.stack tr:last-child {
    border-bottom: 0;
  }
  .doc table.stack td {
    display: block;
    padding: 2px 0;
    border: 0;
  }
  .doc table.stack td:first-child {
    font-weight: 650;
  }
}

.consent {
  margin: 8px 0 24px;
  padding: 24px;
  border-radius: var(--radius-l);
  background: var(--plate);
  box-shadow: 0 0 0 1px var(--line);
}

.consent h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.consent-check {
  position: relative;
  margin-top: 18px;
  padding: 14px 16px 14px 48px;
  border-radius: var(--radius-m);
  background: var(--bg);
  font-weight: 560;
}

.consent-check::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--raspberry);
}

.consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-buttons span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 620;
  font-size: 0.9375rem;
}

.consent-buttons span:first-child {
  background: var(--raspberry);
  box-shadow: none;
  color: #fff;
}

.legal-list {
  columns: 2 16rem;
  column-gap: 32px;
}

.lang-jump {
  margin-top: 8px;
  font-size: var(--fs-small);
}

.steps-list {
  counter-reset: s;
  list-style: none;
  padding-left: 0 !important;
}

.steps-list li {
  position: relative;
  padding-left: 40px;
  counter-increment: s;
  margin-bottom: 14px;
}

.steps-list li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint-raspberry);
  color: var(--link);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---------- small centered pages (invite, 404) ---------- */

.center-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 32px var(--gutter);
}

.center-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.center-card .app-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.center-card h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  letter-spacing: -0.025em;
}

.center-card > p,
.center-card .msg p {
  margin-top: 14px;
  color: var(--ink-2);
}

.center-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.center-actions .btn {
  width: 100%;
}

.center-foot {
  margin-top: 32px;
  color: var(--ink-2);
  font-size: var(--fs-small);
}

.center-foot a {
  color: var(--ink-2);
}

.copy-input {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--plate);
  color: var(--ink);
  font: inherit;
}

.center-lang {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.center-lang .lang-switch {
  margin: 0;
}

[hidden] {
  display: none !important;
}
