/* FlexMeal — site styles
   Colours are the app's own tokens (FMColor.swift), light and dark. */

:root {
  --cream: #FFF9ED;
  --paper: #FFFFFF;
  --ink: #07132F;
  --ink-2: #5B6478;
  --line: #E8E4DA;
  --green: #00A86B;
  --green-press: #008F5B;
  --green-ink: #007A4D;
  --on-green: #FFFFFF;
  --orange: #FF8A3D;
  --peach: #FFE0C2;
  --butter: #FFF3CB;
  --flex-ink: #9F2918;
  --mint: #E3F8ED;
  --plan-ink: #183F69;
  --divider: #E8EDF4;
  --bubble: #EAF5FF;
  --bubble-ink: #183C9C;
  --band: #07132F;
  --band-ink: #FFF9ED;
  --band-ink-2: #C9CEDB;
  --shadow: 0 1px 2px rgba(7, 19, 47, .05), 0 10px 30px -12px rgba(120, 72, 20, .22);

  --display: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #14161C;
    --paper: #1E2129;
    --ink: #F4F1EA;
    --ink-2: #A3A9B7;
    --line: #2E323C;
    --green: #1FC98A;
    --green-press: #19B07A;
    --green-ink: #1FC98A;
    --on-green: #14161C;
    --peach: #3A2E1A;
    --butter: #352D17;
    --flex-ink: #FFB39E;
    --mint: #173328;
    --plan-ink: #D3E2F5;
    --divider: #2C313C;
    --bubble: #1E2B3D;
    --bubble-ink: #C4DAFF;
    --band: #0C0E13;
    --band-ink: #F4F1EA;
    --band-ink-2: #A3A9B7;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -14px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--green-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skiplink {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}
.skiplink:focus { top: 12px; }

/* ── The melting wave: the app's landing artwork ───────────────── */

.wave {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(78vh, 760px);
  z-index: -1;
  pointer-events: none;
  background: url("assets/wave.webp") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.wave--short { height: 340px; }

@media (prefers-color-scheme: dark) {
  .wave { opacity: .14; }
}

/* ── Top bar ───────────────────────────────────────────────────── */

.topbar {
  position: relative;
  z-index: 5;
}
.topbar__in {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 800 1.6rem/1 var(--display);
  letter-spacing: -.02em;
}
.brand img { width: 44px; height: 44px; margin: -6px 0 -6px -4px; }
.brand b { color: var(--green-ink); font-weight: 800; }

.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topnav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .94rem;
}
.topnav a:hover { background: color-mix(in srgb, var(--paper) 70%, transparent); }
.topnav a[aria-current="page"] { color: var(--green-ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  font: 700 1.06rem/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn--green { background: var(--green); color: var(--on-green); }
.btn--green:hover { background: var(--green-press); }
.btn--plain {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--plain:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn--sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: .94rem; }
.btn svg { flex: none; }

.topnav .btn--sm { margin-left: 8px; color: var(--on-green); }
.topnav .btn--sm:hover { background: var(--green-press); }

/* ── Hero ──────────────────────────────────────────────────────── */

.hero { overflow-x: clip; }

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(24px, 6vh, 72px);
  padding-bottom: clamp(56px, 10vh, 120px);
}

.hero h1 {
  margin: 0;
  font: 800 clamp(2.9rem, 6.6vw, 5.4rem)/.95 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 34em;
  margin: 26px 0 0;
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
}
.hero__lede strong { color: var(--ink); font-weight: 600; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__fine {
  margin: 16px 0 0;
  font-size: .9rem;
  color: var(--ink-2);
}

/* App Store "coming soon" badge. Swap for a link once the app is live. */
.storebadge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  line-height: 1.1;
}
.storebadge small { display: block; font-size: .72rem; opacity: .75; }
.storebadge span { font-weight: 700; font-size: 1.04rem; }
a.storebadge:hover { opacity: .9; }

/* ── Planner card (recreated from the app's Planner tab) ────────── */

.planner {
  position: relative;
  max-width: 460px;
  margin: 0;
  justify-self: end;
  width: 100%;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 18px 8px 10px;
}

.planner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 12px;
}
.planner__title { margin: 0; font: 700 1.3rem/1 var(--display); color: var(--plan-ink); }
.planner__seg {
  display: flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--divider);
  font-size: .78rem;
  font-weight: 600;
}
.planner__seg span { padding: 5px 10px; border-radius: 8px; color: var(--ink-2); }
.planner__seg span:first-child { background: var(--paper); color: var(--ink); }

.planner ol { list-style: none; margin: 0; padding: 0; }

.day {
  display: grid;
  grid-template-columns: 48px 34px 1fr 46px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px 14px;
  border-top: 1px solid var(--divider);
}
.day__name { font-weight: 700; font-size: .95rem; color: var(--plan-ink); }
.day__check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mint);
}
.day__check i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
}
.day__what { font-size: .93rem; color: var(--ink-2); }
.day img { width: 42px; height: 42px; justify-self: end; }

.day--flex {
  position: relative;
  min-height: 82px;
  margin: 2px 4px;
  border-top: 0;
  border-radius: 16px;
  padding-right: 84px;
  background: var(--butter);
}
.day--flex + .day { border-top: 0; }
.day--flex .day__what { color: var(--ink); line-height: 1.3; }
.day--flex .day__what b { display: block; color: var(--flex-ink); font-size: .95rem; }
.day__wx { width: 30px; height: 30px; justify-self: end; }

.day--add .day__what { color: var(--green-ink); font-weight: 600; }
.day__plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink-2);
  color: var(--plan-ink);
  font-weight: 700;
}

.planner__pizza {
  position: absolute;
  width: 128px;
  height: 128px;
  right: -46px;
  top: 236px;
  transform: rotate(8deg);
  filter: drop-shadow(0 10px 14px rgba(120, 60, 0, .2));
}

/* The one orchestrated moment: the week fills in, then the pizza turns up. */
@media (prefers-reduced-motion: no-preference) {
  .day { animation: dayIn .45s cubic-bezier(.2, .8, .2, 1) backwards; }
  .day:nth-child(1) { animation-delay: .15s; }
  .day:nth-child(2) { animation-delay: .25s; }
  .day:nth-child(3) { animation-delay: .35s; }
  .day:nth-child(4) { animation-delay: .45s; }
  .day:nth-child(5) { animation-delay: .7s; }
  .day:nth-child(6) { animation-delay: .8s; }
  .day:nth-child(7) { animation-delay: .9s; }
  .day__check i { animation: tick .35s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: inherit; }
  .day:nth-child(1) .day__check i { animation-delay: .3s; }
  .day:nth-child(2) .day__check i { animation-delay: .4s; }
  .day:nth-child(3) .day__check i { animation-delay: .5s; }
  .day:nth-child(4) .day__check i { animation-delay: .6s; }
  .day:nth-child(6) .day__check i { animation-delay: .95s; }
  .planner__pizza { animation: hop .8s cubic-bezier(.25, 1.5, .5, 1) 1.15s backwards; }
}
@keyframes dayIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes tick { from { transform: scale(0); } }
@keyframes hop {
  from { opacity: 0; transform: translate(-30px, 60px) rotate(-20deg) scale(.5); }
}

/* Calories hidden by the visitor */
.no-kcal .kcal { display: none; }

/* ── Section scaffolding ───────────────────────────────────────── */

.section { padding: clamp(72px, 11vw, 132px) 0; }
.section--tight { padding-top: 0; }

.section h2 {
  margin: 0;
  max-width: 18em;
  font: 800 clamp(2rem, 4.2vw, 3.2rem)/1 var(--display);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section__lede {
  max-width: 36em;
  margin: 18px 0 0;
  font-size: 1.1rem;
  color: var(--ink-2);
}

/* ── The loop: Plan → Enjoy → Log → Understand → Continue normally ── */

.loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.loop::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 66px;
  border-top: 3px dotted color-mix(in srgb, var(--orange) 60%, transparent);
}
.loop li { position: relative; counter-increment: step; }
.loop img {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 0 12px -8px;
}
.loop h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
  font: 800 1.45rem/1.1 var(--display);
  letter-spacing: -.01em;
}
.loop h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font: 800 .85rem/1 var(--text);
  transform: translateY(-3px);
}
.loop p { margin: 0; font-size: .97rem; color: var(--ink-2); max-width: 22em; }

/* ── Words the app doesn't use ─────────────────────────────────── */

.words {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.words__fox {
  width: min(260px, 60%);
  margin-top: 28px;
}
.words__note { margin: 18px 0 0; max-width: 28em; color: var(--ink-2); }

.swaps { list-style: none; margin: 0; padding: 0; }
.swaps li {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1.5px dashed var(--line);
}
.swaps li:first-child { padding-top: 0; }
.swaps s {
  font: 700 1.25rem/1.2 var(--display);
  color: var(--ink-2);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
}
.bubble {
  justify-self: start;
  position: relative;
  margin: 0;
  padding: 10px 16px;
  border-radius: 18px 18px 18px 6px;
  background: var(--bubble);
  color: var(--bubble-ink);
  font: 600 1.1rem/1.3 var(--display);
}

/* ── Inside the app ────────────────────────────────────────────── */

.inside {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.panel {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.panel h3 { margin: 0 0 8px; font: 800 1.5rem/1.1 var(--display); letter-spacing: -.01em; }
.panel p { margin: 0; color: var(--ink-2); max-width: 32em; }
.panel p + p { margin-top: 10px; }

.inside {
  grid-template-areas:
    "log log log log kcal kcal"
    "insight insight insight checkin checkin checkin"
    "insight insight insight health health health";
}
.panel--log { grid-area: log; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.panel--kcal { grid-area: kcal; background: var(--peach); box-shadow: none; }
.panel--insight { grid-area: insight; background: var(--mint); box-shadow: none; }
.panel--checkin { grid-area: checkin; }
.panel--health { grid-area: health; }

.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px 10px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}
.cats li.is-picked { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--paper)); }
.cats img { width: 56px; height: 56px; }

/* iOS-style switch */
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 22px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font: 600 1rem/1.2 var(--text);
  text-align: left;
  cursor: pointer;
}
.switch__track {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--green);
  transition: background-color .2s;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 22px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  transition: left .2s cubic-bezier(.3, 1.3, .5, 1);
}
.switch[aria-checked="false"] .switch__track { background: #C7CBD3; }
.switch[aria-checked="false"] .switch__track::after { left: 2px; }
@media (prefers-color-scheme: dark) {
  .switch[aria-checked="false"] .switch__track { background: #3A3F4B; }
}
.kcal-sample {
  margin-top: 14px;
  font: 800 2.2rem/1 var(--display);
  letter-spacing: -.02em;
  min-height: 1em;
}
.kcal-sample small { font: 600 .95rem/1 var(--text); color: var(--ink-2); letter-spacing: 0; }
.kcal-off { display: none; color: var(--ink-2); font: 600 1rem/1.4 var(--text); letter-spacing: 0; }
.no-kcal .kcal-off { display: block; }

.panel--insight { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: end; }
.panel--insight .bubble { margin-top: 18px; background: var(--paper); color: var(--ink); border-radius: 18px 18px 6px 18px; }
.panel--insight img { width: 150px; margin: -20px -10px -16px 0; }

.panel--checkin { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; }
.panel--checkin img { width: 96px; }
.panel--health { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; }
.panel--health img { width: 96px; }

/* ── Privacy band ──────────────────────────────────────────────── */

.band {
  background: var(--band);
  color: var(--band-ink);
  border-radius: 40px;
  margin: 0 clamp(8px, 2vw, 24px);
}
.band__in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.band h2 {
  margin: 0;
  font: 800 clamp(2rem, 4.2vw, 3.2rem)/1 var(--display);
  letter-spacing: -.03em;
  text-wrap: balance;
  color: var(--band-ink);
}
.band p { color: var(--band-ink-2); }
.band a { color: #6FE0B2; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  position: relative;
  padding: 0 0 22px 40px;
  color: var(--band-ink-2);
}
.facts li b { display: block; color: var(--band-ink); font: 700 1.2rem/1.25 var(--display); margin-bottom: 2px; }
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1FC98A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.6 3.5 7.4-8' fill='none' stroke='%2307132F' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ── Get the app ───────────────────────────────────────────────── */

.get {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.get__party { display: flex; align-items: flex-end; }
.get__party img { width: clamp(90px, 12vw, 150px); }
.get__party img + img { margin-left: -28px; }
.get__party img:nth-child(2) { width: clamp(110px, 15vw, 190px); position: relative; z-index: 1; }
.get .hero__ctas { margin-top: 28px; }

/* ── Footer ────────────────────────────────────────────────────── */

.foot {
  margin-top: clamp(48px, 8vw, 96px);
  padding: 40px 0 48px;
  border-top: 1.5px solid var(--line);
  font-size: .94rem;
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot__nav a:hover { color: var(--green-ink); }
.foot__legal { margin: 24px 0 0; color: var(--ink-2); font-size: .86rem; max-width: 60em; }
.foot .brand { font-size: 1.3rem; }
.foot .brand img { width: 36px; height: 36px; }

/* ── Document pages (privacy, terms, contact) ──────────────────── */

.doc { padding: clamp(24px, 5vw, 56px) 0 0; }
.doc__col { max-width: 720px; }

.doc__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 36px;
}
.doc__head h1 {
  margin: 0;
  font: 800 clamp(2.6rem, 6vw, 4rem)/.95 var(--display);
  letter-spacing: -.035em;
}
.doc__head img { width: clamp(96px, 16vw, 150px); margin-bottom: -10px; }
.updated { margin: 12px 0 0; color: var(--ink-2); font-weight: 600; }

.prose { font-size: 1.04rem; line-height: 1.65; }
.prose h2 {
  margin: 56px 0 10px;
  font: 800 1.6rem/1.15 var(--display);
  letter-spacing: -.015em;
  scroll-margin-top: 24px;
}
.prose h3 { margin: 32px 0 6px; font: 700 1.2rem/1.25 var(--display); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.prose li { position: relative; margin: 8px 0; padding-left: 24px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .66em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.prose strong { font-weight: 650; }

.prose .card {
  margin: 0 0 36px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--butter);
  font-size: 1.06rem;
}
.prose .card strong { display: block; margin-bottom: 4px; font: 800 1.25rem/1.2 var(--display); }

.doc__note {
  margin: 56px 0 0;
  padding-top: 20px;
  border-top: 1.5px dashed var(--line);
  color: var(--ink-2);
  font-size: .92rem;
}

/* Contact */
.mailcard {
  position: relative;
  margin: 0 0 64px;
  padding: 30px 28px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.mailcard h2 { margin: 0 0 8px; font: 800 1.7rem/1.1 var(--display); }
.mailcard p { margin: 0 0 12px; color: var(--ink-2); max-width: 36em; }
.mailcard .btn { margin-top: 10px; white-space: normal; text-align: left; }

.faq h2 { margin: 0 0 16px; font: 800 1.7rem/1.1 var(--display); letter-spacing: -.015em; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font: 700 1.15rem/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23007A4D' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 38em; }
.faq__more { margin-top: 32px; }

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .loop::before { display: none; }
  .inside {
    grid-template-areas:
      "log log log log log log"
      "kcal kcal kcal insight insight insight"
      "checkin checkin checkin checkin checkin checkin"
      "health health health health health health";
  }
  .panel--insight { grid-template-columns: 1fr; }
  .panel--insight img { justify-self: end; margin: -40px -10px -16px 0; width: 120px; }
}

@media (max-width: 860px) {
  .topnav a:not(.btn) { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .planner { justify-self: start; margin-right: 50px; width: calc(100% - 50px); }
  .words { grid-template-columns: 1fr; }
  .words__fox { display: none; }
  .band__in { grid-template-columns: 1fr; }
  .get { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { font-size: 1.4rem; }
  .loop { grid-template-columns: 1fr; gap: 8px; }
  .loop li { display: grid; grid-template-columns: 88px 1fr; gap: 0 14px; align-items: center; }
  .loop img { width: 88px; height: 88px; margin: 0; grid-row: span 2; }
  .loop h3 { margin: 0; }
  .loop p { grid-column: 2; }
  .inside { grid-template-columns: 1fr; grid-template-areas: "log" "kcal" "insight" "checkin" "health"; }
  .panel { padding: 22px; }
  .panel--log { grid-template-columns: 1fr; }
  .panel--health, .panel--checkin { grid-template-columns: 72px 1fr; gap: 14px; }
  .panel--health img, .panel--checkin img { width: 72px; }
  .swaps li { grid-template-columns: 1fr; gap: 8px; }
  .planner { margin-right: 36px; width: calc(100% - 36px); }
  .planner__pizza { width: 96px; height: 96px; right: -28px; top: 246px; }
  .day--flex { padding-right: 60px; }
  .day { grid-template-columns: 40px 30px 1fr 38px; gap: 8px; padding: 6px 10px; }
  .day img { width: 36px; height: 36px; }
  .band { border-radius: 28px; margin: 0 8px; }
  .doc__head img { width: 88px; }
  .mailcard { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ── Questions ─────────────────────────────────────────────────── */

.qa { padding-bottom: 0; }
.qa__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.qa__list .panel h3 { font-size: 1.3rem; }
@media (max-width: 860px) {
  .qa__list { grid-template-columns: minmax(0, 1fr); }
}
