/* ============================================================
   Fitext — marketing site (light & cheery)
   Brand: Nunito (app font) · gradient #1FAFF3 → #59E35C (logo)
   Warm white base + organic blobs (yellow / blue / green)
   ============================================================ */

@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito_regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito_semi_bold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito_bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito_extra_bold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #fdfcf9;            /* warm white */
  --bg-cool: #f2f9fe;       /* soft blue tint */
  --bg-green: #f3fbf5;      /* soft green tint */
  --card: #ffffff;
  --line: #e7eef4;
  --line-strong: #d5e4ee;
  --ink: #2c3e4e;
  --muted: #5f7788;
  --faint: #8fa5b5;
  --blue: #1faff3;
  --cyan: #25b0f1;
  --teal: #2dcfbe;
  --green: #59e35c;
  --sun: #f7c948;
  --grad: linear-gradient(100deg, #1faff3, #2dcfbe 55%, #59e35c);
  --grad-soft: linear-gradient(100deg, rgba(31,175,243,.10), rgba(89,227,92,.12));
  --shadow-sm: 0 4px 14px rgba(43, 80, 110, .07);
  --shadow-md: 0 12px 32px rgba(43, 80, 110, .10);
  --shadow-lg: 0 24px 60px rgba(43, 80, 110, .14);
  /* App-authentic chat colors (Android palette) */
  --app-ai-bubble: #e7f8ff;      /* colorLightBlue */
  --app-user-bubble: #c6edff;    /* colorCyanOpacity */
  --app-ink: #21313f;
  --macro-carb: #10b3d6;         /* cyan = carbs */
  --macro-fat: #ff6b6b;          /* red = fat */
  --macro-protein: #34c759;      /* green = protein */
  --radius: 20px;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(31,175,243,.25); }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- utility text ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #0e9fe4, #23b8a8 55%, #35bd3e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 3px;
  background: var(--grad);
  border-radius: 3px;
}

h1, h2, h3 { font-weight: 800; line-height: 1.14; letter-spacing: -0.015em; }

h2.section-title {
  font-size: clamp(30px, 4.4vw, 44px);
  margin-bottom: 16px;
}

p.section-lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.grad-text {
  background: linear-gradient(100deg, #0e9fe4, #23b8a8 55%, #35bd3e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sun-text { color: #eaa614; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(31,175,243,.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(45,207,190,.38); }
.btn-ghost {
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow-md); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 16px 0;
}
.nav.scrolled {
  background: rgba(253,252,249,.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #ffffff; }
/* cross-page destinations read as pills, not section anchors */
.nav-links a.page-link {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nav-links a.page-link:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.nav .btn { padding: 10px 22px; font-size: 14.5px; }

/* burger — mobile menu so every page stays reachable on small screens */
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s ease, opacity .22s ease;
}
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 12px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) {
    display: block;
    padding: 11px 14px;
    border-radius: 11px;
    font-size: 15.5px;
  }
  .nav-links a:not(.btn):hover { background: var(--bg-cool); }
  .nav-links a.page-link {
    border: 0;
    box-shadow: none;
    background: var(--grad-soft);
    font-weight: 800;
  }
  .nav-cta { margin-top: 6px; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 158px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #fdf7ea 0%, #fdfcf9 78%);
}
.blob {
  position: absolute;
  pointer-events: none;
  border-radius: 46% 54% 61% 39% / 45% 40% 60% 55%;
  animation: morph 22s ease-in-out infinite alternate;
}
@keyframes morph {
  0%   { border-radius: 46% 54% 61% 39% / 45% 40% 60% 55%; }
  50%  { border-radius: 58% 42% 40% 60% / 39% 58% 42% 61%; }
  100% { border-radius: 40% 60% 55% 45% / 58% 44% 56% 42%; }
}
.blob-sun {
  top: -150px; left: -170px;
  width: 480px; height: 420px;
  background: linear-gradient(140deg, #fce9ae, #f9d976 60%, #f7c948);
  opacity: .55;
}
.blob-drop {
  top: 10px; right: -170px;
  width: 640px; height: 600px;
  background: linear-gradient(140deg, #55c5f5, #3ed3b0 55%, #59e35c);
  opacity: .38;
  animation-delay: -8s;
}
.blob-mint {
  bottom: -200px; left: -140px;
  width: 420px; height: 380px;
  background: linear-gradient(140deg, #a5eeb5, #d9f8e0);
  opacity: .5;
  animation-delay: -15s;
}
@media (max-width: 960px) {
  .blob-drop { width: 440px; height: 430px; right: -190px; opacity: .28; }
}

/* floating bubbles — light monotone */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute;
  bottom: -80px;
  border-radius: 50%;
  border: 1.5px solid rgba(31,175,243,.22);
  background: radial-gradient(circle at 32% 30%, rgba(31,175,243,.14), rgba(31,175,243,.02));
  animation: rise linear infinite;
}
@keyframes rise {
  to { transform: translateY(-118vh) translateX(40px); opacity: 0; }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { justify-self: center; }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.trust-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chip b { color: var(--ink); font-weight: 800; }
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
}

/* ---------- phone mockup ---------- */
/* centre the fixed-width phone (and its caption) within the hero's right
   column so both share one axis — otherwise the block-level phone falls to
   the cell's left edge while the centred caption sits mid-cell, and the two
   look misaligned */
.hero-phone { display: flex; flex-direction: column; align-items: center; }
.phone {
  width: 320px;
  height: 706px;
  border-radius: 44px;
  background: linear-gradient(160deg, #ffffff, #eef5fa);
  border: 1px solid var(--line-strong);
  box-shadow:
    var(--shadow-lg),
    0 0 0 8px rgba(255,255,255,.65),
    0 30px 80px rgba(31,175,243,.16);
  padding: 12px;
  position: relative;
}
.phone::after {
  content: '';
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #dbe7ef;
  box-shadow: inset 0 1px 2px rgba(43,80,110,.3);
  z-index: 3;
}
.screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  background: #ffffff;      /* the app's chat screen is plain white */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--app-ink);
  border: 1px solid var(--line);
}

/* ---- app chrome, modeled on the real expert-chat screen ----
   gold palette, badge, chips and layout mirror the Android app:
   #FAB505→#FFE665 gradients, #494747/#666667 grays, white pills */
.app-top { position: relative; flex: 0 0 auto; padding-bottom: 4px; }
.tb-blob {
  position: absolute;
  top: -105px; left: -60px;
  width: 135%; height: 224px;
  border-radius: 50%;
  transform: rotate(-7deg);
  background: linear-gradient(180deg, #fffef8 26%, #fff1b8 70%, #ffe66e 97%);
}
.app-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 30px 12px 6px;
}
.tb-back {
  width: 15px; height: 15px;
  object-fit: contain;
  flex: 0 0 auto;
}
.tb-who { flex: 1; min-width: 0; line-height: 1.2; }
.tb-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; color: #494747;
}
.tb-badge {
  background: linear-gradient(to top, #fab505, #ffe665);
  color: #ffffff;
  font-size: 8px; font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.tb-status { display: block; font-size: 10.5px; font-weight: 600; color: #666667; }
.tb-sync {
  width: 15px; height: 15px;
  stroke: #494747; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
  margin-right: 3px;
}
.tb-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.app-search {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  height: 29px;
  margin: 7px 12px 0;
  padding: 0 12px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 4px rgba(0,0,0,.20);
  color: #999999; font-size: 11px; font-weight: 600;
}
.app-search img { width: 12px; height: 12px; object-fit: contain; opacity: .55; }
.app-chips {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 11px 34px 2px 12px;
  overflow: hidden;
}
/* white fade under the chevron, like the app's bg_fade_horizontal */
.app-chips::after {
  content: '';
  position: absolute;
  right: 0; top: 8px; bottom: 0;
  width: 52px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #ffffff 62%);
}
.a-chip {
  font-size: 10px; font-weight: 700; color: #666667;
  background: linear-gradient(rgba(255,255,255,.5), #f5f5f5);
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: 3.5px 10px;
  white-space: nowrap;
}
.a-chip.sel {
  background: linear-gradient(to top, #ffe665, #fab505);
  border-color: transparent;
  color: #ffffff;
}
.chips-chevron {
  position: absolute;
  right: 11px; top: 14px;
  z-index: 1;
  width: 16px; height: 16px;
  stroke: #fab505; fill: none;
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.chat-area {
  flex: 1;
  overflow: hidden;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* newest messages pinned to the bottom, like a real chat */
  gap: 9px;
}
.chat-area > * { flex-shrink: 0; }   /* never compress a bubble to fit */
/* bubbles mirror the app's expert chat: Lia = colorWhiteOne (#F5F5F5)
   rounded-except-bottom-left; user = yellow gradient rounded-except-
   bottom-right; cyan sender name + gray timestamp inside every bubble */
.day-chip {
  align-self: center;
  background: linear-gradient(to top, #ffeb82, #fffbe4);
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 2px 9px;
  font-size: 8.5px;
  font-weight: 700;
  color: #666667;
  flex: 0 0 auto;
}
.msg {
  max-width: 80%;
  padding: 7px 12px 4px;
  font-family: 'Segoe UI', system-ui, sans-serif;  /* body copy is OpenSans in-app */
  font-size: 11.5px;
  font-weight: 400;
  color: #494747;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  animation: pop .35s ease forwards;
}
.m-name {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 1px;
}
.msg.ai .m-name { color: #eaa614; }    /* Lia — gold */
.msg.user .m-name { color: #494747; }  /* You — dark gray */
.m-time {
  display: block;
  text-align: right;
  font-family: 'Nunito', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  color: #999999;
  margin-top: 3px;
}
@keyframes pop { to { opacity: 1; transform: none; } }
.msg.ai {
  align-self: flex-start;
  background: #f5f5f5;
  border-radius: 20px 20px 20px 5px;
}
.msg.user {
  align-self: flex-end;
  background: linear-gradient(90deg, #ffeb82, #fffbe4);
  border-radius: 20px 20px 5px 20px;
}
.msg.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 13px 16px;
}
.msg.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #a9b2b8;
  animation: blink 1s infinite;
}
.msg.typing i:nth-child(2) { animation-delay: .18s; }
.msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 70%, 100% { opacity: .3; } 35% { opacity: 1; } }

/* run report bubble — a simplified take on the app's Running message:
   the map thumb + a single headline metric (avg speed) instead of all three */
.msg.run-msg { max-width: 78%; width: 78%; }
.rm-grid {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 7px;
}
.rm-single {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
}
.rm-single > img {
  width: 22px; height: 22px; flex: 0 0 auto;  /* speed_gray.webp is tinted #494747 to match the value text */
}
.rm-txt { display: flex; flex-direction: column; line-height: 1.15; }
.rm-txt span { font-size: 9px; font-weight: 700; color: #999999; }
.rm-txt b { font-size: 16px; font-weight: 800; color: #494747; }
.rm-txt i {
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  color: #999999;
  margin-left: 4px;
  letter-spacing: .04em;
}
.rm-map {
  width: 60px; height: 60px;
  border-radius: 15px;
  object-fit: cover;
  flex: 0 0 auto;
}

.photo-msg {
  align-self: flex-end;
  width: 150px;
  border-radius: 20px 20px 5px 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  animation: pop .35s ease forwards;
  box-shadow: 0 4px 12px rgba(24,63,91,.14);
}
.photo-msg .ph {
  height: 80px;
  background:
    radial-gradient(circle at 30% 62%, #f3b16a 0 26%, transparent 27%),
    radial-gradient(circle at 62% 46%, #8ec96b 0 20%, transparent 21%),
    radial-gradient(circle at 74% 70%, #e8e0c9 0 16%, transparent 17%),
    linear-gradient(150deg, #fdf4e3, #f3e3c8);
  display: grid;
  place-items: center;
  font-size: 40px;
}
.photo-msg .cap {
  background: linear-gradient(90deg, #ffeb82, #fffbe4);
  color: #494747;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}

.macro-row { display: flex; gap: 8px; }
.macro {
  flex: 1;
  text-align: center;
  border-radius: 10px;
  padding: 7px 4px;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
  color: #fff;
}
.macro span { display: block; font-size: 10px; font-weight: 700; opacity: .92; }
.macro.protein { background: var(--macro-protein); }
.macro.carbs   { background: var(--macro-carb); }
.macro.fat     { background: var(--macro-fat); }
.kcal-pill {
  display: inline-block;
  background: linear-gradient(100deg, #25b0f1, #2dcfbe);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11.5px;
  padding: 3px 11px;
  margin-bottom: 6px;
}
.run-stats { display: flex; gap: 8px; }
.run-stat {
  flex: 1;
  background: #eefaff;
  border-radius: 10px;
  text-align: center;
  padding: 7px 4px;
  font-weight: 800;
  font-size: 12.5px;
  color: #0a7ab8;
  line-height: 1.3;
}
.run-stat span { display: block; font-size: 10px; font-weight: 700; color: #5c8aa5; }

.msg-bar {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px 9px;
  background: #ffffff;
}
.mb-cam {
  width: 25px; height: 25px;
  object-fit: contain;
  flex: 0 0 auto;
}
.msg-bar .field {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid rgba(0,0,0,.13);
  background: #f5f7fb;
  border-radius: 15px;
  padding: 8px 11px;
  font-size: 11px;
  color: #666666;
  font-weight: 600;
}
.mb-emoji {
  width: 15px; height: 15px;
  object-fit: contain;
  opacity: .55;
  flex: 0 0 auto;
}
.mb-mic {
  width: 22px; height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}
.app-tabs {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 11px 30px 13px;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 10px rgba(43, 80, 110, .12);
}
.app-tabs img {
  width: 19px; height: 19px;
  object-fit: contain;
  opacity: .5;
}
.app-tabs img.sel { width: 21px; height: 21px; opacity: 1; }

.phone-caption {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 18px;
}

/* ---------- sections ---------- */
section { padding: 88px 0; position: relative; }
section.cool  { background: linear-gradient(180deg, var(--bg-cool), #fdfcf9); }
section.green { background: linear-gradient(180deg, var(--bg-green), #fdfcf9); }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- module bubbles ---------- */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.module-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1060px;   /* wide enough for all six on one row */
  margin: 0 auto;
}
.module {
  position: relative;
  width: 152px; height: 152px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  animation: floaty 5s ease-in-out infinite;
  transition: box-shadow .28s ease, background .28s ease, border-color .28s ease;
}
.module:nth-child(2n)  { animation-delay: -1.4s; animation-duration: 5.8s; }
.module:nth-child(3n)  { animation-delay: -2.6s; animation-duration: 6.4s; }
.module:nth-child(5n)  { animation-delay: -3.4s; }
/* hover / focus / tapped → flip to the explanation on a gradient face */
.module:hover, .module:focus-visible, .module.flipped {
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  animation-play-state: paused;
}

/* the two stacked faces */
.m-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  transition: opacity .26s ease, transform .3s ease;
}
.m-front { gap: 9px; }
.m-back {
  opacity: 0;
  transform: scale(.92);
  padding: 14px 13px;
}
.module:hover .m-front,
.module:focus-visible .m-front,
.module.flipped .m-front { opacity: 0; transform: scale(.9); }
.module:hover .m-back,
.module:focus-visible .m-back,
.module.flipped .m-back { opacity: 1; transform: scale(1); }

.module .m-icon { color: var(--cyan); width: 34px; height: 34px; }
.module .m-icon svg { width: 34px; height: 34px; }
.module b { font-size: 13px; line-height: 1.25; font-weight: 800; }
.m-back p {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .002em;
  text-shadow: 0 1px 2px rgba(20, 60, 45, .22);
}
@media (max-width: 560px) {
  .module-cloud { gap: 16px; }
  .module { width: 140px; height: 140px; }
  .m-back p { font-size: 12.5px; }
}

/* ---------- logging vignette (photo → Lia's reply) ---------- */
.vignette {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.v-tag {
  align-self: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2px;
}
.v-photo {
  align-self: flex-end;
  width: 88%;
  border-radius: 20px 20px 5px 20px;
  background: radial-gradient(120% 90% at 50% 0%, #f0f8fd, #e3eff7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  min-height: 205px;
  padding: 14px;
}
.v-reply-wrap { position: relative; width: 92%; }
.v-typing {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: var(--app-ai-bubble);
  border-radius: 16px 16px 16px 4px;
  padding: 13px 16px;
  opacity: 0;
  pointer-events: none;
}
.v-typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6aa8c5;
  animation: blink 1s infinite;
}
.v-typing i:nth-child(2) { animation-delay: .18s; }
.v-typing i:nth-child(3) { animation-delay: .36s; }
.v-reply { display: flex; flex-direction: column; gap: 10px; }
.v-bubble {
  align-self: flex-start;
  background: var(--app-ai-bubble);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
  color: #234356;
}
.v-card {
  background: #ffffff;
  border: 1.5px solid #bfecff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  font-size: 13px;
}
.v-card > b { font-size: 14.5px; display: block; margin-bottom: 8px; }
/* play states — gated on .prep so no-JS / static mode shows the finished scene */
.vignette.prep .v-photo, .vignette.prep .v-reply { opacity: 0; }
.vignette.play .v-photo { animation: pop .45s ease .1s forwards; }
.vignette.play .v-typing { animation: vtype 1.35s ease .6s forwards; }
.vignette.play .v-reply { animation: pop .45s ease 1.95s forwards; }
@keyframes vtype {
  0% { opacity: 0; }
  16% { opacity: 1; }
  84% { opacity: 1; }
  100% { opacity: 0; }
}
.trend { display: flex; gap: 6px; align-items: flex-end; height: 42px; }
.trend i {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #25b0f1, #2dcfbe);
  opacity: .8;
}
.trend i:last-child { opacity: 1; }
/* logging illustrations */
.ill-plate {
  width: 185px; height: 185px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 14px #eff6fa, 0 12px 26px rgba(43,80,110,.14);
  position: relative;
}
.ill-plate .food { position: absolute; }
.ill-plate .f1 {
  width: 86px; height: 62px; left: 26px; top: 56px;
  background: linear-gradient(140deg, #f6bd7a, #ec9a4e);
  border-radius: 46% 54% 55% 45% / 58% 48% 52% 42%;
}
.ill-plate .f2 {
  width: 62px; height: 46px; right: 26px; top: 42px;
  background: linear-gradient(140deg, #9ed77e, #6fbf58);
  border-radius: 54% 46% 48% 52% / 48% 60% 40% 52%;
}
.ill-plate .f3 {
  width: 54px; height: 38px; right: 42px; bottom: 34px;
  background: linear-gradient(140deg, #f7e8b8, #ecd28a);
  border-radius: 50% / 55%;
}
.ill-scale {
  width: 180px; height: 175px;
  border-radius: 38px;
  background: linear-gradient(160deg, #ffffff, #eef4f9);
  box-shadow: 0 12px 26px rgba(43,80,110,.14), inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ill-scale .dial {
  width: 84px; height: 42px;
  border: 6px solid #dbe7ef;
  border-bottom: 0;
  border-radius: 84px 84px 0 0;
  position: relative;
}
.ill-scale .dial::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 3px; height: 28px;
  background: #ff6b6b;
  border-radius: 2px;
  transform-origin: bottom;
  transform: rotate(22deg);
}
.ill-scale .lcd {
  font-weight: 800;
  font-size: 25px;
  color: #0a7ab8;
  background: #eaf6fd;
  border-radius: 10px;
  padding: 2px 18px;
  letter-spacing: .04em;
}
.ill-tread {
  width: 235px; height: 150px;
  border-radius: 20px;
  background: linear-gradient(160deg, #2b3f52, #1d2c3b);
  box-shadow: 0 14px 28px rgba(43,80,110,.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ill-tread .digits { display: flex; gap: 9px; }
.ill-tread .dg {
  background: #0e1a26;
  color: #5ff28c;
  font-weight: 800;
  font-size: 16px;
  border-radius: 8px;
  padding: 5px 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ill-tread .dg span {
  display: block;
  font-size: 9px;
  color: #7e97ab;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ill-tread .tbtns { display: flex; gap: 8px; }
.ill-tread .tbtns i { width: 26px; height: 8px; border-radius: 4px; background: #3d5468; }

/* ---------- split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.feature-list { list-style: none; display: grid; gap: 20px; margin-top: 30px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list .tick {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: #2aa14c;
  font-weight: 800;
  font-size: 15px;
  margin-top: 2px;
}
.feature-list b { display: block; font-size: 16.5px; margin-bottom: 2px; }

/* icon bullets (no box) — brand-cyan app glyphs instead of tick chips */
.feature-list.icons-plain li { gap: 14px; }
.feature-list.icons-plain .f-ico {
  flex: 0 0 auto;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: #25b0f1;
}
.feature-list.icons-plain .f-ico > img,
.feature-list.icons-plain .f-ico > svg { height: 25px; width: auto; display: block; }
.feature-list p { color: var(--muted); font-size: 15px; }

/* ---------- community collage ---------- */
.social-stack { position: relative; min-height: 500px; }
.s-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 18px;
  width: 270px;
  --rot: 0deg;
  animation: swayfloat 6.5s ease-in-out infinite;
}
@keyframes swayfloat {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50%      { transform: rotate(var(--rot)) translateY(-9px); }
}
.s-card:hover { box-shadow: var(--shadow-lg); z-index: 9; }
.s-recipe    { top: 0; left: 4%;  --rot: -3.5deg; z-index: 1; }
.s-challenge { top: 150px; right: 0; --rot: 2deg; z-index: 2; width: 300px; animation-delay: -2.4s; }
.s-run       { bottom: 0; left: 0; --rot: 1.5deg; z-index: 3; animation-delay: -4.2s; }
/* Mobile: keep the community cards as a compact OVERLAPPING collage (like the
   desktop version) — small tilted snapshots that read as EXAMPLES, not a
   vertical stack of full-width cards (which reads as app feature sections). */
@media (max-width: 960px) {
  .social-stack {
    width: 100%;
    max-width: 344px;
    min-height: 430px;   /* hug the cascading cards — avoid dead space below the collage */
    margin: 0 auto;
  }
  .social-stack .s-card { width: 206px; padding: 15px; }
  .s-recipe    { top: 0;     left: 6px;    --rot: -4deg;   z-index: 1; }
  .s-challenge { top: 150px;  right: 4px;   --rot: 3.5deg;  z-index: 2; width: 210px; }
  .s-run       { top: 294px;  bottom: auto; left: 16px; right: auto; --rot: -2.5deg; z-index: 3; }
  .s-recipe .r-thumb { height: 94px; }
  .social-stack .s-card > b { font-size: 13px; margin-top: 8px; }
  .social-stack .s-head { margin-bottom: 9px; }
  .social-stack .s-head b { font-size: 12.5px; }
  .social-stack .s-meta { font-size: 11px; }
  .social-stack .s-note, .social-stack .s-reply { font-size: 11px; padding: 6px 9px; }
  .social-stack .run-stat { font-size: 11px; padding: 6px 2px; }
  .social-stack .run-stat span { font-size: 8.5px; }
  .social-stack .ava { width: 22px; height: 22px; font-size: 9.5px; }
  .social-stack .s-reply .ava { width: 18px; height: 18px; }
}

.s-card > b { display: block; font-size: 15px; margin-top: 10px; }
.s-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.s-head b { font-size: 14.5px; }
.s-head .s-ico, .s-head .s-ico svg { width: 22px; height: 22px; display: block; color: var(--cyan); }
.s-meta { color: var(--faint); font-weight: 700; font-size: 12.5px; }
.s-meta .heart { color: #ff6b81; }
.s-note {
  display: inline-block;
  margin-top: 12px;
  background: var(--app-ai-bubble);
  border-radius: 12px 12px 12px 3px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #2a4759;
}
.s-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.r-thumb {
  position: relative;
  height: 118px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #fdeecd, #f7d9a0);
}
.r-thumb i {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 130px; height: 34px;
  border-radius: 50% / 46%;
  background: linear-gradient(180deg, #eebc72, #d99b4e);
  box-shadow: 0 3px 5px rgba(120, 70, 20, .18);
}
.r-thumb i:nth-child(1) { bottom: 14px; }
.r-thumb i:nth-child(2) { bottom: 38px; width: 122px; }
.r-thumb i:nth-child(3) { bottom: 62px; width: 112px; }
.r-thumb::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 88px;
  transform: translateX(-50%);
  width: 52px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffdf8e, #f2b83c);
}
.pbar {
  height: 10px;
  border-radius: 999px;
  background: #e9f2f8;
  overflow: hidden;
}
.pbar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
}
.avas { display: flex; }
.ava {
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #ffffff;
  flex: 0 0 auto;
}
.avas .ava { margin-right: -7px; }
.ava.a1 { background: linear-gradient(140deg, #25b0f1, #1e8fd8); }
.ava.a2 { background: linear-gradient(140deg, #2dcfbe, #1aa896); }
.ava.a3 { background: linear-gradient(140deg, #f2b83c, #e79b28); }
.ava.a4 { background: linear-gradient(140deg, #59c95c, #3aa94a); }
.ava.more { background: #dbe7ef; color: #5f7788; }
.s-run .run-stats { margin-top: 2px; }
.s-reply {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: var(--app-ai-bubble);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #2a4759;
}
.s-reply .ava { width: 22px; height: 22px; font-size: 10px; border: 0; }

/* ---------- AI coach / Lia ---------- */
.coach { overflow: hidden; }
.coach-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}
@media (max-width: 960px) { .coach-grid { grid-template-columns: 1fr; } }
.coach-copy { padding-bottom: 56px; }
.coach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}
.coach-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 14px;
  animation: floaty 6s ease-in-out infinite;
}
.coach-chip:nth-child(2n) { animation-delay: -2s; }
.coach-chip:nth-child(3n) { animation-delay: -4s; animation-duration: 7s; }
.coach-chip .c-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grad);
  flex: 0 0 auto;
}
.lia-stage {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.lia-stage::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  max-width: 92vw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.55), transparent 42%),
    linear-gradient(140deg, #bfe9ff, #b8f2cf);
}
.lia-stage img {
  position: relative;
  width: 340px;
  filter: drop-shadow(0 18px 30px rgba(43,80,110,.22));
}
.lia-name {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateX(150px);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 13.5px;
  line-height: 1.35;
  white-space: nowrap;
}
.lia-name b { display: block; font-size: 15px; }
.lia-name span { color: var(--muted); font-weight: 700; }
@media (max-width: 560px) {
  .lia-name { transform: translateX(-50%); bottom: 10px; }
}

/* ---------- coach: showcase carousel ---------- */
.coach-showcase { margin-top: 72px; }
.sub-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 30px;
}
.members-sub { margin-top: 56px; }   /* "Additional members" heading (was an inline style) */

.show-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}
.show-tab {
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 26px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.show-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.show-tab.active {
  background: var(--grad);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(31,175,243,.28);
}

.carousel { overflow: hidden; }
.car-track {
  display: flex;
  align-items: flex-start;
  transition: transform .55s cubic-bezier(.22,.8,.3,1), height .45s ease;
}
.car-slide { flex: 0 0 100%; min-width: 0; padding: 6px 2px; }
.slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 420px;
}
@media (max-width: 960px) {
  .slide-grid { grid-template-columns: 1fr; gap: 34px; min-height: 0; }
}
.slide-copy h4 { font-size: 24px; margin-bottom: 12px; }
.slide-copy > p { color: var(--muted); font-size: 16.5px; margin-bottom: 20px; }
.mini-ticks { list-style: none; display: grid; gap: 11px; }
.mini-ticks li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}
.mini-ticks li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 21px; height: 21px;
  border-radius: 7px;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  color: #2aa14c;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.slide-art .vignette { max-width: 400px; margin: 0 auto; width: 100%; }

/* workout slide artifact */
.workout-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 410px;
  margin: 0 auto;
  width: 100%;
}
.demo-msg {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
  color: #234356;
}
.demo-msg.user {
  align-self: flex-end;
  background: var(--app-user-bubble);
  border-radius: 16px 16px 4px 16px;
}
.demo-msg.ai {
  align-self: flex-start;
  background: var(--app-ai-bubble);
  border-radius: 16px 16px 16px 4px;
}
.wd-card {
  background: #ffffff;
  border: 1.5px solid #bfecff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.wd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.wd-head b { font-size: 15.5px; }
.wd-head .kcal-pill { margin-bottom: 0; }
.wd-body { display: flex; gap: 16px; align-items: center; }
.wd-list { list-style: none; flex: 1; display: grid; gap: 8px; }
.wd-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #f2fafe;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
.wd-list li b { font-weight: 800; }
.wd-list li span { color: #0a7ab8; font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.wd-muscles { flex: 0 0 auto; text-align: center; }
.wd-muscles svg { width: 82px; height: auto; margin: 0 auto; }
.wd-muscles > span {
  display: block;
  margin-top: 7px;
  max-width: 92px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.4;
}
.wd-muscles path { fill: #dfeaf2; }
.wd-muscles path.outline { fill: none; stroke: #c0d5e2; stroke-width: .7; }
.wd-muscles path.lit { fill: url(#muscleGrad); }

/* run slide artifact */
.run-demo { max-width: 420px; margin: 0 auto; width: 100%; }
.rd-map {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.rd-map svg { display: block; width: 100%; height: auto; }
.rd-live {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.rd-live i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff5a5a;
  animation: blink 1.2s infinite;
}
.rd-stats { margin-top: 14px; }
/* route draws itself the first time its slide is shown */
html.js .car-slide.seen .rd-route {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: routedraw 2.2s ease .35s forwards;
}
@keyframes routedraw { to { stroke-dashoffset: 0; } }

/* ---------- pledge ---------- */
.pledge-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) { .pledge-grid { grid-template-columns: 1fr; } }
.pledge-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 26px;
}
.pledge-copy p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 560px;
}
.pledge-copy p b { color: var(--ink); }
.pledge-copy .signoff {
  font-weight: 800;
  color: var(--ink);
  font-size: 17px;
}
.pledge-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.qr-stage { text-align: center; }
.qr-stage img {
  width: 320px;
  margin: 0 auto;
  transform: rotate(2deg);
  transition: transform .25s ease;
}
.qr-stage img:hover { transform: rotate(0deg) scale(1.02); }
.qr-stage figcaption {
  margin-top: 16px;
  font-weight: 800;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- pledge → about banner (the people behind the promises) ---------- */
.about-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 64px;
  padding: 26px 34px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s ease, transform .2s ease;
}
.about-banner:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.about-banner > img {
  width: 148px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(43,80,110,.16));
}
.about-banner .ab-copy { flex: 1; min-width: 0; }
.about-banner .ab-copy b { display: block; font-size: 20px; margin-bottom: 6px; }
.about-banner .ab-copy p { color: var(--muted); font-size: 15.5px; max-width: 520px; }
.about-banner .btn { flex: 0 0 auto; }
@media (max-width: 800px) {
  .about-banner { flex-direction: column; text-align: center; gap: 20px; padding: 30px 24px; }
  .about-banner .ab-copy p { margin: 0 auto; }
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-cool);
  padding: 44px 0 52px;
  color: var(--faint);
  font-size: 14px;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-inner img { height: 40px; }
.foot-links { display: flex; gap: 22px; font-weight: 700; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* ============================================================
   About page
   ============================================================ */
.nav-links a.active { color: var(--ink); }

.page-hero { padding: 170px 0 84px; }
.page-hero .hero-copy { max-width: 760px; }
.page-hero .hero-sub { max-width: 640px; }

/* founders */
.founder-quote {
  position: relative;
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 30px 30px 24px;
}
.founder-quote::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  left: 20px;
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.founder-quote p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.founder-quote footer {
  /* undo the global site-footer element styles */
  background: none;
  border: 0;
  padding: 0;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.founders-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.founders-stage img {
  width: min(340px, 92%);
  filter: drop-shadow(0 16px 28px rgba(43,80,110,.20));
}
.founder-tags { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.founder-tag {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 10px 20px;
  text-align: center;
}
.founder-tag b { display: block; font-size: 15px; }
.founder-tag span { color: var(--muted); font-weight: 700; font-size: 12.5px; }

/* advisors */
.advisors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) {
  .advisors { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
.advisor-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.advisor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.advisor-card > img {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 6px rgba(31,175,243,.10);
}
.adv-role {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #0e9fe4, #23b8a8 55%, #35bd3e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.advisor-card h3 { font-size: 19px; margin-bottom: 12px; }
.adv-name-img img { height: 46px; width: auto; margin: 0 auto 12px; }
.advisor-card p { color: var(--muted); font-size: 14px; text-align: left; }

/* additional members */
.members-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centre the ragged final row (11 cards) instead of leaving an empty cell */
  gap: 18px;
  max-width: 1020px;
  margin: 0 auto;
}
.members-grid .member { flex: 0 1 calc(25% - 13.5px); }   /* 4-up: 3 gaps of 18px / 4 items */
@media (max-width: 960px) { .members-grid .member { flex-basis: calc(33.333% - 12px); } }
@media (max-width: 680px) { .members-grid .member { flex-basis: calc(50% - 9px); } }
.member {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 14px;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.member:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.member img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 11px;
  box-shadow: 0 0 0 4px rgba(31,175,243,.10);
}
.member b { display: block; font-size: 14px; line-height: 1.3; margin-bottom: 3px; }
.member span { display: block; color: var(--faint); font-weight: 700; font-size: 12px; line-height: 1.45; }

/* business-model comparison cards */
.model-cards { display: grid; gap: 22px; max-width: 440px; margin: 0 auto; width: 100%; }
.model-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px 24px;
}
.model-card.us {
  border: 1.5px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box, var(--grad) border-box;
}
.model-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.model-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.flow-chip {
  background: #f1f6fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.model-card.us .flow-chip {
  background: var(--grad-soft);
  border-color: var(--line-strong);
  color: var(--ink);
}
.flow-arrow { color: var(--faint); font-weight: 800; }
.model-note { margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--faint); }
.model-card.us .model-note { color: #2aa14c; }

/* where-your-data-lives diagram */
.arch { max-width: 420px; margin: 0 auto; width: 100%; }
.arch-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 22px;
}
.arch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.arch-head b { font-size: 15.5px; }
.arch-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
.arch-tag.lock { background: var(--grad-soft); color: #1c8f4e; border: 1px solid var(--line-strong); }
.arch-tag.remote { background: #eef4f9; color: var(--faint); border: 1px solid var(--line); }
.arch-list { list-style: none; display: grid; gap: 8px; }
.arch-list li {
  background: #f2fafe;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #234356;
}
.arch-box.local .arch-list li { background: #f0fbf2; }
.arch-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 6px;
  color: var(--faint);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.arch-link::before,
.arch-link::after {
  content: '';
  height: 26px;
  border-left: 2px dashed var(--line-strong);
}
.arch-note { margin-top: 12px; font-size: 12.5px; color: var(--faint); font-weight: 700; }

/* capability body model */
.bm-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px 26px;
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.bm-bodies { display: flex; justify-content: center; gap: 44px; }
.bm-figure svg { width: 106px; height: auto; margin: 0 auto; }
.bm-figure figcaption {
  margin-top: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.bm-svg path { fill: #e3edf4; }
.bm-svg path.outline { fill: none; stroke: #c0d5e2; stroke-width: .7; }
.bm-legend { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.bm-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.bm-legend i { width: 14px; height: 14px; border-radius: 5px; background: var(--grad); }
.bm-legend .l1 i { opacity: .25; }
.bm-legend .l2 i { opacity: .6; }
.bm-caption { margin-top: 16px; font-size: 13px; color: var(--faint); font-weight: 700; }

/* Unitext chapters */
.chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .chapters { grid-template-columns: 1fr; } }
.chapter {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px;
}
.chapter.now {
  border: 1.5px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow-md);
}
.ch-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
}
.ch-tag.here { background: var(--grad); color: #ffffff; box-shadow: var(--shadow-sm); }
.ch-tag.planned { background: #eef4f9; color: var(--faint); border: 1px solid var(--line); }
.ch-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.ch-icon { width: 34px; height: 34px; color: var(--cyan); margin: 16px 0 12px; }
.ch-icon svg { width: 34px; height: 34px; }
.chapter b { display: block; font-size: 17px; margin-bottom: 6px; }
.chapter p { font-size: 14px; color: var(--muted); }

/* closing cta */
.about-cta { text-align: center; }
.about-cta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.about-cta p { color: var(--muted); font-size: 17px; max-width: 580px; margin: 0 auto; }
.about-cta .hero-cta { justify-content: center; margin: 32px 0 0; }

/* ---------- reveal animations (progressive enhancement: hidden state
   only applies when JS has stamped html.js, so content can never be
   permanently invisible) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE REFINEMENTS
   The site is one responsive codebase — the rules below are the
   phone layer, layered on top of the shared styles so every content
   edit above still flows through to mobile automatically. Ordered
   widest-to-narrowest; later tiers only tighten what the previous set.
   ============================================================ */

/* ---- keyboard/switch focus (all viewports; :focus-visible never fires on plain touch) ---- */
.btn:focus-visible,
.show-tab:focus-visible,
.nav-burger:focus-visible,
.nav-links a:focus-visible,
.foot-links a:focus-visible,
.about-banner:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  /* no border-radius here — the outline already follows each element's own
     radius, so pills keep their pill shape when focused */
}

/* ---- grid-collapse companions (match the existing 960px collapse) ---- */
@media (max-width: 960px) {
  .coach-copy { padding-bottom: 0; }   /* the 56px only bottom-aligned Lia in the 2-col grid */
}

/* ---- nav / in-page anchors on the burger tier ---- */
@media (max-width: 900px) {
  .nav-links {
    max-height: calc(100dvh - 88px);   /* long menus (About) stay scrollable on short/landscape screens */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-cta .btn { padding: 13px 22px; }         /* lift the in-menu CTA to a >=44px tap target */
  section[id], .hero[id] { scroll-margin-top: 88px; }  /* clear the fixed nav on anchor jumps */
}

/* ---- MAIN phone/tablet tier: rhythm, structure, footer, CTAs ---- */
@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .nav-links { left: 20px; right: 20px; }        /* keep the menu panel aligned to the tightened gutter */

  /* vertical rhythm — sections and heroes were sized for desktop */
  section { padding: 28px 0; }
  .hero { padding: 108px 0 56px; }
  .page-hero { padding: 112px 0 52px; }
  .section-head { margin-bottom: 34px; }

  /* single-column grids no longer need desktop-sized gutters */
  .hero-grid { gap: 32px; }
  .split { gap: 38px; }
  .pledge-grid { gap: 38px; }
  .coach-grid { gap: 28px; }

  /* trim the stacked-only spacers */
  .coach-showcase { margin-top: 56px; }
  .about-banner { margin-top: 48px; }
  .lia-stage { min-height: 0; }
  .members-sub { margin-top: 40px; }
  .sub-title { margin-bottom: 22px; }
  .show-tabs { margin-bottom: 26px; }
  .feature-list { margin-top: 24px; }
  .coach-chips { margin: 20px 0 24px; }

  /* CTAs: small auto-width pills that sit side-by-side on one row (wrap if they must) */
  .hero-cta { gap: 10px; }

  /* footer: centered stack; the un-wrapped link row otherwise overflows */
  .foot-inner { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .foot-links { flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 2px 2px; }
  footer { padding: 36px 0 40px; }
}

/* ---- typography: genuinely fluid on phones (base clamps floor out too early) ---- */
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.16; }
  h2.section-title { font-size: clamp(24px, 6.6vw, 32px); }
  .slide-copy h4 { font-size: 20px; }
  .member span { font-size: 12.5px; }

  /* the "On our servers" tag is nowrap and overruns its card on narrow phones */
  .arch-head { flex-wrap: wrap; gap: 4px 8px; }
  .arch-tag { font-size: 10px; }
  /* keep the front/back bodies side-by-side but reclaim the desktop gutter */
  .bm-bodies { gap: 24px; }
}

/* ---- small phones ---- */
@media (max-width: 430px) {
  .wrap { padding: 0 16px; }
  .nav-links { left: 16px; right: 16px; }
  .nav-logo img { height: 46px; }

  .hero { padding: 100px 0 48px; }
  .page-hero { padding: 104px 0 44px; }
  .hero-sub { margin-bottom: 22px; }
  .hero-cta { margin-bottom: 24px; }

  .pledge-copy h2, .about-cta h2 { font-size: 26px; }
  .founder-quote { padding: 24px 20px 20px; }

  /* carousel workout card: give the exercise list room next to the muscle map */
  .wd-body { gap: 10px; }
  .wd-muscles svg { width: 64px; }
  .wd-muscles > span { max-width: 76px; font-size: 9px; }
  .wd-list li { padding: 7px 10px; font-size: 12px; }
}

/* ---- smallest phones (~320px): scale the fixed-canvas artifacts to fit ---- */
@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .nav-links { left: 14px; right: 14px; }

  /* hero phone mockup is a fixed 320px canvas; scale the whole block so it
     always fits, and reclaim the space the un-scaled layout box vacates so
     it still centres (negative margins also free the grid track it forced).
     .hero-phone is already a centred flex column from the base rule. */
  .phone {
    transform: scale(0.9);
    transform-origin: top left;
    margin-right: -32px;    /* 320 * 0.1 reclaimed width -> centres + frees the track */
    margin-bottom: -71px;   /* 706 * 0.1 reclaimed height */
  }

  /* run stat strip stays one row, just tighter */
  .run-stats { gap: 6px; }
  .rd-stats .run-stat { padding: 7px 3px; font-size: 11.5px; }
  .rd-stats .run-stat span { font-size: 9px; }

  /* body-model bodies + members grid */
  .bm-bodies { gap: 14px; }
  .bm-figure svg { width: 96px; }
  .members-grid { gap: 12px; }
  .member { padding: 16px 10px; }

  /* module flip copy legibility inside the 140px circle */
  .m-back { padding: 12px 10px; }
  .m-back p { font-size: 12px; line-height: 1.28; letter-spacing: 0; }

  /* meal-plate illustration safeguard down to ~300px */
  .ill-plate { width: 165px; height: 165px; }
  .ill-plate .f1 { width: 76px; height: 55px; }
}

/* sticky :hover lift can look stuck after a tap on touch devices */
@media (hover: none) {
  .s-card:hover, .advisor-card:hover, .member:hover,
  .chapter:hover, .about-banner:hover { transform: none; }
}

/* ============================================================
   AESTHETIC REFINEMENTS (2026-08)
   Proportion + rhythm polish. Desktop-value tweaks (section padding,
   section-head / coach-showcase / about-banner / members-sub spacers,
   phone-caption colour, .member radius, members-grid centring) were
   made in place above so the mobile tiers still win by source order.
   The rules below are the phone-tier right-sizing — the "too big on
   mobile" fixes — plus one desktop dead-band trim.
   ============================================================ */

/* desktop only: the Toolbox section is one short circle row, so its 100px
   bottom pad stacked with the next section's top pad into a dead band */
@media (min-width: 701px) {
  #modules { padding-bottom: 60px; }
}

/* phones: shrink desktop-scale showpieces into proportionate accents so
   they stop dominating the scroll and pulling focus off the message */
@media (max-width: 560px) {
  .hero-sub { font-size: 17px; }
  p.section-lead { font-size: 16px; }

  .lia-stage img { width: min(240px, 62vw); }
  .lia-stage::before { width: 288px; height: 288px; }

  .qr-stage img { width: min(216px, 58vw); }

  .founders-stage img { width: min(236px, 60vw); }

  .blob-sun { opacity: .45; }   /* strongest element in the small hero — let the headline + phone lead */
}

/* ============================================================
   SHRINK PASS (2026-08) — deemphasize oversized mobile elements
   Owner directive: on phones, big desktop-scaled blocks read as
   "feature sections" and grab too much attention. Shrink them into
   small accents / examples. Tiers 1+2 from the shrink audit. Phone-only.
   ============================================================ */

/* structural paddings (phones + small tablets) */
@media (max-width: 700px) {
  .chapter { padding: 16px 18px; }
  .ch-icon, .ch-icon svg { width: 26px; height: 26px; }
  .ch-icon { margin: 12px 0 10px; }
  .arch-box { padding: 15px 16px; }
  .model-card { padding: 15px 18px; }
  .bm-card { padding: 18px 18px; }
  .arch-link { padding: 8px 6px; }
  .arch-link::before, .arch-link::after { height: 16px; }
  .arch-list li { padding: 6px 10px; font-size: 12.5px; }
}

@media (max-width: 560px) {
  /* --- Tier 1: big visual blocks that read like feature sections --- */

  /* index: Toolbox module circles */
  .module { width: 108px; height: 108px; }
  .module .m-icon, .module .m-icon svg { width: 26px; height: 26px; }
  .module b { font-size: 12px; }

  /* index: coaching-showcase demos → small examples, not full-width feature cards */
  .workout-demo { max-width: 300px; }
  .wd-card { padding: 12px; }
  .wd-muscles svg { width: 56px; }
  .demo-msg { font-size: 13px; padding: 8px 13px; }
  .run-demo { max-width: 300px; }
  .slide-art .vignette { max-width: 300px; }
  .v-photo { min-height: 150px; padding: 12px; }
  .ill-plate { width: 150px; height: 150px; }
  .ill-plate .f1 { width: 72px; height: 52px; }
  .v-bubble { font-size: 13px; padding: 9px 13px; }

  /* index: founders banner teaser */
  .about-banner > img { width: min(104px, 28vw); }
  .about-banner .ab-copy b { font-size: 16px; }
  .about-banner { padding: 20px 18px; }

  /* about: advisor cards */
  .advisor-card > img { width: 88px; height: 88px; box-shadow: 0 0 0 4px rgba(31,175,243,.10); }
  .advisor-card { padding: 20px 20px; }
  .advisor-card h3 { font-size: 16.5px; margin-bottom: 8px; }
  .advisor-card p { font-size: 13px; line-height: 1.45; }

  /* about: additional members */
  .members-grid .member img { width: 60px; height: 60px; }
  .members-grid .member { padding: 14px 10px; }

  /* about: body-model bodies */
  .bm-figure svg { width: 76px; }

  /* --- Tier 2: supporting elements --- */
  .blob-mint { width: 300px; height: 280px; opacity: .32; }

  .coach-chips { gap: 8px; margin: 16px 0 20px; }
  .coach-chip { font-size: 12.5px; padding: 7px 13px; }
  .show-tab { font-size: 13px; padding: 8px 16px; }

  .feature-list b { font-size: 15px; }
  .feature-list p { font-size: 14px; }
  .feature-list.icons-plain .f-ico > img,
  .feature-list.icons-plain .f-ico > svg { height: 20px; }

  .founder-quote::before { font-size: 44px; }
  .founder-quote p { font-size: 14px; margin-bottom: 12px; }

  .pledge-copy p { font-size: 15.5px; }
  .about-cta p { font-size: 16px; }

  /* buttons + small pills were left at desktop scale — trim them on phones */
  .btn { font-size: 14px; padding: 12px 18px; }
  .chip { font-size: 12px; padding: 6px 11px; }
  .chip .dot { width: 6px; height: 6px; }
  .trust-chips { gap: 8px; }
  .eyebrow { font-size: 12px; margin-bottom: 12px; }
  .flow-chip { font-size: 12px; padding: 6px 11px; }
  .founder-tag { padding: 8px 14px; }
  .founder-tag b { font-size: 13px; }
  .founder-tag span { font-size: 11.5px; }

  /* hero readability: the copy (index) + title (about) sit over the decorative
     blobs on phones, killing contrast — dim the blobs and darken the paragraph */
  /* Re-stage the hero blobs vertically for the 1-col layout: warm at the top
     (behind the headline), cool at the bottom (behind the phone). This keeps
     the copy on a single coherent warm ground instead of a warm/cool split. */
  .hero-sub { color: var(--ink); }
  .blob-sun  { top: -140px; left: -150px; width: 420px; height: 380px; opacity: .34; }
  .blob-drop { top: auto; bottom: -40px; right: -170px; width: 520px; height: 500px; opacity: .28; }
  .blob-mint { top: auto; bottom: -150px; left: -130px; width: 360px; height: 320px; opacity: .22; }
  /* the About hero has no phone to absorb the cool blob, so it would land
     behind the title — keep that hero a clean warm ground (warm sun only) */
  .page-hero .blob-drop, .page-hero .blob-mint { display: none; }
  .page-hero .blob-sun { top: -170px; opacity: .3; }
}
