/* PT Cimò landing page. Builds on tokens.css + base.css; chrome (header/footer) is in site.css.
   Sections: hero, marquee, problem, method, included (bento), coach, programs, stories + stats,
   shop, FAQ, final CTA, sticky mobile CTA. Behaviour: landing.js. */

/* ---------- Shared bits ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-fill { flex: none; fill: currentColor; stroke: none; }
.num { font-variant-numeric: tabular-nums; }

/* Short copy blocks (up to 6 lines) break into even lines, so no word is left alone on the last line.
   p already has text-wrap: pretty (base.css), but Chromium's pretty does not fix blocks this short. */
.coach-points li,
.faq-q,
.tile-text,
.fc-chat-text,
.final-lead { text-wrap: balance; }

/* "A · B" runs whose dot never ends or starts a line (hero proof, consult mockup; markup:
   .sep-wrap > .sep-list > span per part): a part wraps as a whole, and the dot in front of a part that
   starts a line sits in the strip left of .sep-wrap, which is clipped. */
.sep-wrap { display: block; overflow: hidden; }
.sep-list { display: flex; flex-wrap: wrap; margin-left: -1em; }
.sep-list > span::before {
  content: '·';
  content: '·' / '';
  display: inline-block;
  width: 1em;
  text-align: center;
}

/* <em> in a section title starts its second line. The grey counterpoint is opt-in (problem and coach
   titles only), so the other titles read as one solid two-line statement. */
.h2 em { display: block; font-style: normal; }
.problem .h2 em,
.coach .h2 em,
.promise-text em { font-style: normal; color: var(--text-3); }

.cta-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: linear-gradient(145deg, var(--surface-3), var(--surface-2));
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* Section rhythm (slightly tighter than the base token on the long landing page) */
.landing .section { padding-block: clamp(4rem, 1.75rem + 6vw, 7.5rem); }

/* Section heads */
.sec-head {
  display: grid;
  gap: 1.125rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.25rem);
}
.sec-head .h2 { max-width: 24ch; }
.sec-head .lead { max-width: 50ch; }
.sec-head--center { justify-items: center; text-align: center; margin-inline: auto; }
.sec-head--center .h2 { max-width: 22ch; }
@media (min-width: 1024px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
  }
  .sec-head--split .eyebrow { grid-column: 1 / -1; }
  .sec-head--split .lead { padding-bottom: 0.4rem; }
}

/* Pointer-follow glow (landing.js sets --mx/--my and html.has-glow on fine pointers only) */
[data-glow]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.06), transparent 45%);
  transition: opacity var(--dur-3) ease;
}
.has-glow [data-glow]:hover::after { opacity: 1; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(1.75rem, 0.5rem + 3.4vw, 3.75rem));
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  overflow: hidden; /* iOS Safari < 16 (and its in-app browsers) ignore clip: the glow would widen the page */
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 52% at 78% 30%, var(--violet-glow), transparent 70%),
    radial-gradient(34% 38% at 4% 96%, var(--volt-tint), transparent 70%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 62% at 70% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 62% at 70% 30%, #000, transparent 75%);
  opacity: 0.55;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}
.hero-copy { min-width: 0; }
/* Load-in for the hero copy: plays on load wherever the fold falls (scroll reveals would
   keep anything below 92% of the viewport hidden). Only when motion is allowed (html.reveal). */
html.reveal [data-hero-in] {
  animation: hero-in var(--dur-4) var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
@keyframes hero-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
}
.hero-title {
  font-size: clamp(2.75rem, 1rem + 5.2vw, 5.25rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: initial;
}
/* The eyebrow is the h1's first line (index.hbs): its own block with the body line height, so the title's
   size and line height never reach it. Both spans are blocks so the hero-in transform applies to them. */
.hero-title .eyebrow { display: flex; width: fit-content; margin-bottom: 1.375rem; line-height: var(--lh-body); }
.hero-title-text { display: block; }
/* One accent: the highlighted line is solid volt, like the CTA it leads to (no multi-colour gradient text). */
.hero-title em { font-style: normal; color: var(--volt); }
.hero-lead {
  max-width: 36ch;
  margin-top: 1.5rem;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--text-2);
}

/* Quiz starter: the first question of the quiz, right in the hero */
.starter { margin-top: clamp(1.75rem, 1rem + 1.6vw, 2.25rem); }
.starter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.875rem;
  margin-bottom: 0.875rem;
}
.starter-kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--volt);
}
.starter-label { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }

.goal-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.goal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 52px;
  padding: 0.375rem 1.125rem 0.375rem 0.375rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font-size: 0.96875rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-2) var(--ease-out),
    border-color var(--dur-2) ease,
    background-color var(--dur-2) ease,
    box-shadow var(--dur-3) var(--ease-out);
}
.goal-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}
.goal-go { display: none; color: var(--text-3); transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) ease; }
.goal-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--volt) 55%, transparent);
  background: color-mix(in srgb, var(--volt) 7%, var(--surface));
  box-shadow: 0 12px 30px -16px var(--volt-glow);
}
.goal-chip:hover .goal-ic { background: var(--volt); color: var(--volt-ink); }
.goal-chip:hover .goal-go { color: var(--volt); transform: translateX(3px); }
.goal-chip:active { transform: scale(0.985); }
/* Tablet + desktop: compact chips (3 + 2 rows) and a wider lead keep the primary CTA above a laptop fold. */
@media (min-width: 601px) {
  .hero-lead { max-width: 42ch; }
  .starter { margin-top: 1.75rem; }
  .goal-list { max-width: 37rem; } /* 3 + 2 in both languages, never 4 + 1 with a lone chip */
  .goal-chip { min-height: 46px; padding: 0.25rem 1.125rem 0.25rem 0.3125rem; font-size: 0.9375rem; }
  .goal-ic { width: 36px; height: 36px; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.25rem;
  margin-top: 1.5rem;
}
/* What the quiz gives back on the spot (landing.hero.quiz_value): its own row under the CTA and its meta */
.hero-quiz-value {
  flex-basis: 100%;
  max-width: 520px; /* the width of the proof row's divider below */
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-3);
  text-wrap: balance;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
/* Giuseppe's monogram: hero signature + chat avatars (until a real photo of him replaces it, HANDOFF R8) */
.avatar-mono {
  border: 0;
  background: linear-gradient(145deg, var(--volt-2), var(--volt) 55%, color-mix(in srgb, var(--volt) 70%, var(--violet)));
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--volt-ink);
}
.avatar-sign { width: 44px; height: 44px; font-size: 0.875rem; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px color-mix(in srgb, var(--volt) 45%, transparent); }
.hero-proof-name { font-size: 0.9375rem; font-weight: 650; line-height: 1.3; color: var(--text); }
.hero-proof-text { margin-top: 0.125rem; font-size: 0.875rem; color: var(--text-3); }

/* Hero visual: framed photo + floating product UI */
.hero-visual {
  position: relative;
  width: min(100%, 500px);
  justify-self: end;
}
.hero-glow {
  position: absolute;
  inset: -14% -18% -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48% 42% at 62% 34%, var(--violet-glow), transparent 72%),
    radial-gradient(36% 30% at 30% 82%, color-mix(in srgb, var(--volt) 16%, transparent), transparent 72%);
  filter: blur(24px);
}
.hero-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 48%, color-mix(in srgb, var(--bg) 62%, transparent)),
    radial-gradient(120% 70% at 50% 0%, transparent 55%, color-mix(in srgb, var(--bg) 35%, transparent));
}

.fc {
  position: absolute;
  z-index: 2;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 28px 56px -22px rgba(0, 0, 0, 0.9);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-2);
  animation: fc-float 9s var(--ease-in-out) infinite;
}
@keyframes fc-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -9px, 0); }
}

.fc-chat { top: 7%; left: -17%; width: 270px; padding: 0.875rem 1rem 1rem; }
.fc-chat-head { display: flex; align-items: center; gap: 0.625rem; }
/* Coach avatar (hero + bento chats): Giuseppe's monogram today (.avatar-mono). To show his face instead, put an
   <img src="/assets/img/coach-640.webp"> back inside and crop it to the head with % values (any avatar size works):
   for a side x side square at (x0, y0) px of the 640 x 800 photo: width = 640 / side, left = -x0 / side,
   top = -y0 / side, with position: absolute and max-width: none on the img (HANDOFF R8). */
.avatar-coach {
  position: relative;
  overflow: hidden;
  width: 32px;
  height: 32px;
  font-size: 0.6875rem;
  box-shadow: 0 0 0 1px var(--line-2);
}
.fc-who { display: grid; line-height: 1.2; min-width: 0; }
.fc-who strong { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.fc-who span { font-size: 0.75rem; color: var(--text-3); }
.fc-time { margin-left: auto; align-self: flex-start; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-3); }
.fc-chat-text {
  margin-top: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 4px 14px 14px 14px;
  background: var(--surface-3);
  font-size: 0.8125rem;
  color: var(--text);
}

.fc-plan { top: 39%; right: -9%; width: 210px; padding: 0.875rem 1rem 1rem; animation-delay: -3s; }
.fc-row { display: flex; align-items: center; justify-content: space-between; }
.fc-label,
.fc-day {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.fc-day { padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.fc-kcal { display: flex; align-items: baseline; gap: 0.375rem; margin-top: 0.5rem; }
.fc-kcal-num {
  font-family: var(--font-brand);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.fc-kcal-unit { font-size: 0.75rem; color: var(--text-3); }
.landing .fc-macros { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.fc-macro-row { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-2); }
.fc-macro-row .num { color: var(--text); font-weight: 500; }
.fc-bar { display: block; height: 4px; margin-top: 0.3rem; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.fc-bar span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--text-3); }
.fc-macros li:first-child .fc-bar span { background: var(--volt); box-shadow: 0 0 10px var(--volt-glow); }

.fc-check {
  bottom: 8%;
  left: -11%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 316px;
  padding: 0.75rem 0.875rem;
  animation-delay: -6s;
}
.fc-check-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mint) 16%, transparent);
  color: var(--mint);
}
.fc-check-ic .ic { stroke-width: 2.25; }
.fc-check-copy { display: grid; line-height: 1.25; min-width: 0; }
.fc-check-copy strong { font-size: 0.8125rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.fc-check-copy span { font-size: 0.6875rem; color: var(--text-3); white-space: nowrap; }
.fc-spark { margin-left: auto; flex: none; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; overflow: visible; }

/* Narrow desktop: the -9% offset would push the plan card past the viewport edge. */
@media (max-width: 1365px) {
  .fc-plan { right: -4%; }
}
/* Below 1280 px the frame narrows while the cards keep their size, so they are anchored to the face
   in the photo (manifest.json hero.face_box: y 27%–47% of the frame) instead of fixed offsets: the chat
   card ends above the face whatever its text length, the plan card starts below it even at the -9px
   float peak. The percentages map to the frame because .hero-visual has no vertical padding: keep it so.
   A new hero photo with the face elsewhere needs these two anchors updated. */
@media (max-width: 1279px) {
  .fc-chat { top: auto; bottom: calc(73% + 0.75rem); left: -8%; width: min(270px, 66%); }
  .fc-plan { top: calc(47% + 1.25rem); right: -5%; width: 196px; }
  .fc-check { bottom: -6%; left: -6%; }
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { max-width: 640px; }
  /* the padding is the cards' overhang; % resolves against the whole column, so it is capped to keep
     the photo at ~400 px on every tablet width instead of shrinking as the viewport grows */
  .hero-visual { justify-self: center; width: min(100%, 480px); margin-block: 2.5rem 3rem; padding-inline: min(7%, 2.5rem); }
  .fc-chat { left: 0; width: min(280px, 76%); }
  .fc-plan { right: 0; width: min(204px, 54%); }
  .fc-check { bottom: -9%; left: 0; width: min(316px, 86%); }
}
@media (max-width: 600px) {
  .hero-title .eyebrow { margin-bottom: 1.125rem; }
  .hero-lead { margin-top: 1.125rem; font-size: 1.0625rem; }
  .goal-list { display: grid; gap: 0.5rem; }
  .goal-chip {
    display: flex;
    min-height: 54px;
    padding-right: 1rem;
    border-radius: var(--r-md);
    font-size: 1rem;
  }
  .goal-ic { border-radius: 12px; width: 38px; height: 38px; }
  .goal-go { display: block; margin-left: auto; }
  .hero-actions { display: grid; justify-items: center; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; }
  .hero-quiz-value { max-width: 36ch; text-align: center; }
  .hero-proof { margin-top: 1.75rem; }
  .hero-visual { padding-inline: 4%; }
  .fc { font-size: 0.75rem; }
  .fc-chat { padding: 0.75rem 0.875rem 0.875rem; }
  .fc-chat-text { font-size: 0.78125rem; }
  .fc-plan { padding: 0.75rem 0.875rem 0.875rem; }
  /* phones: the plan card keeps only the protein row so it fits between the face and the check-in card */
  .fc-macros li:nth-child(n + 2) { display: none; }
  .fc-kcal-num { font-size: 1.375rem; }
  .fc-check { padding: 0.625rem 0.75rem; }
  .fc-spark { display: none; }
}
@media (max-width: 380px) {
  .goal-chip { gap: 0.5rem; font-size: 0.9375rem; }
}

/* ---------- 2. Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 1.125rem;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
/* real pointers only: on touch a tap leaves :hover stuck and would freeze the marquee */
@media (hover: hover) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
.marquee-list { display: flex; flex: none; align-items: center; margin: 0; padding: 0; list-style: none; }
.marquee-list li {
  display: inline-flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-2);
}
.marquee-list li::after {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 10px var(--volt-glow);
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- 3. Problem → shift ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.problem-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 1rem + 1.3vw, 2.25rem);
  overflow: hidden;
}
.problem-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
}
.problem-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
}
.problem-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.625rem 0.3125rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--text-3);
}
.problem-tag::before {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  background:
    linear-gradient(45deg, transparent 44%, var(--text-3) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--text-3) 44% 56%, transparent 56%);
}
.problem-title { font-size: var(--fs-xl); font-weight: 650; line-height: 1.2; letter-spacing: -0.03em; }
.problem-text { color: var(--text-2); }
/* three columns: reserve two title lines so the body copy starts at the same height in every card */
@media (min-width: 1024px) {
  .problem-title { min-height: 2.4em; }
}

.promise {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 1rem;
  padding: clamp(1.75rem, 1rem + 2.6vw, 3.25rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 160% at 0% 50%, color-mix(in srgb, var(--volt) 9%, transparent), transparent 62%),
    radial-gradient(50% 120% at 100% 100%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-2);
}
.promise::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, color-mix(in srgb, var(--volt) 55%, transparent), rgba(255, 255, 255, 0.06) 40%, color-mix(in srgb, var(--violet) 45%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.promise-mark { flex: none; filter: drop-shadow(0 10px 30px var(--volt-glow)); }
.promise-mark .brand-mark { width: clamp(52px, 4vw + 30px, 72px); height: auto; }
.promise-copy { display: grid; gap: 0.75rem; }
.promise-cta { flex: none; margin-left: auto; }
.promise-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--volt);
}
.promise-text {
  max-width: 40ch;
  font-size: clamp(1.375rem, 1.05rem + 1.25vw, 2.125rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}

@media (max-width: 1023px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { display: grid; grid-template-columns: auto 1fr; column-gap: 1.125rem; row-gap: 0.5rem; }
  .problem-top { grid-row: span 3; flex-direction: column; align-items: flex-start; margin: 0; }
  .problem-tag { display: none; }
}
@media (max-width: 1023px) {
  .promise { flex-wrap: wrap; }
  .promise-copy { flex: 1 1 320px; }
  .promise-cta { margin-left: 0; }
}
@media (max-width: 600px) {
  .promise { flex-direction: column; align-items: flex-start; }
  .promise-copy { flex: none; }
  .promise-cta { width: 100%; }
}

/* ---------- 4. Method ---------- */
.method { overflow: clip; }
.method::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 55%;
  height: 60%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--violet) 16%, transparent), transparent);
}
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.method-aside { align-self: stretch; }
.method-sticky {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  display: grid;
  gap: 1.125rem;
  justify-items: start;
}
.method-sticky .lead { max-width: 34ch; }
.landing .method-progress {
  display: grid;
  gap: 0.375rem;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.method-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: var(--text-3);
  transition: color var(--dur-3) ease;
}
.method-progress li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  width: 1px;
  height: calc(100% - 30px);
  background: var(--line-2);
}
.mp-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-3);
  transition:
    background-color var(--dur-3) ease,
    border-color var(--dur-3) ease,
    color var(--dur-3) ease,
    box-shadow var(--dur-3) var(--ease-out);
}
.method-progress li.is-done .mp-num { border-color: color-mix(in srgb, var(--volt) 45%, transparent); color: var(--volt); }
.method-progress li.is-active { color: var(--text); }
.method-progress li.is-active .mp-num {
  border-color: var(--volt);
  background: var(--volt);
  color: var(--volt-ink);
  box-shadow: 0 0 0 5px var(--volt-tint), 0 0 26px var(--volt-glow);
}

.method-steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.step { position: relative; }
.step-node { display: none; }
.step-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 360px;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  transition: border-color var(--dur-3) ease, box-shadow var(--dur-3) ease;
}
.step.is-active .step-card { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.step-num {
  font-family: var(--font-brand);
  font-size: clamp(3rem, 2rem + 2.6vw, 4.5rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.05em;
  /* solid ghost fill: an outline (text-stroke) traces the variable font's overlapping contours */
  color: var(--line-2);
  transition: color var(--dur-3) ease;
}
.step.is-active .step-num { color: var(--volt); }
.step-meta {
  flex: none;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.step-title { font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; }
.step-text { max-width: 48ch; color: var(--text-2); }
.step-ui {
  margin-top: auto;
  padding: 1rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  font-size: 0.875rem;
}
.step-text + .step-ui { margin-top: max(auto, 1.5rem); }

/* mini UIs */
.ui-quiz-top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ui-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.ui-progress span { display: block; width: 58%; height: 100%; background: var(--volt); }
.ui-quiz-q { margin-top: 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.ui-quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; }
.ui-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text-2);
}
.ui-opt.is-on { border-color: color-mix(in srgb, var(--volt) 55%, transparent); background: var(--volt-tint); color: var(--text); }
.ui-radio {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-3);
}
.ui-opt.is-on .ui-radio { border-color: var(--volt); background: var(--volt); color: var(--volt-ink); }
.ui-opt.is-on .ui-radio .ic { stroke-width: 3; }

.ui-consult { display: flex; align-items: center; gap: 0.875rem; }
.ui-consult-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--text);
}
.ui-consult-copy { display: grid; line-height: 1.3; min-width: 0; }
.ui-consult-copy strong { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.ui-consult-copy span { font-size: 0.8125rem; color: var(--text-3); }
.ui-status {
  margin-left: auto;
  flex: none;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--mint) 14%, transparent);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

.ui-week-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ui-week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.375rem; margin-top: 0.75rem; }
.ui-day {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0 0.75rem;
  border-radius: 10px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}
.ui-day i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.ui-day.is-on { background: var(--surface-3); color: var(--text); }
.ui-day.is-on i { background: var(--volt); box-shadow: 0 0 8px var(--volt-glow); }

.ui-bars-plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 0.75rem;
  height: 128px;
  padding-top: 1.75rem;
  border-bottom: 1px solid var(--line-2);
}
.ui-bars-plot span {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 16px;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: var(--line-3);
}
.ui-bars-plot span:last-child { background: var(--volt); box-shadow: 0 0 18px -4px var(--volt-glow); }
.ui-bars-plot .is-mark { background: var(--text-3); }
/* the tag is wider than a column: it hangs to the left of its bar (over the shorter bars), never over the last one */
.ui-bars-plot em {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.ui-bars-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.method-cta-mobile { display: none; }

@media (max-width: 1023px) {
  .method-grid { grid-template-columns: 1fr; gap: 0; }
  .method-sticky { position: static; }
  .landing .method-progress,
  .method-cta { display: none; }
  .landing .method-steps {
    position: relative;
    margin-top: 2.5rem;
    padding-left: 3.25rem;
    gap: 1rem;
  }
  .method-steps::before,
  .method-steps::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 1.75rem;
    bottom: 1.75rem;
    width: 1px;
    background: var(--line-2);
  }
  .method-steps::after {
    width: 2px;
    left: 17.5px;
    background: linear-gradient(180deg, var(--volt), color-mix(in srgb, var(--volt) 40%, var(--mint)));
    transform-origin: top;
    transform: scaleY(var(--progress, 0));
    box-shadow: 0 0 12px var(--volt-glow);
  }
  .step-node {
    position: absolute;
    z-index: 1;
    top: 1.5rem;
    left: -3.25rem;
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--bg);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-3);
    transition: background-color var(--dur-3) ease, color var(--dur-3) ease, border-color var(--dur-3) ease, box-shadow var(--dur-3) ease;
  }
  .step.is-done .step-node { border-color: color-mix(in srgb, var(--volt) 50%, transparent); color: var(--volt); }
  .step.is-active .step-node {
    border-color: var(--volt);
    background: var(--volt);
    color: var(--volt-ink);
    box-shadow: 0 0 0 5px var(--volt-tint), 0 0 22px var(--volt-glow);
  }
  .step-card { min-height: 0; }
  .step-top { margin-bottom: 0.25rem; }
  .step-num { display: none; }
  .step-ui { margin-top: 0.75rem; }
  .method-cta-mobile { display: block; margin-top: 2rem; }
}
@media (max-width: 420px) {
  .landing .method-steps { padding-left: 2.875rem; }
  .step-node { left: -2.875rem; }
  .ui-quiz-opts { grid-template-columns: 1fr; }
  .ui-consult { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.875rem; row-gap: 0.5rem; }
  .ui-status { grid-column: 2; justify-self: start; margin-left: 0; }
}

/* ---------- 5. Included (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  --tile-pad: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-height: 320px;
  padding: var(--tile-pad);
  overflow: hidden;
}
.tile-coach { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.tile-meals { grid-column: 8 / span 5; grid-row: 1; }
.tile-training { grid-column: 8 / span 5; grid-row: 2; }
.tile-habits { grid-column: 1 / span 5; grid-row: 3; }
.tile-checkins { grid-column: 6 / span 7; grid-row: 3; }

.tile-copy { position: relative; z-index: 2; display: grid; gap: 0.625rem; justify-items: start; }
.tile-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
}
.tile-title { font-size: var(--fs-xl); font-weight: 650; line-height: 1.2; letter-spacing: -0.03em; }
.tile-text { max-width: 42ch; color: var(--text-2); }

/* photo tiles: same rhythm as the other tiles, the photo is the visual */
.tile-photo { gap: 1.5rem; padding-bottom: 0; }
.tile-media {
  position: relative;
  flex: 1;
  min-height: 210px;
  margin: 0 calc(-1 * var(--tile-pad));
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.tile-training .tile-img { object-position: 35% 58%; }
.tile-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 30%, transparent), transparent 28%, transparent 62%, color-mix(in srgb, var(--bg) 60%, transparent));
}
@media (hover: hover) {
  .tile-photo:hover .tile-img { transform: scale(1.035); }
}
.tile-chips {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

/* chat bubbles (bento coach tile) */
.chat { display: flex; flex-direction: column; gap: 0.5rem; }
.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.875rem;
  min-height: 300px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--violet) 9%, transparent), transparent 70%),
    var(--bg-2);
}
.chat-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.25rem 0 auto;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
}
.chat-panel-tag {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0 0.375rem 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--text-3);
}
.chat-send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--volt);
  color: var(--volt-ink);
}
.chat-send .ic { stroke-width: 2.25; transform: rotate(-90deg); }
.bubble.bubble-typing { display: inline-flex; align-items: center; gap: 4px; padding: 0.75rem 0.875rem; }
.bubble-typing i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: typing 1.3s ease-in-out infinite;
}
.bubble-typing i:nth-child(2) { animation-delay: 0.16s; }
.bubble-typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: none; }
  30% { opacity: 1; transform: translateY(-2px); }
}
.chat-day {
  align-self: center;
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.bubble {
  display: flow-root;
  max-width: min(84%, 400px);
  padding: 0.5625rem 0.8125rem 0.4375rem;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
}
.bubble.in { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--surface-3); }
.bubble.out {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--volt) 18%, transparent);
  background: color-mix(in srgb, var(--volt) 12%, var(--surface-2));
}
.bubble-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  margin: 0.4375rem 0 -0.125rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1;
  color: var(--text-3);
}
.ticks { fill: none; stroke: var(--volt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* check-in chart */
.chart {
  margin-top: auto;
  padding: 1rem 1.125rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.chart-plot { position: relative; height: 150px; margin-top: 1.25rem; }
.chart-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-stop-a { stop-color: var(--mint); stop-opacity: 0.26; }
.chart-stop-b { stop-color: var(--mint); stop-opacity: 0; }
.chart-area { fill: url(#chart-fill); }
.chart-mark { fill: none; stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  background: var(--bg-2);
}
.chart-dot--end {
  border: 0;
  background: var(--mint);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--mint) 18%, transparent), 0 0 18px var(--mint);
}
.chart-tag {
  position: absolute;
  top: -0.875rem;
  left: var(--x);
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.chart-axis {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: 0.75rem -1.76% 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-align: center;
  color: var(--text-3);
}

/* habits */
.habits {
  margin-top: auto;
  padding: 0.25rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.habits-head {
  padding: 0.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.habits-list { margin: 0; padding: 0; list-style: none; }
.habit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'check label value' 'check bar bar';
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.habit-check {
  grid-area: check;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-3);
  color: var(--bg);
}
.habit.is-done .habit-check { border-color: var(--mint); background: var(--mint); }
.habit-check .ic { stroke-width: 3; }
.habit-label { grid-area: label; color: var(--text); }
.habit-value { grid-area: value; font-size: 0.8125rem; color: var(--text-2); }
.habit-bar { grid-area: bar; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.habit-bar span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--text-3); }
.habit.is-done .habit-bar span { background: var(--mint); }

@media (max-width: 1023px) {
  .tile-coach,
  .tile-checkins,
  .tile-habits { grid-column: 1 / -1; grid-row: auto; }
  .tile-meals,
  .tile-training { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 700px) {
  .bento { gap: 0.75rem; }
  .tile-meals,
  .tile-training { grid-column: 1 / -1; }
  .tile { min-height: 0; }
  .tile-media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .bubble { max-width: 90%; font-size: 0.875rem; }
}

/* ---------- 6. The coach ---------- */
.coach-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 60% at 100% 0%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 70%),
    var(--grad-surface), var(--surface);
  box-shadow: var(--shadow-2);
}
.coach-media { position: relative; margin: 0; min-height: 600px; background: var(--surface-2); }
.coach-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.coach-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 62%, color-mix(in srgb, var(--surface) 55%, transparent)),
    linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--bg) 55%, transparent));
}
.coach-tag {
  position: absolute;
  z-index: 1;
  left: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.coach-tag .dot,
.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}
.coach-body {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding: clamp(1.75rem, 1rem + 3.2vw, 4rem);
}
.coach-lead { max-width: 48ch; font-size: var(--fs-md); line-height: 1.55; color: var(--text-2); }
.coach-story { max-width: 52ch; line-height: 1.6; color: var(--text-3); }
/* Giuseppe's own line, with the Kernel 3px accent bar */
.coach-quote {
  position: relative;
  margin: 0.25rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--volt);
}
.coach-quote .ic { position: absolute; right: 0; top: 0; color: var(--text-4); fill: currentColor; stroke: none; }
.coach-quote p { max-width: 40ch; padding-right: 1.75rem; font-size: var(--fs-lg); font-weight: 550; line-height: 1.4; letter-spacing: -0.015em; color: var(--text); text-wrap: pretty; }
.coach-quote footer { margin-top: 0.625rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--text-3); }
.landing .coach-points { display: grid; gap: 0.75rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.coach-points li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text); }
.coach-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--volt) 35%, transparent);
  background: var(--volt-tint);
  color: var(--volt);
}
.coach-check .ic { width: 13px; height: 13px; stroke-width: 2.5; }

/* name + status line of the bento chat panel */
.chat-who { display: grid; line-height: 1.25; }
.chat-who strong { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.chat-who span { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--text-3); }
.online-dot { width: 6px; height: 6px; }

@media (max-width: 1023px) {
  .coach-card { grid-template-columns: 1fr; }
  .coach-media { min-height: 0; aspect-ratio: 4 / 3; }
  .coach-media::after { background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--surface) 80%, transparent)); }
}
@media (max-width: 600px) {
  .coach-media { aspect-ratio: 1 / 1; }
}

/* ---------- 7. Programs ---------- */
.programs::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(900px, 90vw);
  height: 520px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--volt) 7%, transparent), transparent);
}
.programs { isolation: isolate; }
.landing .programs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.program {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
}
.program--featured {
  z-index: 1;
  margin-block: -1.25rem;
  padding-block: calc(clamp(1.5rem, 1rem + 1.4vw, 2.25rem) + 1.25rem);
  border-color: transparent;
  background:
    radial-gradient(110% 55% at 50% 0%, color-mix(in srgb, var(--volt) 10%, transparent), transparent 65%),
    var(--grad-surface), var(--surface-2);
  /* Keep this blur at 80px or less: from about 100px Chromium draws the glow on 2x/3x screens
     (phones, Retina Macs) as a clipped block with a hard edge under the card. */
  box-shadow: 0 40px 80px -40px var(--volt-glow), var(--shadow-2);
}
.program--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(165deg, color-mix(in srgb, var(--volt) 75%, transparent), rgba(255, 255, 255, 0.08) 45%, color-mix(in srgb, var(--violet) 55%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.program-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.4375rem 0.875rem;
  border-radius: var(--r-pill);
  background: var(--volt);
  box-shadow: var(--shadow-volt);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--volt-ink);
}
.program-level {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.program-level span:last-child { color: var(--text-2); }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 16px; height: 4px; border-radius: 2px; background: var(--line-2); }
.meter[data-level='1'] i:nth-child(-n + 1),
.meter[data-level='2'] i:nth-child(-n + 2),
.meter[data-level='3'] i { background: var(--volt); }
.program-name {
  margin-top: 1.5rem;
  font-family: var(--font-brand);
  font-size: clamp(1.375rem, 1.2rem + 0.55vw, 1.6875rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.program-tagline { margin-top: 0.5rem; color: var(--text-2); }
.program-features { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.program-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8125rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-2);
}
.program-features .ic { margin-top: 0.1875rem; color: var(--volt); stroke-width: 2.25; }
/* a feature that wraps breaks into two even lines, never a lone word or number on the second */
.program-features li > span { text-wrap: balance; }
.program--featured .program-features li { color: var(--text); }
.program .btn { margin-top: auto; }

@media (max-width: 1023px) {
  .landing .programs-grid { grid-template-columns: 1fr; max-width: 560px; gap: 1.75rem; }
  .program--featured { margin-block: 0; padding-block: clamp(1.75rem, 1rem + 1.4vw, 2.25rem); }
  .program-name { margin-top: 1rem; }
}

/* ---------- 6b. Stats (under the "Chi sono" card) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(3.5rem, 2rem + 4vw, 6rem) 0 0;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 2rem 1.5rem 0;
}
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat-affix { font-size: 0.55em; letter-spacing: -0.02em; color: var(--volt); }
.stat-affix:first-child { margin-right: 0.06em; }
.stat-affix:last-child { margin-left: 0.04em; }
.stat-affix:empty { display: none; }
.stat-label { max-width: 22ch; font-size: 0.9375rem; line-height: 1.45; color: var(--text-3); text-wrap: balance; }

@media (max-width: 899px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat,
  .stat:first-child { padding: 1.75rem 1rem 1.75rem 0; }
  .stat:nth-child(even) { padding-left: 1.25rem; padding-right: 0; border-left: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- 8. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: start;
}
.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  display: grid;
  gap: 1.125rem;
  justify-items: start;
}
.faq-aside .lead { max-width: 34ch; }
.faq-aside .btn { margin-top: 0.75rem; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-q { transition: color var(--dur-2) ease; }
@media (hover: hover) {
  .faq-item summary:hover .faq-q { color: var(--volt-2); }
  .faq-item summary:hover .faq-chevron { border-color: var(--line-3); color: var(--text); }
}
.faq-chevron {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition:
    transform var(--dur-3) var(--ease-out),
    background-color var(--dur-2) ease,
    border-color var(--dur-2) ease,
    color var(--dur-2) ease;
}
.faq-item[open]:not(.is-closing) .faq-chevron {
  transform: rotate(180deg);
  border-color: var(--volt);
  background: var(--volt);
  color: var(--volt-ink);
}
.faq-a { overflow: hidden; }
.faq-a p { max-width: 62ch; padding: 0 3.75rem 1.5rem 0; color: var(--text-2); }

@media (max-width: 1023px) {
  .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-aside { position: static; }
}
@media (max-width: 600px) {
  .faq-a p { padding-right: 0; }
  .faq-item summary { gap: 1rem; padding: 1.25rem 0; }
}

/* ---------- 9. Final CTA ---------- */
.final { position: relative; padding-bottom: var(--section-y); }
.final-band {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(460px, 44vw, 600px);
  padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) clamp(1.25rem, 4vw, 4rem);
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: var(--surface);
  text-align: center;
}
.final-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.final-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 75% at 50% 110%, var(--violet-glow), transparent 70%),
    radial-gradient(40% 45% at 50% 45%, color-mix(in srgb, var(--volt) 9%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent), color-mix(in srgb, var(--bg) 70%, transparent));
}
.final-content { display: grid; justify-items: center; gap: 1.25rem; max-width: 860px; }
.final-title {
  font-size: clamp(2.5rem, 1.1rem + 4.8vw, 5.25rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.05em;
}
.final-title em { display: block; font-style: normal; color: var(--volt); }
.final-lead { max-width: 44ch; font-size: var(--fs-lg); line-height: 1.5; color: var(--text-2); }
.final-actions { display: grid; justify-items: center; gap: 1rem; margin-top: 0.75rem; }
@media (max-width: 600px) {
  /* Phones: one balanced title. The volt half on a line of its own left a one-word line above it
     ("Il tuo" / "starts") in both languages. */
  .final-title em { display: inline; }
  .final-band { border-radius: var(--r-lg); min-height: 0; }
  .final-actions { width: 100%; }
  .final-actions .btn { width: 100%; }
}

/* ---------- 10. Sticky mobile CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta {
    position: fixed;
    z-index: var(--z-sticky);
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 1.125rem;
    border-radius: 22px;
    border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 50px -14px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, calc(100% + 1.5rem), 0);
    transition:
      transform var(--dur-3) var(--ease-out),
      opacity var(--dur-3) ease,
      visibility 0s linear var(--dur-3);
  }
  .sticky-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      transform var(--dur-3) var(--ease-out),
      opacity var(--dur-3) ease,
      visibility 0s;
  }
  /* Cookie sheet up (analytics.js sets html.consent-open): the bar steps aside instead of stacking a second
     lime button over the choice (hidden = out of the tab order too), and comes back once the visitor decides.
     Beats .is-visible (0,2,1 > 0,2,0), transition included, so it slides away like at the end of the page. */
  html.consent-open .sticky-cta {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, calc(100% + 1.5rem), 0);
    pointer-events: none;
    transition:
      transform var(--dur-3) var(--ease-out),
      opacity var(--dur-3) ease,
      visibility 0s linear var(--dur-3);
  }
  /* While the bar is up (landing.js sets html.sticky-cta-on) it replaces the identical header CTA. */
  .header-cta {
    --btn-fx: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) ease, box-shadow var(--dur-3) var(--ease-out);
    transition: var(--btn-fx), opacity var(--dur-2) ease, visibility 0s;
  }
  html.sticky-cta-on:not(.consent-open) .header-cta {
    opacity: 0;
    visibility: hidden;
    transition: var(--btn-fx), opacity var(--dur-2) ease, visibility 0s linear var(--dur-2);
  }
  .sticky-cta-copy { display: grid; min-width: 0; line-height: 1.3; }
  .sticky-cta-copy strong {
    overflow: hidden;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text);
  }
  .sticky-cta-copy span {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
  }
  .sticky-cta .btn { --btn-h: 48px; flex: none; padding: 0 1.125rem; border-radius: 16px; }
}
