/* Loggit marketing site. The colours, the radii and the two typefaces are the app's own tokens
   (docs/design/prototypes/project/prototype.css), so the site and the app read as one thing. The names here are the site's own
   (no lg- prefix): this is a web page, not the app, and nothing is shared between the two stylesheets. */

:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-2: #F3EFE9;
  --border: #ECE6DE;
  --border-strong: #DCD4CA;
  --text: #1E1B18;
  --text-2: #6B655E;
  --primary: #2E7D5B;
  --primary-text: #1F6446;
  --primary-soft: #E4F0E9;
  --primary-line: #BCD8C8;
  --on-primary: #FFFFFF;
  --protein: #3B82D6;
  --carbs: #E9A23B;
  --fat: #8B7BDB;
  --radius-card: 16px;
  --radius-control: 12px;
  --shadow: 0 1px 2px rgba(31, 42, 31, 0.04), 0 8px 24px rgba(31, 42, 31, 0.06);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --wrap: 1140px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151311;
    --surface: #1F1C19;
    --surface-2: #2A2622;
    --border: #332E29;
    --border-strong: #6F6961;
    --text: #F3EFE9;
    --text-2: #B3ACA3;
    --primary: #4FB386;
    --primary-text: #7FD1A8;
    --primary-soft: #17291F;
    --primary-line: #234033;
    --on-primary: #0E2117;
    --protein: #5B9BE6;
    --carbs: #F0B04F;
    --fat: #A193E8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
small { font-size: 0.86rem; }

a { color: var(--primary-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 10px 14px; border-radius: var(--radius-control); box-shadow: var(--shadow); }

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

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top__bar { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 0.97rem; font-weight: 500; padding: 8px 11px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.is-here { color: var(--primary-text); background: var(--primary-soft); }
.nav__languages { display: flex; gap: 2px; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--border); }
.nav__languages a { padding: 8px 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }

/* The menu opens without JavaScript: a checkbox the eye does not see but the keyboard can still reach and tick. */
.menu-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menu-button { display: none; }
.menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 859px) {
  .menu-button { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
  .menu-button__bars { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
  .menu-button__bars::before, .menu-button__bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
  .menu-button__bars::before { top: -5px; }
  .menu-button__bars::after { top: 5px; }
  /* The bar keeps its height when the menu opens: the menu hangs under it, over the page, so neither the logo nor the page moves. */
  .top__bar { position: static; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px -18px rgb(0 0 0 / 0.25); max-height: calc(100dvh - 64px); overflow-y: auto; }
  .nav a { padding: 12px 10px; border-radius: var(--radius-control); font-size: 1.02rem; }
  .nav__languages { margin: 8px 0 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .menu-toggle:checked ~ .nav { display: flex; }
}

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

section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 88px 0; } }
.section--tint { background: var(--surface-2); }
.section__head { max-width: 40rem; margin-bottom: 40px; }
.section__head p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 0; }
.section__after { margin: 28px 0 0; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--primary-text); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-text); background: var(--primary-soft); border-radius: 999px; padding: 3px 10px 3px 8px; font-family: var(--font); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; white-space: nowrap; vertical-align: middle; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.ticks svg { flex: none; margin-top: 5px; color: var(--primary); }

/* ---------------------------------------------------------------- a piece of a screen */

/* One picture per screen, as long as the screen is; the window shows the part a page asks for. --w is how wide the window is in
   the pixels of the app (390 for a phone, 358 for a card), --x where it starts, --top and --h which rows, --full the whole height. */
.shot { margin: 0; min-width: 0; }
.shot__window { position: relative; overflow: hidden; aspect-ratio: var(--w) / var(--h); background: #FAF8F5; }
.shot__window img { position: absolute; top: 0; left: calc(var(--x) / var(--w) * -100%); width: calc(390 / var(--w) * 100%); max-width: none; height: auto; transform: translateY(calc(var(--top) / var(--full) * -100%)); }

.shot--phone { width: 100%; max-width: 300px; padding: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 40px; box-shadow: var(--shadow); }
.shot--phone .shot__window { border-radius: 32px; }
.shot--card { width: 100%; max-width: 400px; filter: drop-shadow(0 1px 2px rgba(31, 42, 31, 0.05)) drop-shadow(0 10px 24px rgba(31, 42, 31, 0.08)); }
.shot--card .shot__window { background: #FFFFFF; }

/* What stands beside a piece of text */
.media { display: flex; justify-content: center; align-items: center; gap: 20px; min-width: 0; }
.media__stack { display: grid; gap: 14px; justify-items: center; width: 100%; max-width: 400px; min-width: 0; }
.media--phone .shot--phone { max-width: 272px; }
.media--pair .shot--phone { max-width: 250px; }
/* the card that stands in for today's recipe is a tall one: it is shown a little narrower */
.media--daily .media__stack { max-width: 340px; }
.media--pair .shot--phone:nth-child(2) { margin-top: 40px; }
.media--mixed .shot--phone { max-width: 240px; flex: 1 1 0; }
.media--mixed .media__stack { flex: 1.15 1 0; }
@media (max-width: 559px) {
  .media--pair .shot--phone:nth-child(2) { display: none; }
  .media--mixed { flex-direction: column; }
  .media--mixed .media__stack { flex: none; }
  .media--mixed .shot--phone, .media--pair .shot--phone { max-width: 280px; flex: none; }
}

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

.hero { padding: 48px 0 0; }
@media (min-width: 900px) { .hero { padding: 80px 0 0; } }
.hero__text { max-width: 46rem; margin: 0 auto; text-align: center; }
.hero__lead { font-size: 1.2rem; color: var(--text-2); max-width: 36rem; margin: 0 auto 28px; }
.hero .store { align-items: center; }
.hero--page .section__head { margin-bottom: 0; }
.hero--page + section { padding-top: 56px; }
/* a text page reads as one column: the intro takes the same measure as the prose under it, not the narrower one every other page head has */
.hero--prose .section__head { max-width: 46rem; }

/* The phone in the middle with cards of the app on either side: the day, and what the week says about it */
.stage { position: relative; display: grid; justify-items: center; margin-top: 48px; padding-bottom: 56px; }
.stage::before { content: ""; position: absolute; inset: 22% 0 0; background: var(--primary-soft); border-radius: 32px; }
.stage > * { position: relative; }
.stage .shot--phone { max-width: 310px; }
.stage__side { display: none; }
@media (min-width: 900px) {
  .stage { grid-template-columns: 1fr minmax(0, 310px) 1fr; gap: 32px; align-items: center; padding-inline: 32px; }
  .stage__side { display: grid; gap: 18px; width: 100%; max-width: 330px; }
  .stage__side:first-child { justify-self: end; margin-top: 120px; }
  .stage__side:last-child { justify-self: start; margin-top: 60px; }
}

/* ---------------------------------------------------------------- cards and tiles */

.cards { display: grid; gap: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--text-2); margin-bottom: 0; }

/* A tile says one thing and shows it: the words on top, the card of the app that proves them standing on the bottom edge */
.tiles { display: grid; gap: 18px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(6, 1fr); } .tile { grid-column: span 2; } .tile--wide { grid-column: span 3; } }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; min-width: 0; color: inherit; text-decoration: none; }
.tile__text { padding: 24px 24px 20px; }
.tile__text h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.tile__text p { color: var(--text-2); margin: 0; }
.tile__media { margin-top: auto; padding: 20px 24px 0; background: var(--primary-soft); }
.tile__media .shot--card { max-width: 380px; margin: 0 auto; }
.tile__media .shot--card .shot__window { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
a.tile { transition: border-color 0.15s ease, transform 0.15s ease; }
a.tile:hover { border-color: var(--primary-line); transform: translateY(-2px); }
.tile__more { display: inline-block; margin-top: 10px; color: var(--primary-text); font-weight: 600; font-size: 0.95rem; }

/* Short things in a row: no card around them, a line above */
.list { display: grid; gap: 28px 40px; }
@media (min-width: 640px) { .list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .list--3 { grid-template-columns: repeat(3, 1fr); } .list--4 { grid-template-columns: repeat(4, 1fr); } }
.list > div { border-top: 2px solid var(--primary-line); padding-top: 16px; }
.list h3 { font-size: 1.08rem; margin-bottom: 4px; }
.list p { color: var(--text-2); margin: 0; font-size: 0.98rem; }

/* ---------------------------------------------------------------- text beside a screen */

.rows { display: grid; gap: 64px; }
@media (min-width: 880px) { .rows { gap: 96px; } }
.row { display: grid; gap: 32px; align-items: center; min-width: 0; }
.row > * { min-width: 0; }
@media (min-width: 880px) {
  .row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .row--flip .row__text { order: 2; }
}
/* a page told in parts: the heading of a part stands above its first row, closer to it than to the row before */
.chapter { max-width: 44rem; margin-bottom: -40px; padding-top: 24px; border-top: 2px solid var(--primary-line); }
.chapter:first-child { padding-top: 0; border-top: 0; }
.chapter p { color: var(--text-2); font-size: 1.1rem; margin: 0; }
.row__text { max-width: 32rem; }
.row__text h2, .row__text h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 700; }
.row__text p { color: var(--text-2); font-size: 1.05rem; }
.row__text .pill { margin-bottom: 12px; }
.row__text .ticks { color: var(--text); }

/* ---------------------------------------------------------------- buttons */

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius-control); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }

.store { display: inline-flex; flex-direction: column; gap: 8px; }
.store__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: var(--radius-control); background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.store__btn svg { fill: currentColor; }
.store__note { margin: 0; color: var(--text-2); font-size: 0.88rem; }

/* ---------------------------------------------------------------- price */

.price { display: grid; gap: 18px; align-items: start; }
@media (min-width: 880px) { .price { grid-template-columns: 1fr 1fr; gap: 24px; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; }
.plan--accent { border-color: var(--primary-line); background: var(--primary-soft); }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 9px; }
.plan li svg { flex: none; margin-top: 5px; color: var(--primary-text); }

/* ---------------------------------------------------------------- table */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 0.96rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td.yes { color: var(--primary-text); font-weight: 600; }
.table-note { margin-top: 12px; color: var(--text-2); font-size: 0.88rem; }

/* ---------------------------------------------------------------- prose (privacy, terms) */

/* The column lines up with the heading above it: it sits inside the wrap (_Prose.cshtml) and keeps its own measure, so no
   auto margins here — those would centre it in the page while the heading stays left. */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
/* only when the page opens on a heading; after a summary the heading keeps its distance */
.prose > h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { color: var(--text); }
.prose .lead { font-size: 1.12rem; color: var(--text-2); }
/* the date is its own line, not the tail of the intro (.section__head p has no bottom margin) */
.updated { margin-top: 20px; color: var(--text-2); font-size: 0.92rem; }

/* ---------------------------------------------------------------- faq */

.faq { max-width: 46rem; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { color: var(--text-2); margin-top: 0; }

/* ---------------------------------------------------------------- closing band */

.band { background: var(--primary); color: var(--on-primary); }
.band h2 { color: var(--on-primary); }
.band p { color: color-mix(in srgb, var(--on-primary) 86%, transparent); max-width: 36rem; }
.band .store__btn { background: var(--on-primary); color: var(--primary-text); }
.band .store__note { color: color-mix(in srgb, var(--on-primary) 80%, transparent); }
.band__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .band__grid { grid-template-columns: 1.2fr 0.8fr; } }

/* ---------------------------------------------------------------- footer */

.foot { background: var(--surface-2); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; } }
.foot__note { color: var(--text-2); font-size: 0.93rem; max-width: 24rem; margin-top: 14px; }
.foot__head { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); font-family: var(--font); font-weight: 600; margin-bottom: 12px; }
.foot__list { list-style: none; padding: 0; margin: 0; }
.foot__list li { margin-bottom: 8px; }
.foot__list a { color: var(--text); text-decoration: none; font-size: 0.97rem; }
.foot__list a:hover { text-decoration: underline; }
.foot__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 0.86rem; display: grid; gap: 6px; }
@media (min-width: 720px) { .foot__bottom { grid-template-columns: 1fr auto; align-items: end; } .foot__bottom p:last-child { text-align: right; } }
.foot__bottom p { margin: 0; max-width: 46rem; }

/* ---------------------------------------------------------------- recipe of the day */

.recipe-tile { width: 100%; max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); }
.recipe-tile__photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.recipe-tile__photo--none { display: grid; place-items: center; background: var(--primary-line); color: var(--primary-text); }
.recipe-tile__body { padding: 18px 22px 22px; }
.recipe-tile__day { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 6px; color: var(--text-2); font-size: 0.86rem; }
.recipe-tile .eyebrow { margin-bottom: 0; font-size: 0.78rem; }
.recipe-tile h3 { margin-bottom: 4px; }
.recipe-tile__meta { color: var(--text-2); font-size: 0.95rem; margin-bottom: 0; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- the calorie calculator */

.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-text); }

.calc { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; gap: 48px; } }

.calc__form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; display: grid; gap: 22px; }
.calc__numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .calc__numbers { gap: 16px; } }

.field { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.field legend, .field__label { font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: 0; }
.field__note { margin: 0; color: var(--text-2); font-size: 0.88rem; }

.input, .input--unit input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font: inherit; font-variant-numeric: tabular-nums; }
.input--unit { display: flex; align-items: center; padding: 0; overflow: hidden; }
.input--unit input { border: 0; border-radius: 0; min-width: 0; }
/* the ring is the whole field's (focus-within below): the number's own would be cut off into a line before the unit */
.input--unit input:focus-visible { outline: 0; }
.input--unit em { padding-right: 14px; color: var(--text-2); font-style: normal; }
.input:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices--rows { flex-direction: column; flex-wrap: nowrap; }
.choice { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; font-size: 0.97rem; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice:has(input:checked) { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary-text); font-weight: 600; }
.choice:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.choice--row { border-radius: var(--radius-control); width: 100%; padding: 12px 16px; }
.choice--row span { display: grid; gap: 2px; }
.choice--row em { font-style: normal; color: var(--text-2); font-size: 0.88rem; font-weight: 400; }

.calc__form .btn { justify-content: center; }
/* the pace is only asked of a goal that moves the weight */
.calc__form:not(:has(input[data-pace="1"]:checked)) .field--pace { display: none; }
.calc__answer { display: grid; gap: 18px; scroll-margin-top: 96px; }
@media (min-width: 900px) { .calc__answer { position: sticky; top: 96px; } }
.answer.answer--empty { background: var(--surface); border-color: var(--border); }
.answer.answer--empty p { margin: 0; color: var(--text-2); }
.answer--empty .ticks { margin-top: 12px; }
.calc__answer .note p { margin: 0; color: var(--text-2); font-size: 0.9rem; }
/* while the sum is worked: the steps take the place of the answer that stood there */
.calc__answer.is-busy > :not(.answer--busy) { display: none; }
.answer.answer--busy h2 { margin-bottom: 14px; }
.answer__busy { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.answer__busy li { display: flex; align-items: center; gap: 12px; color: var(--text-2); opacity: 0.45; transition: opacity 0.2s; }
.answer__busy li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--primary-line); }
.answer__busy li.is-doing, .answer__busy li.is-done { opacity: 1; color: var(--text); }
.answer__busy li.is-doing::before { border-top-color: var(--primary); animation: calc-spin 0.7s linear infinite; }
.answer__busy li.is-done::before { border-color: var(--primary); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
@keyframes calc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .answer__busy li.is-doing::before { animation: none; border-color: var(--primary); } }
.answer { background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: var(--radius-card); padding: 24px; }
.answer h2 { font-size: 1.1rem; color: var(--primary-text); margin-bottom: 6px; }
.answer h3 { font-size: 1rem; margin: 22px 0 8px; }
.answer__kcal { margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.answer__kcal strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem); line-height: 1; }
.answer__kcal span { color: var(--text-2); }
.answer__macros { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-2); font-size: 0.95rem; }
.answer__macro { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.answer__macro--protein { color: var(--protein); }
.answer__macro--carbs { color: var(--carbs); }
.answer__macro--fat { color: var(--fat); }
.answer__steps { margin: 0; padding-left: 1.2em; color: var(--text-2); }
.answer__steps li { margin-bottom: 8px; }

/* the button right under the answer, where the number is still in view */
.answer__cta { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--primary-line); }
.answer__cta p { margin: 0 0 14px; }

/* ---------------------------------------------------------------- plans */

.plan h2, .plan h3 { font-size: 1.3rem; margin-bottom: 10px; }
.plan > p { color: var(--text-2); }
.plan__price small { display: block; margin-top: 6px; font-family: var(--font); font-weight: 400; font-size: 0.92rem; color: var(--text-2); letter-spacing: 0; }

/* The fourteen days, as three moments */
.days { display: grid; gap: 18px; }
@media (min-width: 880px) { .days { grid-template-columns: repeat(3, 1fr); } }
.days > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px 24px; }
.days strong { display: block; color: var(--primary-text); font-family: var(--font-display); font-size: 0.92rem; letter-spacing: 0.02em; margin-bottom: 6px; }
.days h3 { margin-bottom: 6px; }
.days p { margin: 0; color: var(--text-2); }

/* ---------------------------------------------------------------- everything in a list (the features page) */

.groups { display: grid; gap: 18px; }
@media (min-width: 720px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .groups { grid-template-columns: repeat(3, 1fr); } }
.groups .ticks { margin-top: 12px; color: var(--text-2); }
.groups .pill { margin-left: 6px; }

/* ---------------------------------------------------------------- the download button in the header */

.nav a.nav__get { margin-left: 8px; background: var(--text); color: var(--bg); padding: 8px 16px; }
.nav a.nav__get:hover { background: var(--primary-text); color: var(--on-primary); }
@media (max-width: 859px) { .nav a.nav__get { margin: 8px 0 0; text-align: center; } }
