/* Zdravá strava – public site.
   Structure from research on successful meal-prep sites (SK/CZ and international): food-first hero with a price
   anchor, goal entry points, live weekly menu, size calculator, all-in per-day pricing, results, FAQ.
   Apple-like pieces from Takt where they help: frosted nav pill, segmented controls, day circles, gentle reveals. */

:root {
  --ink: #16261c;
  --ink-2: #5b6a60;
  --ink-3: #8a968d;
  --green: #1d5a35;
  --green-deep: #133f25;
  --lime: #c8e89a;
  --lime-strong: #86c440;
  --mist: #f3f6f1;
  --paper: #ffffff;
  --fill: #e9ece7;
  --line: rgba(22, 38, 28, 0.1);
  --line-strong: rgba(22, 38, 28, 0.18);

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 30px 60px -34px rgba(22, 38, 28, 0.35);
  --gutter: 20px;
  --max: 1200px;
  color-scheme: light;
}
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------------------ type */
h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.eyebrow {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head .lead {
  margin-top: 16px;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.btn:hover {
  background: var(--green-deep);
}
.btn:active {
  transform: scale(0.97);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--mist);
}
.btn-light {
  background: #fff;
  color: var(--green-deep);
}
.btn-light:hover {
  background: var(--lime);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}
.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}
.btn-block {
  width: 100%;
}
.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------------ nav pill (frosted, from Takt) */
.nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 12px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1100px;
  height: 58px;
  margin: 0 auto;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 38, 28, 0.08);
  box-shadow: 0 10px 30px -12px rgba(22, 38, 28, 0.18);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand svg {
  width: 26px;
  height: 26px;
}
.brand b {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nav-links {
  display: none;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  background: var(--mist);
  color: var(--ink);
}
.nav-end {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.nav-menu-link {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--ink-2);
}
@media (min-width: 980px) {
  .nav-links {
    display: flex;
    gap: 2px;
    margin: 0 auto;
  }
  .nav-end {
    margin-left: 0;
  }
  .nav-menu-link {
    display: none;
  }
}

/* ------------------------------------------------------------------ sections */
.section {
  padding: clamp(72px, 9vw, 128px) 0;
}
.section-mist {
  background: var(--mist);
}

/* ------------------------------------------------------------------ hero
   One centered statement with a soft lime glow behind it, then the facts strip. */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(108px, 11vw, 136px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(200, 232, 154, 0.38) 0%, rgba(200, 232, 154, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f6f9f3 38%, #f6f9f3 72%, #ffffff 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}
.menu-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 6px 16px 6px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px -12px rgba(22, 38, 28, 0.25);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.2s;
}
.menu-pill:hover {
  background: #fff;
}
.menu-pill b {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 1.4rem + 5vw, 5.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 14em;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .hero h1 span {
    display: block;
  }
}
.hero .lead {
  max-width: 31em;
  margin: 22px auto 0;
  text-wrap: balance;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero .ctas {
  justify-content: center;
  margin-top: 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-deep);
  font-size: 0.6875rem;
  font-weight: 900;
}
.hero-meta b {
  color: var(--ink);
}

/* Proof strip: four plain figures under the statement, short hairlines between them, no table lines */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 30px;
  max-width: 980px;
  margin: clamp(44px, 5vw, 64px) auto 0;
}
.facts li {
  position: relative;
  padding: 0 10px;
  text-align: center;
}
.facts li:nth-child(even)::before {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 0;
  width: 1px;
  background: var(--line-strong);
}
.facts strong {
  display: block;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.facts span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .facts li + li::before {
    content: '';
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 0;
    width: 1px;
    background: var(--line-strong);
  }
}

/* ------------------------------------------------------------------ goals */
.goals {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .goals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.goal {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  background: var(--green-deep);
}
.goal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}
.goal::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 22, 14, 0) 30%, rgba(10, 22, 14, 0.82) 100%);
}
.goal:hover img {
  transform: scale(1.04);
}
.goal-body {
  margin-top: auto;
  padding: 26px;
}
.goal-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  font-weight: 700;
}
.goal h3 {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.goal p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
}
.goal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
}

/* ------------------------------------------------------------------ how it works: Takt's tour
   Four steps beside one sticky photo frame (Takt has a phone there). Stacked (no JavaScript, reduced motion, a short
   screen): every step shows its own scene, above its text on phones and beside it on wide screens. Live (html.js,
   motion allowed, tall enough): home.js copies the scenes into one sticky frame that shows the step being read, and
   on wide screens a line beside the steps marks that step. Every size is set here, before the first paint, so the
   sticky frame never shifts the layout. */
.tour-intro {
  text-align: center;
}
.tour-sticky {
  display: none;
}
.tour-steps {
  display: grid;
  gap: 72px;
  margin-top: 48px;
}
.tour-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tour-art {
  width: min(100%, 400px);
  margin-bottom: 28px;
}
.tour-copy {
  max-width: 32rem;
}
.tour-copy p {
  color: var(--ink-2);
  text-wrap: pretty;
}
.tour-copy .tour-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}
.tour-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
}
.tour-copy h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.625rem, 1.15rem + 1.4vw, 2.375rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.tour-copy p a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.tour-copy .link-arrow {
  margin-top: 14px;
}
.tour-copy .link-arrow::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
@media (min-width: 900px) {
  .tour-steps {
    gap: 64px;
  }
  .tour-step {
    flex-direction: row;
    justify-content: center;
    gap: clamp(48px, 7vw, 96px);
    text-align: left;
  }
  .tour-art {
    flex: none;
    width: 360px;
    margin: 0;
  }
  .tour-copy h3 .phrase {
    display: block;
  }
  .tour-copy p {
    font-size: 1.125rem;
  }
}

/* A scene shows the step itself, the way the customer meets it: the calculator, the Instagram chat, the delivery
   days, Monday's three meals as on the menu. No panel behind it: the white card sits on the section's own background.
   Everything inside is sized in em from the scene's size, so one scene works from a phone's stacked step to the large
   sticky frame (stacked: from its width; in the frame: from its width and height). */
.scene {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.5em 0 1.5em;
  container-type: inline-size;
  text-align: left;
}
.scene-ui {
  width: 19em;
  max-width: 100%;
  font-size: clamp(12px, 4.6cqw, 19px);
  line-height: 1.35;
}
.ui-card {
  padding: 1.1em 1.15em 1.2em;
  border-radius: 1.4em;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 0 0 1px var(--line),
    0 1.8em 3.4em -1.6em rgba(19, 63, 37, 0.32);
}
.ui-k {
  margin-bottom: 0.55em;
  color: var(--ink-3);
  font-size: 0.8em;
  font-weight: 700;
}

/* 1. size: the site's calculator in small, the goal sliding to Schudnúť and the answer appearing */
.ui-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.2em;
  border-radius: 0.9em;
  background: var(--fill);
}
.ui-seg span {
  position: relative;
  padding: 0.55em 0;
  color: var(--ink);
  font-size: 0.82em;
  font-weight: 600;
  text-align: center;
}
.ui-thumb {
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0.2em;
  width: calc((100% - 0.4em) / 3);
  border-radius: 0.7em;
  background: #fff;
  box-shadow:
    0 0.2em 0.5em rgba(0, 0, 0, 0.1),
    0 1px 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.55s var(--ease);
}
.ui-rows {
  margin: 0.7em 0 0.9em;
}
.ui-rows div {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86em;
}
.ui-rows dt {
  color: var(--ink-2);
}
.ui-rows dd {
  font-weight: 700;
}
.ui-result {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.65em 0.9em;
  border-radius: 1em;
  background: var(--lime);
  color: var(--green-deep);
  transition:
    opacity 0.4s 0.6s,
    transform 0.55s 0.6s var(--ease);
}
.ui-result b {
  font-size: 2.2em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}
.ui-result span {
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.3;
}

/* 2. order: the prepared message, then their reply after a typing indicator */
.chat {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid var(--line);
}
.chat-head svg {
  flex: none;
  width: 2.1em;
  height: 2.1em;
}
.chat-head b {
  display: block;
  font-size: 0.86em;
}
.chat-head small {
  display: block;
  color: var(--ink-3);
  font-size: 0.72em;
  font-weight: 600;
}
.bubble {
  max-width: 86%;
  padding: 0.6em 0.85em;
  border-radius: 1.2em;
  font-size: 0.88em;
}
.bubble.me {
  align-self: flex-end;
  border-bottom-right-radius: 0.4em;
  background: var(--green);
  color: #fff;
}
.chat-reply {
  position: relative;
  display: flex;
}
.bubble.them,
.bubble.typing {
  border-bottom-left-radius: 0.4em;
  background: var(--fill);
}
.bubble.typing {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  gap: 0.3em;
  padding: 0.85em 0.95em;
}
.bubble.typing i {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--ink-3);
  animation: typing-dot 0.9s ease-in-out infinite;
}
.bubble.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.bubble.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing-dot {
  50% {
    opacity: 0.3;
    transform: translateY(-0.15em);
  }
}

/* 3. delivery: Saturday, Sunday, Monday as the menu's day circles, lit up in turn */
.when-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.9em;
}
.when-line li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}
.when-line i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  margin-bottom: 0.5em;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.92em;
  font-style: normal;
  font-weight: 800;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.when-line li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.2em;
  left: calc(50% + 1.55em);
  right: calc(-50% + 1.55em);
  height: 2px;
  border-radius: 1px;
  background: var(--green);
  transform-origin: left;
  transition: transform 0.4s linear;
}
.when-line li:nth-child(1)::after {
  transition-delay: 0.2s;
}
.when-line li:nth-child(2) i {
  transition-delay: 0.6s;
}
.when-line li:nth-child(2)::after {
  transition-delay: 0.8s;
}
.when-line li:nth-child(3) i {
  transition-delay: 1.2s;
}
.when-line b {
  font-size: 0.9em;
  font-weight: 800;
}
.when-line span {
  color: var(--ink-2);
  font-size: 0.76em;
  line-height: 1.3;
}
.when-foot {
  margin-top: 1em;
  padding-top: 0.75em;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.8em;
  font-weight: 600;
  text-align: center;
}

/* 4. the day: Monday's three meals as three boxes with the menu's tape, fanning out */
.fan-wrap {
  width: 22em;
  font-size: clamp(11px, 4.4cqw, 22px);
}
.fan-k {
  margin-bottom: 1.1em;
  color: var(--ink-2);
  font-size: 0.8em;
  font-weight: 700;
  text-align: center;
}
.fan {
  position: relative;
  height: 13.6em;
}
.fan figure {
  position: absolute;
  top: 0;
  left: 50%;
  width: 8.3em;
  margin-left: -4.15em;
  padding: 0.35em 0.35em 0.5em;
  border-radius: 1em;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--line),
    0 1.2em 2.4em -1.1em rgba(19, 63, 37, 0.4);
  transition: transform 0.7s var(--ease);
}
.fan figure:nth-child(1) {
  transform: translate(-6.6em, 0.9em) rotate(-8deg);
}
.fan figure:nth-child(2) {
  z-index: 1;
  transform: none;
  transition-delay: 0.08s;
}
.fan figure:nth-child(3) {
  transform: translate(6.6em, 0.9em) rotate(8deg);
  transition-delay: 0.16s;
}
.fan img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 0.7em;
  object-fit: cover;
  background: var(--fill);
}
.fan figcaption {
  overflow: hidden;
  padding: 0.5em 0.2em 0;
  color: var(--ink);
  font-size: 0.62em;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}
.fan .tape {
  top: -0.6em;
  left: 50%;
  padding: 0.15em 0.55em 0.25em;
  font-size: 0.95em;
  white-space: nowrap;
  transform: translateX(-50%) rotate(-3deg);
}

/* Before a scene plays (only once home.js has set the tour up, and only with motion allowed): the goal not chosen
   yet, no answer, no messages, no days lit, the meals stacked. Adding .play moves each to its final state above. */
@media (prefers-reduced-motion: no-preference) {
  .tour.is-set .scene:not(.play) .ui-thumb {
    transform: translateX(100%);
    transition: none;
  }
  .tour.is-set .scene:not(.play) .ui-result {
    opacity: 0;
    transform: translateY(0.6em) scale(0.97);
    transition: none;
  }
  .tour.is-set .scene:not(.play) .bubble.me,
  .tour.is-set .scene:not(.play) .bubble.them {
    opacity: 0;
  }
  .tour.is-set .scene.play .bubble.me {
    animation: bubble-in 0.45s var(--ease) both;
  }
  .tour.is-set .scene.play .bubble.typing {
    display: flex;
    animation: typing-life 1.2s 0.6s both;
  }
  .tour.is-set .scene.play .bubble.them {
    animation: bubble-in 0.45s 1.8s var(--ease) both;
  }
  .tour.is-set .scene:not(.play) .when-line i {
    background: var(--fill);
    color: var(--ink-3);
    transition: none;
  }
  .tour.is-set .scene:not(.play) .when-line li::after {
    transform: scaleX(0);
    transition: none;
  }
  .tour.is-set .scene:not(.play) .fan figure {
    transform: translateY(0.8em) scale(0.94);
    transition: none;
  }
}
@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}
@keyframes typing-life {
  0%,
  100% {
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
}

/* The sticky frame: the place where the scenes stack, with nothing drawn around them. The scene being read fades in
   while its card rises into place. Here a scene knows its height too, so it sizes from both. */
.tour-frame {
  position: relative;
  width: var(--fw, 100%);
  height: var(--fh, 320px);
}
.tour-frame .scene {
  position: absolute;
  inset: 0;
  padding: 0;
  container-type: size;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease-out,
    visibility 0s linear 0.35s;
}
.tour-frame .scene-ui {
  font-size: clamp(12px, min(5.4cqh, 4.6cqw), 20px);
  opacity: 0;
  transform: translateY(1.4em) scale(0.98);
  transition:
    transform 0.55s var(--ease),
    opacity 0.3s;
}
.tour-frame .fan-wrap {
  font-size: clamp(11px, min(5.2cqh, 4.4cqw), 22px);
}
.tour-frame .scene.is-on {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.35s ease-out,
    visibility 0s;
}
.tour-frame .scene.is-on .scene-ui {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
.tour-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.tour-dots li {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(22, 38, 28, 0.2);
  transition:
    width 0.25s var(--ease),
    background-color 0.25s;
}
.tour-dots li.is-on {
  width: 22px;
  background: var(--green);
}

/* Either live layout: each step's own scene is visually hidden but still read out. */
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) and (min-height: 740px),
  (min-width: 900px) and (prefers-reduced-motion: no-preference) and (min-height: 560px) {
  html.js .tour-art {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Live, on phones and tablets that are tall enough: the frame sticks at the top on the section's own background and
   the steps scroll up beneath it, one at a time. Below 740 px of height the frame would be too small, so steps stack. */
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) and (min-height: 740px) {
  html.js .tour {
    --fh: 270px;
    /* the nav's room above the frame, the frame, the dots, a soft fade below */
    --stick: calc(84px + var(--fh) + 38px);
  }
  html.js .tour-sticky {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: var(--stick);
    margin: 0 calc(-1 * var(--gutter));
    padding: 84px var(--gutter) 0;
    background: linear-gradient(var(--mist) calc(100% - 18px), rgba(243, 246, 241, 0));
  }
  html.js .tour-frame {
    width: min(100%, 460px);
  }
  html.js .tour-steps {
    gap: 0;
    margin-top: 0;
  }
  html.js .tour-step {
    min-height: max(240px, calc((100vh - var(--stick)) * 0.9));
    min-height: max(240px, calc((100svh - var(--stick)) * 0.9));
    padding: 12px 0 32px;
    /* a link to a step lands with its text right under the frame (the page's scroll padding already holds the nav) */
    scroll-margin-top: calc(var(--stick) - 96px);
  }
  html.js .tour-copy a {
    scroll-margin-top: calc(var(--stick) + 12px - 96px);
    scroll-margin-bottom: 12px;
  }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) and (min-height: 812px) {
  html.js .tour {
    --fh: 310px;
  }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) and (min-height: 900px) {
  html.js .tour {
    --fh: 360px;
  }
}

/* Live, on wide screens: the steps on the left, the frame on the right, held in the middle of the screen while the
   steps pass. A line beside the steps turns green next to the one being read. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) and (min-height: 560px) {
  html.js .tour {
    /* no window is drawn around the scenes any more, so the frame is only as tall as the tallest card */
    --fw: min(460px, 38vw, calc((100vh - 210px) * 1.1));
    --fh: calc(var(--fw) * 0.86);
    --step: clamp(260px, 34vh, 320px);
  }
  html.js .tour-stage {
    display: grid;
    grid-template-columns: minmax(0, 32rem) auto;
    grid-template-rows: auto 1fr;
    justify-content: center;
    column-gap: clamp(56px, 8vw, 128px);
  }
  html.js .tour-intro {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }
  html.js .tour-sticky {
    position: sticky;
    top: max(96px, calc(50vh - (var(--fh) + 34px) / 2));
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  html.js .tour-steps {
    grid-column: 1;
    grid-row: 2;
    gap: 0;
    margin-top: 28px;
    /* room below the last step, so it reaches the middle of the screen while the frame still stands */
    padding-bottom: max(0px, calc((var(--fh) + 34px - var(--step)) / 2));
  }
  html.js .tour-step {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: var(--step);
    padding: 24px 0 24px 32px;
    border-left: 2px solid var(--line);
    text-align: left;
    /* a link to a step lands with the step centred on the reading line */
    scroll-margin-top: calc(50vh - var(--step) / 2 - 96px);
    transition: border-color 0.25s;
  }
  html.js .tour-step.is-on {
    border-left-color: var(--green);
  }
}

/* ------------------------------------------------------------------ menu preview + menu page components */
.menu-preview {
  display: grid;
  gap: 18px;
}
.preview-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  margin-bottom: 28px;
}
.preview-top .section-head {
  margin-bottom: 0;
}
.strip-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(var(--days, 5), minmax(0, 1fr));
  gap: 2px;
}
.wday {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 0 6px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.wday small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-3);
}
.wday span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.0625rem;
  font-weight: 700;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.wday i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.wday.today i {
  background: var(--lime-strong);
}
button.wday:hover:not(:disabled) span {
  background: var(--fill);
}
.wday[aria-selected='true'] span {
  background: var(--green);
  color: #fff;
}
.wday:disabled {
  cursor: default;
}
.wday:disabled span,
.wday:disabled small {
  color: #c2c9c4;
}

.meal-grid {
  display: grid;
  gap: 36px 18px;
  padding-top: 16px;
}
@media (min-width: 900px) {
  .meal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The meal box: a lidded container with a strip of tape on top, as on the original menu */
.meal-card {
  position: relative;
  display: flex;
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: 22px;
  padding: 9px;
  box-shadow:
    0 3px 0 var(--green),
    0 22px 34px -26px rgba(22, 38, 28, 0.55);
}
.tape {
  position: absolute;
  top: -15px;
  left: 22px;
  z-index: 1;
  background: #f1d97e;
  color: var(--ink);
  font: 700 1.4rem / 1 'Caveat', 'Bradley Hand', cursive;
  padding: 5px 16px 7px;
  transform: rotate(-2.2deg);
  clip-path: polygon(3% 0, 97% 6%, 100% 30%, 98% 55%, 100% 82%, 96% 100%, 2% 95%, 0 70%, 2% 45%, 0 18%);
}
.meal-inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto; /* the kcal compartment sits at the bottom, aligned across boxes */
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 14px;
}
.meal-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 20px 18px;
}
.meal-side {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 20px 16px;
  border-top: 1.5px solid var(--line);
}
.meal-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--fill);
}
.meal-name {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.meal-desc {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.meal-ing {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}
.meal-ing b {
  font-weight: 800;
}
.allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.allergens li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px 0 3px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}
.allergens li b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.6875rem;
}
.allergens li.none {
  padding: 0 11px;
  border-style: dashed;
  color: var(--ink-2);
}
.kcal {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-2);
}
.kcal strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--green);
}
.macros {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.875rem;
}
.macros div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.macros dt {
  color: var(--ink-2);
}
.macros dd {
  margin: 0;
  font-weight: 800;
}
.meal-price {
  margin-top: 8px;
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--green);
}
/* Wide boxes (menu page): a second compartment for kcal, macros and price */
@media (min-width: 640px) {
  .meals .meal-inner.has-side {
    grid-template-columns: minmax(0, 1fr) 170px;
  }
  .meals .meal-side {
    border-top: 0;
    border-left: 1.5px solid var(--line);
    padding: 24px 18px 18px;
  }
  .meals .meal-name {
    font-size: 1.625rem;
  }
}
.preview-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.preview-empty {
  padding: 40px 24px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  text-align: center;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ kitchen gallery (swipe) */
.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.gallery-nav {
  display: none;
  gap: 8px;
}
@media (min-width: 760px) {
  .gallery-nav {
    display: flex;
  }
}
.round-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s;
}
.round-btn:hover {
  background: var(--mist);
}
.round-btn svg {
  width: 20px;
  height: 20px;
}
.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding: 0 var(--gutter) 8px;
  margin-top: 8px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1264px) {
  .gallery {
    padding-left: calc((100vw - var(--max)) / 2);
    scroll-padding-left: calc((100vw - var(--max)) / 2);
  }
}
.gallery figure {
  flex: none;
  width: clamp(240px, 26vw, 330px);
  aspect-ratio: 9 / 14;
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--fill);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------------ pricing: calculator + sizes */
.pricing {
  display: grid;
  gap: 18px;
  align-items: start;
}
@media (min-width: 980px) {
  .pricing {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.card {
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 34px);
}
.calc {
  display: grid;
  gap: 22px;
}
.calc h3 {
  font-size: 1.375rem;
  font-weight: 800;
}
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-2);
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
/* Segmented control (Takt / iOS) */
.segmented {
  display: flex;
  padding: 3px;
  border-radius: 14px;
  background: var(--fill);
  gap: 2px;
}
.segmented label {
  flex: 1 1 0;
  position: relative;
  min-width: 0;
}
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 11px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s,
    box-shadow 0.25s;
}
.segmented input:checked + span {
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.1),
    0 1px 1px rgba(0, 0, 0, 0.04);
}
.segmented input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
@media (max-width: 560px) {
  .segmented.wrap4 {
    flex-wrap: wrap;
  }
  .segmented.wrap4 label {
    flex: 1 1 45%;
  }
}
.nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 560px) {
  .nums {
    grid-template-columns: 1fr;
  }
}
.stepper {
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: var(--fill);
  padding: 3px;
}
.stepper button {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.stepper button:active {
  transform: scale(0.94);
}
.stepper input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stepper input:focus {
  outline: none;
}
.stepper:focus-within {
  box-shadow: 0 0 0 2px var(--green);
}
.unit {
  font-size: 0.8125rem;
  color: var(--ink-3);
  padding-right: 6px;
}

.result {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  color: #fff;
  border: 0;
}
@media (min-width: 980px) {
  .result {
    position: sticky;
    top: 96px;
  }
}
.result::before {
  content: '';
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 232, 154, 0.35), transparent);
  pointer-events: none;
}
.result .eyebrow {
  color: var(--lime);
}
.result-size {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.result-size strong {
  font-size: clamp(4rem, 3rem + 4vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.result-size span {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}
.result-kcal {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9875rem;
}
.result-kcal b {
  color: #fff;
}
.bars {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.bars div {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 6px;
  font-size: 0.9375rem;
}
.bars dt {
  color: rgba(255, 255, 255, 0.8);
}
.bars dd {
  font-weight: 800;
}
.bars i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.bars i::before {
  content: '';
  display: block;
  height: 100%;
  width: calc(var(--v, 0) * 100%);
  border-radius: inherit;
  background: var(--lime);
  transition: width 0.6s var(--ease);
}
.result-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}
.result-price strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.result-price span {
  color: rgba(255, 255, 255, 0.8);
}
.result .btn + .btn {
  margin-top: 10px;
}
.result-fine {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.66);
}

.sizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 900px) {
  .sizes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.size {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1.5px solid var(--line);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}
.size:hover {
  border-color: var(--line-strong);
}
.size[aria-pressed='true'] {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 90, 53, 0.14);
}
.size-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 800;
}
.size-name {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.size-for {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--ink-2);
  min-height: 2.6em;
}
.size-kcal {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.size-kcal b {
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.size-macros {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.size-macros b {
  color: var(--ink);
}
.size-price {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.size-price b {
  font-size: 1.125rem;
  color: var(--ink);
}
.price-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ results */
.results {
  display: grid;
  gap: 14px;
}
@media (min-width: 900px) {
  .results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.result-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}
.result-card .change {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--green);
}
.result-card .period {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.spark {
  width: 100%;
  height: auto;
  margin: 18px 0 6px;
  overflow: visible;
}
.spark path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spark .area {
  fill: rgba(134, 196, 64, 0.16);
  stroke: none;
}
.spark circle {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 2.5;
}
.spark-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.spark-labels b {
  color: var(--ink);
}
.result-card blockquote {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.5;
  flex: 1;
}
.result-card figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.athletes {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--green-deep);
  color: #fff;
}
@media (min-width: 900px) {
  .athletes {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
}
.athletes img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 520px;
  object-fit: cover;
  object-position: 50% 30%;
}
.athletes-copy {
  padding: clamp(26px, 4vw, 52px);
  align-self: center;
}
.athletes-copy .eyebrow {
  color: var(--lime);
}
.athletes-copy p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
}
.athletes-copy .ctas {
  margin-top: 26px;
}
.results-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ FAQ (thin lines, from Takt) */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.faq summary::after {
  transform: rotate(90deg);
}
.faq details[open] summary::after {
  transform: rotate(0);
}
.faq details p {
  padding: 0 0 22px;
  max-width: 64ch;
  color: var(--ink-2);
}
mark.todo {
  background: #fff3c4;
  color: var(--ink);
  border: 1px dashed #b58f00;
  border-radius: 4px;
  padding: 0 4px;
}

/* ------------------------------------------------------------------ closing CTA + footer */
.closer {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  background: var(--green-deep);
  color: #fff;
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .closer {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.closer::before {
  content: '';
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 232, 154, 0.28), transparent);
}
.closer h2 {
  position: relative;
}
.closer p {
  position: relative;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34em;
}
.closer-actions {
  position: relative;
  display: grid;
  gap: 10px;
}
.closer-actions small {
  color: rgba(255, 255, 255, 0.66);
}
.footer {
  padding: 56px 0 120px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
@media (min-width: 900px) {
  .footer {
    padding-bottom: 48px;
  }
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer h4 {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--ink);
}
.footer li + li {
  margin-top: 8px;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-about {
  margin-top: 12px;
  max-width: 36ch;
}
.footer-copy {
  margin-top: 40px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ sticky mobile order bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.84);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.mobile-bar.show {
  transform: none;
}
.mobile-bar .btn {
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
}
@media (min-width: 900px) {
  .mobile-bar {
    display: none;
  }
}

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 60;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}
@media (min-width: 900px) {
  .toast {
    bottom: 32px;
  }
}

/* ------------------------------------------------------------------ menu page */
.menu-page {
  background: var(--paper);
}
.menu-head {
  padding: 124px 0 28px;
}
.menu-head .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 32px;
}
.menu-head h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
}
.menu-head .lead {
  margin-top: 10px;
}
.week-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 14px;
  background: var(--fill);
}
.week-switch a {
  min-width: 128px;
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--ink-2);
}
.week-switch a[aria-current='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.preview-note {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3c4;
  font-size: 0.875rem;
  font-weight: 600;
}
.week-note {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.day-layout {
  display: grid;
  gap: 14px;
  align-items: start;
  padding: 14px 0 clamp(80px, 9vw, 120px);
}
.day-layout .meals {
  display: grid;
  gap: 40px;
  padding-top: 16px;
}
@media (min-width: 980px) {
  .day-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
  }
}
.summary {
  border-radius: var(--r-lg);
  background: var(--mist);
  padding: 26px 24px 22px;
}
@media (min-width: 980px) {
  .summary {
    position: sticky;
    top: 96px;
  }
}
.summary h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.order-info {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.order-info p + p {
  margin-top: 6px;
}
.order-info b {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.order-info .closed {
  color: #9a3412;
  font-weight: 600;
}
.summary-big {
  margin-top: 6px;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.summary-big small {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}
.summary-rows {
  margin-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.summary-rows div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.summary-rows dt {
  color: var(--ink-2);
}
.summary-rows dd {
  font-weight: 700;
}
.summary .btn {
  margin-top: 18px;
}
.legend {
  margin-top: 16px;
  font-size: 0.875rem;
}
.legend summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-2);
}
.legend ol {
  margin-top: 10px;
  padding-left: 1.5em;
  list-style: decimal;
  color: var(--ink-2);
}
.empty-card {
  max-width: 560px;
  margin: 0 auto clamp(80px, 9vw, 120px);
  padding: 40px 28px;
  border-radius: var(--r-xl);
  background: var(--paper);
  text-align: center;
}
.empty-card h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem);
}
.empty-card p {
  margin: 12px auto 24px;
  max-width: 36ch;
  color: var(--ink-2);
}
@media (max-width: 979px) {
  .menu-page .summary .btn {
    display: none;
  }
}

/* ------------------------------------------------------------------ reveal on scroll (only with JS, respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js [data-reveal].in {
    opacity: 1;
    transform: none;
  }
  .hero-rise {
    animation: rise 0.9s var(--ease) both;
    animation-delay: var(--d, 0s);
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
