/* Landing page in direction C · Menta (W6): golds `land` (1440) and `landM` (390), Light and Dark, from the D74
   frames. Colours come from the --r2-* tokens (Color · Release 2, with --r2-site-field), motion from --motion-* and
   --easing-*. Below 1024 px the page uses the phone composition (landM), from 1024 px the desktop one (land).
   Vertical measures reproduce the golds at 390 and 1440 (4985 and 4249 px tall); Figma rounds line heights to whole
   pixels, so the line heights here are whole pixels too. */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("../fonts/nunito-sans-latin-ext-wght.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;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("../fonts/nunito-sans-latin-wght.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;
}

:root {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

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

html {
  background: var(--r2-surface-sheet-bottom);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--r2-surface-sheet-bottom);
  color: var(--r2-text-primary);
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

h2,
h3 {
  text-wrap: balance;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--r2-accent-default);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 10;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  border-radius: 22px;
  background: var(--r2-surface-sheet-top);
  color: var(--r2-text-primary);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 16px;
}

.only-dark {
  display: none;
}

:root[data-theme="dark"] .only-light {
  display: none;
}

:root[data-theme="dark"] .only-dark {
  display: block;
}


.switch {
  position: relative;
  width: 88px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--r2-border-control);
  border-radius: 22px;
  background: var(--r2-surface-glass-top);
  color: var(--r2-text-primary);
  cursor: pointer;
}

.switch__ring {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 36px;
  height: 36px;
  border: 2px solid var(--r2-accent-default);
  border-radius: 18px;
}

:root[data-theme="dark"] .switch__ring {
  transform: translateX(44px);
}

.switch__icon {
  position: absolute;
  top: 13px;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.switch__icon--sun {
  left: 13px;
}

.switch__icon--moon {
  left: 57px;
}

/* Header: logo and wordmark, the menu (desktop only), the theme switch. */

.top {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  max-width: 600px;
  height: 72px;
  margin: 0 auto;
}

.brand {
  position: absolute;
  left: 20px;
  top: 15.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--r2-text-primary);
  text-decoration: none;
}

.brand__mark {
  width: auto;
  height: 42px;
}

.brand__word {
  font-size: 22px;
  font-weight: 700;
  line-height: 33px;
}

.links {
  display: none;
}

.top .switch {
  position: absolute;
  right: 20px;
  top: 14px;
}

/* Hero on the site field: title, lead, the action, and the picture (sun, Chat phone, glass labels), which runs
   past the field's lower edge. --u scales the picture: 1 px at the gold widths (390 and 1440). */

.hero {
  position: relative;
  padding: 104px 20px 0;
  background: var(--r2-site-field);
}

.hero__inner {
  max-width: 560px;
  margin: 0 auto;
}

.hero__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 26px;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 350px;
  max-width: 100%;
  height: 56px;
  margin-top: 24px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid var(--r2-cta-stroke);
  border-radius: 28px;
  /* The Aero action: gradient, sheen and glow, allowed by docs/site/web-skills.md. taste-skill-ignore */
  background: linear-gradient(var(--r2-cta-top), var(--r2-cta-bottom)); /* taste-skill-ignore */
  box-shadow: 0 4px 14px var(--r2-glow-cta), inset 0 1px 0 var(--r2-effect-sheen); /* Aero glow, allowed by docs/site/web-skills.md. taste-skill-ignore */
  color: var(--r2-cta-on);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  touch-action: manipulation;
}

.cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 50%;
  background: linear-gradient(var(--r2-effect-sheen), transparent); /* taste-skill-ignore */
  opacity: 0.6;
  pointer-events: none;
}

.cta__icon {
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("../img/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../img/icons/arrow-right.svg") center / contain no-repeat;
}

.hero__note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 21px;
}

.art {
  --u: calc(min(100vw, 390px) / 390);
  position: relative;
  z-index: 1;
  width: calc(390 * var(--u));
  height: calc(550 * var(--u));
  margin: 40px 0 calc(-220 * var(--u)) calc((100% - 390 * var(--u)) / 2);
}

.art__sun {
  position: absolute;
  left: calc(45 * var(--u));
  top: 0;
  width: calc(300 * var(--u));
  height: calc(300 * var(--u));
  border-radius: 50%;
  background: var(--r2-surface-sheet-top);
}

.art__phone {
  position: absolute;
  left: calc(43.94 * var(--u));
  top: calc(11.65 * var(--u));
  width: calc(302.12 * var(--u));
}

.art__base {
  width: 100%;
  height: auto;
}

.art__msg {
  position: absolute;
  left: 14.019%;
  width: 72.196%;
  height: auto;
}

.art__msg--user {
  top: 49.636%;
}

.art__msg--tali {
  top: 60.073%;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  height: calc(42 * var(--u));
  padding: 0 calc(16 * var(--u)) 0 calc(14 * var(--u));
  border-radius: 999px;
  background: var(--r2-surface-glass-top);
  box-shadow: inset 0 0 0 1.5px var(--r2-border-glass), 0 12px 32px var(--r2-effect-glow); /* Aero glow, allowed by docs/site/web-skills.md. taste-skill-ignore */
  font-size: calc(14 * var(--u));
  font-weight: 700;
  line-height: 1.36;
  white-space: nowrap;
}

.chip__icon {
  flex: none;
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  background: var(--r2-led-on);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.chip__icon--bowl {
  --icon: url("../img/icons/bowl-food.svg");
}

.chip__icon--check {
  --icon: url("../img/icons/check-circle.svg");
}

.chip__icon--sparkle {
  --icon: url("../img/icons/sparkle.svg");
  background: var(--r2-accent-default);
}

.chip--kcal {
  left: calc(196 * var(--u));
  top: calc(96 * var(--u));
}

.chip--meal {
  left: calc(14 * var(--u));
  top: calc(330 * var(--u));
}

.chip--memory {
  display: none;
}

/* Three moments of the day: the panels are pictures of the gold (mint field and phone crop). */

.moments,
.faq {
  max-width: 600px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.moments {
  padding-top: calc(96px + 220 * min(100vw, 390px) / 390);
  padding-bottom: 96px;
}

.moments__title,
.band__title,
.faq__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 33px;
  letter-spacing: -0.01em;
}

.moments__lead {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
}

.moments__list {
  display: grid;
  gap: 48px;
  margin-top: 32px;
}

.moment__pic img {
  width: 100%;
  height: auto;
}

.moment h3 {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 700;
  line-height: 33px;
}

.moment p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 24px;
}

/* Try a day's balance: the D72 plate and the D73 sample meals on a full-width band. */

.band {
  background: var(--r2-surface-sheet-top);
}

.band__inner {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 20px;
}

.band .plate-wrap {
  order: 2;
  margin: 24px 0 0;
}

.band__text {
  display: contents;
}

.band__title {
  order: 0;
}

.band__lead {
  order: 1;
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
}

.band__example {
  order: 3;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 23px;
}

.band .meals,
.band [data-plate-summary] {
  order: 4;
}

/* Questions: the title, then the four answers, every one open. */

.faq {
  padding-top: 96px;
  padding-bottom: 72px;
}

.faq__item {
  margin-top: 32px;
}

.faq__item:first-child {
  margin-top: 31px;
}

.faq h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.faq p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
}

/* Footer on the site field: the name, the links, the contact and the account-deletion block. */

.foot {
  background: var(--r2-site-field);
}

.foot__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 35.5px 20px 48px;
  font-size: 15px;
  line-height: 23px;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 33px;
}

.foot__mark {
  width: auto;
  height: 42px;
}

.foot__tag {
  margin-top: 10.5px;
}

.foot__links {
  margin-top: 19px;
}

.foot__links p + p {
  margin-top: 7px;
}

.foot a {
  text-decoration: none;
}

.foot__strong {
  font-weight: 600;
}

.foot a:hover {
  opacity: 0.75;
}

.foot a.foot__mail {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* D79: the policy link in the deletion block takes the accent, as in the gold. */
.foot a.foot__accent {
  color: var(--r2-accent-default);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.delete {
  margin-top: 30px; /* D79 re-stacked the phone footer: 30 px above the deletion block */
}

.delete h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.delete h2 + p {
  margin-top: 10px;
}

.delete p + p {
  margin-top: 12px;
}

/* Sections reached from the menu or the footer keep air above them when the browser jumps natively. */
section[id],
.faq__item[id],
.foot {
  scroll-margin-top: 32px;
}

/* Desktop composition (gold `land`, 1440 wide); --u scales the hero picture and the side margins below 1440. */

@media (min-width: 1024px) {
  :root {
    --u: calc(min(100vw, 1440px) / 1440);
  }

  .top {
    max-width: 1440px;
    height: 96px;
  }

  .brand {
    left: calc(80 * var(--u));
    top: 23.5px;
  }

  .brand__mark {
    height: 47px;
  }

  .brand__word {
    font-size: 24px;
    line-height: 36px;
  }

  .links {
    position: absolute;
    left: calc(560 * var(--u));
    top: 35px;
    display: flex;
    gap: 44px;
  }

  .links a {
    margin: -4px -10px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    line-height: 26px;
    text-decoration: none;
  }

  .links a:hover {
    background: var(--r2-surface-track);
  }

  .top .switch {
    right: calc(80 * var(--u));
    top: 24px;
  }

  .hero {
    min-height: calc(860 * var(--u));
    padding: 200px 0 0;
  }

  .hero__inner {
    position: relative;
    max-width: 1440px;
    padding-left: calc(120 * var(--u));
  }

  .hero__title {
    max-width: 660px;
    font-size: max(56px, calc(80 * var(--u)));
    line-height: 1.0625;
    letter-spacing: -0.025em;
  }

  .hero__lead {
    max-width: min(520px, 36vw);
    margin-top: 32px;
    font-size: 20px;
    line-height: 30px;
  }

  .cta {
    margin-top: 40px;
  }

  .hero__note {
    margin-top: 18px;
    font-size: 16px;
    line-height: 24px;
  }

  .art {
    --u: calc(min(100vw, 1440px) / 1440);
    position: absolute;
    left: calc(690 * var(--u));
    top: calc(130 * var(--u) - 200px);
    width: calc(681 * var(--u));
    height: calc(846 * var(--u));
    margin: 0;
    transform-origin: 0 0;
  }

  .art__sun {
    left: calc(100 * var(--u));
    width: calc(560 * var(--u));
    height: calc(560 * var(--u));
  }

  .art__phone {
    left: calc(166 * var(--u));
    top: calc(84 * var(--u));
    width: calc(428 * var(--u));
  }

  .chip {
    gap: calc(10 * var(--u));
    height: calc(53 * var(--u));
    padding: 0 calc(22 * var(--u)) 0 calc(18 * var(--u));
    box-shadow: inset 0 0 0 1.5px var(--r2-border-glass), 0 18px 44px var(--r2-effect-glow); /* Aero glow, allowed by docs/site/web-skills.md. taste-skill-ignore */
    font-size: calc(16 * var(--u));
  }

  .chip__icon {
    width: calc(22 * var(--u));
    height: calc(22 * var(--u));
  }

  .chip--kcal {
    left: calc(460 * var(--u));
    top: calc(200 * var(--u));
  }

  .chip--meal {
    left: 0;
    top: calc(470 * var(--u));
  }

  .chip--memory {
    left: calc(370 * var(--u));
    top: calc(730 * var(--u));
    display: flex;
  }

  .moments,
  .faq {
    max-width: 1440px;
    padding-left: calc(120 * var(--u));
    padding-right: calc(120 * var(--u));
  }

  .moments {
    padding-top: calc(164px + 116 * var(--u));
    padding-bottom: 180px;
  }

  .moments__head {
    display: grid;
    grid-template-columns: minmax(0, 680fr) minmax(0, 520fr);

  }

  .moments__title,
  .faq__title {
    font-size: 52px;
    line-height: 55px;
    letter-spacing: -0.015em;
  }

  .moments__lead {
    margin-top: 8px;
    font-size: 19px;
    line-height: 29px;
  }

  .moments__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(39 * var(--u));
    margin-top: 64px;
  }

  .moment h3 {
    margin-top: 28px;
    font-size: 28px;
    line-height: 42px;
  }

  .moment p {
    margin-top: 10px;
    font-size: 18px;
    line-height: 27px;
  }

  .band__inner {
    display: grid;
    grid-template-columns: minmax(0, 560fr) minmax(0, 120fr) minmax(0, 520fr);
    align-items: start;
    max-width: 1440px;
    padding: 120px calc(120 * var(--u));
  }

  .band .plate-wrap {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .band__text {
    display: block;
    grid-column: 3;
    grid-row: 1;
    padding-top: 30px;
  }

  .band__title {
    font-size: 48px;
    line-height: 51px;
    letter-spacing: -0.015em;
  }

  .band__lead {
    margin-top: 24px;
    font-size: 19px;
    line-height: 29px;
  }

  .band__example {
    margin-top: 32px;
    font-size: 16px;
    line-height: 24px;
  }

  .band .meals {
    width: min(460px, 100%);
  }

  .faq {
    display: grid;
    grid-template-columns: minmax(0, 440fr) minmax(0, 760fr);
    align-items: start;
    padding-top: 180px;
    padding-bottom: 184px;
  }

  .faq__list {
    padding-top: 8px;
  }

  .faq__item,
  .faq__item:first-child {
    margin-top: 44px;
  }

  .faq__item:first-child {
    margin-top: 0;
  }

  .faq h3 {
    font-size: 26px;
    line-height: 39px;
  }

  .faq p {
    max-width: 720px;
    margin-top: 10px;
    font-size: 19px;
    line-height: 29px;
  }

  .foot__inner {
    display: grid;
    grid-template-columns: minmax(0, 560fr) minmax(0, 640fr);
    max-width: 1440px;
    padding: 67.5px calc(120 * var(--u)) 64px;
    font-size: 17px;
    line-height: 26px;
  }

  .foot__brand {
    gap: 10px;
    font-size: 32px;
    line-height: 48px;
  }

  .foot__mark {
    height: 57px;
  }

  .foot__tag {
    margin-top: 15.5px;
  }

  .foot__links {
    margin-top: 12.5px;
  }

  .foot__links p + p {
    margin-top: 10px;
  }

  .delete {
    grid-column: 1 / -1;
    max-width: 880px;
    margin-top: 32px;
  }

  .delete h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .delete h2 + p {
    margin-top: 10px;
  }
}

/* Motion. Without script or with reduced motion everything stays at rest (the gold). */

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

  body,
  .hero,
  .band,
  .foot,
  .art__sun {
    transition: background-color var(--motion-slow) var(--easing-emphasized);
  }

  .motion [data-reveal],
  .motion [data-chip] {
    transition:
      opacity var(--motion-slow) var(--easing-emphasized) var(--d, 0ms),
      transform var(--motion-slow) var(--easing-emphasized) var(--d, 0ms);
  }

  .motion [data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translateY(20px);
  }

  .motion .art__msg[data-reveal]:not(.is-in) {
    transform: translateY(16px);
  }

  .motion [data-chip]:not(.is-in) {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  /* After their entrance the glass labels float slowly, each on its own rhythm. */
  .motion [data-chip].is-floating {
    animation: chip-float 7s ease-in-out infinite alternate;
  }

  .motion .chip--meal.is-floating {
    animation-duration: 8.5s;
    animation-delay: -2s;
  }

  .motion .chip--memory.is-floating {
    animation-duration: 9.5s;
    animation-delay: -4s;
  }

  .is-paused [data-chip] {
    animation-play-state: paused;
  }

  .plate__fill {
    transition: stroke-dasharray 1.2s var(--easing-emphasized), stroke var(--motion-base) var(--easing-standard);
  }

  .plate__leds i {
    transition: background-color var(--motion-fast) var(--easing-standard) var(--d, 0ms);
  }

  .plate.is-quiet .plate__fill,
  .plate.is-quiet .plate__leds i {
    transition: none;
  }

  .meal,
  .links a,
  .switch,
  .cta {
    transition:
      background-color var(--motion-fast) var(--easing-standard),
      border-color var(--motion-fast) var(--easing-standard),
      color var(--motion-fast) var(--easing-standard),
      box-shadow var(--motion-fast) var(--easing-standard),
      transform var(--motion-fast) var(--easing-standard);
  }

  .meal:hover,
  .switch:hover,
  .cta:hover {
    transform: translateY(-1px);
  }

  .cta:hover {
    box-shadow: 0 8px 20px var(--r2-glow-cta), inset 0 1px 0 var(--r2-effect-sheen); /* Aero glow, allowed by docs/site/web-skills.md. taste-skill-ignore */
  }

  .meal:active,
  .switch:active,
  .cta:active {
    transform: translateY(1px);
  }

  .switch__ring {
    transition: transform var(--motion-base) var(--easing-emphasized);
  }

  .foot a {
    transition: opacity var(--motion-fast) var(--easing-standard);
  }
}

@keyframes chip-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

/* Scroll-linked motion where scroll timelines exist: the hero phone rises a little faster than the page, the
   plate settles in, the moment panels drift through their section. Other browsers keep the entrances only. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .art__phone {
      animation: phone-rise linear both;
      animation-timeline: scroll(root);
      animation-range: 0 900px;
    }

    .plate-wrap {
      animation: plate-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }

    .moment__pic {
      animation: panel-drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}

@keyframes phone-rise {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-48px);
  }
}

@keyframes plate-in {
  from {
    transform: translateY(32px) scale(0.97);
  }
  to {
    transform: none;
  }
}

@keyframes panel-drift {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(-16px);
  }
}

/* The arc plate (a 640-unit drawing scaled to its column) and the sample meals, as in W5 (D72/D73). */

.plate-wrap {
  margin: 0 -4px;
  container-type: inline-size;
}

.plate {
  --u: calc(100cqw / 640);
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: calc(32 * var(--u));
  border: calc(1 * var(--u)) solid var(--r2-border-glass);
  background: var(--r2-surface-glass-top);
}

.plate__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.plate__track,
.plate__fill {
  fill: none;
  stroke-width: 27.79;
}

.plate__track {
  stroke: var(--r2-surface-track);
}

.plate__fill {
  stroke: var(--r2-led-on);
  stroke-dasharray: 503.81 1000;
}

.plate.is-over .plate__fill {
  stroke: var(--r2-led-over);
}

.plate__kcal,
.plate__meta {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.plate__kcal {
  top: calc(201.86 * var(--u));
  font-size: calc(83 * var(--u));
  font-weight: 700;
  line-height: calc(83 * var(--u));
}

.plate__meta {
  top: calc(288.86 * var(--u));
  color: var(--r2-text-muted);
  font-size: calc(22 * var(--u));
  line-height: calc(33 * var(--u));
}

.plate.is-over .plate__kcal,
.plate.is-over .plate__meta {
  color: var(--r2-text-danger);
}

.plate__rows {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(457 * var(--u));
}

.plate__row {
  position: relative;
  height: calc(38 * var(--u));
}

.plate__label,
.plate__value {
  position: absolute;
  top: 0;
  font-size: calc(20 * var(--u));
  line-height: calc(30 * var(--u));
}

.plate__label {
  left: calc(64 * var(--u));
  font-weight: 700;
}

.plate__value {
  right: calc(64 * var(--u));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.plate__leds {
  position: absolute;
  left: calc(102 * var(--u));
  top: calc(4 * var(--u));
  display: flex;
  gap: calc(8 * var(--u));
}

.plate__leds i {
  width: calc(32 * var(--u));
  height: calc(14 * var(--u));
  border-radius: calc(3 * var(--u));
  background: var(--r2-surface-track);
}

.plate__row--p .plate__value { color: var(--r2-macro-protein); }
.plate__row--c .plate__value { color: var(--r2-macro-carbs); }
.plate__row--g .plate__value { color: var(--r2-macro-fat); }
.plate__row--p .plate__leds .on { background: var(--r2-macro-protein); }
.plate__row--c .plate__leds .on { background: var(--r2-macro-carbs); }
.plate__row--g .plate__leds .on { background: var(--r2-macro-fat); }
.plate__row.is-over .plate__value { color: var(--r2-text-danger); }
.plate__row.is-over .plate__leds i { background: var(--r2-led-over); }

.meals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.meal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 56px;
  padding: 0 14.5px 0 18.5px;
  border: 1.5px solid var(--r2-border-control);
  border-radius: 28px;
  background: var(--r2-surface-glass-top);
  color: var(--r2-text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
}

.meal__end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meal__kcal {
  color: var(--r2-text-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  font-variant-numeric: tabular-nums;
}

.meal__check {
  display: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.meal[aria-pressed="true"] {
  border-color: var(--r2-cta-stroke);
  background: var(--r2-cta-top);
  color: var(--r2-cta-on);
}

.meal[aria-pressed="true"] .meal__kcal {
  color: var(--r2-cta-on);
}

.meal[aria-pressed="true"] .meal__check {
  display: block;
}

.meal:focus-visible {
  outline: 3px solid var(--r2-accent-default);
  outline-offset: -3px;
}
