/* ============================================================
   PeakRoutine — home.css
   Home and How it works (loaded after pd.css). Each section moves in its
   own way: the hero drifts and spreads on scroll, devices scroll by,
   one phone stays pinned while the six areas pass, the coach chat
   plays out, and the small tiles animate their own content.
   ============================================================ */

@property --fc {
  syntax: '<color>';
  inherits: true;
  initial-value: #4f5fcf;
}

/* ── Hero: centred like Bevel and Vora; the phones fan out below ── */
.home .hero-pd { padding: 8.5rem 0 1.5rem; }
.home .hero-center { grid-template-columns: 1fr; gap: 2.75rem; justify-items: center; text-align: center; }
.home .hero-copy { width: 100%; max-width: 1040px; }
.pd.home .hero-pd h1 { max-width: none; margin: 0 auto; font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.home .hero-pd h1 .accent { display: block; }
.pd.home .hero-pd .lede { max-width: 35rem; margin: 1.25rem auto 2rem; font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.5; text-wrap: balance; }
.home .hero-pd .btn-row { justify-content: center; }
.pd .hero-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem 0.75rem; width: 100%; max-width: none; margin: 1.25rem auto 0; font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.hero-note i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.home .hero-center .stage { width: min(100%, 900px); height: 660px; }
.home .hero-center .stage .device.left { left: calc(50% - 360px); }
.home .hero-center .stage .device.right { right: calc(50% - 360px); }
.home .hero-center .chip.c1 { top: 150px; left: calc(50% - 470px); }
.home .hero-center .chip.c2 { top: 230px; right: calc(50% - 470px); left: auto; }
.home .hero-center .chip.c3 { top: auto; bottom: 150px; left: calc(50% - 450px); }
.home .hero-center .chip.c4 { top: auto; bottom: 90px; right: calc(50% - 450px); left: auto; }
@media (max-width: 960px) {
  .home .hero-center .stage .device.left { left: 2%; }
  .home .hero-center .stage .device.right { right: 2%; }
  .home .hero-center .chip.c1, .home .hero-center .chip.c3 { left: 0; }
  .home .hero-center .chip.c2, .home .hero-center .chip.c4 { right: 0; }
}
@media (max-width: 600px) {
  .home .hero-pd { padding-top: 7rem; }
  .home .hero-center { gap: 2rem; }
  .home .hero-center .stage { height: 500px; }
  .home .hero-center .stage .device.left { left: -8%; }
  .home .hero-center .stage .device.right { right: -8%; }
  .pd .hero-note { font-size: 0.8rem; }
}

/* ── Hero: a slow aurora behind the phones, spreading as you scroll ── */
.home .hero-bg .aurora {
  position: absolute; left: 50%; margin-left: -380px; top: 34%; width: 760px; height: 560px; border-radius: 50%;
  background: conic-gradient(from 0deg, #c7dbd1, #f6dfa8, #f4c9b5, #d6dcf3, #c7dbd1);
  filter: blur(80px); opacity: 0.55;
  animation: aurora 28s linear infinite;
}
@keyframes aurora { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .home .hero-bg .aurora { left: -20%; top: 40%; width: 140%; height: 420px; opacity: 0.45; } }

.home [data-hero-par] .device.center { translate: 0 calc(var(--hp, 0) * -24px); }

/* ── Works with: an endless, pausable row of devices ── */
.home .works .wrap { border: 0; padding-top: 1.5rem; padding-bottom: 0; }
.home .works .wrap:last-child { padding-top: 0; padding-bottom: 1.5rem; }
.home .works .works-k { margin-bottom: 1rem; }
.home .marquee {
  overflow: hidden; padding: 0.35rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.home .marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.home .marquee:hover .marquee-track { animation-play-state: paused; }
.home .marquee .works-list { display: flex; flex-wrap: nowrap; width: auto; gap: 0.75rem; padding-right: 0.75rem; }
.home .marquee .works-list li { flex: none; grid-column: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) {
  .home .marquee-track { animation-duration: 40s; }
  .home .marquee .works-list li { padding: 0.45rem 0.85rem 0.45rem 0.45rem; }
}

/* ── Six areas: one pinned phone, the steps scroll past it ── */
.home .feat { padding-bottom: 0; }
.feat-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
.feat-step {
  min-height: 74vh; display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 0; opacity: 0.25; transition: opacity 0.5s ease;
}
.feat-step.active { opacity: 1; }
.feat-num { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }
.feat-num i { font-style: normal; font-weight: 600; color: var(--muted); }
.pd .feat-step h3 {
  margin: 1.1rem 0 0.35rem; font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink);
}
.pd .feat-tag { font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 0.7rem; }
.pd .feat-step > p:not(.feat-tag) { font-size: 1.06rem; color: var(--muted); max-width: 31rem; }
.pd .feat-facts { list-style: none; display: grid; gap: 0.55rem; margin: 0.4rem 0 0; }
.feat-facts li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; color: var(--ink-2); }
.feat-facts li::before {
  content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent);
}
.feat-mshot, .feat-dots { display: none; }
/* Start the first step and the phone close under the heading */
.feat-step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 2rem; }

.feat-visual { --fc: #4f5fcf; transition: --fc 0.8s ease; }
/* Leave room for the floating navbar, and size the phone to what's left */
.feat-sticky { position: sticky; top: 0; height: 100vh; box-sizing: border-box; padding: 5.75rem 0 1rem; display: flex; align-items: center; justify-content: center; }
.feat-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fc) 30%, transparent), color-mix(in srgb, var(--fc) 8%, transparent) 60%, transparent);
}
.feat-phone { position: relative; width: min(290px, calc((100vh - 7.5rem) * 0.46)); }
.feat-phone .device {
  position: relative; width: 100%;
  box-shadow: 0 50px 80px -40px color-mix(in srgb, var(--fc) 70%, rgba(20, 24, 21, 0.6)), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.feat-phone .device > [data-shot] {
  position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px);
  opacity: 0; transform: scale(1.04); filter: blur(4px);
  transition: opacity 0.55s ease, transform 0.8s var(--ease-out), filter 0.55s ease;
}
.feat-phone .device > [data-shot].on { opacity: 1; transform: none; filter: none; }

/* Quick-log menu, as the app's + button opens it over a dimmed screen */
.ql { position: relative; overflow: hidden; border-radius: 38px; background: #f3f2f8; }
.feat-mshot .ql { height: 100%; aspect-ratio: 1206 / 2622; border-radius: 30px; }
.ql-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(1.5px) saturate(0.7); }
.ql-dim { position: absolute; inset: 0; background: rgba(60, 64, 82, 0.38); }
.ql-menu { position: absolute; right: 7%; bottom: 17%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; }
.ql-menu li { display: flex; align-items: center; gap: 0.5rem; opacity: 0; transform: translateY(14px) scale(0.85); transform-origin: right center; transition: opacity 0.3s ease, transform 0.5s var(--ease-spring); }
.ql-menu span { padding: 0.32rem 0.7rem; border-radius: 99px; background: #fff; font-size: 0.7rem; font-weight: 700; color: #1f2230; white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.4); }
.ql-menu i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 8px 16px -8px var(--c); }
.ql-menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ql-fab { position: absolute; right: 7%; bottom: 9%; width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: #5458e6; color: #fff; box-shadow: 0 10px 20px -10px #5458e6; }
.ql-fab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* Items rise from the button up, bottom one first */
.ql.on .ql-menu li, .feat-step.active .ql .ql-menu li { opacity: 1; transform: none; }
.ql-menu li:nth-child(6) { transition-delay: 0.15s; } .ql-menu li:nth-child(5) { transition-delay: 0.22s; } .ql-menu li:nth-child(4) { transition-delay: 0.29s; }
.ql-menu li:nth-child(3) { transition-delay: 0.36s; } .ql-menu li:nth-child(2) { transition-delay: 0.43s; } .ql-menu li:nth-child(1) { transition-delay: 0.5s; }
.feat-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.95rem 0.65rem 0.65rem;
  border-radius: 18px; background: rgba(255, 255, 255, 0.92); border: 1px solid #fff;
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--c) 55%, rgba(20, 24, 21, 0.4));
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  font-size: 0.82rem; line-height: 1.3; color: var(--ink-2); white-space: nowrap;
  opacity: 0; transform: translateY(16px) scale(0.94);
  transition: opacity 0.45s ease, transform 0.7s var(--ease-spring);
}
/* Chips criss-cross the phone: left side high over the title bar, right
   side low over the tab bar, so they overlap the edge but never a reading */
.feat-chip { top: 1.5%; bottom: auto; right: 88%; left: auto; }
.feat-chip:is([data-chip="1"], [data-chip="3"], [data-chip="5"]) { top: auto; bottom: 7%; left: 88%; right: auto; }
.feat-chip.on { opacity: 1; transform: none; transition-delay: 0.15s; }
.feat-chip b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.feat-chip .ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; }
.feat-chip .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Progress rail: a dot per area, the line fills as you scroll through */
.pd .feat-rail {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem;
}
.feat-rail::before, .feat-rail::after { content: ''; position: absolute; right: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.feat-rail::after { background: var(--fc); transform-origin: top; transform: scaleY(var(--p, 0)); }
.feat-rail button {
  position: relative; z-index: 1; display: flex; align-items: center; flex-direction: row-reverse; gap: 0.6rem;
  border: 0; padding: 0; background: none; cursor: pointer; font: 600 0.82rem/1 var(--font-body); color: var(--muted);
}
.feat-rail button i { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring); }
.feat-rail button { white-space: nowrap; }
.feat-rail button { clip-path: inset(0 0 0 calc(100% - 14px)); transition: clip-path 0.4s var(--ease-out), color 0.3s; }
.feat-rail button:hover, .feat-rail button:focus-visible, .feat-rail button.on { clip-path: inset(-4px -4px -4px -4px); }
.feat-rail button.on { color: var(--ink); }
.feat-rail button.on i, .feat-rail button.done i { background: var(--c); border-color: var(--c); }
.feat-rail button.on i { transform: scale(1.25); }

@media (max-width: 1024px) { .feat-phone { width: min(260px, calc((100vh - 7.5rem) * 0.46)); } .feat-chip { right: 80%; } .feat-chip:is([data-chip="1"], [data-chip="3"], [data-chip="5"]) { left: 80%; } }

/* Phones and tablets: the six areas become a swipeable row of cards */
@media (max-width: 900px) {
  .feat-story { display: block; }
  .feat-visual { display: none; }
  .feat-step:first-child { min-height: 0; padding-top: 1.35rem; }
  .feat-steps {
    display: flex; gap: 0.85rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -1.5rem; padding: 0.25rem 1.5rem 0.5rem; scroll-padding: 0 1.5rem; scrollbar-width: none;
  }
  .feat-steps::-webkit-scrollbar { display: none; }
  .feat-step {
    flex: 0 0 min(84%, 400px); min-height: 0; opacity: 1; justify-content: flex-start; scroll-snap-align: start;
    padding: 1.35rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .pd .feat-step h3 { font-size: 1.6rem; margin-top: 0.85rem; }
  .pd .feat-tag { font-size: 1.05rem; }
  .pd .feat-step > p:not(.feat-tag) { font-size: 0.96rem; }
  .pd .feat-facts { display: none; }
  .feat-mshot {
    display: block; position: relative; overflow: hidden; height: 300px; margin-top: auto; border-radius: 18px;
    background:
      radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%),
      linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #fff), color-mix(in srgb, var(--c) 4%, #fff));
  }
  .feat-step > p + .feat-facts + .feat-mshot, .feat-step .feat-mshot { margin-top: 1rem; }
  .feat-mshot::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; z-index: 2; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c) 4%, #fff) 88%); }
  .feat-mshot .device { left: 50%; top: 22px; width: 210px; border-radius: 36px; padding: 7px; transform: translateX(-50%); }
  .feat-mshot .device img, .feat-mshot .device .ql { border-radius: 30px; }
  /* Phone card shows the top of the screen, so the quick-log menu sits higher */
  .feat-mshot .ql-menu { top: 12%; bottom: auto; gap: 0.35rem; }
  .feat-mshot .ql-menu span { font-size: 0.62rem; padding: 0.25rem 0.55rem; }
  .feat-mshot .ql-menu i { width: 27px; height: 27px; }
  .feat-mshot .ql-menu svg { width: 13px; height: 13px; }
  .feat-mshot .ql-fab { display: none; }
  .feat-mshot:has(.ql)::after { height: 14%; }
  .feat-mshot:has(.ql) .feat-mchip { display: none; }
  .feat-mchip {
    position: absolute; z-index: 3; left: 0.75rem; bottom: 0.75rem;
    padding: 0.5rem 0.75rem; border-radius: 14px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 24px -12px rgba(20, 24, 21, 0.35);
    font-size: 0.78rem; line-height: 1.3; color: var(--ink-2);
  }
  .feat-mchip b { display: block; font-size: 1rem; font-weight: 800; color: var(--ink); }
  .feat-dots { display: flex; justify-content: center; gap: 0.45rem; margin-top: 1rem; }
  .feat-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line-strong); transition: width 0.35s var(--ease-out), background 0.3s; cursor: pointer; }
  .feat-dots button.on { width: 26px; background: var(--c, var(--green)); }
  .home .feat { padding-bottom: 2.25rem; }
}
@media (max-width: 480px) { .feat-steps { margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; scroll-padding: 0 1rem; } }

/* ── AI coach: dark section, the conversation plays out ── */
.coach-dark { position: relative; isolation: isolate; overflow: clip; background: #0d1613; padding: clamp(3.5rem, 7vw, 6rem) 0; }
/* Desktop: the section pins while scrolling plays the conversation */
@media (min-width: 861px) and (min-height: 620px) {
  .coach-dark.pinned { height: calc(100vh + 1100px); padding: 0; }
  .coach-dark.pinned .coach-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 5.5rem; }
  .coach-dark.pinned .coach-bg { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; }
}
.coach-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 420px at 78% 35%, rgba(23, 103, 90, 0.6), transparent 70%),
    radial-gradient(520px 380px at 8% 95%, rgba(242, 198, 109, 0.14), transparent 70%);
}
.coach-dark .eyebrow { color: #f2c66d; }
.pd .coach-dark h2 { color: #fff; }
.coach-dark h2 .accent { color: #f2c66d; }
.pd .coach-dark .lede { color: rgba(232, 241, 237, 0.75); }
.coach-dark .ticks li { color: rgba(232, 241, 237, 0.82); }
.coach-dark .ticks b { color: #fff; }
.coach-dark .ticks svg { color: #9fe3c0; background: rgba(255, 255, 255, 0.1); }
.coach-dark .btn-row { margin-top: 1.75rem; }

/* The coach screen, built in HTML so the conversation can play out.
   Colours follow the app's Coach screen. */
.chat-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cphone {
  /* overflow keeps the aspect ratio fixed however long the chat gets */
  position: relative; overflow: hidden; width: min(340px, calc((100vh - 185px) * 0.46)); aspect-ratio: 1206 / 2622; padding: 10px; border-radius: 52px;
  background: linear-gradient(145deg, #2a2d2b, #121413);
  /* A titanium rim so the frame reads against the dark section */
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 0 0 2px #1b1e1c,
    0 0 0 4px #a9b0ab,
    0 0 0 5px rgba(255, 255, 255, 0.35),
    0 60px 90px -40px rgba(0, 0, 0, 0.85),
    0 0 80px -10px rgba(46, 160, 140, 0.35);
}
/* Side buttons: power on the right, volume on the left */
.cphone-wrap { position: relative; }
.cphone-wrap::before, .cphone-wrap::after { content: ''; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #7d847f, #c4cac6); }
.cphone-wrap::after { right: -6px; top: 26%; height: 11%; }
.cphone-wrap::before { left: -6px; top: 20%; height: 7%; }
.cphone-wrap .vol2 { position: absolute; left: -6px; top: 29%; width: 4px; height: 7%; border-radius: 2px; background: linear-gradient(90deg, #7d847f, #c4cac6); }
.cphone-screen {
  position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; border-radius: 42px;
  background: #f7f5fd; color: #1f2230; font-size: 12.5px; line-height: 1.45;
}
.c-status { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 4px 30px; font-weight: 700; font-size: 13px; }
.c-island { position: absolute; left: 50%; top: 10px; width: 96px; height: 28px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.c-sys { display: flex; gap: 5px; align-items: center; }
.c-sys svg { height: 10px; width: auto; fill: currentColor; }
.c-head { display: flex; align-items: center; gap: 9px; padding: 10px 14px 10px 10px; border-bottom: 1px solid #ebe7f6; background: #f3f0fc; }
.c-back { width: 20px; height: 20px; fill: none; stroke: #1f2230; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.c-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e6e4fb; color: #5b5ef0; }
.c-av svg { width: 16px; height: 16px; fill: currentColor; }
.c-title { min-width: 0; }
.c-title b { display: block; font-size: 15px; font-weight: 700; }
.c-title small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10.5px; color: #6b6f80; }
.c-body {
  flex: 1; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 10px;
  padding: 14px 12px 10px; transition: opacity 0.5s ease;
}
.c-body::-webkit-scrollbar { display: none; }
.c-body.clearing { opacity: 0; }
.c-msg.gone { display: none; }
.c-msg { display: flex; gap: 7px; align-items: flex-end; opacity: 0; transform: translateY(10px) scale(0.97); transition: opacity 0.35s ease, transform 0.5s var(--ease-spring); }
.c-msg.in { opacity: 1; transform: none; }
.c-msg.me { justify-content: flex-end; transform-origin: bottom right; }
.c-msg.me .c-bub { background: #6466f1; color: #fff; border-radius: 16px 16px 4px 16px; max-width: 80%; }
.c-msg.ai { align-items: flex-start; transform-origin: top left; }
.c-msg.ai::before {
  content: 'C'; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  display: grid; place-items: center; background: #5b5ef0; color: #fff; font-size: 9.5px; font-weight: 800;
}
.c-msg.ai .c-bub { background: #fff; border-radius: 4px 16px 16px 16px; box-shadow: 0 1px 2px rgba(31, 34, 48, 0.06); max-width: 88%; }
.c-bub { padding: 9px 11px; }
.c-bub p { margin: 0; font-size: 12.5px; color: inherit; line-height: 1.45; }
.c-bub p + p, .c-bub p + .c-card, .c-bub .c-card + p { margin-top: 8px; }
.c-bub b { font-weight: 800; color: #3f42d6; }
.c-bub .w { opacity: 0; transition: opacity 0.25s ease; }
.c-bub .w.on { opacity: 1; }
.c-dots { display: flex; gap: 4px; padding: 4px 2px; }
.c-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9a9cb0; animation: typing 1s ease-in-out infinite; }
.c-dots i:nth-child(2) { animation-delay: 0.15s; }
.c-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.45; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Cards inside coach replies */
.c-card { border-radius: 12px; padding: 9px 10px; background: #f5f4fe; border: 1px solid #e6e4fb; opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.5s var(--ease-out); }
.c-card.on { opacity: 1; transform: none; }
.c-card-k { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; color: #6b6f80; }
.c-bars { display: grid; gap: 5px; }
.c-bar { display: grid; grid-template-columns: 84px 1fr 30px; align-items: center; gap: 6px; font-size: 10.5px; color: #3b3f52; }
.c-bar span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.c-bar i { height: 7px; border-radius: 99px; background: #e3e1f7; overflow: hidden; }
.c-bar i::after { content: ''; display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--bc, #8b8df5); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out); }
.c-card.on .c-bar i::after { transform: none; }
.c-bar:nth-child(2) i::after { transition-delay: 0.1s; } .c-bar:nth-child(3) i::after { transition-delay: 0.2s; } .c-bar:nth-child(4) i::after { transition-delay: 0.3s; }
.c-bar b { text-align: right; font-size: 10.5px; color: #1f2230; }
.c-plan { background: #fbf0d6; border-color: #f2c66d; }
.c-plan .c-card-k { color: #8a6a1c; }
.c-plan strong { display: block; font-size: 13px; color: #4a3a12; }
.c-plan small { display: block; margin-top: 2px; font-size: 10.5px; color: #7a6530; }

.c-foot { padding: 0 12px 14px; }
.c-suggest { display: inline-block; margin: 2px 0 8px; padding: 6px 11px; border-radius: 99px; border: 1px solid #d9d6f7; background: #fff; color: #5b5ef0; font-size: 11px; transition: opacity 0.3s ease; }
.c-suggest.off { opacity: 0; }
.c-note { margin: 0 0 8px; font-size: 9px; line-height: 1.35; color: #8a8d9c; }
.c-input { display: flex; align-items: center; gap: 7px; }
.c-input span { flex: 1; padding: 9px 12px; border-radius: 99px; background: #eceaf3; color: #8a8d9c; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-input span.typed { color: #1f2230; }
.c-input i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.c-input svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-mic { background: #e6e4fb; color: #5b5ef0; }
.c-send { background: #6466f1; color: #fff; transition: transform 0.2s ease; }
.c-send.tap { transform: scale(0.85); }
.c-send svg { fill: currentColor; stroke: none; }

.chat-pause {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: rgba(232, 241, 237, 0.85);
  font: 600 0.82rem/1 var(--font-body); transition: background 0.2s ease;
}
.chat-pause:hover { background: rgba(255, 255, 255, 0.12); }
.chat-pause svg { width: 13px; height: 13px; fill: currentColor; }
.chat-pause .i-play, .chat-pause[aria-pressed="true"] .i-pause { display: none; }
.chat-pause[aria-pressed="true"] .i-play { display: block; }
.chat-spacer { display: none; }
@media (max-width: 860px) {
  .cphone { width: min(320px, calc((100vh - 120px) * 0.46)); }
  /* Phones: the coach screen sticks while the spacer scrolls by */
  .coach-dark.pinned-m .chat-stage { position: sticky; top: 72px; }
  .coach-dark.pinned-m .cphone { width: min(300px, calc((100vh - 240px) * 0.46)); }
  .coach-dark.pinned-m .chat-spacer { display: block; height: 900px; }
}
@media (max-width: 420px) { .cphone { width: 290px; } .cphone-screen { font-size: 12px; } }


/* ── Coach, Bevel-style: four capabilities, each with its own chat ── */
.coach2 { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.coach2 .section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pd .coach2 .section-head p { color: rgba(232, 241, 237, 0.72); }
.coach-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 1040px; margin: 0 auto; }
.pd .coach-tabs { list-style: none; display: grid; gap: 0.6rem; margin: 0; padding: 0; }
.ct {
  position: relative; overflow: hidden; width: 100%; display: flex; align-items: flex-start; gap: 0.9rem; text-align: left; cursor: pointer;
  padding: 1.1rem 1.2rem 1.25rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: #fff;
  font: inherit; opacity: 0.55; transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.ct:hover { opacity: 0.85; }
.ct.on { opacity: 1; background: rgba(255, 255, 255, 0.07); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.ct-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); transition: background 0.3s ease, color 0.3s ease; }
.ct.on .ct-ico { background: var(--c); color: #0d1613; }
.ct-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ct-txt b { display: block; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.ct-txt small { display: block; margin-top: 0.2rem; font-size: 0.92rem; line-height: 1.4; color: rgba(232, 241, 237, 0.7); }
.ct-bar { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; opacity: 0; transition: opacity 0.3s ease; }
.ct.on .ct-bar { opacity: 1; }
.ct-bar i { display: block; height: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; }
.coach2 .chat-stage { position: relative; }
.coach2 .chat-stage::before {
  content: ''; position: absolute; left: 50%; top: 44%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cc, #8b8df5) 35%, transparent), transparent); transition: background 0.6s ease; pointer-events: none;
}
.coach2 .cphone { width: min(330px, calc((100vh - 185px) * 0.46)); }
.coach-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); font-size: 0.9rem; color: rgba(232, 241, 237, 0.6); }

/* New chat cards: a before/after table and a sparkline */
.c-table { display: grid; gap: 4px; }
.c-table > div { display: grid; grid-template-columns: 1fr auto auto 12px; align-items: baseline; gap: 6px; font-size: 10.5px; color: #3b3f52; }
.c-table s { color: #9a9cb0; text-decoration: none; }
.c-table b { color: #1f2230; }
.c-table i { font-style: normal; font-weight: 800; color: #1f9d63; }
.c-spark svg { display: block; width: 100%; height: auto; }
.c-spark polyline { fill: none; stroke: #8b8df5; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out); }
.c-spark.on polyline { stroke-dashoffset: 0; }
.c-spark circle { fill: #f2c66d; stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity 0.3s ease 0.9s; }
.c-spark.on circle { opacity: 1; }
.c-spark-v { display: flex; justify-content: space-between; font-size: 10px; color: #9a9cb0; }
.c-spark-v b { color: #1f2230; }

@media (max-width: 860px) {
  .coach-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pd .coach-tabs { display: flex; gap: 0.5rem; overflow-x: auto; margin: 0 -1.5rem; padding: 0 1.5rem 0.25rem; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .coach-tabs::-webkit-scrollbar { display: none; }
  .coach-tabs li { flex: 0 0 auto; scroll-snap-align: start; }
  .ct { width: auto; align-items: center; padding: 0.6rem 0.9rem 0.75rem 0.6rem; border-radius: 99px; gap: 0.55rem; }
  .ct-ico { width: 32px; height: 32px; border-radius: 50%; }
  .ct-ico svg { width: 16px; height: 16px; }
  .ct-txt b { font-size: 0.9rem; white-space: nowrap; }
  .ct-txt small { display: none; }
  .ct-bar { left: 1rem; right: 1rem; }
}


/* ── Coach, Bevel-style: light cards that slide up and stack on the dark section ── */
.coach3 { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: clip; }
.coach3 .section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pd .coach3 .section-head p { color: rgba(232, 241, 237, 0.72); }
.pd .coach3 h2 .accent { display: block; }
.stack { --ch: min(720px, calc(100vh - 7.5rem)); display: grid; gap: 2rem; padding-bottom: 1rem; }
.stack-card {
  position: sticky; top: calc(5.75rem + var(--i) * 14px); height: var(--ch); overflow: hidden; border-radius: 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  background: radial-gradient(90% 90% at 100% 100%, var(--g2), transparent 70%), linear-gradient(150deg, #fbfbfd 0%, var(--g1) 100%);
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.6);
  transform: scale(calc(1 - var(--cover, 0) * 0.05)); transform-origin: top center; will-change: transform;
}
/* Dimming as it's covered: an overlay's opacity, cheap to animate (a filter repaints the whole card) */
.stack-card::after { content: ''; position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: #0d1613; opacity: calc(var(--cover, 0) * 0.4); pointer-events: none; }
.sc-copy { padding: 0 clamp(1.5rem, 5vw, 5rem); }
.pd .sc-copy h3 { margin: 0 0 1rem; font-family: var(--font-display); font-size: clamp(2.3rem, 4.4vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; color: var(--ink); }
.pd .sc-copy p { margin: 0; max-width: 26rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--muted); }
.sc-device { position: relative; height: 100%; }
.sc-phone {
  position: absolute; right: 14%; top: 7%; height: calc(var(--ch) * 1.02); aspect-ratio: 1206 / 2622; padding: 11px; border-radius: 58px;
  background: linear-gradient(145deg, #c9ccd4, #8d929c 40%, #5f646d); box-shadow: 0 40px 80px -30px rgba(20, 24, 40, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.sc-screen { position: relative; height: 100%; overflow: hidden; border-radius: 48px; background: #f7f7fa; display: flex; flex-direction: column; color: #1f2230; }
.sc-status { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px 6px 34px; font-weight: 700; font-size: 14px; }
.sc-island { position: absolute; left: 50%; top: 12px; width: 108px; height: 32px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.sc-sys { display: flex; gap: 5px; } .sc-sys svg { height: 11px; width: auto; fill: currentColor; }
.sc-body { flex: 1; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 12px; font-size: 14.5px; line-height: 1.45; }
.sc-body::-webkit-scrollbar { display: none; }
.sc-body > * { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.5s var(--ease-out); }
.sc-body > .in { opacity: 1; transform: none; }
.sc-gap { flex: none; height: 74px; }
.sc-input { display: flex; align-items: center; gap: 8px; margin: 0 14px 16px; padding: 6px 6px 6px 16px; border-radius: 99px; background: #fff; box-shadow: 0 6px 20px -10px rgba(20, 24, 40, 0.3); color: #9a9cb0; font-size: 13.5px; }
.sc-input span { flex: 1; }
.sc-input i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #1f2230; color: #fff; }
.sc-input svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* The question floats over the phone's edge; a proactive nudge arrives as a notification */
.sc-float {
  position: absolute; z-index: 3; top: calc(7% + 74px); right: calc(14% - 34px); max-width: min(300px, 70%);
  opacity: 0; transform: translateY(14px) scale(0.92); transform-origin: top right; transition: opacity 0.4s ease, transform 0.6s var(--ease-spring);
}
.sc-float.in { opacity: 1; transform: none; }
.sc-float.me { padding: 0.85rem 1.1rem; border-radius: 22px 22px 6px 22px; color: #fff; font-size: 1rem; line-height: 1.4; font-weight: 500;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--c) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.sc-float.note { display: flex; gap: 0.7rem; align-items: flex-start; width: min(320px, 74%); padding: 0.8rem 0.9rem; border-radius: 22px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(20, 24, 40, 0.4); font-size: 0.86rem; line-height: 1.35; color: #4a4e60; }
.sc-float.note b { display: block; color: #1f2230; font-size: 0.95rem; }
.sc-float.note small { display: block; font-size: 0.7rem; color: #9a9cb0; }
.nt-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: #fff; }
.nt-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Thinking steps */
.sc-think { font-size: 13.5px; color: #6b6f80; }
.th-k { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.th-k svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.sc-think ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sc-think li { display: flex; align-items: center; gap: 9px; opacity: 0; transform: translateX(-6px); transition: opacity 0.3s ease, transform 0.4s var(--ease-out); }
.sc-think li.in { opacity: 1; transform: none; }
.sc-think li > svg:first-child { flex: none; width: 17px; height: 17px; fill: none; stroke: #9a9cb0; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sc-think li.done > svg { stroke: var(--c); }
.th-go { width: 13px; height: 13px; fill: none; stroke: #c4c6d2; stroke-width: 2; }
.sc-ai { color: #1f2230; font-size: 15px; line-height: 1.5; }
.sc-ai .w { opacity: 0; transition: opacity 0.25s ease; } .sc-ai .w.on { opacity: 1; }
.sc-ai b { font-weight: 800; color: color-mix(in srgb, var(--c) 75%, #1f2230); }

/* Cards inside the reply */
.sc-card { padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(20, 24, 40, 0.06); display: grid; gap: 9px; }
.sc-k { font-size: 12px; font-weight: 700; color: #8a8d9c; }
.sc-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12.5px; color: #4a4e60; }
.sc-bar i { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #eceaf3; overflow: hidden; }
.sc-bar i b { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #b8bac8; transform-origin: left; animation: scGrow 0.9s var(--ease-out) both; }
.sc-bar.hi i b { background: var(--c); }
.sc-bar em { grid-row: 1; grid-column: 2; font-style: normal; font-weight: 800; color: #1f2230; }
.sc-bar em small { font-weight: 600; color: #9a9cb0; }
@keyframes scGrow { from { transform: scaleX(0); } }
.sc-spark svg { width: 100%; height: auto; }
.sc-spark polyline { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: scDraw 1.2s var(--ease-out) both; }
.sc-spark circle { fill: var(--c); stroke: #fff; stroke-width: 2; }
@keyframes scDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.sc-sv { display: flex; justify-content: space-between; font-size: 11.5px; color: #9a9cb0; } .sc-sv b { color: #1f2230; }
.sc-suggest { display: grid; }
.sc-suggest div { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid #e9e8f0; font-size: 14px; }
.sc-suggest svg { flex: none; width: 17px; height: 17px; fill: none; stroke: #b0b2c2; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Bottom sheet */
.sc-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 10px 18px 64px; border-radius: 30px 30px 0 0; background: #fff;
  box-shadow: 0 -20px 50px -20px rgba(20, 24, 40, 0.35); transform: translateY(105%); transition: transform 0.7s var(--ease-out);
}
.sc-sheet.in { transform: none; }
.sh-grab { width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: #dcdbe6; }
.sh-head { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.sh-head b { text-align: center; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #f0eff5; color: #6b6f80; font-size: 20px; line-height: 1; }
.sh-save { padding: 7px 14px; border-radius: 99px; background: #f0eff5; font-size: 13px; font-weight: 700; }
.sh-sub { margin: 10px 0 12px; font-size: 13px; color: #8a8d9c; }
.sh-rows { display: grid; gap: 2px; }
.sh-rows div { display: grid; grid-template-columns: 1fr auto auto 16px; gap: 10px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid #efeef4; font-size: 13.5px; }
.sh-rows s { text-decoration: none; color: #a4a6b4; font-size: 12.5px; }
.sh-rows i { font-style: normal; font-weight: 800; color: #1f9d63; }
.sh-foot { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: #4a4e60; }
.sh-foot svg { width: 17px; height: 17px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-habits { display: grid; gap: 10px; margin-bottom: 14px; }
.sh-habits > div { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #f7f7fa; }
.sh-habits i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--hc) 16%, #fff); color: var(--hc); }
.sh-habits i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-habits span { min-width: 0; }
.sh-habits b { display: block; margin-bottom: 6px; font-size: 13.5px; line-height: 1.3; color: #1f2230; }
.sh-habits em { display: flex; gap: 4px; font-style: normal; }
.sh-habits u { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 9.5px; font-weight: 700; color: #a4a6b4; background: #fff; }
.sh-habits u.on { background: var(--hc); color: #fff; }
.sh-btn { display: block; padding: 14px; border-radius: 99px; background: #1f2230; color: #fff; text-align: center; font-weight: 700; font-size: 15px; }

@media (max-width: 860px) {
  .stack { --ch: min(640px, calc(100vh - 6.5rem)); gap: 1.25rem; }
  .stack-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; top: calc(5rem + var(--i) * 10px); border-radius: 26px; }
  .sc-copy { padding: 1.6rem 1.4rem 0; }
  .pd .sc-copy h3 { font-size: 2rem; margin-bottom: 0.5rem; }
  .pd .sc-copy p { font-size: 0.98rem; }
  .sc-phone { right: auto; left: 50%; top: 1.25rem; height: calc(var(--ch) * 0.95); transform: translateX(-50%); padding: 9px; border-radius: 48px; }
  .sc-screen { border-radius: 40px; }
  .sc-float { top: calc(1.25rem + 66px); right: 4%; max-width: 74%; }
  .sc-float.me { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-card { position: relative; top: auto; transform: none; }
  .stack-card::after { display: none; }
  .sc-body > *, .sc-think li, .sc-float, .sc-sheet { transition: none; }
}

/* ── Bento: small features, each showing its own content ── */
.bento-sec { padding-top: clamp(2.75rem, 5vw, 4.25rem); }
.bento { display: grid; grid-template-columns: 1fr 1fr 0.85fr; grid-template-rows: auto auto; gap: 1rem; }
.b-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 1.5rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.b-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 30%, var(--line)); }
.pd .b-tile h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.pd .b-tile p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.b-plan, .b-insight { grid-row: span 2; min-height: 470px; }
.b-badges { grid-row: span 1; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-plan, .b-insight { grid-row: auto; min-height: 0; }
}
@media (max-width: 600px) {
  .b-plan, .b-insight, .b-badges, .b-water { grid-column: 1 / -1; min-height: 0; }
  .b-badges, .b-water { padding: 1.15rem; }
}


/* Live widgets inside the bento tiles (in place of cropped screenshots) */
.b-widget {
  flex: 1; display: flex; flex-direction: column; justify-content: center; margin: 1.25rem -0.5rem -0.5rem; padding: 1rem; border-radius: 18px;
  background:
    radial-gradient(80% 70% at 50% 20%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, #fff), color-mix(in srgb, var(--c) 3%, #fff));
}

/* Weekly plan: chosen days tick off, the count and bar follow */
.pw { display: grid; gap: 0.7rem; }
.pw-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.pw-head b { font-size: 0.95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.pw-habit { padding: 0.85rem; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(20, 24, 21, 0.05), 0 8px 20px -14px rgba(20, 24, 21, 0.25); }
.pw-h { display: flex; gap: 0.65rem; align-items: center; margin-bottom: 0.7rem; }
.pw-h b { display: block; font-size: 0.95rem; line-height: 1.25; color: var(--ink); }
.pw-h small { display: block; font-size: 0.78rem; color: var(--muted); }
.pw-ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.pw-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.pw-days i {
  position: relative; aspect-ratio: 1; max-width: 34px; display: grid; place-items: center; border-radius: 50%;
  font-style: normal; font-size: 0.7rem; font-weight: 700; color: #b5b0a6; background: var(--surface-2);
  transition: background 0.35s ease, color 0.35s ease, transform 0.5s var(--ease-spring), box-shadow 0.35s ease;
}
.pw-days i.pick { color: var(--c); background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, #fff); }
.pw-days i svg { position: absolute; width: 58%; height: 58%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset 0.4s ease 0.15s; }
.pw-days i.done { background: var(--c); box-shadow: none; transform: scale(1.08); }
.pw-days i.done span { opacity: 0; }
.pw-days i.done svg { stroke-dashoffset: 0; }
.pw-days i.today { box-shadow: inset 0 0 0 1.5px var(--c), 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); animation: today 1.8s ease-in-out infinite; }
@keyframes today { 50% { box-shadow: inset 0 0 0 1.5px var(--c), 0 0 0 7px color-mix(in srgb, var(--c) 8%, transparent); } }
.pw-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, #fff); overflow: hidden; }
.pw-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #1f9d63, #17675a); transform: scaleX(var(--pw, 0)); transform-origin: left; transition: transform 0.6s var(--ease-out); }

.b-plan .b-widget { justify-content: flex-start; }
.pw-note {
  display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.15rem; padding: 0.7rem 0.8rem; border-radius: 14px;
  background: #fff; font-size: 0.84rem; line-height: 1.4; color: var(--ink-2); box-shadow: 0 1px 2px rgba(20, 24, 21, 0.05);
  opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
}
.pw-note.on { opacity: 1; transform: none; }
.pw-note b { display: block; font-size: 0.74rem; color: #5b5ef0; }
.pw-av { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e6e4fb; color: #5b5ef0; }
.pw-av svg { width: 14px; height: 14px; fill: currentColor; }

/* Insights: the connection behind each insight lights up in turn */
.iw { display: grid; gap: 0.75rem; }
.iw-map { width: 100%; height: auto; overflow: visible; }
.iw-map line { stroke: color-mix(in srgb, var(--c) 22%, #d8d4ea); stroke-width: 1.5; stroke-linecap: round; transition: stroke 0.4s ease, stroke-width 0.4s ease; }
.iw-map line.on { stroke: var(--lc, #5b5ef0); stroke-width: 3; stroke-dasharray: 6 6; animation: flow 1s linear infinite; }
.iw-n .bg { fill: color-mix(in srgb, var(--c) 12%, #fff); stroke: color-mix(in srgb, var(--c) 30%, #fff); stroke-width: 1.5; transition: fill 0.4s ease, stroke 0.4s ease; }
.iw-n .halo { fill: none; stroke: var(--c); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.iw-n .ic { fill: none; stroke: var(--c); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s ease; }
.iw-n text { font: 700 10.5px var(--font-body); fill: var(--muted); text-anchor: middle; transition: fill 0.3s ease; }
.iw-n.on .bg { fill: var(--c); stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--c) 45%, transparent)); }
.iw-n.on .ic { stroke: #fff; }
.iw-n.on .halo { animation: halo 1.8s ease-out infinite; }
.iw-n.on text { fill: var(--ink); }
@keyframes halo { from { opacity: 0.55; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
.iw-card { padding: 0.85rem 0.95rem; border-radius: 16px; background: #fff; border-left: 3px solid var(--lc, #5b5ef0); box-shadow: 0 8px 20px -14px rgba(20, 24, 21, 0.25); min-height: 8.6rem; }
.iw-card > * { transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
.iw-card.swap > * { opacity: 0; transform: translateY(6px); }
.iw-tag { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.7rem; font-weight: 700; color: var(--lc, #5b5ef0); background: color-mix(in srgb, var(--lc, #5b5ef0) 10%, #fff); }
.iw-card b { display: block; margin: 0.45rem 0 0.25rem; font-size: 0.98rem; line-height: 1.3; color: var(--ink); }
.pd .iw-card p { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.iw-dots { display: flex; justify-content: center; gap: 0.4rem; }
.iw-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: width 0.35s var(--ease-out), background 0.3s; }
.iw-dots button.on { width: 24px; background: var(--lc, #5b5ef0); }

/* Badges: the app's own artwork; one is "earned" at a time */
.b-badges { gap: 0; }
.bw { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.4rem 0.9rem; margin-top: 1rem; }
.bw-hero { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.bw-glow { position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 198, 109, 0.55), transparent); transition: transform 0.6s var(--ease-spring); }
.bw-hero.swap .bw-glow { transform: scale(0.7); }
.bw-hero img { position: relative; width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(20, 24, 21, 0.22)); transition: transform 0.6s var(--ease-spring), opacity 0.25s ease; }
.bw-hero.swap img { transform: scale(0.6) rotate(-12deg); opacity: 0; transition-duration: 0.2s; }
.bw-txt { min-width: 0; }
.bw-k { display: block; font-size: 0.72rem; font-weight: 700; color: #b45309; }
.bw-txt b { display: block; font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.bw-txt small { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.bw-row { grid-column: 1 / -1; display: flex; gap: 0.35rem; margin-top: 0.6rem; }
.bw-row button { flex: 1; max-width: 46px; padding: 3px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; opacity: 0.45; filter: saturate(0.4); transition: opacity 0.3s ease, filter 0.3s ease, transform 0.4s var(--ease-spring), background 0.3s ease; }
.bw-row button img { display: block; width: 100%; height: auto; }
.bw-row button:hover { opacity: 0.85; filter: none; }
.bw-row button.on { opacity: 1; filter: none; transform: translateY(-3px) scale(1.08); background: color-mix(in srgb, var(--c) 10%, #fff); }
.b-badges:not(.revealed) .bw-row button { transform: scale(0.5); opacity: 0; }
.b-badges.revealed .bw-row button:nth-child(2) { transition-delay: 0.08s; } .b-badges.revealed .bw-row button:nth-child(3) { transition-delay: 0.16s; }
.b-badges.revealed .bw-row button:nth-child(4) { transition-delay: 0.24s; } .b-badges.revealed .bw-row button:nth-child(5) { transition-delay: 0.32s; }
@media (max-width: 1024px) { .bw { grid-template-columns: 1fr; } .bw-hero { width: 72px; height: 72px; } .bw-hero img { width: 72px; height: 72px; } }
@media (max-width: 600px) { .bw { grid-template-columns: auto 1fr; } }


/* Hydration: cups fill one by one, the count and litres follow */
.hw { gap: 0.8rem; justify-content: flex-start; }
.hw-top { display: flex; justify-content: space-between; align-items: baseline; }
.hw-top b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hw-top small { font-size: 0.82rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.hw-l { font-size: 0.9rem; font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }
.hw-cups { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.3rem; }
.hw-cups i {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); background: color-mix(in srgb, var(--c) 14%, #fff);
}
.hw-cups span {
  position: absolute; inset: auto 0 0; height: 100%; transform: scaleY(0); transform-origin: bottom;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); transition: transform 0.55s var(--ease-out);
}
.hw-cups i.full span { transform: scaleY(1); }
.hw-caf { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.7rem; border-radius: 12px; background: #fff; font-size: 0.82rem; color: var(--muted); box-shadow: 0 1px 2px rgba(20, 24, 21, 0.05); }
.hw-caf b { color: var(--ink); }
.hw-ico { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #8a5a2b; background: #f5ebe0; }
.hw-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Prediabetes spotlight: the two curves draw in ── */
.spot-chart { width: 100%; height: 54px; margin: 0.35rem 0 0.15rem; overflow: visible; }
.spot-chart path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.spot-chart .sc-past { stroke: rgba(232, 241, 237, 0.45); stroke-width: 1.8; stroke-dasharray: 4 4; opacity: 0; transition: opacity 0.8s ease 0.3s; }
.spot-chart .sc-today { stroke: #f2c66d; stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out) 0.6s; }
[data-spot].revealed .sc-past { opacity: 1; }
[data-spot].revealed .sc-today { stroke-dashoffset: 0; }

/* ── Prediabetes spotlight: phone upright and whole, two floating stats ── */
.spot2 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 3rem; }
.spot2 .spot-k { text-transform: none; letter-spacing: 0; font-size: 0.82rem; font-weight: 700; }
.spot2 .spot-teasers { margin: 1.5rem 0 1.6rem; }
.spot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; }
.spot2 .spot-proof { margin: 0; font-size: 0.95rem; }
.spot2 .spot-phone { height: auto; display: flex; justify-content: center; padding: 0.5rem 0; }
.spot2 .spot-phone .device { position: relative; left: auto; top: auto; width: 270px; transform: rotate(3deg); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.7), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1); }
.spot-chip {
  position: absolute; z-index: 2; padding: 0.6rem 0.85rem; border-radius: 14px; background: #fff; color: var(--ink-2);
  font-size: 0.78rem; line-height: 1.3; white-space: nowrap; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
  animation: float 6s ease-in-out infinite;
}
.spot-chip b { display: block; font-size: 1rem; color: var(--ink); }
.spot-chip.sc1 { top: 18%; left: -4%; }
.spot-chip.sc2 { bottom: 16%; right: -4%; animation-delay: -3s; }
.spot-chart .sc-dot { fill: rgba(232, 241, 237, 0.5); }
.spot-chart .sc-dot.end { fill: #f2c66d; opacity: 0; transition: opacity 0.4s ease 2.2s; }
[data-spot].revealed .sc-dot.end { opacity: 1; }
@media (max-width: 860px) {
  .spot2 { grid-template-columns: 1fr; gap: 2rem; }
  .spot2 .spot-phone { height: auto; margin-bottom: 0; }
  .spot2 .spot-phone .device { width: 230px; }
  .spot-chip.sc1 { left: 2%; } .spot-chip.sc2 { right: 2%; }
}


/* Spotlight, trimmed: headline, one line, three pills, one button */
.spot2 { align-items: center; }
.pd .spot2 h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0.6rem 0 1rem; }
.pd .spot2 .spot-copy > p { font-size: clamp(1.08rem, 1.7vw, 1.25rem); max-width: 30rem; margin-bottom: 1.6rem; }
.pd .spot-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; }
.spot-pills li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: 99px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.9rem; font-weight: 600; color: #fff; }
.spot-pills svg { width: 15px; height: 15px; fill: none; stroke: #f2c66d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spot-cta { min-height: 56px; padding: 0 1.6rem; font-size: 1.05rem; }
.spot-cta svg { transition: transform 0.25s var(--ease-out); }
.spot-cta:hover svg { transform: translateX(3px); }

/* ── Proof: stats beside a deck of public quotes ── */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.pd .proof-copy h2 { margin: 0 0 0.9rem; }
.pd .proof-copy > p { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.proof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 1.5rem 0 1.25rem; border-radius: 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.proof-stats div { padding: 1rem 1.15rem; background: var(--surface); }
.proof-stats b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof-stats span { font-size: 0.85rem; color: var(--muted); }
.pd .proof-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--green-ink); text-decoration: none; }
.pd .proof-link:hover { text-decoration: underline; }
.qdeck { position: relative; height: 292px; }
.qd {
  position: absolute; inset: 0 0 auto; height: 250px; overflow: hidden; margin: 0; padding: 1.6rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(20, 24, 21, 0.4); transform-origin: bottom center;
  transition: transform 0.7s var(--ease-out), opacity 0.5s ease;
}
.qd[data-pos="0"] { z-index: 3; transform: none; opacity: 1; }
.qd[data-pos="1"] { z-index: 2; transform: translateY(16px) scale(0.95); opacity: 0.7; }
.qd[data-pos="2"] { z-index: 1; transform: translateY(32px) scale(0.9); opacity: 0.4; }
.qd.leaving { transform: translateX(-30px) rotate(-3deg); opacity: 0; }
.qd-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; font-size: 0.82rem; color: var(--muted); }
.qd-head b { display: block; color: var(--ink); font-size: 0.9rem; }
.qd-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fdeee6; color: #c2410c; }
.qd-av svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.qd blockquote { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.45; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.qdeck-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.75rem; font-size: 0.8rem; color: var(--muted); }
.qdeck-dots { display: flex; gap: 0.4rem; }
.qdeck-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: width 0.35s var(--ease-out), background 0.3s; }
.qdeck-dots button.on { width: 24px; background: var(--green); }
@media (max-width: 860px) {
  .proof { grid-template-columns: 1fr; gap: 2rem; }
  .qdeck { height: 282px; }
  .qd { height: 240px; }
}
@media (max-width: 420px) { .qdeck { height: 312px; } .qd { height: 270px; padding: 1.25rem; } }

/* ── Trust: one compact band ── */
.trust-band {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: 28px;
  background: radial-gradient(90% 120% at 100% 0%, #e6f0ea, transparent 60%), linear-gradient(160deg, #eef4f0, #f6f3ec);
  border: 1px solid var(--line);
}
.pd .tb-copy h2 { margin: 0 0 0.75rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pd .tb-copy p { color: var(--muted); }
.pd .tb-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.tb-grid li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(20, 24, 21, 0.05); font-size: 0.88rem; line-height: 1.4; color: var(--muted); }
.tb-grid b { display: block; margin-bottom: 0.15rem; font-size: 0.98rem; color: var(--ink); }
.tb-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--sage); color: var(--green-ink); }
.tb-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .trust-band { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 480px) {
  .pd .tb-grid { gap: 0.5rem; }
  .tb-grid li { flex-direction: column; gap: 0.5rem; padding: 0.85rem; font-size: 0.8rem; }
  .tb-grid b { font-size: 0.9rem; }
}

/* ── FAQ: heading on the left, questions on the right ── */
.faq2 { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 3.5rem; align-items: start; }
.faq-side { position: sticky; top: 7rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.pd .faq-side h2 { margin: 0 0 0.4rem; }
.pd .faq-side p { color: var(--muted); margin-bottom: 0.4rem; }
.faq2 .faq { max-width: none; margin: 0; }
@media (max-width: 860px) { .faq2 { grid-template-columns: 1fr; gap: 1.5rem; } .faq-side { position: static; } }

/* ── Closing CTA: setup steps, pricing line and a QR code ── */
.cta2-card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: 28px; color: #e8f1ed;
  background: radial-gradient(120% 90% at 0% 0%, #1f7d6d 0%, transparent 55%), radial-gradient(60% 80% at 100% 100%, rgba(242, 198, 109, 0.22), transparent 60%), linear-gradient(140deg, #0e3631 0%, #17675a 100%);
}
.pd .cta2-card h2 { margin: 0 0 0.6rem; color: #fff; }
.pd .cta2 .cta2-lede { margin: 0 0 1.25rem; max-width: none; font-size: 1.12rem; color: rgba(232, 241, 237, 0.85); }
.pd .cta2-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.6rem; padding: 0; }
.cta2-steps li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem 0.45rem 0.45rem; border-radius: 99px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.9rem; font-weight: 600; color: #fff; }
.cta2-steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f2c66d; color: #0e3631; font-size: 0.78rem; font-weight: 800; }
.cta2 .btn-row { justify-content: flex-start; }
.qr-tile { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 1.1rem 1.1rem 0.9rem; border-radius: 22px; background: #fff; color: var(--muted); text-align: center; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.qr-img { width: 148px; height: 148px; margin-bottom: 0.5rem; }
.qr-img img, .qr-img canvas { width: 100% !important; height: 100% !important; }
.qr-tile b { color: var(--ink); font-size: 0.95rem; }
.qr-tile small { font-size: 0.78rem; }
@media (max-width: 860px) { .cta2-card { grid-template-columns: 1fr; } .cta2-qr { display: none; } }


/* ── How it works page ── */
.hiw .hiw-hero { padding-bottom: 2.5rem; }
.hiw .hiw-hero .hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #f4efe5 0%, var(--bg) 80%); }
.hiw .hero-bg .aurora { left: 50%; top: 30%; width: 900px; height: 420px; margin-left: -450px; opacity: 0.45; }
.hiw .hiw-hero h1 { max-width: 15ch; margin-left: auto; margin-right: auto; }

/* Four-step overview: a line draws across, each step pops in turn */
.pd .hiw-flow { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1020px; margin: 2.75rem auto 0; padding: 0; text-align: left; }
.hiw-flow::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 31px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #4f5fcf, #e2711d, #1f9d63, #17675a); transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-out) 0.2s;
}
.hiw-flow.revealed::before { transform: scaleX(1); }
.hiw-flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.25rem; padding: 0 0.5rem; }
.hf-ico {
  position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 0.6rem;
  background: #fff; color: var(--c); box-shadow: 0 0 0 6px var(--bg), 0 14px 30px -14px color-mix(in srgb, var(--c) 60%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--c) 25%, #fff);
  transform: scale(0.6); opacity: 0; transition: transform 0.6s var(--ease-spring), opacity 0.4s ease;
}
.hf-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hiw-flow.revealed .hf-ico { transform: none; opacity: 1; }
.hiw-flow li:nth-child(2) .hf-ico { transition-delay: 0.35s; } .hiw-flow li:nth-child(3) .hf-ico { transition-delay: 0.7s; } .hiw-flow li:nth-child(4) .hf-ico { transition-delay: 1.05s; }
.hf-n { font-size: 0.75rem; font-weight: 700; color: var(--c); }
.hiw-flow b { font-size: 1.2rem; color: var(--ink); }
.hf-d { font-size: 0.9rem; line-height: 1.4; color: var(--muted); max-width: 15rem; }
.hiw-flow[data-reveal] { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .pd .hiw-flow { grid-template-columns: 1fr 1fr; gap: 1.5rem 0.75rem; }
  .hiw-flow::before { display: none; }
}

/* What you need */
.need-grid { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 1rem; }
.need { padding: 1.5rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.pd .need h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.need .ticks { margin-top: 0.75rem; }
.need .ticks.no svg { color: var(--no); background: var(--no-soft); padding: 5px; }
.need-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; background: linear-gradient(160deg, #eef4f0, #f6f3ec); }
.pd .need-cta p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.need-cta .btn { margin-top: auto; }
@media (max-width: 900px) { .need-grid { grid-template-columns: 1fr 1fr; } .need-cta { grid-column: 1 / -1; } }
@media (max-width: 600px) { .need-grid { grid-template-columns: 1fr; } }
.hiw .feat { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* First month: a timeline whose rail fills as it arrives */
.pd .weeks { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 0; }
.weeks::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 3px; border-radius: 3px; background: var(--line); }
.weeks::after {
  content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #4f5fcf, #e2711d, #17675a, #1f9d63); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) 0.2s;
}
.weeks.revealed::after { transform: scaleX(1); }
.weeks[data-reveal] { opacity: 1; transform: none; }
.weeks li { position: relative; padding-top: 2.25rem; }
.wk-dot { position: absolute; top: 3px; left: 0; z-index: 1; width: 19px; height: 19px; border-radius: 50%; background: var(--bg-tint); border: 3px solid var(--line-strong); transition: background 0.3s, border-color 0.3s; }
.weeks.revealed .wk-dot { background: var(--c); border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.weeks li:nth-child(1) .wk-dot { transition-delay: 0.3s; } .weeks li:nth-child(2) .wk-dot { transition-delay: 0.7s; }
.weeks li:nth-child(3) .wk-dot { transition-delay: 1.1s; } .weeks li:nth-child(4) .wk-dot { transition-delay: 1.5s; }
.wk-when { display: inline-block; margin-bottom: 0.5rem; padding: 0.2rem 0.6rem; border-radius: 99px; font-size: 0.78rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.weeks b { display: block; font-size: 1.12rem; color: var(--ink); margin-bottom: 0.3rem; }
.pd .weeks p { margin: 0; font-size: 0.94rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) {
  .pd .weeks { grid-template-columns: 1fr; gap: 1.25rem; padding-left: 2rem; }
  .weeks::before, .weeks::after { left: 8px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform-origin: top; }
  .weeks::after { transform: scaleY(0); }
  .weeks.revealed::after { transform: scaleY(1); }
  .weeks li { padding-top: 0; }
  .wk-dot { left: -2rem; top: 2px; }
}

/* What it doesn't do: one quiet row */
.not-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1rem; padding: 1rem 1.25rem; border-radius: 18px; border: 1px dashed var(--line-strong); }
.not-row > span { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.pd .not-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.not-row li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-2); }
.not-row li svg { width: 12px; height: 12px; fill: none; stroke: var(--no); stroke-width: 2.6; stroke-linecap: round; }


/* Product Hunt badge under the hero */
.home .hero-badge { display: inline-flex; margin-top: 1.4rem; border-radius: 10px; transition: transform 0.25s var(--ease-out); }
.home .hero-badge:hover { transform: translateY(-2px); }
.home .hero-badge img { display: block; width: 220px; height: auto; }

/* ── Connect web: a ring that takes the picked colour, clearer links, a tagged panel ── */
.home #connect .section-head { max-width: 720px; }
.home .web-lines .link { stroke: color-mix(in srgb, var(--c) 30%, var(--line-strong)); stroke-width: 1.6; stroke-dasharray: none; opacity: 0.7; animation: none; }
.home .web.has-on .link:not(.on) { opacity: 0.35; }
.home .web-lines .link.on { stroke-width: 3; stroke-dasharray: 7 7; opacity: 1; animation: flow 0.9s linear infinite; }
.home .hub { background: radial-gradient(circle at 50% 30%, #fff 0%, #fbfaf7 70%); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--active) 45%, rgba(20, 24, 21, 0.3)), 0 0 0 10px color-mix(in srgb, var(--active) 6%, transparent); }
.hub-ring {
  position: absolute; inset: -5px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, var(--active), color-mix(in srgb, var(--active) 10%, transparent) 55%, var(--active));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: aurora 6s linear infinite;
}
.home .hub-you { text-transform: none; letter-spacing: 0; font-size: 0.85rem; font-weight: 700; color: var(--active); }
.home .hub-k { font-size: 0.8rem; font-weight: 600; }
.home .node { background: #fff; }
.wp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.wp-tag:empty { display: none; }
.wp-tag { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.75rem 0.25rem 0.25rem; border-radius: 99px; background: color-mix(in srgb, var(--active) 9%, #fff); font-size: 0.85rem; font-weight: 700; color: var(--active); }
.wp-tag .n-ico { width: 26px; height: 26px; background: var(--active); color: #fff; }
.wp-tag .n-ico svg { width: 14px; height: 14px; }
.home .wp-k { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.home .web-panel { border-top: 0; border-radius: 24px; box-shadow: 0 1px 2px rgba(20, 24, 21, 0.05), 0 30px 60px -36px color-mix(in srgb, var(--active) 45%, rgba(20, 24, 21, 0.35)); }
.home .web-panel::before { content: ''; position: absolute; left: 1.8rem; right: 1.8rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--active); transition: background 0.4s ease; }
.home .web-panel { position: relative; }
.wp-dots { display: flex; gap: 0.35rem; }
.wp-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: width 0.35s var(--ease-out), background 0.3s; }
.wp-dots button.on { width: 22px; background: var(--active); }


/* ── Privacy: one dark card with an embossed lock, like Bevel's ── */
.priv-card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; min-height: 440px;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem); border-radius: 28px; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%), linear-gradient(150deg, #0e3631 0%, #0b1f1b 60%, #0a1714 100%);
  box-shadow: 0 30px 80px -30px rgba(10, 23, 20, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.priv-card::before, .priv-card::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.priv-card::before { width: 340px; height: 340px; top: -160px; left: -140px; background: radial-gradient(circle, rgba(31, 125, 109, 0.5), transparent 70%); }
.priv-card::after { width: 380px; height: 380px; bottom: -190px; right: -150px; background: radial-gradient(circle, rgba(242, 198, 109, 0.28), transparent 70%); }
.priv-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
}
.priv-lock { position: absolute; left: 50%; top: 50%; height: 88%; max-height: 400px; width: auto; transform: translate(-50%, -50%); z-index: -1; opacity: 0.55; }
.priv-shackle { transform: translateY(-26px); transition: transform 0.9s var(--ease-spring) 0.35s; }
.priv-card.revealed .priv-shackle { transform: none; }
.priv-copy { max-width: 800px; }
.pd .priv-copy h2 { margin: 0 0 0.9rem; color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.035em; }
.pd .priv-copy p { margin: 0 auto; max-width: 34rem; font-size: clamp(1.02rem, 1.8vw, 1.18rem); line-height: 1.6; color: rgba(232, 241, 237, 0.8); }
.pd .priv-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 1.6rem; padding: 0; }
.priv-pills li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: 99px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9rem; font-weight: 600; color: #fff; backdrop-filter: blur(6px); }
.priv-pills svg { width: 15px; height: 15px; fill: none; stroke: #f2c66d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd .priv-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: #f2c66d; text-decoration: none; }
.pd .priv-link:hover { text-decoration: underline; }
@media (max-width: 600px) { .priv-card { min-height: 0; } .priv-lock { opacity: 0.3; height: 70%; } .priv-pills li { font-size: 0.82rem; } }

/* ── Reduced motion: everything in its final state, nothing loops ── */
@media (prefers-reduced-motion: reduce) {
  .home .hero-bg .aurora, .c-dots i, .pw-days i.today, .iw-map line.on, .iw-n.on .halo { animation: none; }
  .home .marquee { -webkit-mask-image: none; mask-image: none; }
  .home .marquee-track { animation: none; width: auto; }
  .home .marquee .works-list { flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
  .home .marquee .works-list[aria-hidden] { display: none; }
  .feat-phone .device > [data-shot], .ql-menu li, .feat-chip, .c-msg, .c-card, .c-bar i::after, .pw i, .pw-bar i, .pw-note, .iw-card > *, .bw-hero img, .hw-cups span, .spot-chart path, .qd { transition: none; }
  .chat-pause { display: none; }
  .spot-chip { animation: none; }
  .c-spark polyline, .c-spark circle { transition: none; stroke-dashoffset: 0; opacity: 1; }
  .priv-shackle { transition: none; transform: none; }
  .hub-ring, .home .web-lines .link.on { animation: none; }
  .ql-menu li { opacity: 1; transform: none; }
  .hiw-flow::before, .weeks::after, .hf-ico, .wk-dot { transition: none; }
}

/* How it works: the Log menu fills the foot of the phone, so its chip sits near the top */
.hiw .feat-chip[data-chip="1"] { top: 8%; bottom: auto; }
.pd .spot2 h2 .accent { display: block; }
.pd .coach2 h2 .accent { display: block; }
/* Newest messages sit near the input, like a real chat */
.coach2 .c-body > :first-child { margin-top: auto; }

/* Floating AI insight cards: each sits beside the part of the screen it
   explains (--y), alternating sides and overlapping the frame a little */
.feat-chip, .feat-chip:is([data-chip="1"], [data-chip="3"], [data-chip="5"]) { top: var(--y, 20%); bottom: auto; }
.hiw .feat-chip[data-chip="1"] { top: var(--y, 8%); }
.feat-chip.ins { display: block; width: 250px; padding: 0.8rem 0.95rem 0.85rem 1.05rem; white-space: normal; border-radius: 18px; background: #fff; border: 1px solid #eef0ee; }
.feat-chip.ins::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.ins-k { display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.3rem; font-size: 0.7rem; font-weight: 700; color: var(--c); }
.ins-k svg { width: 12px; height: 12px; fill: currentColor; }
.feat-chip.ins b { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; line-height: 1.25; letter-spacing: -0.01em; }
.ins-t { display: block; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 1180px) { .feat-chip.ins { width: 220px; } }
.feat-chip.ins { right: 95%; }
.feat-chip.ins:is([data-chip="1"], [data-chip="3"], [data-chip="5"]) { right: auto; left: 95%; }
@media (max-width: 1024px) { .feat-chip.ins { right: 90%; } .feat-chip.ins:is([data-chip="1"], [data-chip="3"], [data-chip="5"]) { left: 90%; } }

/* ── Coach: cards scroll behind one pinned phone (overrides the stacking version) ── */
.stack { --ch: min(720px, calc(100vh - 7.5rem)); position: relative; display: block; padding: 0; }
.stack-cards { display: grid; gap: 1.5rem; }
.stack-card { position: relative; top: auto; height: var(--ch); transform: none; will-change: auto; box-shadow: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stack-card::after { display: none; }
.stack-rail { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.stack-sticky { position: sticky; top: 5.75rem; height: var(--ch); }
.stack-sticky .sc-device { position: absolute; inset: 0 0 0 50%; height: auto; }
.stack-sticky .sc-phone { right: auto; left: 50%; top: -8%; height: calc(var(--ch) * 1.16); transform: translateX(-46%); }
.sc-panes { position: relative; flex: 1; min-height: 0; }
.sc-pane { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translateY(18px); transition: opacity 0.45s ease, transform 0.6s var(--ease-out); }
.sc-pane.on { opacity: 1; transform: none; }
.sc-pane .sc-body { flex: 1; min-height: 0; }
.stack-sticky .sc-float { top: calc(-8% + 96px); right: auto; left: calc(50% + 80px); }
.stack-sticky .sc-float:not(.vis) { opacity: 0; transform: translateY(14px) scale(0.92); }
@media (max-width: 860px) {
  .stack { --ch: min(680px, calc(100vh - 6rem)); }
  .stack-cards { gap: 1rem; }
  .stack-card { grid-template-columns: 1fr; align-items: start; }
  .stack-sticky { top: 5rem; }
  .stack-sticky .sc-device { inset: 9.5rem 0 0 0; }
  .stack-sticky .sc-phone { left: 50%; top: 0; height: calc(var(--ch) - 9rem); transform: translateX(-50%); }
  .stack-sticky .sc-float { top: 62px; left: auto; right: 5%; }
}
@media (prefers-reduced-motion: reduce) { .sc-pane { transition: none; } }

/* Coach phone, cleaner: fits the window, question and nudge sit in the chat */
.stack-sticky .sc-phone { top: 0; height: var(--ch); transform: translateX(-46%); }
.stack-sticky .sc-float { display: none; }
.sc-pane { overflow: hidden; }
.sc-sheet:empty { display: none; }
.sc-pane .sc-sheet { padding-bottom: 22px; }
.sc-me { align-self: flex-end; max-width: 82%; padding: 10px 14px; border-radius: 20px 20px 6px 20px; background: var(--c); color: #fff; font-size: 14.5px; line-height: 1.4; }
.sc-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(20, 24, 40, 0.06); font-size: 13px; line-height: 1.35; color: #4a4e60; }
.sc-note b { display: block; color: #1f2230; font-size: 14px; }
.sc-note small { display: block; font-size: 11px; color: #9a9cb0; }
.sc-think ul { overflow: hidden; max-height: 240px; transition: max-height 0.45s var(--ease-out), opacity 0.3s ease; }
.sc-think.folded ul { max-height: 0; opacity: 0; }
.sc-think.folded .th-k { margin-bottom: 0; }
.sc-think.folded .th-k svg { transform: rotate(-90deg); }
.sc-gap { display: none; }
@media (max-width: 860px) { .stack-sticky .sc-phone { top: 0; height: calc(var(--ch) - 9.5rem); transform: translateX(-50%); } }

/* ── Coach phone, closer to a real iPhone (and to Bevel's): big, thin black
   bezel, runs past the card edges; sheets cover the lower part over a dim ── */
.stack-card { overflow: visible; }
.stack-sticky .sc-phone {
  top: -7%; height: calc(var(--ch) * 1.14); padding: 7px; border-radius: 62px; transform: translateX(-42%);
  background: #111214; box-shadow: 0 0 0 1.5px #3a3c40, 0 50px 90px -40px rgba(10, 20, 40, 0.55);
}
.stack-sticky .sc-phone::before, .stack-sticky .sc-phone::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #3a3c40; }
.stack-sticky .sc-phone::before { left: -3.5px; top: 20%; height: 9%; }
.stack-sticky .sc-phone::after { right: -3.5px; top: 25%; height: 12%; }
.stack-sticky .sc-screen { border-radius: 55px; background: #f6f6f9; }
.stack-sticky .sc-status { padding: 18px 30px 8px 36px; font-size: 15px; }
.stack-sticky .sc-island { top: 11px; width: 31%; height: 30px; }
.stack-sticky .sc-body { padding: 22px 22px 14px; font-size: 15px; }
.stack-sticky .sc-input { margin: 0 16px 22px; padding: 7px 7px 7px 18px; font-size: 14px; }
/* sheet: covers the lower two thirds; the chat above dims */
.sc-pane .sc-sheet { top: auto; max-height: 74%; overflow: hidden; padding: 10px 20px 22px; border-radius: 34px 34px 0 0; }
.sc-pane::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(20, 22, 30, 0.32); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.sc-pane:has(.sc-sheet.in)::after { opacity: 1; }
.sh-rows div { grid-template-columns: minmax(0, 1fr) auto auto 14px; gap: 8px; padding: 9px 2px; font-size: 13px; }
.sh-rows div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-rows b { white-space: nowrap; }
.sh-head b { font-size: 16px; }
@media (max-width: 860px) {
  .stack-sticky .sc-phone { top: 0; height: calc(var(--ch) - 9.5rem); transform: translateX(-50%); border-radius: 50px; padding: 6px; }
  .stack-sticky .sc-screen { border-radius: 44px; }
  .stack-sticky .sc-status { padding: 14px 24px 6px 30px; font-size: 13px; }
  .stack-sticky .sc-island { height: 26px; }
}

/* Start below the navbar; run past the bottom of the card instead */
/* Height and width from the same value, so the iPhone keeps its 1206:2622 ratio */
@media (min-width: 861px) {
  .stack-sticky .sc-phone { --ph: min(calc(100vh - 7rem), calc(var(--ch) * 1.14)); top: 0.5rem; height: var(--ph); width: calc(var(--ph) * 1206 / 2622); aspect-ratio: auto; max-height: none; }
}

/* Labs answer in the app's Blood work layout, with an AI summary card */
.sc-pane .sc-sheet:has(.bw-head) { max-height: 84%; background: #f7f5fd; padding: 10px 14px 16px; }
.bw-head { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; margin-bottom: 10px; }
.bw-head b { text-align: center; font-size: 15px; }
.bw-head .sh-x { width: 28px; height: 28px; background: none; font-size: 26px; color: #1f2230; }
.bw-chips { display: flex; gap: 6px; margin-bottom: 10px; overflow: hidden; white-space: nowrap; }
.bw-chips span { padding: 5px 10px; border-radius: 99px; border: 1px solid #e3e0f3; background: #fff; font-size: 11px; color: #4a4e60; }
.bw-chips .on { border-color: #6466f1; color: #4f46e5; background: #eef0ff; font-weight: 700; }
.bw-ai { position: relative; margin-bottom: 10px; padding: 11px 12px 11px 15px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(31, 34, 48, 0.06); }
.bw-ai::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #6466f1; }
.bw-ai-k { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: #6466f1; }
.bw-ai-k svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.bw-ai b { display: block; margin: 4px 0 3px; font-size: 12.5px; line-height: 1.3; }
.bw-ai p { margin: 0 0 8px; font-size: 11px; line-height: 1.4; color: #6b6f80; }
.bw-ai-btn { display: block; padding: 6px; border-radius: 10px; border: 1px solid #d9d6f7; text-align: center; font-size: 11px; font-weight: 600; color: #5b5ef0; }
.bw-trend { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin-bottom: 10px; padding: 11px 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(31, 34, 48, 0.06); }
.bw-trend b { display: block; font-size: 12.5px; } .bw-trend small { font-size: 10px; color: #8a8d9c; }
.bw-trend em { font-style: normal; font-weight: 800; font-size: 14px; }
.bw-trend svg { grid-column: 1 / -1; width: 100%; height: auto; margin-top: 4px; }
.bw-line { fill: none; stroke: #6466f1; stroke-width: 2; stroke-dasharray: 1; animation: scDraw 1s var(--ease-out) both; }
.bw-trend circle { fill: #6466f1; }
.bw-ax { grid-column: 1 / -1; display: flex; justify-content: space-between; } .bw-ax i { font-style: normal; font-size: 9.5px; color: #9a9cb0; }
.bw-visit { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px 14px 0 0; background: #fff; }
.bw-date { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; align-content: center; background: #eef0ff; color: #4f46e5; font-weight: 800; font-size: 13px; line-height: 1; }
.bw-date small { font-size: 7.5px; font-weight: 700; }
.bw-visit b { display: block; font-size: 12.5px; } .bw-visit small { font-size: 10px; color: #8a8d9c; }
.bw-val { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 8px 12px 10px; border-top: 1px solid #f0eef6; border-radius: 0 0 14px 14px; background: #fff; }
.bw-val > small:first-child { grid-column: 1 / -1; font-size: 10px; color: #8a8d9c; }
.bw-val b { font-size: 14px; }
.bw-flag { justify-self: start; padding: 2px 7px; border-radius: 6px; background: #fff4e5; color: #b45309; font-size: 10px; font-weight: 700; }
.bw-was { grid-column: 1 / -1; font-size: 10px; color: #8a8d9c; }
@media (max-width: 860px) { .stack-sticky .sc-phone { --ph: calc(var(--ch) - 9.5rem); height: var(--ph); width: calc(var(--ph) * 1206 / 2622); aspect-ratio: auto; } }

/* Labs sheet: summary above, the five markers with arrows, a takeaway below */
.sc-pane .sc-sheet:has(.bw-head) { max-height: 76%; background: #fff; padding: 10px 18px 18px; }
.bw-sum { margin: 2px 0 10px; padding: 10px 12px; border-radius: 14px; background: #f3f2fe; font-size: 12.5px; line-height: 1.4; color: #3b3f52; }
.bw-sum .bw-ai-k { margin-bottom: 3px; }
.bw-sum b { color: #3f42d6; }
.sc-pane .sh-sub { margin: 0 0 4px; font-size: 11.5px; }
.sh-rows i.down, .sh-rows i.up { color: #1f9d63; }
.sh-foot { align-items: flex-start; line-height: 1.4; }
.sh-foot svg { flex: none; margin-top: 1px; }

/* The screen is laid out at one design size and scaled to the phone, so it
   looks the same at every window size (--k is set by home.js) */
.stack-sticky .sc-screen { width: 348px; height: 774px; transform: scale(var(--k, 1)); transform-origin: top left; }

/* Six areas: tighter steps so there is no blank stretch between them; the
   last one leaves room for the pinned phone to finish */
@media (min-width: 901px) {
  .feat-step { min-height: 56vh; padding: 1.5rem 0; }
  .feat-step:last-child { min-height: 68vh; }
}

/* ── A real-looking iPhone 15 Pro: titanium band, black bezel, true radii ── */
.stack-sticky .sc-phone {
  padding: 8px; border: 3px solid transparent; border-radius: calc(var(--ph) * 0.072);
  background:
    linear-gradient(#08090a, #08090a) padding-box,
    linear-gradient(150deg, #e4e6ea 0%, #8d9198 18%, #d6d9de 34%, #6f737a 52%, #c3c6cc 70%, #7a7e85 86%, #d9dce0 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 0 rgba(255, 255, 255, 0.4), 0 40px 70px -30px rgba(10, 20, 40, 0.5), 0 18px 30px -18px rgba(10, 20, 40, 0.35);
}
.stack-sticky .sc-phone::before, .stack-sticky .sc-phone::after { width: 4px; border-radius: 2px; background: linear-gradient(90deg, #6f737a, #d6d9de 45%, #8d9198); box-shadow: none; }
.stack-sticky .sc-phone::before { left: -6px; top: 17%; height: 4.5%;
  box-shadow: 0 calc(var(--ph) * 0.075) 0 0 #a9adb3, 0 calc(var(--ph) * 0.155) 0 0 #a9adb3; }
.stack-sticky .sc-phone::after { right: -6px; top: 26%; height: 11%; }
.stack-sticky .sc-screen { border-radius: 46px; background: #f6f6f8; }
.stack-sticky .sc-status { height: 54px; padding: 0 28px 0 34px; align-items: center; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.stack-sticky .sc-island { top: 11px; width: 112px; height: 33px; border-radius: 20px; }
.stack-sticky .sc-sys { gap: 6px; } .stack-sticky .sc-sys svg { height: 12px; }
.stack-sticky .sc-screen { height: 784px; }

/* 7-night sleep bars, last night highlighted */
.sn-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 92px; }
.sn-bars > div { display: grid; grid-template-rows: 14px 1fr 14px; height: 100%; text-align: center; }
.sn-bars i { align-self: end; justify-self: center; width: 70%; height: var(--h); border-radius: 6px 6px 3px 3px; background: #dcdbe8; transform-origin: bottom; animation: snGrow 0.8s var(--ease-out) both; }
.sn-bars .last i { background: var(--c); }
.sn-bars em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--c); }
.sn-bars small { font-size: 10.5px; color: #9a9cb0; }
@keyframes snGrow { from { transform: scaleY(0); } }

/* Phones: static cards, each with its own phone (Bevel's mobile layout) */
.stack-card > .sc-mphone { display: none; }
@media (max-width: 860px) {
  .stack .stack-rail { display: none; }
  .stack .stack-card { height: auto; overflow: hidden; display: block; }
  .stack .sc-copy { padding: 1.75rem 1.4rem 1.5rem; }
  .stack-card > .sc-mphone {
    display: block; --ph: min(660px, 150vw); position: relative; left: auto; right: auto; top: auto; transform: none;
    height: var(--ph); width: calc(var(--ph) * 1206 / 2622); margin: 0 auto -3.5rem;
    padding: 7px; border: 3px solid transparent; border-radius: calc(var(--ph) * 0.072);
    background: linear-gradient(#08090a, #08090a) padding-box, linear-gradient(150deg, #e4e6ea 0%, #8d9198 18%, #d6d9de 34%, #6f737a 52%, #c3c6cc 70%, #7a7e85 86%, #d9dce0 100%) border-box;
    box-shadow: 0 30px 50px -26px rgba(10, 20, 40, 0.5);
  }
  .sc-mphone .sc-screen { width: 348px; height: 784px; transform: scale(var(--k, 1)); transform-origin: top left; border-radius: 46px; background: #f6f6f8; }
  .sc-mphone .sc-status { height: 54px; padding: 0 28px 0 34px; align-items: center; font-size: 16px; font-weight: 600; }
  .sc-mphone .sc-island { top: 11px; width: 112px; height: 33px; }
  .sc-mphone .sc-input { margin: 0 16px 22px; padding: 7px 7px 7px 18px; font-size: 14px; }
  .sc-mphone .sc-body { padding: 22px 22px 14px; font-size: 15px; }
}

/* Hero values coloured by state, with a small status pill */
.home .hero-pd [data-state="good"] { --sc: #1f9d63; }
.home .hero-pd [data-state="watch"] { --sc: #c27c0e; }
.home .hero-pd [data-state="low"] { --sc: #d14343; }
.home .hero-pd span[data-st] { color: var(--sc, inherit); transition: color 0.5s ease; }
.home .hero-pd .chip b span[data-st] { color: var(--sc, var(--ink)); }
.hst { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.45rem; border-radius: 99px; vertical-align: 0.15em; font-style: normal; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--sc); background: color-mix(in srgb, var(--sc) 13%, #fff); transition: color 0.5s ease, background 0.5s ease; }
.home .hc-rec[data-state] .ico { background: var(--sc) !important; transition: background 0.5s ease; }
.home .hc-rec[data-state] b { color: var(--sc); transition: color 0.5s ease; }

/* HRV chip, on the left between sleep and glucose */
.home .hero-center .chip.c5 { top: 300px; left: calc(50% - 500px); animation-delay: -5s; }
@media (max-width: 1100px) { .home .hero-center .chip.c5 { left: 0; } }
@media (max-width: 960px) { .home .hero-center .chip.c5 { left: 0; } }
@media (max-width: 600px) { .home .hero-center .chip.c5 { display: none; } }

/* ── Hero over the blue light video: dark at the top, fading into the page ── */
.hero-video { position: absolute; inset: 0 0 auto; height: 78%; background: #02060f; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%); }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.hero-video video.on { opacity: 1; }
.hero-video::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 35%, rgba(2, 6, 15, 0.15), rgba(2, 6, 15, 0.55)); }
.hero-dark .hero-bg .grid, .hero-dark .hero-bg .aurora { display: none; }
.pd.home .hero-dark h1 { color: #fff; }
.pd.home .hero-dark h1 .accent { color: #8ec5ff; }
.pd.home .hero-dark .lede { color: rgba(226, 236, 255, 0.82); }
.pd .hero-dark .hero-note { color: rgba(226, 236, 255, 0.7); }
.hero-dark .hero-note i { background: rgba(226, 236, 255, 0.35); }
.pd .hero-dark .btn-primary { background: #fff; color: #0b1220; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.6); }
.pd .hero-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.06); }
.pd .hero-dark .btn-ghost:hover { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-video video.hv-a { opacity: 1; } }
@media (max-width: 600px) { .hero-video { height: 72%; } }

/* Calories chip, on the right between steps and the suggestion */
.home .hero-center .chip.c6 { top: auto; bottom: 200px; right: calc(50% - 500px); left: auto; animation-delay: -2.5s; }
@media (max-width: 1100px) { .home .hero-center .chip.c6 { right: 0; } }
@media (max-width: 600px) { .home .hero-center .chip.c6 { display: none; } }

/* Prediabetes hero: a small label over the dark video */
.pd .hero-dark .hero-eyebrow { justify-content: center; margin-bottom: 1rem; color: #8ec5ff; }

/* Coach phones: the same slim bezel as every other phone on the site */
.stack-sticky .sc-phone, .stack-card > .sc-mphone { padding: 4px; border-width: 2.5px; }
.stack-sticky .sc-screen, .sc-mphone .sc-screen { height: 773px; border-radius: 48px; }
