/* ============================================================
   THE HEALTH PROJECT, platform.css
   Homepage (consumer/app) + /coaches (recruitment) components.
   Loads after styles.css. Same brand system, same idiom.
   The phone + console mocks reproduce the REAL app screens:
   exact labels, exact tokens, nothing invented.
   ============================================================ */

/* ── UNDERLINE CLEARANCE (clears descenders, stays tight) ── */
.hero__underline,
.scroll-underline { padding-bottom: .075em; }

/* waitlist band: neighbors already carry the vertical rhythm */
#waitlist.co-apply-section { padding: 8px 0 var(--space-xl); }

/* ── PAGE-LEVEL TEXT RULES (ink or white, never grey) ────── */
.home-hero__subhead,
.co-hero__subhead,
.why-card p,
.why-punch,
.app-showcase__item p,
.app-section__more,
.coach-section__copy p,
.co-app-section__copy p,
.co-checklist span,
.co-page-section__copy p,
.co-join-step p,
.co-apply-card p { color: var(--fg-1); }

/* ════════════════════════════════════════════════════════════
   PHONE MOCK, the client app, faithful to src/app/client/*
   ════════════════════════════════════════════════════════════ */
.app-phone {
  width: 300px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3138, var(--ink) 62%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 34px 80px rgba(15, 32, 44, .38);
  position: relative;
  flex: none;
}
.app-phone__screen {
  position: relative;
  height: 606px;
  border-radius: 37px;
  background: var(--neutral-50);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* dynamic island */
.app-phone__screen::before {
  content: "";
  position: absolute;
  top: 9px; left: 50%;
  width: 78px; height: 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  transform: translateX(-50%);
  z-index: 5;
}

/*, brand bar, */
.ph-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 14px 8px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.ph-brandbar .tp-lock { font-size: 11px; }
.ph-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--neutral-100);
  border: 1px solid var(--line);
  position: relative;
}
.ph-avatar::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--neutral-400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/*, scrollable body, */
.ph-body {
  flex: 1;
  min-height: 0;
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.ph-topbar { display: flex; flex-direction: column; gap: 1px; padding: 4px 2px 2px; }
.ph-title {
  font-size: 17px;
  font-weight: var(--w-black);
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
  line-height: 1.1;
}
.ph-eyebrow {
  font-size: 7.5px;
  font-weight: var(--w-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--health-600);
}
.ph-muted { color: var(--neutral-500); font-size: 7.5px; font-weight: var(--w-medium); }
.ph-section-label { padding: 2px 2px 0; }

.ph-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  box-shadow: var(--shadow-xs);
}

/*, home: greeting hero card, */
.ph-greeting {
  display: block;
  font-size: 15px;
  font-weight: var(--w-black);
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
}
.ph-hero-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}
.ph-hero-card__stats > div { display: grid; gap: 2px; }
.ph-hero-card__stats strong {
  font-size: 13px;
  font-weight: var(--w-black);
  letter-spacing: -.02em;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}
.ph-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 7px;
  font-weight: var(--w-semibold);
}
.ph-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ph-status--good { color: var(--success); }

/*, home: snapshot stat cards, */
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ph-stat { display: grid; gap: 4px; align-content: start; }
.ph-stat header { display: flex; align-items: center; justify-content: space-between; }
.ph-trend { color: var(--success); font-size: 8px; font-weight: var(--w-bold); }
.ph-icon-circle {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--health-100);
  display: grid;
  place-items: center;
  color: var(--health-600);
}
.ph-icon-circle svg { width: 9px; height: 9px; }
.ph-big { font-size: 13px; font-weight: var(--w-black); letter-spacing: -.02em; color: var(--fg-1); }
.ph-big small { font-size: 8px; font-weight: var(--w-semibold); color: var(--neutral-500); }
.ph-big--sm { font-size: 10.5px; }
.ph-spark { width: 100%; height: 18px; }
.ph-spark polyline {
  stroke: var(--health-600);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 0;
  animation: ph-spark-draw 6s var(--ease) infinite;
}
@keyframes ph-spark-draw {
  0% { stroke-dashoffset: 140; }
  28%, 88% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 140; }
}

/*, home: task checklist, */
.ph-tasks { padding: 2px 0; }
.ph-task {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6.5px 11px;
  font-size: 8.5px;
  font-weight: var(--w-medium);
  color: var(--fg-1);
}
.ph-task + .ph-task { border-top: 1px solid var(--line); }
.ph-task i {
  width: 12px; height: 12px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  position: relative;
}
.ph-task.is-done i,
.ph-task--live i::before {
  border-color: var(--success);
  background: var(--success);
}
.ph-task.is-done i::after,
.ph-task--live i::after {
  content: "";
  position: absolute;
  left: 3px; top: 1px;
  width: 3px; height: 5.5px;
  border-right: 1.5px solid #FFFFFF;
  border-bottom: 1.5px solid #FFFFFF;
  transform: rotate(45deg);
}
.ph-task.is-done span { color: var(--neutral-500); text-decoration: line-through; }
/* the second task ticks itself on a loop */
.ph-task--live i { animation: ph-task-ring 7s var(--ease) infinite; }
.ph-task--live i::after { opacity: 0; animation: ph-task-check 7s var(--ease) infinite; }
@keyframes ph-task-ring {
  0%, 38% { border-color: var(--line-strong); background: transparent; }
  46%, 86% { border-color: var(--success); background: var(--success); }
  94%, 100% { border-color: var(--line-strong); background: transparent; }
}
@keyframes ph-task-check {
  0%, 40% { opacity: 0; }
  46%, 86% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

/*, home: coach note, */
.ph-coach-note {
  background: var(--health-50);
  border-color: transparent;
  box-shadow: none;
  display: grid;
  gap: 2px;
}
.ph-coach-note header { display: flex; align-items: center; justify-content: space-between; }
.ph-coach-note header small { font-size: 7px; color: var(--neutral-500); }
.ph-coach-note b { font-size: 8.5px; font-weight: var(--w-semibold); color: var(--fg-1); }
.ph-coach-note p { font-size: 8.5px; line-height: 1.45; color: var(--neutral-700); margin: 0; }

/*, tab bar, */
.ph-tabbar {
  flex: none;
  display: flex;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 6px 4px 10px;
}
.ph-tabbar span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 6px;
  font-weight: var(--w-medium);
  letter-spacing: .01em;
  color: var(--neutral-500);
  position: relative;
}
.ph-tabbar svg { width: 12px; height: 12px; }
.ph-tabbar span.is-active { color: var(--health-600); font-weight: var(--w-semibold); }
.ph-tabbar span.has-dot::after {
  content: "";
  position: absolute;
  top: -2px; right: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--danger);
  border: 1px solid var(--paper);
}

/*, training screen, */
.ph-seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--health-50);
}
.ph-seg span {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  border-radius: 8px;
  font-size: 8.5px;
  font-weight: var(--w-bold);
  letter-spacing: -.01em;
  color: var(--neutral-500);
}
.ph-seg span.is-active {
  background: var(--paper);
  color: var(--health-600);
  box-shadow: 0 2px 8px rgba(71, 118, 156, .18), 0 1px 2px rgba(0, 0, 0, .06);
}
.ph-navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}
.ph-navrow i {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--health-50);
  color: var(--health-600);
  font-style: normal;
  font-size: 12px;
  font-weight: var(--w-bold);
}
.ph-navrow b {
  font-size: 10.5px;
  font-weight: var(--w-black);
  letter-spacing: -.02em;
  color: var(--fg-1);
}
.ph-week {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
}
.ph-week > span {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 1px 5px;
  border-radius: 8px;
}
.ph-week b {
  font-size: 5.5px;
  font-weight: var(--w-bold);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--neutral-500);
}
.ph-week em {
  font-style: normal;
  font-size: 10px;
  font-weight: var(--w-black);
  letter-spacing: -.03em;
  color: var(--fg-1);
}
.ph-week i { width: 3.5px; height: 3.5px; border-radius: 50%; background: transparent; }
.ph-week i.dot-sched { background: var(--health-400); }
.ph-week i.dot-done { background: var(--success); }
.ph-week > span.is-selected {
  background: linear-gradient(160deg, var(--health-400) 0%, var(--health-600) 100%);
  box-shadow: 0 3px 12px rgba(71, 118, 156, .28);
  animation: ph-day-glow 4s var(--ease) infinite;
}
.ph-week > span.is-selected b,
.ph-week > span.is-selected em { color: #FFFFFF; }
.ph-week > span.is-selected i.dot-sched { background: #FFFFFF; }
@keyframes ph-day-glow {
  0%, 100% { box-shadow: 0 3px 12px rgba(71, 118, 156, .28); }
  50% { box-shadow: 0 3px 18px rgba(71, 118, 156, .5); }
}

.ph-workout {
  position: relative;
  border-radius: 12px;
  padding: 9px 11px 9px 14px;
  display: grid;
  gap: 3px;
  overflow: hidden;
}
.ph-workout::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.ph-workout-badge {
  font-size: 6.5px;
  font-weight: var(--w-bold);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ph-workout strong { font-size: 11px; font-weight: var(--w-black); letter-spacing: -.02em; }
.ph-workout small { font-size: 8px; font-weight: var(--w-medium); }
.ph-workout--today {
  background: linear-gradient(135deg, var(--health-400) 0%, var(--health-600) 100%);
  box-shadow: 0 4px 20px rgba(71, 118, 156, .30);
  color: #FFFFFF;
}
.ph-workout--today::before { background: rgba(255, 255, 255, .45); }
.ph-workout--today strong { color: #FFFFFF; }
.ph-workout--done {
  background: var(--success-tint);
  border: 1px solid var(--growth-200);
  box-shadow: 0 2px 8px rgba(47, 143, 107, .12);
  color: var(--growth-600);
}
.ph-workout--done::before { background: var(--success); }
.ph-workout--done strong { color: var(--success); }
.ph-pills { display: flex; gap: 3px; margin-top: 2px; }
.ph-pills span {
  font-size: 6.5px;
  font-weight: var(--w-semibold);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .22);
  color: #FFFFFF;
}

/*, nutrition screen, */
.ph-intake { display: grid; gap: 7px; }
.ph-intake__row { display: flex; align-items: center; gap: 12px; }
.ph-ring { position: relative; width: 74px; height: 74px; flex: none; }
.ph-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke-width: 7; }
.ph-ring__track { stroke: var(--line); }
.ph-ring__fill {
  stroke: var(--health-600);
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 52;  /* 1,970 of 2,400 = 82% */
  animation: ph-ring-fill 6s var(--ease-out) infinite;
}
@keyframes ph-ring-fill {
  0% { stroke-dashoffset: 289; }
  32%, 88% { stroke-dashoffset: 52; }
  100% { stroke-dashoffset: 289; }
}
.ph-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ph-ring__label strong {
  font-size: 13.5px;
  font-weight: var(--w-black);
  letter-spacing: -.02em;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}
.ph-ring__label small { font-size: 7px; color: var(--neutral-500); }
.ph-macros { flex: 1; display: grid; gap: 8px; min-width: 0; }
.ph-macro header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}
.ph-macro header span { font-size: 8.5px; font-weight: var(--w-semibold); color: var(--fg-1); }
.ph-macro header small { font-size: 8px; color: var(--neutral-500); font-variant-numeric: tabular-nums; }
.ph-bar {
  display: block;
  height: 4.5px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
.ph-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: var(--fill, 60%);
  transform: scaleX(0);
  transform-origin: left;
  animation: ph-bar-fill 6s var(--ease-out) infinite;
}
.ph-macro--p .ph-bar i { --fill: 79%; background: var(--health-600); }
.ph-macro--c .ph-bar i { --fill: 89%; background: var(--warning); animation-delay: .18s; }
.ph-macro--f .ph-bar i { --fill: 83%; background: var(--success); animation-delay: .36s; }
@keyframes ph-bar-fill {
  0%, 4% { transform: scaleX(0); }
  30%, 88% { transform: scaleX(1); }
  96%, 100% { transform: scaleX(0); }
}
.ph-intake__left { text-align: center; }
.ph-logbtn {
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--health-400);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: var(--w-bold);
  box-shadow: 0 6px 16px rgba(71, 118, 156, .28);
}
.ph-meal { display: grid; gap: 0; padding: 9px 11px 4px; }
.ph-meal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
}
.ph-meal header b { font-size: 9.5px; font-weight: var(--w-bold); color: var(--fg-1); }
.ph-meal header small { font-size: 8px; font-weight: var(--w-semibold); color: var(--health-600); font-variant-numeric: tabular-nums; }
.ph-meal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}
.ph-meal__row span {
  font-size: 8.5px;
  color: var(--fg-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-meal__row small { font-size: 7.5px; color: var(--neutral-500); flex: none; }

/* ════════════════════════════════════════════════════════════
   HOMEPAGE
   ════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.home-hero {
  background: var(--paper);
  padding-top: calc(64px + clamp(44px, 6vw, 84px));
  padding-bottom: clamp(48px, 6vw, 84px);
  overflow: hidden;
  position: relative;
}
.home-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 780px;
  height: 780px;
  border-radius: var(--radius-pill);
  top: 48px;
  right: -300px;
  background: radial-gradient(circle at 40% 40%, var(--health-100), var(--health-50) 62%, transparent 74%);
}
.home-hero__layout {
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.t-health { color: var(--health-400); }
.home-hero__heading {
  font-size: clamp(2.55rem, 3.9vw, 3.8rem);
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  color: var(--fg-1);
}
.home-hero__subhead {
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin: var(--space-lg) 0 0;
}

.home-hero__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}
.app-phone--hero {
  transform: rotate(2deg);
  animation: home-phone-in 800ms var(--ease-out) both;
}
@keyframes home-phone-in {
  from { opacity: 0; transform: rotate(4deg) translateY(26px); }
  to { opacity: 1; transform: rotate(2deg) translateY(0); }
}
.home-hero__float {
  position: absolute;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: grid;
  gap: 3px;
  animation: home-float-bob 6s ease-in-out infinite alternate;
}
.home-hero__float strong {
  font-size: 15px;
  font-weight: var(--w-black);
  letter-spacing: -.02em;
  color: var(--fg-1);
}
.home-hero__float small { font-size: 11px; font-weight: var(--w-medium); color: var(--health-600); }
.home-hero__float--workout {
  left: max(0px, calc(50% - 300px));
  top: 96px;
  animation-delay: -2s;
}
.home-hero__float--workout .ph-workout-badge { color: var(--health-600); }
.home-hero__float--checkin {
  right: max(0px, calc(50% - 310px));
  bottom: 110px;
}
.home-hero__float--checkin strong { color: var(--health-600); }
@keyframes home-float-bob {
  from { transform: translateY(-5px); }
  to { transform: translateY(6px); }
}

@media (max-width: 1080px) {
  .home-hero__layout { grid-template-columns: 1fr; max-width: 720px; }
  .home-hero__copy { text-align: center; }
  .home-hero__subhead { margin-inline: auto; }
  .home-hero .hero__ctas { justify-content: center; }
  .home-hero__media { min-height: 0; margin-top: var(--space-md); }
  .home-hero__float--workout { left: 0; }
  .home-hero__float--checkin { right: 0; }
}
@media (max-width: 560px) {
  .home-hero__heading { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .home-hero__float { display: none; }
  .app-phone--hero { transform: none; animation: none; }
}

/* ── THE GAP ── */
.why-section { background: var(--surface); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  max-width: 1080px;
  margin: 0 auto;
}
.why-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.why-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--health-50);
  display: grid;
  place-items: center;
  color: var(--health-600);
}
.why-card__icon svg { width: 24px; height: 24px; }
.why-card h4 {
  font-size: 1.2rem;
  font-weight: var(--w-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-sm);
}
.why-card p { font-size: .98rem; line-height: var(--lh-relaxed); }
.why-punch {
  max-width: 660px;
  margin: var(--space-xl) auto 0;
  text-align: center;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: var(--lh-normal);
}
.why-punch strong { color: var(--health-600); font-weight: var(--w-bold); }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; max-width: 460px; }
  .why-card { padding: var(--space-lg); }
  .why-card h4 br { display: none; }
}

/* ── THE APP (dark showcase band) ── */
.app-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(123, 174, 208, .22), transparent 30%),
    radial-gradient(circle at 90% 86%, rgba(92, 147, 184, .2), transparent 32%),
    linear-gradient(150deg, var(--health-900), #294d66 56%, var(--health-800));
}
.app-section::before,
.app-section::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  pointer-events: none;
  animation: gift-journey-drift 9s ease-in-out infinite alternate;
}
.app-section::before { top: -230px; left: -110px; }
.app-section::after { right: -140px; bottom: -190px; animation-delay: -4s; }
.app-section > .container { position: relative; z-index: 1; max-width: 1320px; }
.app-section .section-header h2 { color: var(--fg-inverse); }
.app-section .section-header .label { color: var(--health-200); }
.app-section .section-header p { color: var(--health-100); margin-inline: auto; max-width: 640px; }

.app-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: var(--space-xl);
  max-width: 1180px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  align-items: start;
}
.app-showcase__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.app-showcase__item:nth-child(2) { margin-top: clamp(0px, 3vw, 44px); }
.app-showcase__item .app-phone {
  width: 280px;
  transition: transform var(--dur-slow) var(--ease);
}
.app-showcase__item .app-phone__screen { height: 566px; }
.app-showcase__item:hover .app-phone { transform: translateY(-8px); }
.app-showcase__item h3 {
  margin-top: var(--space-lg);
  color: var(--fg-inverse);
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  font-weight: var(--w-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--lh-snug);
}
.app-showcase__item p {
  margin-top: var(--space-sm);
  max-width: 320px;
  color: var(--health-100);
  font-size: .98rem;
  line-height: var(--lh-relaxed);
}
.app-section__more {
  max-width: 620px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  text-align: center;
  color: var(--health-100);
  font-size: 1.05rem;
  line-height: var(--lh-relaxed);
}
@media (max-width: 1040px) {
  .app-showcase {
    display: flex;
    max-width: none;
    margin-inline: calc(-1 * var(--space-lg));
    padding: 6px var(--space-lg) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .app-showcase::-webkit-scrollbar { display: none; }
  .app-showcase__item { flex: 0 0 300px; scroll-snap-align: center; }
  .app-showcase__item:nth-child(2) { margin-top: 0; }
}

/* ── APP FEATURE STRIP (inside the dark band) ── */
.app-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 16px);
  max-width: 560px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}
.app-features span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .07);
  color: #FFFFFF;
  font-size: .95rem;
  font-weight: var(--w-semibold);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.app-features span:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .34);
  transform: translateY(-2px);
}
.app-features svg { width: 17px; height: 17px; color: var(--health-200); }

/* ── HOMEPAGE FAQ (single centered column) ── */
.home-faq { border-bottom: 1px solid var(--line-strong); }

/* ── HOW IT WORKS (light 3-step) ── */
.how3-section { background: var(--paper); }
.how3-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 40px);
  row-gap: var(--space-xl);
}
.how3-card { min-width: 0; transition: transform 220ms var(--ease); }
.how3-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--health-50), #FFFFFF 82%);
  box-shadow: var(--shadow);
  transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .how3-card:hover { transform: translateY(-5px); }
  .how3-card:hover .how3-card__media { box-shadow: var(--shadow-md); border-color: var(--health-200); }
}
.how3-card__copy {
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-sm);
}
.how3-card__number {
  display: block;
  color: var(--health-300);
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  font-weight: var(--w-black);
  letter-spacing: -.06em;
  line-height: .86;
}
.how3-card__number::after {
  content: "";
  width: 32px;
  height: 2px;
  margin-top: 12px;
  display: block;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--health-300), transparent);
}
.how3-card h3 {
  color: var(--fg-1);
  font-size: 1.28rem;
  font-weight: var(--w-semibold);
  line-height: var(--lh-snug);
}
/* step 1, the call */
.how3-call {
  width: 82%;
  height: 74%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.how3-call__participant {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--health-100);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.how3-call__participant small { color: var(--health-600); font-weight: var(--w-semibold); font-size: .8rem; }
.how3-call__avatar {
  width: clamp(52px, 6vw, 72px);
  height: clamp(52px, 6vw, 72px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--health-200), var(--health-500));
  color: var(--health-900);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: var(--w-black);
}
.how3-call__avatar--you { background: linear-gradient(145deg, #d9e8f2, #8eb8d4); }
/* step 2 reuses .inc-audit2 from styles.css, just scaled up */
.how3-card__media .inc-audit2 { width: 216px; transform: scale(1.06); }
/* step 3, plan live in the app */
.how3-plan {
  width: 74%;
  display: grid;
  gap: 10px;
}
.how3-plan .ph-workout--today { animation: how3-plan-pop 6s var(--ease) infinite; }
@keyframes how3-plan-pop {
  0%, 8% { transform: scale(.96); opacity: 0; }
  16%, 90% { transform: scale(1); opacity: 1; }
  98%, 100% { opacity: 0; }
}
.how3-plan__note {
  background: var(--paper);
  border: 1px solid var(--health-100);
  border-radius: 12px;
  padding: 10px 13px;
  display: grid;
  gap: 3px;
  box-shadow: var(--shadow-sm);
}
.how3-plan__note p { margin: 0; font-size: .85rem; font-weight: var(--w-semibold); color: var(--fg-1); }
@media (max-width: 1040px) {
  .how3-grid { max-width: 620px; grid-template-columns: 1fr; }
  .how3-card h3 { font-size: 1.4rem; }
}

/* ── YOUR COACH ── */
.coach-section { background: var(--surface); }
.coach-section__layout {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.coach-section__portrait {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--neutral-800);
  aspect-ratio: 4 / 5;
  margin: 0;
}
.coach-section__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.coach-section__portrait figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 64px 26px 24px;
  background: linear-gradient(180deg, transparent, rgba(24, 30, 35, .95) 46%);
  color: var(--fg-inverse);
}
.coach-section__portrait strong {
  display: block;
  font-size: 1.5rem;
  font-weight: var(--w-bold);
  line-height: var(--lh-snug);
}
.coach-section__portrait span {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: var(--w-semibold);
  color: var(--health-200);
}
.coach-section__portrait small {
  display: block;
  margin-top: 8px;
  color: var(--health-100);
  font-size: .9rem;
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-wide);
}
.coach-section__copy .label { display: block; margin-bottom: var(--space-sm); color: var(--health-600); }
.coach-section__copy h2 { margin-bottom: var(--space-md); }
.coach-section__copy p { line-height: var(--lh-relaxed); max-width: 560px; }
.coach-section__copy p + p { margin-top: var(--space-sm); }
.coach-section__ctas {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.coach-section__link {
  font-weight: var(--w-semibold);
  color: var(--health-600);
  text-decoration: none;
}
.coach-section__link:hover { color: var(--health-700); text-decoration: underline; }
@media (max-width: 900px) {
  .coach-section__layout { grid-template-columns: 1fr; max-width: 560px; }
  .coach-section__portrait { max-width: 380px; margin: 0 auto; width: 100%; }
  .coach-section__copy { text-align: center; }
  .coach-section__copy p { margin-inline: auto; }
  .coach-section__ctas { justify-content: center; }
}

/* ── GUARANTEE (homepage variant: CTA cell instead of bio) ── */
.home-guarantee .gift-guarantee-card { align-items: stretch; }
.home-guarantee__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-md);
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.home-guarantee__cta p {
  color: var(--health-900);
  font-size: 1.08rem;
  font-weight: var(--w-medium);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 560px) {
  .home-guarantee__cta { align-items: stretch; text-align: center; }
}

/* ════════════════════════════════════════════════════════════
   /COACHES: RECRUITMENT
   ════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.co-hero {
  background: var(--paper);
  padding-top: calc(64px + clamp(44px, 6vw, 84px));
  padding-bottom: clamp(48px, 6vw, 84px);
  overflow: hidden;
  position: relative;
}
.co-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 720px;
  height: 720px;
  border-radius: var(--radius-pill);
  top: 96px;
  right: -320px;
  background: var(--accent-tint);
}
.co-hero__layout {
  max-width: 1380px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(540px, 1.12fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.co-hero__copy .label { display: block; margin-bottom: var(--space-md); color: var(--health-600); }
.co-hero__heading {
  font-size: clamp(3rem, 4.6vw, 4.6rem);
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  color: var(--fg-1);
}
.co-hero__subhead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin: var(--space-lg) 0 0;
}

/* ── CONSOLE MOCK ── */
.mock-console {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 10.4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: home-phone-in 800ms var(--ease-out) both;
}
.mc-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.mc-side .tp-lock { font-size: 11px; padding: 2px 4px 12px; }
.mc-side nav { display: grid; gap: 3px; }
.mc-side nav span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: var(--w-semibold);
  color: var(--neutral-600);
}
.mc-side nav svg { width: 13px; height: 13px; }
.mc-side nav span.is-active { background: var(--health-50); color: var(--health-600); }
.mc-count {
  margin-left: auto;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--health-400);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: var(--w-bold);
}
.mc-me {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 0;
  border-top: 1px solid var(--line);
}
.mc-me b { display: block; font-size: 9.5px; font-weight: var(--w-bold); color: var(--fg-1); }
.mc-me small { font-size: 8px; color: var(--neutral-500); }
.mc-avatar {
  width: 24px; height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--health-100);
  color: var(--health-600);
  font-size: 8.5px;
  font-weight: var(--w-bold);
}
.mc-main { display: flex; flex-direction: column; min-width: 0; }
.mc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(246, 248, 249, .82);
  border-bottom: 1px solid var(--line);
}
.mc-topbar strong {
  font-size: 14px;
  font-weight: var(--w-bold);
  letter-spacing: -.02em;
  color: var(--fg-1);
}
.mc-topbar__tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-search {
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 8.5px;
  color: var(--neutral-500);
  white-space: nowrap;
}
.mc-attn { font-size: 8.5px; font-weight: var(--w-semibold); color: var(--warning); white-space: nowrap; }
.mc-invite {
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--health-400);
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: var(--w-bold);
  white-space: nowrap;
}
.mc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px 16px;
}
.mc-client {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  box-shadow: var(--shadow-xs);
}
.mc-client header { display: flex; align-items: center; gap: 8px; }
.mc-client header b { display: block; font-size: 10.5px; font-weight: var(--w-bold); color: var(--fg-1); }
.mc-client header small { font-size: 8px; color: var(--neutral-500); }
.mc-badge {
  margin-left: auto;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--health-400);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: var(--w-bold);
  animation: mc-badge-pop 5s var(--ease) infinite;
}
@keyframes mc-badge-pop {
  0%, 55% { transform: scale(1); }
  60% { transform: scale(1.25); }
  66%, 100% { transform: scale(1); }
}
.mc-client footer {
  display: flex;
  gap: 16px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mc-client footer small { display: block; font-size: 7.5px; font-weight: var(--w-semibold); color: var(--neutral-500); }
.mc-client footer b { font-size: 9.5px; font-weight: var(--w-bold); color: var(--fg-1); }
.mc-client footer b.is-stale { color: var(--warning); }
.mc-client.is-flagged { animation: mc-flag-pulse 3.2s var(--ease) infinite; }
@keyframes mc-flag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 138, 43, 0); border-color: var(--line); }
  40% { box-shadow: 0 0 0 5px rgba(201, 138, 43, .14); border-color: var(--warning); }
  70% { box-shadow: 0 0 0 0 rgba(201, 138, 43, 0); border-color: var(--warning); }
}
@media (max-width: 1080px) {
  .co-hero__layout { grid-template-columns: 1fr; max-width: 760px; }
  .co-hero__copy { text-align: center; }
  .co-hero__copy .label { margin-inline: auto; }
  .co-hero__subhead { margin-inline: auto; }
  .co-hero .hero__ctas { justify-content: center; }
  .mock-console { margin: var(--space-md) auto 0; }
}
@media (max-width: 640px) {
  .mock-console { grid-template-columns: 1fr; aspect-ratio: auto; }
  .mc-side { flex-direction: row; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mc-side .tp-lock { padding: 0; }
  .mc-side nav { display: flex; gap: 2px; margin-left: auto; }
  .mc-side nav span { padding: 6px 7px; font-size: 0; gap: 0; }
  .mc-side nav .mc-count { display: none; }
  .mc-me { display: none; }
  .mc-topbar__tools .mc-search { display: none; }
  .mc-grid { grid-template-columns: 1fr; }
}

/* ── HERO DASHBOARD DEMO: click client → assign program (14s) ── */
.mcx-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.mcx-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.mcx-scene--client,
.mcx-scene--programs {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mcx-scene--roster { animation: mcx-sc-roster 14s var(--ease) infinite; }
.mcx-scene--client { animation: mcx-sc-client 14s var(--ease) infinite; }
.mcx-scene--programs { animation: mcx-sc-programs 14s var(--ease) infinite; }
@keyframes mcx-sc-roster { 0%, 14% { opacity: 1; } 17%, 89% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes mcx-sc-client { 0%, 15% { opacity: 0; } 18%, 40% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes mcx-sc-programs { 0%, 41% { opacity: 0; } 45%, 84% { opacity: 1; } 88%, 100% { opacity: 0; } }

/* the clicked card lights up */
.mcx-target { animation: mcx-target 14s var(--ease) infinite; }
@keyframes mcx-target {
  0%, 8% { box-shadow: var(--shadow-xs); border-color: var(--line); }
  10%, 15% { box-shadow: 0 0 0 3px var(--health-200); border-color: var(--health-400); }
  17%, 100% { box-shadow: var(--shadow-xs); border-color: var(--line); }
}

.mcx-client-head { display: flex; align-items: center; gap: 8px; }
.mcx-client-head b { display: block; font-size: 11px; font-weight: var(--w-bold); color: var(--fg-1); }
.mcx-client-head small { font-size: 8px; color: var(--neutral-500); }
.mcx-scene--client .mc-snapshot { margin: 0; }
.mcx-assignbtn {
  display: block;
  padding: 8px 0;
  text-align: center;
  border-radius: 8px;
  background: var(--health-400);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: var(--w-bold);
  box-shadow: 0 6px 16px rgba(71, 118, 156, .26);
  animation: mcx-btnpress 14s var(--ease) infinite;
}
@keyframes mcx-btnpress {
  0%, 29% { transform: scale(1); }
  30.5% { transform: scale(.95); }
  32%, 100% { transform: scale(1); }
}
.mcx-scene--programs .mc-program { margin: 0; }
.mcx-assign { position: relative; animation: mcx-chipbg 14s var(--ease) infinite; }
.mcx-assign em { font-style: normal; animation: mcx-chip-a 14s var(--ease) infinite; }
.mcx-assign__done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  white-space: nowrap;
  animation: mcx-chip-b 14s var(--ease) infinite !important;
}
@keyframes mcx-chipbg {
  0%, 58% { background: var(--health-400); transform: scale(1); }
  59.5% { transform: scale(.94); }
  61%, 84% { background: var(--success); transform: scale(1); }
  86%, 100% { background: var(--health-400); }
}
@keyframes mcx-chip-a { 0%, 59% { opacity: 1; } 61%, 85% { opacity: 0; } 87%, 100% { opacity: 1; } }
@keyframes mcx-chip-b { 0%, 59% { opacity: 0; } 61%, 84% { opacity: 1; } 86%, 100% { opacity: 0; } }

.mcx-toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: var(--w-semibold);
  white-space: nowrap;
  z-index: 4;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  animation: mcx-toast 14s var(--ease) infinite;
}
@keyframes mcx-toast {
  0%, 63% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  66%, 84% { opacity: 1; transform: translateX(-50%) translateY(0); }
  88%, 100% { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

.mcx-cursor {
  position: absolute;
  left: 80%;
  top: 88%;
  width: 17px;
  height: 17px;
  z-index: 6;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 11.5-7 .8-4.2 6.2z' fill='%231A1A1A' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
  animation: mcx-cursor 14s ease-in-out infinite;
}
.mcx-cursor::after {
  content: "";
  position: absolute;
  left: -7px;
  top: -7px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--health-500);
  opacity: 0;
  animation: mcx-ripple 14s linear infinite;
}
@keyframes mcx-cursor {
  0% { left: 80%; top: 88%; }
  8%, 16% { left: 27%; top: 26%; }
  26%, 43% { left: 50%; top: 78%; }
  54%, 64% { left: 84%; top: 30%; }
  76% { left: 66%; top: 62%; }
  90%, 100% { left: 80%; top: 88%; }
}
@keyframes mcx-ripple {
  0%, 9% { opacity: 0; transform: scale(.4); }
  10% { opacity: .9; transform: scale(.5); }
  13% { opacity: 0; transform: scale(1.15); }
  29% { opacity: 0; transform: scale(.4); }
  30% { opacity: .9; transform: scale(.5); }
  33% { opacity: 0; transform: scale(1.15); }
  57% { opacity: 0; transform: scale(.4); }
  58% { opacity: .9; transform: scale(.5); }
  61% { opacity: 0; transform: scale(1.15); }
  62%, 100% { opacity: 0; }
}

/* ── CONSOLE FEATURE BAND (dark) mock tiles ── */
.co-mock-tile {
  padding: clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(circle at 82% 12%, rgba(158, 199, 226, .24), transparent 30%),
    linear-gradient(145deg, #1c3547, #416d8a);
}
.mc-panel {
  width: 100%;
  max-width: 330px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 24px 50px rgba(7, 22, 33, .36);
  overflow: hidden;
}
.mc-panel__bar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mc-panel__bar b { font-size: 11.5px; font-weight: var(--w-bold); color: var(--fg-1); }
.mc-panel__bar small { font-size: 8.5px; color: var(--neutral-500); }
.is-warn { color: var(--warning) !important; }
.is-good { color: var(--success); }

/* today queue */
.mc-panel--today { padding-bottom: 6px; }
.mc-today-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 10px 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  opacity: 0;
  transform: translateY(8px);
  animation: mc-row-in 9s var(--ease) infinite;
}
.mc-today-row:nth-child(3) { animation-delay: .5s; }
.mc-today-row:nth-child(4) { animation-delay: 1s; }
@keyframes mc-row-in {
  0%, 3% { opacity: 0; transform: translateY(8px); }
  9%, 88% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(8px); }
}
.mc-today-row b { display: block; font-size: 9.5px; font-weight: var(--w-bold); color: var(--fg-1); }
.mc-today-row small { font-size: 7.5px; font-weight: var(--w-semibold); }
.mc-today-row i {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--neutral-500);
}

/* client detail */
.mc-panel--detail { padding-bottom: 10px; }
.mc-eyebrow {
  display: block;
  font-size: 7.5px;
  font-weight: var(--w-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--health-600);
  margin-bottom: 5px;
}
.mc-snapshot {
  margin: 10px 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.mc-snapshot > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}
.mc-snapshot > div + div { border-top: 1px solid var(--line); }
.mc-snapshot small { font-size: 8.5px; color: var(--neutral-500); }
.mc-snapshot b { font-size: 8.5px; font-weight: var(--w-semibold); color: var(--fg-1); font-variant-numeric: tabular-nums; }
.mc-checkin {
  margin: 8px 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.mc-checkin header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.mc-checkin header b { font-size: 9.5px; font-weight: var(--w-bold); color: var(--fg-1); }
.mc-checkin header span { font-size: 8.5px; font-weight: var(--w-bold); color: var(--health-600); }
.mc-checkin__ratings { display: flex; gap: 14px; margin-bottom: 7px; }
.mc-checkin__ratings small { display: block; font-size: 7px; color: var(--neutral-500); }
.mc-checkin__ratings b { font-size: 11px; font-weight: var(--w-bold); color: var(--fg-1); }
.mc-checkin__ratings b i { font-style: normal; font-size: 7px; color: var(--neutral-500); }
.mc-checkin p { margin: 0; font-size: 8px; color: var(--fg-1); }
.mc-checkin p b { font-weight: var(--w-semibold); }

/* programs */
.mc-panel--programs { padding-bottom: 10px; }
.mc-program {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 10px 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.mc-program b { display: block; font-size: 9.5px; font-weight: var(--w-bold); color: var(--fg-1); }
.mc-program small { font-size: 7.5px; color: var(--neutral-500); }
.mc-assign {
  flex: none;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--health-400);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: var(--w-bold);
}
.mc-assign--pop { animation: mc-assign-pop 5s var(--ease) infinite; }
@keyframes mc-assign-pop {
  0%, 50% { transform: scale(1); box-shadow: 0 0 0 0 rgba(122, 167, 201, .45); }
  56% { transform: scale(.94); }
  62% { transform: scale(1); box-shadow: 0 0 0 8px rgba(122, 167, 201, 0); }
  100% { transform: scale(1); }
}

/* ── HOW IT WORKS mocks: invite form, assign flip, log feed ── */
.mcv-form {
  padding: 12px 14px 14px;
  display: grid;
  gap: 9px;
}
.mcv-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.mcv-field small { font-size: 8.5px; font-weight: var(--w-semibold); color: var(--neutral-500); }
.mcv-field b { font-size: 10px; font-weight: var(--w-semibold); color: var(--fg-1); }
.mcv-send {
  padding: 9px 0;
  text-align: center;
  border-radius: 9px;
  background: var(--health-400);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: var(--w-bold);
  box-shadow: 0 6px 16px rgba(71, 118, 156, .26);
  animation: mcv-send 9s var(--ease) infinite;
}
@keyframes mcv-send {
  0%, 32% { transform: scale(1); }
  34% { transform: scale(.95); }
  36%, 100% { transform: scale(1); }
}
.mcv-sent {
  justify-self: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--success-tint);
  color: var(--success);
  font-size: 9.5px;
  font-weight: var(--w-bold);
  opacity: 0;
  transform: translateY(5px);
  animation: mcv-sent 9s var(--ease) infinite;
}
@keyframes mcv-sent {
  0%, 36% { opacity: 0; transform: translateY(5px); }
  40%, 90% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(5px); }
}
.mcv-assign { position: relative; animation: mcv-chipbg 9s var(--ease) infinite; }
.mcv-assign em { font-style: normal; animation: mcv-chip-a 9s var(--ease) infinite; }
.mcv-assign__done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  white-space: nowrap;
  opacity: 0;
  animation: mcv-chip-b 9s var(--ease) infinite !important;
}
@keyframes mcv-chipbg {
  0%, 44% { background: var(--health-400); transform: scale(1); }
  46% { transform: scale(.94); }
  48%, 90% { background: var(--success); transform: scale(1); }
  94%, 100% { background: var(--health-400); }
}
@keyframes mcv-chip-a { 0%, 45% { opacity: 1; } 48%, 91% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes mcv-chip-b { 0%, 45% { opacity: 0; } 48%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }
.mcv-log {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 10px 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  opacity: 0;
  transform: translateY(8px);
  animation: mc-row-in 9s var(--ease) infinite;
}
.mc-panel > .mcv-log:last-child { margin-bottom: 10px; }
.mcv-log:nth-of-type(2) { animation-delay: .5s; }
.mcv-log:nth-of-type(3) { animation-delay: 1s; }
.mcv-log i {
  width: 17px; height: 17px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #FFFFFF;
  font-style: normal;
  font-size: 9px;
  font-weight: var(--w-bold);
}
.mcv-log b { display: block; font-size: 9.5px; font-weight: var(--w-bold); color: var(--fg-1); }
.mcv-log small { font-size: 7.5px; color: var(--neutral-500); }

/* ── HOW IT WORKS: horizontal zigzag timeline (dark band) ── */
.tml {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: 1280px;
  margin: clamp(36px, 4vw, 52px) auto 0;
}
.tml__line {
  position: absolute;
  top: 320px;
  left: 6%;
  right: 6%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .28) 10%, rgba(255, 255, 255, .28) 90%, rgba(255, 255, 255, .05));
}
.tml-step {
  position: relative;
  display: grid;
  grid-template-rows: 292px 56px 292px;
}
.tml-step__num {
  grid-row: 2;
  place-self: center;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--health-900);
  border: 2px solid var(--health-300);
  color: var(--health-200);
  font-size: 1rem;
  font-weight: var(--w-black);
  letter-spacing: -.03em;
  position: relative;
  z-index: 1;
}
.tml-step__num::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 16px;
  background: rgba(255, 255, 255, .28);
  transform: translateX(-50%);
  top: -20px;
}
.tml-step:nth-of-type(even) .tml-step__num::after { top: auto; bottom: -20px; }
.tml-step__body {
  grid-row: 1;
  align-self: end;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tml-step:nth-of-type(even) .tml-step__body {
  grid-row: 3;
  align-self: start;
  margin-bottom: 0;
  margin-top: 22px;
}
.tml-step__tile {
  height: 218px;
  flex: none;
  padding: clamp(12px, 1.4vw, 16px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 12%, rgba(158, 199, 226, .24), transparent 30%),
    linear-gradient(145deg, #1c3547, #416d8a);
  box-shadow: 0 22px 48px rgba(8, 23, 34, .3);
}
.tml-step__tile .mc-panel { max-width: 100%; width: 100%; }
.tml-step h3 {
  margin: 0;
  text-align: center;
  color: var(--fg-inverse);
  font-size: 1rem;
  font-weight: var(--w-semibold);
  line-height: var(--lh-snug);
}
@media (max-width: 980px) {
  .tml { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .tml__line { display: none; }
  .tml-step,
  .tml-step:nth-of-type(even) { display: flex; flex-direction: column; }
  .tml-step__num { margin: 0 auto 14px; }
  .tml-step__num::after,
  .tml-step:nth-of-type(even) .tml-step__num::after { display: none; }
  .tml-step__body,
  .tml-step:nth-of-type(even) .tml-step__body { margin: 0; align-self: auto; }
}
@media (max-width: 540px) {
  .tml { grid-template-columns: 1fr; max-width: 380px; }
}
.tml-chat {
  display: grid;
  gap: 7px;
  padding: 10px 12px 12px;
}
.tml-chat__bubble {
  max-width: 82%;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 9.5px;
  font-weight: var(--w-medium);
  line-height: 1.3;
}
.tml-chat__bubble--client {
  justify-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--fg-1);
  border-bottom-left-radius: 4px;
}
.tml-chat__bubble--coach {
  justify-self: end;
  background: var(--health-400);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}
@media (max-width: 820px) {
  .tml__line { left: 26px; transform: none; }
  .tml-step,
  .tml-step:nth-of-type(even) { width: auto; margin-left: 0; padding-left: 72px; }
  .tml-step:nth-of-type(odd) .tml-step__num,
  .tml-step:nth-of-type(even) .tml-step__num { left: 0; right: auto; }
}

/* ── TRY IT OUT: clickable web dashboard + coach phone ── */
.cotry-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(123, 174, 208, .2), transparent 32%),
    radial-gradient(circle at 88% 84%, rgba(92, 147, 184, .18), transparent 32%),
    linear-gradient(135deg, var(--health-900), #142633);
}
.cotry-section .section-header h2 { color: var(--fg-inverse); }
.cotry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.cotry { align-items: stretch; }
.cotry__col { display: flex; flex-direction: column; min-width: 0; }
.cotry__col--phone { align-items: center; }
.cotry-label {
  display: block;
  margin-bottom: 16px;
  text-align: center;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  font-weight: var(--w-black);
  letter-spacing: var(--tracking-snug);
  color: var(--fg-inverse);
}
.mock-console--try {
  max-width: none;
  aspect-ratio: auto;
  flex: 1;
  min-height: 500px;
  animation: none;
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 30px 70px rgba(6, 20, 31, .5);
}
.mock-console--try .mc-side nav span { cursor: pointer; -webkit-user-select: none; user-select: none; }
.mock-console--try .mc-side nav span:hover { background: var(--surface); }
.mock-console--try .mc-side nav span.is-active:hover { background: var(--health-50); }
.cotry-views { position: relative; flex: 1; min-height: 0; }
.cotry-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  overflow: hidden;
}
.cotry-view.is-active { opacity: 1; pointer-events: auto; }
.cotry-pad {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.cotry-pad .mc-today-row,
.cotry-pad .mc-program { margin: 0; }
.cotry-open { cursor: pointer; -webkit-user-select: none; user-select: none; }
.cotry-open:active { transform: scale(.985); }
.cotry-back {
  align-self: flex-start;
  font-size: 10px;
  font-weight: var(--w-bold);
  color: var(--health-600);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.cotry-assign { position: relative; cursor: pointer; -webkit-user-select: none; user-select: none; }
.cotry-assign em { font-style: normal; }
.cotry-assign__done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  white-space: nowrap;
  opacity: 0;
}
.cotry-assign.is-done { background: var(--success); }
.cotry-assign.is-done em:first-child { opacity: 0; }
.cotry-assign.is-done .cotry-assign__done { opacity: 1; }
.cotry-msgs { justify-content: flex-end; }
.cotry-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  overflow-y: auto;
}
.cotry-msg {
  max-width: 62%;
  padding: 8px 13px;
  border-radius: 13px;
  font-size: 10.5px;
  font-weight: var(--w-medium);
  line-height: 1.3;
  animation: itry-card-in 240ms var(--ease-out);
}
.cotry-msg--client {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--fg-1);
  border-bottom-left-radius: 4px;
}
.cotry-msg--coach {
  align-self: flex-end;
  background: var(--health-400);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}
.cotry-composer {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cotry-composer__field {
  flex: 1;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-size: 10.5px;
  color: var(--fg-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cotry-send {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--health-400);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: var(--w-bold);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 6px 16px rgba(71, 118, 156, .26);
}
.cotry-send:active { transform: scale(.95); }
.app-phone--coach { width: 252px; }
.app-phone--coach .app-phone__screen { height: 480px; }
.phc-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.phc-row b { display: block; font-size: 10px; font-weight: var(--w-bold); color: var(--fg-1); }
.phc-row small { font-size: 7.5px; color: var(--neutral-500); }
.phc-row .mc-badge { animation: none; }
.cotry-hint { text-align: center; margin-top: var(--space-lg); }
@media (max-width: 1000px) {
  .cotry { grid-template-columns: 1fr; max-width: 720px; }
  .cotry__col--phone { display: none; }
}

/* ── DASHBOARD CAROUSEL: animated story cards ── */
.cd-stage {
  position: relative;
  flex: 1;
  min-height: 240px;
}
.cd-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  opacity: 0;
}
.cd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.cd-row b { display: block; font-size: 11px; font-weight: var(--w-bold); color: var(--fg-1); }
.cd-row small { font-size: 8.5px; color: var(--neutral-500); }
.cd-chip {
  flex: none;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--health-50);
  color: var(--health-600);
  font-size: 8.5px;
  font-weight: var(--w-bold);
}
.cd-tick { flex: none; font-style: normal; color: var(--success); font-size: 13px; font-weight: var(--w-bold); }
.cd-auto {
  display: inline-block;
  margin-right: 7px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .28);
  font-size: 7.5px;
  font-style: normal;
  font-weight: var(--w-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.card-tools {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card-tools small { margin-right: auto; font-size: .78rem; font-weight: var(--w-semibold); color: var(--health-600); }
.card-tools img { height: 13px; width: auto; flex: none; }
.card-tools .card-tools__icon { height: 16px; }
.card-tools .card-tools__wordmark { height: 11px; }

.bento-roster--8 { gap: 7px; }
.bento-roster--8 .mc-client { padding: 8px 10px; }
.bento-roster--8 .mc-client header b { font-size: 9.5px; }
.bento-roster--8 .mc-client header small { font-size: 7px; }
.bento-roster--8 .mc-avatar { width: 20px; height: 20px; font-size: 7.5px; }

/* card 1: click into a client (12s) */
.cd1-roster { animation: cd1-a 12s var(--ease) infinite; }
.cd1-detail { animation: cd1-b 12s var(--ease) infinite; }
@keyframes cd1-a { 0%, 26% { opacity: 1; } 30%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes cd1-b { 0%, 30% { opacity: 0; } 34%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
.cd1-roster { position: relative; }
.cd1-cursor {
  position: absolute;
  left: 80%; top: 84%;
  width: 15px; height: 15px;
  z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 11.5-7 .8-4.2 6.2z' fill='%231A1A1A' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
  animation: cd1-cur 12s ease-in-out infinite;
}
.cd1-cursor::after {
  content: "";
  position: absolute;
  left: -7px; top: -7px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--health-500);
  opacity: 0;
  animation: cd1-rip 12s linear infinite;
}
@keyframes cd1-cur {
  0% { left: 80%; top: 84%; opacity: 1; }
  10%, 26% { left: 27%; top: 30%; opacity: 1; }
  30%, 94% { left: 27%; top: 30%; opacity: 0; }
  98%, 100% { left: 80%; top: 84%; opacity: 1; }
}
@keyframes cd1-rip {
  0%, 17% { opacity: 0; transform: scale(.4); }
  18% { opacity: .9; transform: scale(.5); }
  22% { opacity: 0; transform: scale(1.2); }
  23%, 100% { opacity: 0; }
}
.cd1-target { animation: cd1-hi 12s var(--ease) infinite; }
@keyframes cd1-hi {
  0%, 17% { box-shadow: var(--shadow-xs); border-color: var(--line); }
  19%, 27% { box-shadow: 0 0 0 3px var(--health-200); border-color: var(--health-400); }
  30%, 100% { box-shadow: var(--shadow-xs); border-color: var(--line); }
}

/* card 2: build workout → build program → assign (14s) */
.cd2-build { animation: cd2-a 14s var(--ease) infinite; }
.cd2-program { animation: cd2-b 14s var(--ease) infinite; }
.cd2-assign { animation: cd2-c 14s var(--ease) infinite; }
@keyframes cd2-a { 0%, 28% { opacity: 1; } 32%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cd2-b { 0%, 32% { opacity: 0; } 36%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes cd2-c { 0%, 66% { opacity: 0; } 70%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
.cd2-r1 { animation: cd2-r1 14s var(--ease) infinite; opacity: 0; }
.cd2-r2 { animation: cd2-r2 14s var(--ease) infinite; opacity: 0; }
.cd2-r3 { animation: cd2-r3 14s var(--ease) infinite; opacity: 0; }
@keyframes cd2-r1 { 0%, 3% { opacity: 0; transform: translateY(6px); } 6%, 28% { opacity: 1; transform: none; } 32%, 100% { opacity: 0; } }
@keyframes cd2-r2 { 0%, 7% { opacity: 0; transform: translateY(6px); } 10%, 28% { opacity: 1; transform: none; } 32%, 100% { opacity: 0; } }
@keyframes cd2-r3 { 0%, 11% { opacity: 0; transform: translateY(6px); } 14%, 28% { opacity: 1; transform: none; } 32%, 100% { opacity: 0; } }
.cd2-p1 { animation: cd2-p1 14s var(--ease) infinite; opacity: 0; }
.cd2-p2 { animation: cd2-p2 14s var(--ease) infinite; opacity: 0; }
.cd2-p3 { animation: cd2-p3 14s var(--ease) infinite; opacity: 0; }
.cd2-p4 { animation: cd2-p4 14s var(--ease) infinite; opacity: 0; }
@keyframes cd2-p1 { 0%, 37% { opacity: 0; transform: translateY(6px); } 40%, 62% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; } }
@keyframes cd2-p2 { 0%, 41% { opacity: 0; transform: translateY(6px); } 44%, 62% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; } }
@keyframes cd2-p3 { 0%, 45% { opacity: 0; transform: translateY(6px); } 48%, 62% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; } }
@keyframes cd2-p4 { 0%, 49% { opacity: 0; transform: translateY(6px); } 52%, 62% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; } }
.cd2-chip { position: relative; animation: cd2-chipbg 14s var(--ease) infinite; }
.cd2-chip em { font-style: normal; animation: cd2-chip-a 14s var(--ease) infinite; }
.cd2-chip__done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  white-space: nowrap;
  opacity: 0;
  animation: cd2-chip-b 14s var(--ease) infinite !important;
}
@keyframes cd2-chipbg { 0%, 79% { background: var(--health-400); } 82%, 94% { background: var(--success); } 98%, 100% { background: var(--health-400); } }
@keyframes cd2-chip-a { 0%, 80% { opacity: 1; } 82%, 95% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes cd2-chip-b { 0%, 80% { opacity: 0; } 82%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* card 3: targets → food log (10s) */
.cd3-targets { animation: cd3-a 10s var(--ease) infinite; }
.cd3-log { animation: cd3-b 10s var(--ease) infinite; }
@keyframes cd3-a { 0%, 42% { opacity: 1; } 46%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cd3-b { 0%, 46% { opacity: 0; } 50%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
.cd3-targets .ph-bar i { animation: cd3-bar 10s var(--ease-out) infinite; }
@keyframes cd3-bar { 0%, 5% { transform: scaleX(0); } 20%, 42% { transform: scaleX(1); } 46%, 100% { transform: scaleX(0); } }
.cd3-f1 { animation: cd3-f1 10s var(--ease) infinite; opacity: 0; }
.cd3-f2 { animation: cd3-f2 10s var(--ease) infinite; opacity: 0; }
.cd3-f3 { animation: cd3-f3 10s var(--ease) infinite; opacity: 0; }
@keyframes cd3-f1 { 0%, 52% { opacity: 0; transform: translateY(5px); } 56%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes cd3-f2 { 0%, 56% { opacity: 0; transform: translateY(5px); } 60%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes cd3-f3 { 0%, 60% { opacity: 0; transform: translateY(5px); } 64%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* card 4: automated check-in conversation (12s) */
.cd4-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.cd4-chat .cotry-msg { max-width: 78%; opacity: 0; animation-duration: 12s; animation-timing-function: var(--ease); animation-iteration-count: infinite; }
.cd4-m1 { animation-name: cd4-m1; }
.cd4-m2 { animation-name: cd4-m2; }
.cd4-m3 { animation-name: cd4-m3; }
.cd4-m4 { animation-name: cd4-m4; }
@keyframes cd4-m1 { 0%, 4% { opacity: 0; transform: translateY(6px); } 8%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cd4-m2 { 0%, 26% { opacity: 0; transform: translateY(6px); } 30%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cd4-m3 { 0%, 46% { opacity: 0; transform: translateY(6px); } 50%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cd4-m4 { 0%, 66% { opacity: 0; transform: translateY(6px); } 70%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* card 5: recovery */
.cd5 {
  position: static;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.cd5-bars { min-height: 72px; flex: none; }
.cd5-steps > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 5px;
}
.cd5-steps small { font-size: 11px; font-weight: var(--w-semibold); color: var(--fg-1); }
.cd5-steps b { font-size: 12.5px; font-weight: var(--w-bold); color: var(--fg-1); font-variant-numeric: tabular-nums; }
.cd5-steps b span { font-size: 10px; font-weight: var(--w-medium); color: var(--neutral-500); }
.cd5-steps .ph-bar { height: 5.5px; }
.cd5-stepbar {
  --fill: 82%;
  background: var(--health-500);
  animation: ph-bar-fill 6s var(--ease-out) infinite;
}

/* ── PRACTITIONER STAGE (visual per pill) ── */
.who-stage {
  position: relative;
  max-width: 460px;
  min-height: 236px;
  margin: clamp(32px, 4vw, 44px) auto 0;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.who-visual {
  position: absolute;
  inset: clamp(18px, 2.5vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.who-visual.is-active { opacity: 1; transform: none; }
.who-visual .mcv-log { margin: 0; }
.who-visual .mc-program { margin: 0; }
.who-visual .ph-grid { gap: 9px; }
.who-visual .mc-checkin { margin: 0; }

/* ── DASHBOARD FEATURE BENTO (light) ── */
.dash-section { background: var(--surface); }
.bento.bento--light {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}
.bento.bento--light .bento-card {
  grid-column: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.bento.bento--light .bento-card:hover { box-shadow: var(--shadow); }
.bento-roster {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-content: center;
}
.bento-progs { flex: 1; display: grid; gap: 9px; align-content: center; }
.bento-progs .mc-program { margin: 0; }
.bento-chat {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 8px 0;
}
.bento-kcal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
}
.bento-kcal small { font-size: 11px; font-weight: var(--w-semibold); color: var(--neutral-500); }
.bento-kcal b { font-size: 13px; font-weight: var(--w-bold); color: var(--fg-1); font-variant-numeric: tabular-nums; }
.bento-macros { flex: 1; align-content: center; }
.bento-food { flex: 1; display: grid; align-content: center; }
.bento-food > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
}
.bento-food > header b { font-size: 12px; font-weight: var(--w-bold); color: var(--fg-1); }
.bento-food > header small { font-size: 11px; font-weight: var(--w-bold); color: var(--health-600); font-variant-numeric: tabular-nums; }
.bento-food > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.bento-food > div span { font-size: 12px; font-weight: var(--w-medium); color: var(--fg-1); }
.bento-food > div small { font-size: 10.5px; color: var(--neutral-500); flex: none; font-variant-numeric: tabular-nums; }
.bento-checkin { margin: 0; }
.bento-checkin header b { font-size: 12px; }
.bento-checkin header span { font-size: 11px; }
.bento-note {
  align-self: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--health-50);
  color: var(--health-600);
  font-size: .78rem;
  font-weight: var(--w-semibold);
}
@media (max-width: 700px) {
  .bento.bento--light { grid-template-columns: 1fr; max-width: 480px; }
}

/* ── PRACTITIONER PICKER ── */
.who-section { background: var(--surface); }
.who-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 14px);
  max-width: 760px;
  margin: 0 auto;
}
.who-pill {
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--fg-1);
  font-family: var(--font-brand);
  font-size: .98rem;
  font-weight: var(--w-semibold);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.who-pill:hover { border-color: var(--health-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.who-pill.is-active {
  background: var(--health-400);
  border-color: var(--health-400);
  color: #FFFFFF;
  box-shadow: var(--shadow-accent);
}
.who-line {
  max-width: 640px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  text-align: center;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--lh-snug);
  color: var(--fg-1);
}
.who-line.is-in { animation: who-line-in 320ms var(--ease-out); }
@keyframes who-line-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

/* ── CLIENT APP SECTION (light) ── */
.co-app-section { background: var(--paper); }
.co-app-section__layout {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.co-app-section__phone { display: grid; place-items: center; }
.co-app-section__phone .app-phone { transform: rotate(-2deg); }
.co-app-section__copy .label { display: block; margin-bottom: var(--space-sm); color: var(--health-600); }
.co-app-section__copy h2 { margin-bottom: var(--space-md); }
.co-app-section__copy > p { line-height: var(--lh-relaxed); max-width: 560px; }
.co-checklist {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}
.co-checklist li { display: flex; align-items: flex-start; gap: var(--space-sm); }
.co-checklist li svg {
  width: 22px; height: 22px;
  flex: none;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--health-50);
  color: var(--health-600);
}
.co-checklist span { font-size: 1rem; line-height: var(--lh-normal); }
.co-checklist strong { font-weight: var(--w-bold); }
@media (max-width: 900px) {
  .co-app-section__layout { grid-template-columns: 1fr; max-width: 560px; }
  .co-app-section__phone { order: 2; margin-top: var(--space-lg); }
  .co-app-section__phone .app-phone { transform: none; }
  .co-app-section__copy { text-align: center; }
  .co-app-section__copy > p { margin-inline: auto; }
  .co-checklist { text-align: left; max-width: 460px; margin-inline: auto; }
}

/* ── YOUR PAGE (browser mock) ── */
.co-page-section { background: var(--surface); }
.co-page-section__layout {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.co-page-section__copy .label { display: block; margin-bottom: var(--space-sm); color: var(--health-600); }
.co-page-section__copy h2 { margin-bottom: var(--space-md); }
.co-page-section__copy p { line-height: var(--lh-relaxed); max-width: 520px; margin-bottom: var(--space-lg); }
.mock-browser {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.mock-browser__bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--health-200); }
.mock-browser__bar b {
  margin-left: 10px;
  flex: 1;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: var(--w-medium);
  color: var(--health-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-browser__page { background: var(--paper); }
.mb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--ink);
}
.mb-logo {
  font-size: 13px;
  font-weight: var(--w-black);
  letter-spacing: -.005em;
  color: #FFFFFF;
}
.mb-btn {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--health-400);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: var(--w-semibold);
  box-shadow: 0 6px 16px rgba(71, 118, 156, .3);
}
.mb-btn--lg { padding: 9px 16px; font-size: 10.5px; width: fit-content; }
.mb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 20px;
  align-items: center;
  padding: 28px 20px 30px;
}
.mb-hero__copy { display: grid; gap: 9px; }
.mb-hero__copy b {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: var(--w-black);
  letter-spacing: var(--tracking-tight);
  line-height: 1.08;
  color: var(--fg-1);
}
.mb-line {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--neutral-100);
  width: 88%;
}
.mb-line--short { width: 62%; margin-bottom: 6px; }
.mb-hero__portrait {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  border: 1.5px dashed var(--health-300);
  background: var(--health-50);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--health-600);
}
.mb-hero__portrait svg { width: 30px; height: 30px; }
.mb-hero__portrait small { font-size: 10px; font-weight: var(--w-semibold); }
@media (max-width: 900px) {
  .co-page-section__layout { grid-template-columns: 1fr; max-width: 620px; }
  .co-page-section__copy { text-align: center; }
  .co-page-section__copy p { margin-inline: auto; }
  .co-page-section__copy .btn { margin-bottom: var(--space-md); }
}

/* ── HOW TO JOIN ── */
.co-join-section { background: var(--paper); }
.co-join-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.co-join-step {
  border-top: 2px solid var(--health-200);
  padding-top: var(--space-md);
}
.co-join-step__number {
  display: block;
  color: var(--health-300);
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  font-weight: var(--w-black);
  letter-spacing: -.06em;
  line-height: .9;
  margin-bottom: var(--space-sm);
}
.co-join-step h3 {
  font-size: 1.3rem;
  font-weight: var(--w-bold);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-sm);
}
.co-join-step p { font-size: .98rem; line-height: var(--lh-relaxed); }
@media (max-width: 860px) {
  .co-join-grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* ── APPLY CARD ── */
.co-apply-section { background: var(--surface); }
.co-apply-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 16%, rgba(123, 174, 208, .24), transparent 34%),
    radial-gradient(circle at 88% 84%, rgba(92, 147, 184, .2), transparent 34%),
    linear-gradient(135deg, var(--health-900), #142633);
  color: var(--fg-inverse);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.co-apply-card .label { display: block; margin-bottom: var(--space-md); color: var(--health-200); }
.co-apply-card h2 {
  color: var(--fg-inverse);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  margin-bottom: var(--space-md);
}
.co-apply-card h2 span { color: var(--health-400); }
.co-apply-card p {
  color: #FFFFFF;
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  font-size: 1.08rem;
  line-height: var(--lh-relaxed);
}
.co-apply-card__btn { min-height: 54px; padding-inline: 32px; font-size: 16px; }
.co-apply-card small { display: block; margin-top: var(--space-md); font-size: .92rem; color: var(--health-200); }
.co-apply-card small a { color: #FFFFFF; }

/* ════════════════════════════════════════════════════════════
   BENTO, everything in one place (inside the dark band)
   ════════════════════════════════════════════════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  max-width: 1080px;
  margin: clamp(44px, 5vw, 64px) auto 0;
}
.bento-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2vw, 24px);
  box-shadow: 0 24px 50px rgba(7, 22, 33, .3);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(7, 22, 33, .4); }
.bento-card__title {
  font-size: 1.02rem;
  font-weight: var(--w-bold);
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
}
.bento-card--training,
.bento-card--nutrition,
.bento-card--bio { grid-column: span 2; }

/* scale the app fragments up a notch inside bento cards */
.bento .ph-week > span { padding: 8px 2px 7px; }
.bento .ph-week b { font-size: 7px; }
.bento .ph-week em { font-size: 13px; }
.bento .ph-week i { width: 4.5px; height: 4.5px; }
.bento .ph-workout-badge { font-size: 8px; }
.bento .ph-workout strong { font-size: 14px; }
.bento .ph-workout small { font-size: 10px; }
.bento .ph-pills span { font-size: 8px; padding: 3px 8px; }
.bento .ph-ring { width: 96px; height: 96px; }
.bento .ph-ring__label strong { font-size: 16.5px; }
.bento .ph-ring__label small { font-size: 8.5px; }
.bento .ph-macro header span { font-size: 10.5px; }
.bento .ph-macro header small { font-size: 9.5px; }
.bento .ph-bar { height: 5.5px; }
.bento .ph-intake__row { flex: 1; align-items: center; }

.bento-sleep__num {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.bento-sleep__num strong {
  font-size: 26px;
  font-weight: var(--w-black);
  letter-spacing: -.02em;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}
.bento-sleep__num .ph-status { font-size: 9px; }
.bento-sleep__bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  min-height: 64px;
}
.bento-sleep__bars i {
  flex: 1;
  height: var(--h, 60%);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--health-300), var(--health-600));
  transform-origin: bottom;
  animation: inc-bar-grow 4.6s var(--ease) infinite;
}
.bento-sleep__bars i:nth-child(2) { animation-delay: .14s; }
.bento-sleep__bars i:nth-child(3) { animation-delay: .28s; }
.bento-sleep__bars i:nth-child(4) { animation-delay: .42s; }
.bento-sleep__bars i:nth-child(5) { animation-delay: .56s; }
.bento-sleep__bars i:nth-child(6) { animation-delay: .7s; }
.bento-sleep__bars i:nth-child(7) { animation-delay: .84s; }

.bento-bio__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bento-bio__ok { font-size: 11px; font-weight: var(--w-semibold); color: var(--success); }
.bento-bio__rows { display: grid; }
.bento-bio__rows > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.bento-bio__rows > div + div { border-top: 1px solid var(--line); }
.bento-bio__rows span { flex: 1; font-size: 13px; font-weight: var(--w-semibold); color: var(--fg-1); }
.bento-bio__rows b { font-size: 12.5px; font-weight: var(--w-medium); color: var(--neutral-600); font-variant-numeric: tabular-nums; }
.bento-bio__rows small { min-width: 58px; text-align: right; font-size: 10.5px; font-weight: var(--w-semibold); color: var(--success); }

.bento-adherence { display: flex; align-items: baseline; gap: 8px; }
.bento-adherence strong {
  font-size: 26px;
  font-weight: var(--w-black);
  letter-spacing: -.02em;
  color: var(--health-600);
}
.bento-adherence small { font-size: 11px; font-weight: var(--w-semibold); color: var(--fg-1); }
.bento .inc-progress { flex: 1; height: 64px; gap: 8px; }
.bento .inc-progress i { width: auto; flex: 1; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
}
@media (max-width: 480px) {
  .bento-card--sleep,
  .bento-card--progress { grid-column: span 2; }
  .bento-sleep__bars,
  .bento .inc-progress { min-height: 74px; }
}

/* ════════════════════════════════════════════════════════════
   CONNECTIONS + LIBRARIES
   ════════════════════════════════════════════════════════════ */
.connect-section { background: var(--surface); }

.hub {
  position: relative;
  max-width: 640px;
  aspect-ratio: 640 / 380;
  margin: 0 auto;
}
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__lines line {
  stroke: var(--health-200);
  stroke-width: 2;
  stroke-linecap: round;
}
.hub__dot { fill: var(--health-500); }
.hub__center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hub__center .tp-lock { font-size: 15px; }
.hub__pill {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .92rem;
  font-weight: var(--w-semibold);
  color: var(--fg-1);
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hub__pill:hover { transform: translate(-50%, -50%) scale(1.05); box-shadow: var(--shadow); }
.hub__pill img { height: 20px; width: auto; max-width: none; flex: none; display: block; }
.hub__pill .hub__wordmark { height: 16px; }
.hub__pill .hub__wordmark--oura { height: 15px; }

@media (max-width: 680px) {
  .hub {
    aspect-ratio: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .hub__lines { display: none; }
  .hub__center {
    position: static;
    transform: none;
    order: -1;
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    padding: 0 0 14px;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .hub__pill { position: static; transform: none; animation: none; }
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 900px;
  margin: clamp(44px, 5vw, 60px) auto 0;
}
.lib-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2vw, 22px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.lib-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lib-card__title {
  display: block;
  font-size: 1.12rem;
  font-weight: var(--w-bold);
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
  margin-bottom: 14px;
}
.lib-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--neutral-500);
  font-size: .92rem;
  margin-bottom: 8px;
}
.lib-search svg { width: 15px; height: 15px; flex: none; }
.lib-caret {
  display: inline-block;
  width: 2px;
  height: .95em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--health-500);
  animation: gift-month-cursor 760ms steps(1) infinite;
}
.lib-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
}
.lib-row + .lib-row { border-top: 1px solid var(--line); }
.lib-row b { display: block; font-size: .98rem; font-weight: var(--w-semibold); color: var(--fg-1); }
.lib-row div small { font-size: .8rem; font-weight: var(--w-medium); color: var(--health-600); }
.lib-row > span { font-size: .95rem; font-weight: var(--w-bold); color: var(--health-600); white-space: nowrap; }
.lib-row > span small { font-weight: var(--w-medium); color: var(--neutral-500); }
@media (max-width: 760px) {
  .lib-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ── carousel of library cards ── */
.lib-carousel { max-width: 960px; margin: clamp(44px, 5vw, 60px) auto 0; }
.lib-track {
  display: flex;
  gap: clamp(16px, 2vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 16px;
}
.lib-track::-webkit-scrollbar { display: none; }
.lib-track .lib-card {
  flex: 0 0 min(100%, 440px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.lib-track .lib-card > :last-child { margin-bottom: 0; }
.lib-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.lib-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--health-200);
  cursor: pointer;
  transition: width var(--dur-slow) var(--ease), background var(--dur-slow) var(--ease);
}
.lib-dot.is-active { width: 24px; background: var(--health-500); }

/* nutrition card: micronutrients */
.food-micros {
  display: grid;
  gap: 9px;
  margin: 12px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.food-micros > div > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.food-micros small { font-size: .82rem; font-weight: var(--w-semibold); color: var(--fg-1); }
.food-micros b { font-size: .82rem; font-weight: var(--w-bold); color: var(--fg-1); font-variant-numeric: tabular-nums; }
.food-micros .ph-bar { height: 5px; }
.food-micros .ph-bar i {
  animation: none;
  transform: scaleX(1);
  width: var(--fill, 60%);
  background: var(--health-400);
}

/* progress photos card */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0 8px;
}
/* ── progress photos: real photos + before/after wipe ── */
.pp-compare {
  position: relative;
  aspect-ratio: 16 / 8;
  margin: 4px 0 10px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--neutral-100);
}
.pp-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}
.pp-compare__before { filter: grayscale(1) brightness(.88) contrast(.96); }
.pp-compare__after {
  clip-path: inset(0 0 0 50%);
  animation: pp-wipe 6s ease-in-out infinite alternate;
}
@keyframes pp-wipe {
  from { clip-path: inset(0 0 0 28%); }
  to { clip-path: inset(0 0 0 72%); }
}
.pp-compare__divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2.5px;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 0, 0, .3);
  animation: pp-divider 6s ease-in-out infinite alternate;
  z-index: 2;
}
@keyframes pp-divider {
  from { left: 28%; }
  to { left: 72%; }
}
.pp-compare__divider::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}
.pp-compare__label {
  position: absolute;
  top: 10px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(11, 28, 40, .66);
  color: #FFFFFF;
  font-size: .72rem;
  font-weight: var(--w-bold);
  z-index: 3;
}
.pp-compare__label--l { left: 10px; }
.pp-compare__label--r { right: 10px; }

/* gallery strip: each shot gets "captured" in sequence */
.pp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}
.pp-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--neutral-100);
}
.pp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.9);
}
.pp-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  opacity: 0;
}
.pp-thumb:nth-child(1) img { animation: pp-dev-1 9s var(--ease) infinite; }
.pp-thumb:nth-child(1)::after { animation: photo-flash-1 9s linear infinite; }
.pp-thumb:nth-child(2) img { animation: pp-dev-2 9s var(--ease) infinite; }
.pp-thumb:nth-child(2)::after { animation: photo-flash-2 9s linear infinite; }
.pp-thumb:nth-child(3) img { animation: pp-dev-3 9s var(--ease) infinite; }
.pp-thumb:nth-child(3)::after { animation: photo-flash-3 9s linear infinite; }
@keyframes pp-dev-1 { 0%, 7% { filter: grayscale(1) brightness(.9); } 11%, 86% { filter: none; } 92%, 100% { filter: grayscale(1) brightness(.9); } }
@keyframes pp-dev-2 { 0%, 25% { filter: grayscale(1) brightness(.9); } 29%, 86% { filter: none; } 92%, 100% { filter: grayscale(1) brightness(.9); } }
@keyframes pp-dev-3 { 0%, 43% { filter: grayscale(1) brightness(.9); } 47%, 86% { filter: none; } 92%, 100% { filter: grayscale(1) brightness(.9); } }
@keyframes photo-flash-1 { 0%, 6% { opacity: 0; } 7.5% { opacity: .9; } 10%, 100% { opacity: 0; } }
@keyframes photo-flash-2 { 0%, 24% { opacity: 0; } 25.5% { opacity: .9; } 28%, 100% { opacity: 0; } }
@keyframes photo-flash-3 { 0%, 42% { opacity: 0; } 43.5% { opacity: .9; } 46%, 100% { opacity: 0; } }
.pp-thumb--add {
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--health-300);
  background: var(--health-50);
  color: var(--health-600);
  font-size: 1.3rem;
  font-weight: var(--w-bold);
}
.lib-pill {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--health-400);
  color: #FFFFFF !important;
  font-size: .8rem !important;
  box-shadow: 0 6px 16px rgba(71, 118, 156, .26);
}

/* ── blood test: upload → analyze → results (12s loop) ── */
.blood-stage { position: relative; flex: 1; min-height: 288px; }
.blood-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
}
.blood-scene--upload { animation: bl-scene-up 12s var(--ease) infinite; }
.blood-scene--results { animation: bl-scene-res 12s var(--ease) infinite; }
@keyframes bl-scene-up { 0% { opacity: 0; } 3%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes bl-scene-res { 0%, 34% { opacity: 0; } 38%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

.blood-drop {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 11px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--health-300);
  background: var(--health-50);
  text-align: center;
}
.blood-drop__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--health-600);
  box-shadow: var(--shadow-sm);
  animation: bl-icon 12s var(--ease) infinite;
}
.blood-drop__icon svg { width: 24px; height: 24px; }
@keyframes bl-icon {
  0%, 2% { transform: translateY(8px) scale(.9); }
  5%, 100% { transform: translateY(0) scale(1); }
}
.blood-drop > b { font-size: .95rem; font-weight: var(--w-semibold); color: var(--fg-1); }
.blood-drop__bar {
  width: 168px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--health-100);
  overflow: hidden;
}
.blood-drop__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--health-400), var(--health-600));
  animation: bl-bar 12s var(--ease-out) infinite;
}
@keyframes bl-bar { 0%, 6% { width: 0; } 24%, 32% { width: 100%; } 36%, 100% { width: 0; } }
.blood-drop__state { position: relative; height: 1.2em; font-size: .82rem; font-weight: var(--w-semibold); }
.blood-drop__state--up { color: var(--health-600); opacity: 0; animation: bl-state-up 12s linear infinite; }
.blood-drop__state--done { color: var(--success); opacity: 0; margin-top: -1.2em; animation: bl-state-done 12s linear infinite; }
@keyframes bl-state-up { 0%, 5% { opacity: 0; } 6%, 23% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes bl-state-done { 0%, 24% { opacity: 0; } 25%, 32% { opacity: 1; } 34%, 100% { opacity: 0; } }

.blood-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 4px;
}
.blood-head b { font-size: .95rem; font-weight: var(--w-bold); color: var(--fg-1); }
.is-watch { color: var(--warning) !important; font-weight: var(--w-semibold); }
.blood-head .is-watch { opacity: 0; animation: bl-watch 12s var(--ease) infinite; }
@keyframes bl-watch {
  0%, 68% { opacity: 0; transform: scale(.7); }
  71% { opacity: 1; transform: scale(1.12); }
  73%, 93% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(.7); }
}
.blood-rows { display: grid; position: relative; }
.blood-rows::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--health-400) 20%, var(--health-400) 80%, transparent);
  box-shadow: 0 0 12px rgba(122, 167, 201, .8);
  opacity: 0;
  z-index: 1;
  animation: bl-scan 12s linear infinite;
}
@keyframes bl-scan {
  0%, 38% { top: 3%; opacity: 0; }
  40% { opacity: 1; }
  60% { top: 96%; opacity: 1; }
  63%, 100% { top: 96%; opacity: 0; }
}
.blood-rows > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10.5px 2px;
}
.blood-rows > div + div { border-top: 1px solid var(--line); }
.blood-rows span { flex: 1; font-size: .92rem; font-weight: var(--w-semibold); color: var(--fg-1); }
.blood-rows b { font-size: .88rem; font-weight: var(--w-medium); color: var(--neutral-600); font-variant-numeric: tabular-nums; }
.blood-rows small { min-width: 62px; text-align: right; font-size: .78rem; font-weight: var(--w-semibold); color: var(--success); opacity: 0; transform: scale(.7); }
.blood-rows > div:nth-child(1) small { animation: bl-pop-1 12s var(--ease) infinite; }
.blood-rows > div:nth-child(2) small { animation: bl-pop-2 12s var(--ease) infinite; }
.blood-rows > div:nth-child(3) small { animation: bl-pop-3 12s var(--ease) infinite; }
.blood-rows > div:nth-child(4) small { animation: bl-pop-4 12s var(--ease) infinite; }
.blood-rows > div:nth-child(5) small { animation: bl-pop-5 12s var(--ease) infinite; }
.blood-rows > div:nth-child(6) small { animation: bl-pop-6 12s var(--ease) infinite; }
@keyframes bl-pop-1 { 0%, 42% { opacity: 0; transform: scale(.7); } 45% { opacity: 1; transform: scale(1.15); } 47%, 93% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes bl-pop-2 { 0%, 46% { opacity: 0; transform: scale(.7); } 49% { opacity: 1; transform: scale(1.15); } 51%, 93% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes bl-pop-3 { 0%, 50% { opacity: 0; transform: scale(.7); } 53% { opacity: 1; transform: scale(1.15); } 55%, 93% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes bl-pop-4 { 0%, 54% { opacity: 0; transform: scale(.7); } 57% { opacity: 1; transform: scale(1.15); } 59%, 93% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes bl-pop-5 { 0%, 58% { opacity: 0; transform: scale(.7); } 61% { opacity: 1; transform: scale(1.15); } 63%, 93% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes bl-pop-6 { 0%, 62% { opacity: 0; transform: scale(.7); } 65% { opacity: 1; transform: scale(1.15); } 67%, 93% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.7); } }

/* sleep card */
.sleep-bars { min-height: 80px; margin: 4px 0 6px; }

/* the search bar types its query on loop */
.lib-type { display: inline-flex; align-items: center; min-width: 0; }
.lib-type i {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  font-style: normal;
  color: var(--fg-1);
  animation: lib-type 9s steps(11) infinite;
}
@keyframes lib-type {
  0%, 3% { width: 0; }
  22%, 90% { width: 11ch; }
  96%, 100% { width: 0; }
}

/* ── exercise video demo (YouTube embed) ── */
.demo-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 2px 0 6px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--neutral-900);
}
.demo-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;  /* demo loop: never summon the YouTube chrome */
}
.demo-embed + .lib-row { border-top: 1px solid var(--line); }

/* ── food photo → analyzed → logged (9s loop) ── */
.food-demo {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.food-demo__photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.food-demo__photo img { width: 100%; height: 100%; object-fit: cover; }
.food-demo__flash {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  opacity: 0;
  animation: fd-flash 9s linear infinite;
}
@keyframes fd-flash {
  0% { opacity: 0; }
  1.5% { opacity: .95; }
  4%, 100% { opacity: 0; }
}
.food-demo__scan {
  position: absolute;
  left: 6px; right: 6px;
  top: 0;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--health-300) 22%, var(--health-300) 78%, transparent);
  box-shadow: 0 0 14px rgba(122, 167, 201, .9);
  opacity: 0;
  animation: fd-scan 9s linear infinite;
}
@keyframes fd-scan {
  0%, 5% { top: 8%; opacity: 0; }
  7% { opacity: 1; }
  28% { top: 92%; opacity: 1; }
  31%, 100% { top: 92%; opacity: 0; }
}
.food-demo__shutter {
  position: absolute;
  top: 9px; right: 9px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 28, 40, .66);
  color: #FFFFFF;
}
.food-demo__shutter svg { width: 13px; height: 13px; }
.food-demo__status {
  position: absolute;
  left: 50%; bottom: 10px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: .74rem;
  font-weight: var(--w-bold);
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
}
.food-demo__status--analyzing {
  background: rgba(11, 28, 40, .78);
  color: #FFFFFF;
  animation: fd-analyzing 9s linear infinite;
}
@keyframes fd-analyzing {
  0%, 5% { opacity: 0; }
  8%, 28% { opacity: 1; }
  32%, 100% { opacity: 0; }
}
.food-demo__status--logged {
  background: var(--success);
  color: #FFFFFF;
  animation: fd-logged 9s var(--ease) infinite;
}
@keyframes fd-logged {
  0%, 52% { opacity: 0; transform: translateX(-50%) translateY(6px); }
  57%, 88% { opacity: 1; transform: translateX(-50%) translateY(0); }
  93%, 100% { opacity: 0; transform: translateX(-50%) translateY(6px); }
}
.food-demo__result {
  opacity: 0;
  animation: fd-result 9s var(--ease) infinite;
}
@keyframes fd-result {
  0%, 29% { opacity: 0; transform: translateY(7px); }
  35%, 91% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(7px); }
}
.food-demo__result > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.food-demo__result > header b { font-size: .98rem; font-weight: var(--w-bold); color: var(--fg-1); }
.food-demo__result > header span { font-size: .95rem; font-weight: var(--w-bold); color: var(--health-600); white-space: nowrap; }
.food-demo__macros { display: grid; gap: 10px; }
.food-demo__macros > div > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.food-demo__macros small { font-size: .82rem; font-weight: var(--w-semibold); color: var(--fg-1); }
.food-demo__macros b { font-size: .82rem; font-weight: var(--w-bold); color: var(--fg-1); font-variant-numeric: tabular-nums; }
.food-demo__macros .ph-bar { height: 5.5px; }
.food-demo__macros .ph-bar i { animation: fd-bar 9s var(--ease-out) infinite; }
.food-demo__macros .fd-p { --fill: 76%; background: var(--health-600); }
.food-demo__macros .fd-c { --fill: 52%; background: var(--warning); animation-delay: .15s !important; }
.food-demo__macros .fd-f { --fill: 62%; background: var(--success); animation-delay: .3s !important; }
@keyframes fd-bar {
  0%, 31% { transform: scaleX(0); }
  46%, 91% { transform: scaleX(1); }
  96%, 100% { transform: scaleX(0); }
}
@media (max-width: 420px) {
  .food-demo { grid-template-columns: 1fr; }
  .food-demo__photo { max-width: 220px; margin: 0 auto; }
}

/* ════════════════════════════════════════════════════════════
   TRY IT, the interactive phone
   ════════════════════════════════════════════════════════════ */
.itry-section { background: var(--paper); }
.itry {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app-phone--itry { width: 340px; }
.app-phone--itry .app-phone__screen { height: 690px; }

.itry-screens {
  position: relative;
  flex: 1;
  min-height: 0;
}
.itry-screen {
  position: absolute;
  inset: 0;
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.itry-screen.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* affordances */
.itry [data-itry-tab],
.itry [data-itry-task],
.itry .ph-week > span,
.itry .ph-logbtn {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.itry [data-itry-task]:active,
.itry .ph-week > span:active,
.itry .ph-logbtn:active { transform: scale(.97); }
.itry .ph-task,
.itry .ph-week > span,
.itry .ph-logbtn { transition: transform var(--dur-fast) var(--ease), background var(--dur) var(--ease); }
.itry .ph-task i { transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.itry-tabbar .is-off { opacity: .38; }

/* today pill when another day is selected */
.itry .ph-week > span.is-today:not(.is-selected) {
  background: var(--paper);
  outline: 2px solid var(--health-400);
  outline-offset: -2px;
}
.itry .ph-week > span.is-today:not(.is-selected) b,
.itry .ph-week > span.is-today:not(.is-selected) em { color: var(--health-600); }

/* workout card per selected day */
.itry-workouts { display: grid; }
.itry-workouts > :not(.is-active) { display: none; }
.itry-workouts > .is-active { display: grid; animation: itry-card-in 260ms var(--ease-out); }
@keyframes itry-card-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
.ph-workout--sched {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--neutral-500);
}
.ph-workout--sched::before { background: var(--health-400); }
.ph-workout--sched strong { color: var(--fg-1); }
.ph-rest {
  border-radius: 12px;
  padding: 22px 16px;
  background: var(--surface);
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}
.ph-rest span { font-size: 19px; }
.ph-rest b { font-size: 9.5px; font-weight: var(--w-semibold); color: var(--neutral-500); }

/* nutrition responds instead of looping */
.itry .ph-ring__fill {
  animation: none;
  transition: stroke-dashoffset .9s var(--ease-out);
}
.itry .ph-bar i {
  animation: none;
  transform: scaleX(1);
  transition: width .9s var(--ease-out);
}
.itry .ph-logbtn.is-logged {
  background: var(--success);
  box-shadow: 0 6px 16px rgba(47, 143, 107, .28);
  cursor: default;
}
.itry-hint {
  margin-top: var(--space-md);
  font-size: 1rem;
  font-weight: var(--w-medium);
  color: var(--fg-1);
}

/* ════════════════════════════════════════════════════════════
   SHARED, reveal + reduced motion
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .app-phone--hero,
  .mock-console { animation: none; }
  .home-hero__float { animation: none; }
  .ph-spark polyline { animation: none; stroke-dashoffset: 0; }
  .ph-task--live i { animation: none; }
  .ph-task--live i::after { animation: none; opacity: 0; }
  .ph-week > span.is-selected { animation: none; }
  .ph-ring__fill { animation: none; }
  .ph-bar i { animation: none; transform: scaleX(1); }
  .how3-plan .ph-workout--today { animation: none; opacity: 1; transform: none; }
  .mc-badge { animation: none; }
  .mc-client.is-flagged { animation: none; border-color: var(--warning); }
  .mc-today-row { animation: none; opacity: 1; transform: none; }
  .mc-assign--pop { animation: none; }
  .app-section::before,
  .app-section::after { animation: none; }
  .hub__dot { display: none; }
  .bento-sleep__bars i,
  .lib-caret,
  .lib-type i,
  .food-demo__flash,
  .food-demo__scan,
  .food-demo__status--analyzing { animation: none; }
  .lib-type i { width: 11ch; }
  .food-demo__result { animation: none; opacity: 1; transform: none; }
  .food-demo__macros .ph-bar i { animation: none; transform: scaleX(1); }
  .food-demo__status--logged { animation: none; opacity: 1; transform: translateX(-50%); }
  .pp-compare__after,
  .pp-compare__divider,
  .pp-thumb img,
  .pp-thumb::after,
  .blood-scene--upload,
  .blood-scene--results,
  .blood-drop__bar i,
  .blood-drop__icon,
  .blood-drop__state--up,
  .blood-drop__state--done,
  .blood-rows::before { animation: none; }
  .pp-thumb img { filter: none; }
  .blood-scene--upload { display: none; }
  .blood-scene--results { opacity: 1; position: static; }
  .blood-head .is-watch,
  .blood-rows > div small { animation: none; opacity: 1; transform: none; }
  .mcx-scene--roster { animation: none; opacity: 1; }
  .mcx-scene--client,
  .mcx-scene--programs,
  .mcx-cursor,
  .mcx-toast { animation: none; display: none; }
  .mcx-target,
  .mcx-assignbtn { animation: none; }
  .mcv-send,
  .mcv-assign,
  .mcv-assign em,
  .who-line.is-in { animation: none; }
  .mcv-sent,
  .mcv-log { animation: none; opacity: 1; transform: none; }
  .mcv-assign__done { animation: none !important; }
  .cd1-roster, .cd3-targets { animation: none; opacity: 1; }
  .cd1-detail, .cd2-program, .cd2-assign, .cd3-log,
  .cd1-cursor, .cd1-cursor::after { animation: none; opacity: 0; display: none; }
  .cd2-build { animation: none; opacity: 1; }
  .cd1-target, .cd2-chip, .cd2-chip em, .cd5-stepbar { animation: none; }
  .cd2-chip__done { animation: none !important; }
  .cd2-r1, .cd2-r2, .cd2-r3,
  .cd4-chat .cotry-msg { animation: none; opacity: 1; transform: none; }
  .cd3-targets .ph-bar i { animation: none; transform: scaleX(1); }
}

/* ════════════════════════════════════════════════════════════
   FITNESS + NUTRITION PAGES
   ════════════════════════════════════════════════════════════ */

/* generic bento spans so topic pages don't borrow homepage card names */
.bento-card--w2 { grid-column: span 2; }
@media (max-width: 480px) {
  .bento-card--w1 { grid-column: span 2; }
}

/* works-with pills inside a bento card */
.bento-tools {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
}
.bento-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--neutral-50);
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: var(--w-semibold);
  color: var(--fg-1);
}
.bento-tool img { height: 16px; width: auto; max-width: none; flex: none; display: block; }
.bento-tool .bento-tool__wordmark { height: 12px; }
.bento-tool .bento-tool__wordmark--oura { height: 11px; }

/* the hidden attribute must beat .ph-meal's display: grid (snack card in the try-it phone) */
.ph-meal[hidden] { display: none; }

/* one showpiece library card, centered */
.lib-solo { max-width: 480px; margin: clamp(44px, 5vw, 60px) auto 0; }
.lib-solo .lib-card { display: flex; flex-direction: column; }
.lib-solo .lib-card > :last-child { margin-bottom: 0; }

/* nutrition hero: the logged-food float is wider than the homepage one, keep it off the screen title */
@media (min-width: 1081px) {
  .page-nutrition .home-hero__float--workout { left: max(0px, calc(50% - 356px)); top: 108px; }
}

/* try-it phone + showpiece card, side by side (fitness / nutrition / sleep pages) */
.try-duo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4.5vw, 72px);
  margin-top: clamp(40px, 5vw, 56px);
}
.try-duo .itry { flex: none; }
.try-duo > .lib-card { flex: 0 1 440px; min-width: min(100%, 340px); }

/* homepage bento cards that link to the fitness / nutrition / sleep pages */
a.bento-card { color: inherit; text-decoration: none; }
