/* Fud AI website
   The page is the app's own dark room: true black, iOS grays, and the pink
   light of the Live Voice orb, the calorie ring and the macro pillars.
   Every glow on the page comes from one of those product objects. Geist
   carries all type; numbers use tabular figures. Motion follows the app:
   a 0.35/0.85 spring for cards, ease-out-quint for everything that fills. */

:root {
  --black: #000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --pink: #ff375f;
  --pink-hot: #ff7a93;
  --label: #fff;
  --label-2: rgba(235, 235, 245, 0.66);
  --label-3: rgba(235, 235, 245, 0.4);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-2: rgba(255, 255, 255, 0.16);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale: 13 15 17 17–21 28 40–64 48–104 */
  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lede: clamp(1.0625rem, 0.9rem + 0.75vw, 1.3125rem);
  --t-h2: clamp(2.5rem, 1.5rem + 3.6vw, 4rem);
  --t-h1: clamp(3rem, 1.2rem + 6.4vw, 6.5rem);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* The app's spring (response 0.35, damping 0.85), sampled. */
  --spring: linear(0, 0.137, 0.386, 0.615, 0.784, 0.893, 0.955, 0.987, 1.001, 1.006, 1.006, 1.005, 1.003, 1.002, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
  background: var(--black);
  color-scheme: dark;
  overflow-x: hidden;
}
@supports (overflow: clip) { html { overflow-x: clip; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; interpolate-size: allow-keywords; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--label);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain keeps the glows from banding. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }

:focus-visible { outline: 2px solid var(--label); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--pink); color: var(--label); }

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

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

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

/* Headings */
.display, .section-title, .legal-content h1 {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
.section-title { font-size: var(--t-h2); letter-spacing: -0.04em; line-height: 1.02; }
.lede { font-size: var(--t-lede); line-height: 1.45; color: var(--label-2); text-wrap: pretty; }
.section-title + .lede { margin-top: 20px; }

/* Links inside running text */
.faq__answer a, .faq__intro a, .legal-content a:not(.app-store-btn):not(.play-store-btn), .site-foot__about p a, .lede a, .byok__plans a, .promises a {
  color: var(--label);
  text-decoration: underline;
  text-decoration-color: rgba(255, 55, 95, 0.7);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s;
}
.faq__answer a:hover, .faq__intro a:hover, .legal-content a:not(.app-store-btn):not(.play-store-btn):hover, .lede a:hover, .byok__plans a:hover, .promises a:hover { text-decoration-color: var(--pink-hot); }

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
    transition-delay: calc(var(--d, 0) * 1ms);
  }
  /* Only type blurs in; big layers just rise. */
  .js .section-title.reveal, .js .lede.reveal, .js .display.reveal { filter: blur(6px); }
  .js .dash.reveal, .js .chat.reveal, .js .orbit.reveal, .js .marquee.reveal, .js .snap__device.reveal { transform: translateY(24px) scale(0.98); }
  .js .tile.reveal { transform: scale(0.96); }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }
  .js .reveal.is-done { transition: opacity 0.3s, transform 0.3s var(--ease); transition-delay: 0s; }
}

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-head.is-stuck {
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--hairline);
}
.site-head__row { display: flex; align-items: center; gap: 20px; height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand__icon {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.brand__icon img { width: 100%; height: 100%; }
.brand__name { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.03em; }

.site-nav { display: flex; gap: 2px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--label-2);
  font-size: var(--t-s);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--label); }
.site-nav a:hover { background: rgba(255, 255, 255, 0.07); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hairline-2);
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 220px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(28, 28, 30, 0.94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px var(--hairline-2), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  transform-origin: top right;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
@starting-style { .menu[open] nav { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.menu nav a { padding: 12px 14px; border-radius: 12px; font-weight: 500; text-decoration: none; }
.menu nav a:hover { background: rgba(255, 255, 255, 0.07); }
.menu nav .menu__get { margin-top: 4px; background: var(--label); color: var(--black); text-align: center; font-weight: 600; }
.menu nav .menu__get:hover { background: var(--label); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--label);
  color: var(--black);
  font: 600 var(--t-s)/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.3s, scale 0.1s var(--ease);
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 58px;
  padding: 0 22px 0 18px;
  border-radius: 16px;
  background: var(--black);
  color: var(--label);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, scale 0.1s var(--ease);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store__text { display: grid; line-height: 1.1; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; text-align: left; }
.store__text small { font-size: 0.75rem; font-weight: 400; letter-spacing: 0; color: var(--label-2); }
.store--light { background: var(--label); color: var(--black); box-shadow: none; }
.store--light .store__text small { color: rgba(0, 0, 0, 0.6); }
/* The visitor's own store leads; the other one steps back. */
.is-android .store[href*="apps.apple.com"] { order: 2; }
.is-ios .store--light[href*="play.google.com"], .is-android .store--light[href*="apps.apple.com"] {
  background: transparent;
  color: var(--label);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
}
.is-ios .store--light[href*="play.google.com"] .store__text small, .is-android .store--light[href*="apps.apple.com"] .store__text small { color: var(--label-2); }

@media (hover: hover) {
  .button:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14); }
  .store:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 14px 40px -12px rgba(255, 55, 95, 0.55); }
  .store--light:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 5px rgba(255, 255, 255, 0.12), 0 18px 50px -14px rgba(255, 55, 95, 0.75); }
}
.button:active, .store:active, .community a:active { scale: 0.97; }

/* ---------- Phone ---------- */

/* A thin metal band around a black screen border, glass on top. */
.phone {
  position: relative;
  aspect-ratio: 1206 / 2622;
  padding: 2.5%;
  border: 2px solid transparent;
  border-radius: 15.5% / 7.2%;
  background:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(150deg, #b4b4b9, #48484c 14%, #1c1c1e 42%, #232326 70%, #6e6e73 92%, #a1a1a6) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13.2% / 6.1%;
  background: var(--black);
}
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 2.5%;
  z-index: 2;
  pointer-events: none;
  border-radius: 13.2% / 6.1%;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 26%, transparent 27%);
}
/* Dynamic Island with its lens, sized from the iPhone 17 Pro screen the screenshots come from. */
.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.6%;
  z-index: 3;
  width: 29.5%;
  height: 4.1%;
  translate: -50% 0;
  border-radius: 999px;
  background: radial-gradient(circle closest-side at 84% 50%, #1a2133 0 30%, #080a10 34% 58%, #000 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

/* ---------- Pause controls ---------- */

.pause {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--label);
  background: rgba(44, 44, 46, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  transition: background-color 0.2s, scale 0.1s var(--ease);
}
.pause svg { width: 18px; height: 18px; }
.pause .pause__on, .pause[aria-pressed="true"] .pause__off { display: none; }
.pause[aria-pressed="true"] .pause__on { display: block; }
@media (hover: hover) { .pause:hover { background-color: rgba(72, 72, 74, 0.85); } }
.pause:active { scale: 0.94; }
.js .pause { display: grid; }
.pause--orb { position: absolute; right: 2%; bottom: 6%; z-index: 2; }
.marquee__controls { display: flex; justify-content: center; margin-top: 18px; }
@media (max-width: 720px), (hover: none), (prefers-reduced-motion: reduce) { .marquee__controls { display: none; } }
@media (prefers-reduced-motion: reduce) { .pause--orb { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(20px, 3.2vh, 44px);
  padding-bottom: clamp(48px, 5vw, 72px);
  text-align: center;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: -30% 0 auto;
  height: 130%;
  z-index: -1;
  background: radial-gradient(46% 40% at 50% 54%, rgba(255, 55, 95, 0.22), rgba(255, 55, 95, 0.05) 48%, transparent 72%);
  opacity: calc(0.7 + 0.3 * var(--level, 0));
  pointer-events: none;
}
.hero__title { font-size: var(--t-h1); }
.hero__sub { max-width: 42em; margin: 18px auto 0; font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.1875rem); }
.hero__br { display: none; }
@media (min-width: 900px) { .hero__br { display: inline; } }

.orb {
  position: relative;
  width: min(72vw, 380px);
  width: min(72vw, clamp(240px, 34svh, 380px));
  aspect-ratio: 1;
  margin: 8px auto 0;
}
.orb canvas { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; max-width: none; }
.orb__fallback {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 214, 224, 0.95) 0 3%, transparent 8%),
    radial-gradient(circle at 40% 36%, rgba(255, 122, 147, 0.7), transparent 46%),
    radial-gradient(circle at 50% 50%, #ff375f 0%, #8f0f31 62%, #2a0410 100%);
  box-shadow: 0 0 90px 10px rgba(255, 55, 95, 0.45), inset 0 0 50px rgba(255, 160, 185, 0.5);
}
.orb.is-webgl .orb__fallback { display: none; }

.live { position: relative; margin: 4px auto 0; max-width: 36em; }
.live__status {
  min-height: 1.4em;
  color: var(--label-3);
  font-size: var(--t-xs);
  font-weight: 500;
  transition: opacity 0.2s;
}
.live__said {
  font-size: clamp(1.1875rem, 0.95rem + 1vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  min-height: 1.3em;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.live.is-speaking .live__said { opacity: 0.55; transform: scale(0.94); }
.w { display: inline-block; }
.js .live .w { opacity: 0; transform: translateY(0.3em); filter: blur(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), filter 0.4s var(--ease); }
.js .live .w.on { opacity: 1; transform: none; filter: none; }
.live__reply .w { transition-duration: 0.2s; }
.live__reply { margin-top: 8px; color: var(--label-2); min-height: 1.6em; }
.live__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 400px);
  margin: 16px auto 0;
  padding: 13px 16px;
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  background: rgba(28, 28, 30, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--hairline-2), 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}
/* Like the app's Undo toast: a bar that runs down while the log settles. */
.live__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pink);
  transform-origin: left;
  transform: scaleX(0);
}
.live__meal, .live__kcal, .live__icon { transition: opacity 0.35s var(--ease), filter 0.35s var(--ease); }
.live__card.is-pending .live__meal, .live__card.is-pending .live__kcal { opacity: 0.3; filter: blur(4px); }
.live__card.is-pending .live__icon { opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .js .live__card { opacity: 0; transform: translateY(24px); transition: opacity 0.3s, transform 0.49s var(--spring); }
  .js .live__card.on { opacity: 1; transform: none; }
  .live__card.is-ticking::after { animation: undo 3.4s linear both; }
  .live__card.is-logged { animation: logged 0.6s var(--ease); }
}
@keyframes undo { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.live.is-paused .live__card::after { animation-play-state: paused; }
@keyframes logged { 40% { box-shadow: inset 0 0 0 1px rgba(255, 55, 95, 0.5), 0 24px 60px -24px rgba(255, 55, 95, 0.45); } }
.live__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 55, 95, 0.16);
  color: var(--pink);
}
.live__icon svg { width: 20px; height: 20px; }
.live__meal { flex: 1; min-width: 0; }
.live__name { font-weight: 600; letter-spacing: -0.01em; }
.live__macros { color: var(--label-2); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.live__kcal { text-align: right; font-weight: 600; color: var(--pink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.live__kcal small { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--label-2); font-size: var(--t-xs); font-weight: 500; }
.live__kcal small svg { width: 14px; height: 14px; color: var(--pink); }

.hero__ctas { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 26px; }
.hero__ctas .stores { justify-content: center; }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--label-2); font-size: var(--t-s); }
.hero__facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts svg { width: 16px; height: 16px; color: var(--pink); }

@media (prefers-reduced-motion: no-preference) {
  .js .intro { opacity: 0; transform: translateY(18px); filter: blur(10px); animation: intro 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
  /* The orb wakes up in the shader instead. */
  .js .orb.intro { filter: none; transform: none; animation-name: fade-in; }
}
@keyframes intro { to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 9vw, 136px); position: relative; }
.section-head { max-width: 40rem; }
.section-head .lede { margin-top: 20px; }
.section-head--center { max-width: 46rem; margin-inline: auto; text-align: center; }
.section-head--center .lede { text-wrap: balance; }
@media (min-width: 960px) {
  .snap__grid .section-title, .coach__grid .section-title, .byok__grid .section-title { font-size: clamp(2.75rem, 1.3rem + 2.6vw, 3.5rem); }
}

/* Photo to nutrients */
.snap__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.snap__device { position: relative; width: min(100%, 330px); justify-self: center; perspective: 1400px; }
.snap__device .phone { transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 2deg)); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .snap__device .phone { animation: turn linear both; animation-timeline: view(); animation-range: entry 50% exit 50%; }
  }
}
@keyframes turn { from { transform: rotateY(-8deg) rotateX(3deg); } to { transform: rotateY(4deg) rotateX(-1deg); } }

.readout { margin-top: 36px; border-radius: 24px; padding: 6px 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.readout__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--hairline); }
.readout__row:first-child { border-top: 0; }
.readout__row dt { color: var(--label-2); }
.readout__row dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout__row--big dt { color: var(--label); font-weight: 600; }
.readout__row--big dd { font-size: 1.75rem; letter-spacing: -0.03em; color: var(--pink); }
.readout__row dd small { margin-left: 3px; color: var(--label-2); font-size: var(--t-s); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .js .readout__row { opacity: 0; transform: translateX(-10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
  .js .readout.is-in .readout__row { opacity: 1; transform: none; }
}

/* What's left: the app's calorie ring and macro pillars, on the app's black */
.left { text-align: center; }
.dash {
  position: relative;
  width: min(100%, 720px);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px) clamp(24px, 4vw, 36px);
  border-radius: 36px;
  background: radial-gradient(55% 45% at 50% 36%, rgba(255, 55, 95, 0.14), transparent 72%), var(--black);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.gauge { position: relative; width: min(100%, 380px); margin-inline: auto; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge .tick { stroke: rgba(255, 255, 255, 0.14); stroke-width: 5; stroke-linecap: round; transition: stroke 0.15s; }
.gauge .tick.fill { stroke: var(--pink); }
.gauge .glow { filter: drop-shadow(0 0 5px rgba(255, 55, 95, 0.9)); }
@media (prefers-reduced-motion: no-preference) {
  .js .gauge .tick.fill { stroke: rgba(255, 255, 255, 0.14); }
  .js .gauge .tick.fill.on { stroke: var(--pink); }
}
.gauge__center { position: absolute; left: 0; right: 0; top: 38%; text-align: center; }
.gauge__label { color: var(--label-2); font-size: var(--t-s); }
.gauge__value { font-size: clamp(3rem, 2rem + 4vw, 4.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--pink); text-shadow: 0 0 30px rgba(255, 55, 95, 0.6); font-variant-numeric: tabular-nums; }
.gauge__left { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--pink); font-size: var(--t-s); font-weight: 600; }
.gauge__left svg { width: 14px; height: 14px; }

.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: clamp(8px, 2vw, 20px); }
.pillar { display: grid; justify-items: center; gap: 10px; }
.pillar__value { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--pink); font-variant-numeric: tabular-nums; }
.pillar__track { position: relative; width: 16px; height: clamp(88px, 11vw, 112px); border-radius: 99px; background: rgba(255, 255, 255, 0.1); }
.pillar__fill {
  position: absolute;
  inset: auto 0 0;
  height: var(--p);
  border-radius: 99px;
  background: linear-gradient(180deg, var(--pink-hot), var(--pink));
  box-shadow: 0 0 16px rgba(255, 55, 95, 0.85);
  transform-origin: bottom;
}
.pillar__name { font-size: var(--t-s); font-weight: 500; line-height: 1.2; }
.pillar__name small { display: block; margin-top: 2px; color: var(--label-2); font-size: var(--t-xs); font-weight: 400; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .js .pillar__fill { transform: scaleY(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 110ms + 750ms); }
  .js .dash.is-in .pillar__fill { transform: scaleY(1); }
}

/* Coach chat, on the app's black */
.coach__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.chat {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 32px;
  background: var(--black);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.bubble {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  font-size: var(--t-s);
  line-height: 1.45;
  background: var(--surface);
  justify-self: start;
  transform-origin: 0 100%;
}
.bubble--me {
  justify-self: end;
  /* A shade deeper than Fud Pink so white text passes contrast. */
  background: #d91a47;
  color: var(--label);
  border-radius: 20px;
  border-bottom-right-radius: 6px;
  transform-origin: 100% 100%;
}
.bubble ul { margin: 6px 0 0; padding-left: 1.1em; }
.typing { display: none; gap: 4px; padding: 14px 16px; border-radius: 20px; border-bottom-left-radius: 6px; background: var(--surface); justify-self: start; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--label-2); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .js .chat > .bubble { display: none; }
  .js .chat.measure > .bubble { display: block; animation: none; }
  .js .chat > .bubble.shown { display: block; animation: pop 0.49s var(--spring) both; }
  .js .chat > .typing.shown { display: inline-flex; }
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.9); } }

/* Every screen */
.marquee {
  margin-top: clamp(48px, 6vw, 72px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: clamp(20px, 3vw, 36px); width: max-content; padding: 20px 0 8px; }
.marquee__set { display: flex; gap: clamp(20px, 3vw, 36px); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (min-width: 721px) {
  .marquee__track { animation: drift 90s linear infinite; }
}
@keyframes drift { to { transform: translateX(calc(-50% - clamp(10px, 1.5vw, 18px))); } }
.screens { overflow: hidden; }
.shot { width: clamp(176px, 19vw, 236px); flex: none; }
.shot figcaption { margin-top: 16px; text-align: center; font-size: var(--t-s); font-weight: 500; }
.shot figcaption small { display: block; color: var(--label-2); font-weight: 400; font-size: var(--t-xs); }
.shot .phone { transition: transform 0.5s var(--ease); }
@media (hover: hover) { .shot:hover .phone { transform: translateY(-8px); } }
/* Touch screens and reduced motion get a gallery you swipe yourself. */
@media (max-width: 720px), (hover: none), (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee__track { animation: none; padding-inline: var(--gutter); gap: 14px; }
  .marquee__set { gap: 14px; }
  .marquee__set[aria-hidden="true"] { display: none; }
  .shot { scroll-snap-align: start; width: min(62vw, 240px); }
}

/* Your key, your phone */
.byok__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.orbit { position: relative; width: min(80%, 420px); aspect-ratio: 1; justify-self: center; container-type: inline-size; }
.orbit::before {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 55, 95, 0.55), rgba(255, 55, 95, 0.1) 55%, transparent 72%);
}
/* A ripple from the key each time a provider is picked. */
.orbit::after {
  content: "";
  position: absolute;
  left: 39%;
  top: 39%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 23%;
  box-shadow: 0 0 0 2px var(--pink);
  opacity: 0;
  pointer-events: none;
}
.orbit.ping::after { animation: ping 1.2s var(--ease); }
@keyframes ping { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
.orbit__key {
  position: absolute;
  left: 39%;
  top: 39%;
  z-index: 1;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 23%;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 70px rgba(255, 55, 95, 0.65);
}
.orbit__key img { width: 100%; height: 100%; }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hairline); }
.orbit__ring--inner { inset: 24%; }
.orbit__ring span {
  position: absolute;
  left: calc(50% + 50% * var(--x));
  top: calc(50% + 50% * var(--y));
  padding: 6px 12px;
  padding: 1.3cqi 2.6cqi;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  font-size: var(--t-xs);
  font-size: clamp(0.6875rem, 2.83cqi, 0.8125rem);
  font-weight: 500;
  white-space: nowrap;
  translate: -50% -50%;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s;
}
.orbit__ring span.is-chosen { background: var(--pink); box-shadow: 0 0 24px rgba(255, 55, 95, 0.6); }
@media (prefers-reduced-motion: no-preference) {
  /* Both rings turn together, so the names never cross. */
  .orbit__ring { animation: spin 100s linear infinite; }
  .orbit__ring span { animation: spin 100s linear infinite reverse; }
}
@keyframes spin { to { rotate: 360deg; } }
.promises { display: grid; gap: 22px; margin: 36px 0 0; padding: 0; list-style: none; }
.promises li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 16px; }
.promises svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 55, 95, 0.14); color: var(--pink); }
.promises b { font-weight: 600; letter-spacing: -0.01em; }
.promises span { color: var(--label-2); }
.byok__plans { margin-top: 28px; color: var(--label-2); font-size: var(--t-s); }

/* Everything else: a bento of small working parts */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(48px, 6vw, 72px); }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  container-type: inline-size;
}
.tile--wide { grid-column: span 2; }
.tile__art { flex: none; display: grid; place-items: center; height: 152px; margin-bottom: 20px; }
.tile h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.tile p { margin-top: 4px; color: var(--label-2); font-size: var(--t-s); line-height: 1.45; text-wrap: pretty; }
@media (hover: hover) {
  .tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 55, 95, 0.12), transparent 70%);
    transition: opacity 0.3s;
  }
  /* The hairline lights up under the pointer, not just the fill. */
  .tile::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 55, 95, 0.75), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .tile:hover::after, .tile:hover::before { opacity: 1; }
}

/* Barcode */
.barcode { position: relative; display: flex; align-items: stretch; gap: 3px; height: 92px; padding: 0 18px; }
.barcode i { display: block; width: var(--w, 3px); background: var(--label); border-radius: 1px; opacity: 0.9; }
.barcode::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  box-shadow: 0 0 14px 3px rgba(255, 55, 95, 0.8);
  transform: translateY(45px);
}
/* Languages */
.hello {
  height: 1.3em;
  overflow: hidden;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.hello__list { display: block; }
.hello__list span { display: block; height: 1.3em; line-height: 1.3em; }
/* Theme colors */
.swatches { display: grid; grid-template-columns: repeat(4, 30px); gap: 14px; }
.swatches i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); }
.swatches i:first-child { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c), 0 0 18px var(--c); }
/* Water: 1,750 of 2,500 ml is 70% full. */
.water { display: grid; justify-items: center; }
.glass { position: relative; width: 64px; height: 92px; border-radius: 8px 8px 16px 16px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); overflow: hidden; }
.glass__water { position: absolute; inset: 0; background: linear-gradient(180deg, #64d2ff, #0a84ff); transform: translateY(30%); }
.glass__water::before {
  content: "";
  position: absolute;
  left: -50%;
  top: -9px;
  width: 200%;
  height: 18px;
  border-radius: 40%;
  background: #64d2ff;
}
.water__label { margin-top: 10px; color: var(--label-2); font-size: var(--t-s); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Fasting: 12 of 16 hours */
.fast { position: relative; width: 116px; aspect-ratio: 1; }
.fast svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fast circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.fast .track { stroke: rgba(255, 255, 255, 0.1); }
.fast .bar { stroke: var(--pink); stroke-dasharray: 289; stroke-dashoffset: 72; filter: drop-shadow(0 0 6px rgba(255, 55, 95, 0.8)); }
.fast__time { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.2; }
.fast__time small { color: var(--label-2); font-weight: 400; font-size: var(--t-xs); }
/* Widgets and Watch */
.widgets { display: flex; align-items: center; gap: 18px; }
.widget { position: relative; display: grid; place-items: center; width: 128px; aspect-ratio: 1; border-radius: 28px; background: var(--black); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.widget svg { width: 80%; }
.widget__arc { filter: drop-shadow(0 0 4px rgba(255, 55, 95, 0.8)); }
.widget__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 600; font-size: 1.375rem; line-height: 1; letter-spacing: -0.03em; color: var(--pink); font-variant-numeric: tabular-nums; }
.widget__num small { display: block; margin-top: 4px; color: var(--label-2); font-size: 0.625rem; font-weight: 500; letter-spacing: 0; }
.watch { width: 92px; height: 112px; border-radius: 28px; display: grid; place-items: center; background: var(--black); box-shadow: inset 0 0 0 3px #3a3a3c; }
.watch svg { width: 64%; }
/* Health sync */
.sync { display: flex; align-items: center; }
.sync__app { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--label); }
.sync__app svg { width: 58%; color: #ff2d55; }
.sync__app--fud { overflow: hidden; background: var(--black); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.sync__app--fud img { width: 100%; height: 100%; }
.sync__line { position: relative; width: clamp(72px, 12vw, 150px); height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 6px, transparent 6px 12px); }
.sync__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 100%;
  height: 10px;
  background: radial-gradient(circle at 5px 50%, var(--pink) 4.5px, transparent 5.5px);
  filter: drop-shadow(0 0 6px var(--pink));
  opacity: 0;
}
/* Siri waveform */
.wave { display: flex; align-items: center; gap: 5px; height: 72px; }
.wave i { width: 6px; height: var(--h); border-radius: 99px; background: linear-gradient(180deg, var(--pink-hot), var(--pink)); }
/* Saved meals */
.chips { display: grid; gap: 10px; width: 100%; max-width: 270px; }
.chip { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); font-size: var(--t-s); }
.chip b { font-weight: 500; }
.chip span { color: var(--label-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip--what { background: rgba(255, 55, 95, 0.16); }
.chip--what span { color: var(--pink-hot); }
@container (max-width: 215px) { .chip { flex-direction: column; gap: 2px; } }

@media (prefers-reduced-motion: no-preference) {
  .bento.is-in .barcode::after { animation: scan 2.4s ease-in-out infinite; }
  .bento.is-in .hello__list { animation: hello 18s var(--ease) infinite; }
  .bento.is-in .glass__water::before { animation: slosh 3.2s ease-in-out infinite; }
  .bento.is-in .glass__water { animation: fill 1.6s var(--ease) both; }
  .bento.is-in .fast .bar { animation: fast 1.6s var(--ease) both; }
  .bento.is-in .sync__line::after { animation: travel 2.6s ease-in-out infinite; }
  .bento.is-in .wave i { animation: talk 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -0.13s); }
  .bento:not(.is-live) *, .bento:not(.is-live) *::before, .bento:not(.is-live) *::after { animation-play-state: paused !important; }
}
@keyframes scan { 0%, 100% { transform: translateY(11px); } 50% { transform: translateY(79px); } }
@keyframes hello {
  0%, 9% { transform: translateY(0); }
  11.1%, 20.1% { transform: translateY(-1.3em); }
  22.2%, 31.2% { transform: translateY(-2.6em); }
  33.3%, 42.3% { transform: translateY(-3.9em); }
  44.4%, 53.4% { transform: translateY(-5.2em); }
  55.5%, 64.5% { transform: translateY(-6.5em); }
  66.6%, 75.6% { transform: translateY(-7.8em); }
  77.7%, 86.7% { transform: translateY(-9.1em); }
  88.8%, 100% { transform: translateY(-10.4em); }
}
@keyframes slosh { 50% { transform: translateX(25%) rotate(4deg); } }
@keyframes fill { from { transform: translateY(85%); } }
@keyframes fast { from { stroke-dashoffset: 289; } }
@keyframes travel { from { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } to { transform: translateX(calc(100% - 10px)); opacity: 0; } }
@keyframes talk { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* ---------- FAQ ---------- */

.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--head-h) + 40px); }
.faq__intro p { margin-top: 20px; max-width: 22em; color: var(--label-2); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.faq__item:first-child summary { padding-top: 6px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--label), var(--label)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--label), var(--label)) center / 1.5px 12px no-repeat,
    var(--surface-2);
  transition: transform 0.35s var(--ease), background-color 0.3s;
}
.faq__item[open] summary::after { transform: rotate(135deg); }
@media (hover: hover) { .faq__item summary:hover::after { background-color: var(--pink); } }
.faq__answer { padding: 0 50px 24px 0; max-width: 40em; color: var(--label-2); }
@media (prefers-reduced-motion: no-preference) {
  .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
  .faq__item[open] .faq__answer { animation: answer 0.45s var(--ease); }
}
@keyframes answer { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Final call ---------- */

.final { position: relative; text-align: center; padding-block: clamp(88px, 12vw, 168px); isolation: isolate; overflow: hidden; }
.final::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: -1;
  width: min(120vw, 1100px);
  aspect-ratio: 2 / 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 55, 95, 0.32), rgba(255, 55, 95, 0.07) 50%, transparent 72%);
}
@media (prefers-reduced-motion: no-preference) { .final::before { animation: breathe 7s ease-in-out infinite; } }
@keyframes breathe { 50% { opacity: 0.7; transform: scale(1.06); } }
.orb--final { width: 132px; margin: 0 auto 28px; }
.final .display { font-size: clamp(2.75rem, 1.4rem + 5vw, 5.5rem); }
.final .lede { margin: 20px auto 0; max-width: 30em; }
.final .stores { justify-content: center; margin-top: 36px; }
.final__needs { margin-top: 18px; color: var(--label-2); font-size: var(--t-xs); }
.final__star { margin-top: 22px; }
.final__star a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--label-2);
  font-size: var(--t-s);
  font-weight: 500;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  transition: color 0.2s, box-shadow 0.2s, scale 0.1s var(--ease);
}
.final__star a:hover { color: var(--label); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.final__star a:active { scale: 0.97; }
.count {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 55, 95, 0.16);
  color: var(--pink-hot);
  font-size: var(--t-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */

.site-foot { padding-block: 64px 36px; border-top: 1px solid var(--hairline); }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 40px clamp(24px, 3vw, 40px); }
.site-foot__about p { margin-top: 16px; max-width: 26em; font-size: var(--t-s); color: var(--label-2); }
.site-foot h2 { margin-bottom: 8px; font-size: var(--t-s); font-weight: 600; }
.site-foot ul { margin: 0; padding: 0; list-style: none; display: grid; }
.site-foot ul a { display: inline-block; padding-block: 6px; color: var(--label-2); font-size: var(--t-s); text-decoration: none; transition: color 0.2s; }
.site-foot ul a:hover { color: var(--label); }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; color: var(--label-2); font-size: var(--t-xs); }
.site-foot__base a { color: var(--label-2); text-decoration: none; }
.site-foot__base a:hover { color: var(--label); }

/* ---------- Documents: guides, privacy, terms ---------- */

.doc { padding-block: clamp(48px, 7vw, 104px) clamp(72px, 9vw, 128px); position: relative; isolation: isolate; }
.doc::before {
  content: "";
  position: absolute;
  inset: -64px 0 auto;
  height: 520px;
  z-index: -1;
  background: radial-gradient(60% 70% at 30% 0%, rgba(255, 55, 95, 0.15), transparent 70%);
  pointer-events: none;
}
.legal-content { max-width: 44rem; overflow-wrap: break-word; color: rgba(235, 235, 245, 0.84); }
.legal-content h1 { font-size: clamp(2.75rem, 1.8rem + 3.4vw, 4.5rem); color: var(--label); }
.legal-date { display: block; margin-top: 18px; color: var(--label-2); font-size: var(--t-s); }
.legal-content > p, .legal-content li { line-height: 1.65; }
.legal-content > p { margin-top: 1.1em; }
.legal-content h2 { margin: 2.2em 0 0; color: var(--label); font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
.legal-content h3 { margin: 1.8em 0 0; color: var(--label); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.legal-content h2 + p, .legal-content h3 + p { margin-top: 0.6em; }
.legal-content ul, .legal-content ol { margin: 1em 0 0; padding-left: 1.3em; }
.legal-content li + li { margin-top: 0.5em; }
.legal-content li::marker { color: var(--pink); }
.legal-content strong { color: var(--label); font-weight: 600; }
.legal-content code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
}
.legal-table-scroll { margin-top: 1.4em; overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: var(--t-s); line-height: 1.5; }
.legal-table th, .legal-table td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.legal-table th { color: var(--label); font-weight: 600; border-bottom-color: var(--hairline-2); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.app-store-btn, .play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  background: var(--label);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.3s;
}
.app-store-btn:hover, .play-store-btn:hover { box-shadow: 0 16px 44px -14px rgba(255, 55, 95, 0.7); }
.app-store-btn svg, .play-store-btn svg { width: 22px; height: 22px; flex: none; }

.page-end { border-top: 1px solid var(--hairline); }
.page-end .final { padding-block: clamp(72px, 10vw, 136px); }

/* ---------- Responsive ---------- */

@media (min-width: 721px) and (max-width: 959px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .coach__grid, .byok__grid { grid-template-columns: minmax(0, 1fr); }
  /* Photo section reads heading, phone, then the label. */
  .snap__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .snap__grid > div:last-child { display: contents; }
  .snap__device { order: 2; width: min(56vw, 250px); margin-top: 36px; }
  .snap .readout { order: 3; }
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__intro { position: static; }
  .site-foot__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-foot__about { grid-column: 1 / -1; }
  .orbit { width: min(78%, 380px); }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .site-head__row { gap: 8px; }
  .menu summary {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    background:
      linear-gradient(var(--label), var(--label)) center calc(50% - 4px) / 16px 1.5px no-repeat,
      linear-gradient(var(--label), var(--label)) center calc(50% + 4px) / 16px 1.5px no-repeat;
  }
  .menu[open] summary { background-color: var(--surface-2); }
  .get-app { min-height: 44px; }

  /* Phones: download buttons come right after the pitch, then the orb shows it working. */
  .hero .wrap { display: flex; flex-direction: column; align-items: center; }
  .hero__ctas { order: 1; width: 100%; margin-top: 24px; gap: 14px; }
  .js .hero__ctas.intro { --d: 200 !important; }
  .orb { order: 2; width: min(56vw, 230px); margin-top: 12px; }
  .live { order: 3; width: 100%; margin-top: 0; }
  .hero .visually-hidden { order: 4; }
  .live__reply { display: none; }
  .live__card { margin-top: 10px; }
  .hero { padding-bottom: 40px; }

  .section { padding-block: 64px; }
  .final { padding-block: 72px 88px; }
  .section-head--center { text-align: left; margin-inline: 0; }
  .left { text-align: left; }
  .section-head--center .lede { text-wrap: pretty; }

  /* Bento becomes a swipeable row with the next card peeking in. */
  .bento {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 300px);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 16px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .bento::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; }
  .tile--wide { grid-column: auto; }
  .tile__art { height: 120px; }

  /* The orbit becomes a still cloud of names under the icon. */
  .orbit {
    aspect-ratio: auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-top: 120px;
    isolation: isolate;
  }
  .orbit::before { inset: -20px auto auto 50%; width: 200px; height: 200px; translate: -50% 0; z-index: -1; }
  .orbit::after { display: none; }
  .orbit__key { left: 50%; top: 8px; width: 88px; translate: -50% 0; }
  .orbit__ring { display: contents; animation: none; }
  .orbit__ring span { position: static; translate: none; animation: none !important; padding: 7px 12px; font-size: var(--t-xs); }

  .stores { gap: 10px; justify-content: center; }
  .store { height: 52px; gap: 9px; padding: 0 14px 0 12px; border-radius: 14px; }
  .store svg { width: 22px; height: 22px; }
  .store__text { font-size: 1.0625rem; }
  .store__text small { font-size: 0.6875rem; }
  .faq__answer { padding-right: 0; }
  .pillar__name small { font-size: 0.6875rem; }
  .widget { width: 104px; }
  .site-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot ul a { padding-block: 10px; }
}

@media (max-width: 380px) {
  .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 340px; }
  .store { height: 50px; padding: 0 8px; gap: 7px; justify-content: center; }
  .store svg { width: 20px; height: 20px; }
  .store__text { font-size: 0.9375rem; }
  .store__text small { font-size: 0.625rem; }
  .pillar__name small { display: none; }
  .dash { padding-inline: 8px; }
  .pillars { gap: 4px; }
  .pillar__name { font-size: var(--t-xs); }
  .pillar__value { font-size: 1.0625rem; }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .js .reveal { filter: none !important; transform: translateY(14px); transition-duration: 0.6s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
