/* Home-only roles follow the active global theme primitives. */
.home-v2 { --p-page: var(--gs-neutral-0); --p-ink: var(--gs-ink-900); --p-muted: var(--gs-ink-600); --p-action: var(--gs-forest-700); --p-action-hover: var(--gs-forest-600); --p-on-action: var(--gs-neutral-0); --p-border: var(--gs-line-200); --p-border-strong: var(--gs-forest-400); --p-soft: var(--gs-forest-50); --p-soft-strong: var(--gs-forest-100); --p-accent: var(--gs-clay-600); color: var(--p-ink); background: var(--p-page); font-family: var(--gs-font-body); }
.home-v2 :where(h1,h2,h3,p) { margin-top: 0; }
.home-v2 :where(h1,h2,h3) { font-family: var(--gs-font-heading); font-weight: var(--gs-weight-bold); letter-spacing: var(--gs-tracking-heading); line-height: var(--gs-leading-tight); }
.home-v2 a { color: inherit; }
.home-v2 :focus-visible { outline: var(--gs-focus-width) solid var(--p-ink); outline-offset: var(--gs-focus-offset); }
* { box-sizing: border-box; }
html { background: var(--gs-neutral-0); }
body.h-page { margin: 0; background: var(--gs-neutral-0); color: var(--p-ink); font-family: var(--gs-font-body); font-size: var(--gs-text-md); }
.h-page :where(h1,h2,h3,p) { margin-top: 0; }
.h-page :where(h1,h2,h3) { font-family: var(--gs-font-heading); letter-spacing: var(--gs-tracking-heading); line-height: var(--gs-leading-tight); }
.h-page :focus-visible { outline: var(--gs-focus-width) solid var(--p-ink); outline-offset: var(--gs-focus-offset); }
.h-header { display: flex; justify-content: space-between; align-items: center; gap: var(--gs-space-4); max-width: var(--gs-content-width); min-height: 5rem; margin: 0 auto; padding: var(--gs-space-4) var(--gs-gutter); border-bottom: var(--gs-border-width) solid var(--p-border); }
.h-header .gs-wordmark { color: var(--p-ink); text-decoration: none; }
.h-header .gs-wordmark span { color: var(--p-accent); }
.h-header__label { color: var(--p-muted); font-size: var(--gs-text-sm); }
.h-hero { margin: var(--gs-space-3) var(--gs-gutter); border: var(--gs-border-width) solid var(--p-border); border-radius: var(--gs-radius-card); overflow: hidden; background: var(--gs-neutral-0); }
.h-hero__inner { max-width: var(--gs-content-width); margin: 0 auto; padding: clamp(var(--gs-space-12), 6vw, var(--gs-space-16)) var(--gs-gutter); min-height: 45rem; display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(var(--gs-space-8), 3vw, var(--gs-space-12)); align-items: center; }
.h-copy { max-width: 36rem; position: relative; z-index: 1; }
.h-copy h1 { margin-bottom: var(--gs-space-6); font-size: clamp(2.8rem, 4.1vw, 4.5rem); font-weight: var(--gs-weight-bold); letter-spacing: var(--gs-tracking-display); hyphens: none; word-break: normal; overflow-wrap: normal; }
.h-lead { max-width: 34rem; margin-bottom: var(--gs-space-8); color: var(--p-muted); font-size: var(--gs-text-lg); line-height: 1.58; }
.h-cta.gs-button { display: inline-flex; align-items: center; gap: var(--gs-space-6); min-height: var(--gs-control-height); padding-inline: var(--gs-space-6); background: var(--p-action); border-color: var(--p-action); color: var(--p-on-action); text-decoration: none; }
.h-cta.gs-button:hover { background: var(--p-action-hover); border-color: var(--p-action-hover); }
.h-disclosure { margin: var(--gs-space-3) 0 0; color: var(--p-muted); font-size: var(--gs-text-sm); }
.h-disclosure small { font-size: inherit; }
.h-visual { min-width: 0; max-width: 43rem; width: 100%; justify-self: center; }
.h-visual__head { display: flex; justify-content: space-between; gap: var(--gs-space-3); margin-bottom: var(--gs-space-5); color: var(--p-muted); font-size: var(--gs-text-xs); line-height: 1.3; letter-spacing: var(--gs-tracking-eyebrow); font-weight: var(--gs-weight-bold); text-transform: uppercase; }
.h-visual__head span:last-child { text-align: right; }
.h-deck { position: relative; min-height: 34.5rem; isolation: isolate; }
.h-card { position: absolute; width: 13.5rem; min-width: 0; padding: var(--gs-space-4); border: var(--gs-border-width) solid var(--p-border-strong); border-radius: var(--gs-radius-card); background: var(--gs-neutral-0); box-shadow: var(--gs-space-2) var(--gs-space-2) 0 var(--p-soft-strong); text-align: left; overflow: hidden; }
.h-card h2 { margin: var(--gs-space-4) 0 var(--gs-space-2); font-size: var(--gs-text-md); }
.h-card p { margin: 0; color: var(--p-muted); font-size: var(--gs-text-sm); line-height: 1.4; }
.h-card__kind { display: block; color: var(--p-muted); font-size: var(--gs-text-xs); line-height: 1.2; letter-spacing: var(--gs-tracking-eyebrow); font-weight: var(--gs-weight-bold); }
.h-card--routine { left: 0; top: 6.5rem; z-index: 1; transform: rotate(-8deg); }
.h-routine__art { display: grid; place-items: center; height: 9.5rem; margin-top: var(--gs-space-4); background: var(--p-soft); border-radius: var(--gs-radius-card); overflow: hidden; }
.h-routine__art img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.h-routine__progress { display: block; height: .4rem; margin-top: var(--gs-space-5); border-radius: var(--gs-radius-control); background: var(--p-soft-strong); }
.h-routine__progress span { display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--p-action); }
.h-card--check { left: 15%; top: 1rem; z-index: 2; transform: rotate(-4deg); }
.h-card .h-check__tag { display: inline-block; margin: var(--gs-space-3) 0; padding: var(--gs-space-1) var(--gs-space-3); border: var(--gs-border-width) solid var(--p-border-strong); border-radius: var(--gs-radius-control); color: var(--p-ink); }
.h-check__score { display: flex; justify-content: space-between; align-items: end; gap: var(--gs-space-2); font-size: var(--gs-text-sm); }
.h-check__score strong { font-family: var(--gs-font-heading); font-size: var(--gs-text-2xl); line-height: 1; }
.h-check__score small { font-size: var(--gs-text-xs); }
.h-check__bar { height: .5rem; margin-top: var(--gs-space-3); background: var(--p-soft-strong); border-radius: var(--gs-radius-control); }
.h-check__bar span { display: block; height: 100%; width: 50%; border-radius: inherit; background: var(--p-action); }
.h-card--brief { right: 0; top: 3.5rem; z-index: 1; transform: rotate(7deg); }
.h-card--brief dl { margin: var(--gs-space-3) 0 0; }
.h-card--brief dl > div { padding-block: var(--gs-space-2); border-top: var(--gs-border-width) solid var(--p-border); }
.h-card--brief dt { color: var(--p-muted); font-size: var(--gs-text-xs); }
.h-card--brief dd { margin: var(--gs-space-1) 0 0; font-size: var(--gs-text-sm); line-height: 1.3; }
.h-card--plan { left: 50%; top: 9rem; z-index: 4; width: min(21rem, 56%); padding: 0; transform: translateX(-50%); border-color: var(--p-border-strong); box-shadow: var(--gs-space-3) var(--gs-space-3) 0 var(--p-soft-strong); }
.h-plan__head { padding: var(--gs-space-5); background: var(--p-soft-strong); border-bottom: var(--gs-border-width) solid var(--p-border); }
.h-plan__head h2 { margin: var(--gs-space-2) 0 0; font-size: var(--gs-text-xl); }
.h-plan__body { padding: var(--gs-space-5); }
.h-plan__eyebrow { color: var(--p-muted); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); letter-spacing: var(--gs-tracking-eyebrow); }
.h-plan__body h3 { margin: var(--gs-space-2) 0 var(--gs-space-4); font-size: var(--gs-text-lg); line-height: 1.25; }
.h-plan__list { margin: 0; padding: 0; list-style: none; }
.h-plan__list li { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--gs-space-2); padding: var(--gs-space-3) 0; border-top: var(--gs-border-width) solid var(--p-border); }
.h-plan__list li > span { grid-column: 1 / -1; color: var(--p-muted); font-size: var(--gs-text-xs); }
.h-plan__list strong { min-width: 0; font-size: var(--gs-text-sm); font-weight: var(--gs-weight-medium); line-height: 1.3; }
.h-plan__list small { color: var(--p-muted); font-size: var(--gs-text-xs); white-space: nowrap; }
.h-selector { display: none; flex-direction: column; gap: var(--gs-space-2); align-items: center; text-align: center; }
.h-js .h-selector { display: flex; }
.h-selector__buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--gs-space-2); }
.h-selector button { min-height: var(--gs-control-height); padding: var(--gs-space-2) var(--gs-space-4); border: var(--gs-border-width) solid var(--p-border-strong); border-radius: var(--gs-radius-control); background: var(--gs-neutral-0); color: var(--p-ink); font: var(--gs-weight-medium) var(--gs-text-md)/1.25 var(--gs-font-body); cursor: pointer; }
.h-selector button[aria-pressed='true'] { background: var(--p-action); border-color: var(--p-action); color: var(--p-on-action); }
.h-selector button:hover:not([aria-pressed='true']) { background: var(--p-soft); }
.h-selector__status { margin: 0; color: var(--p-muted); font-size: var(--gs-text-sm); }
.h-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 68em) {
  .h-hero__inner { grid-template-columns: minmax(0,1fr); max-width: 48rem; padding-block: var(--gs-space-16); }
  .h-copy { max-width: 42rem; }
  .h-copy h1 { font-size: var(--gs-text-4xl); }
  .h-visual { max-width: 43rem; }
}
@media (max-width: 42em) {
  .h-header { min-height: 4rem; padding: var(--gs-space-3) var(--gs-space-4); }
  .h-header__label { display: none; }
  .h-hero { margin: var(--gs-space-2); }
  .h-hero__inner { padding: var(--gs-space-12) var(--gs-space-5); gap: var(--gs-space-12); }
  .h-copy h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .h-lead { margin-bottom: var(--gs-space-6); }
  .h-visual__head { margin-bottom: var(--gs-space-4); }
  .h-deck { position: relative; min-height: 0; padding-top: var(--gs-space-1); }
  .h-card--routine,.h-card--check,.h-card--brief { position: absolute; top: 0; width: 45%; height: 8rem; padding: var(--gs-space-3); box-shadow: none; overflow: hidden; }
  .h-card--routine { left: 0; transform: rotate(-7deg); }
  .h-card--check { left: 27.5%; transform: rotate(-1deg); }
  .h-card--brief { right: 0; transform: rotate(7deg); }
  .h-card--routine h2,.h-card--check h2,.h-card--brief h2 { margin: var(--gs-space-3) 0 0; font-size: var(--gs-text-sm); line-height: 1.2; }
  .h-routine__art { width: 3rem; height: 3rem; margin-top: var(--gs-space-1); background: transparent; }
  .h-card--routine p,.h-routine__progress,.h-check__tag,.h-check__score,.h-check__bar,.h-card--brief dl { display: none; }
  .h-card--plan { position: relative; top: auto; left: auto; width: calc(100% - var(--gs-space-4)); margin: var(--gs-space-16) auto 0; transform: none; box-shadow: var(--gs-space-2) var(--gs-space-2) 0 var(--p-soft-strong); }
  .h-selector { align-items: stretch; text-align: left; margin-top: var(--gs-space-4); }
  .h-selector__buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .h-selector button { min-width: 0; padding-inline: var(--gs-space-2); font-size: var(--gs-text-sm); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.s-page .h-hero__inner { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); min-height: 45rem; gap: clamp(var(--gs-space-6),3vw,var(--gs-space-12)); }
.s-suite { width: 100%; max-width: 41rem; min-width: 0; justify-self: center; }
.s-rail { --s-side-width: min(17rem, 46%); --s-plan-width: min(21rem, 64%); position: relative; display: grid; grid-template-columns: minmax(0,1fr); justify-items: center; align-items: start; min-height: 36rem; padding-bottom: var(--gs-space-8); isolation: isolate; }
.s-card { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--gs-space-3); width: var(--s-side-width); min-width: 0; padding: var(--gs-space-4); border: var(--gs-border-width) solid var(--p-border-strong); border-radius: var(--gs-radius-card); background: var(--gs-neutral-0); color: var(--p-ink); box-shadow: var(--gs-space-2) var(--gs-space-2) 0 var(--p-soft-strong); transform-origin: 50% 85%; }
.s-card { overflow-wrap: anywhere; border-radius: var(--gs-radius-panel); overflow: hidden; }
.s-card :where(h2,h3,h4,p) { margin: 0; }
.s-card :where(h2,h3,h4) { font-family: var(--gs-font-heading); line-height: 1.2; letter-spacing: var(--gs-tracking-heading); }
.s-card h2 { font-size: var(--gs-text-lg); }
.s-card p { font-size: var(--gs-text-sm); line-height: 1.4; color: var(--p-muted); }
.s-overline { color: var(--p-muted); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); letter-spacing: var(--gs-tracking-eyebrow); line-height: 1.2; }
.s-card--plan { position: relative; z-index: 5; top: auto; left: auto; width: var(--s-plan-width); gap: 0; padding: 0; transform: none; border-color: var(--p-border-strong); box-shadow: var(--gs-space-3) var(--gs-space-3) 0 var(--p-soft-strong); }
/* The app's Plan screen, compacted: who and what in one line, the objective, its baseline, then today's progress. */
.s-plan__head { padding: var(--gs-space-3) var(--gs-space-3) var(--gs-space-2); background: var(--p-soft-strong); }
.s-card .s-plan__for { color: var(--p-muted); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); letter-spacing: var(--gs-tracking-eyebrow); text-transform: uppercase; }
.s-plan__head h2 { margin-top: var(--gs-space-1); font-size: var(--gs-text-xl); }
.s-card .s-plan__baseline { margin-top: var(--gs-space-1); color: var(--p-ink); font-size: var(--gs-text-xs); }
.s-plan__today { display: grid; gap: var(--gs-space-1); padding: var(--gs-space-2) var(--gs-space-3) var(--gs-space-3); border-bottom: var(--gs-border-width) solid var(--p-border); background: var(--p-soft-strong); }
.s-card .s-plan__today p { display: flex; justify-content: space-between; align-items: baseline; color: var(--p-ink); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); }
.s-plan__bar { display: block; height: .5rem; overflow: hidden; border-radius: var(--gs-radius-control); background: var(--gs-neutral-0); }
.s-plan__bar > span { display: block; width: calc(var(--s-done, 1) / 3 * 100%); height: 100%; border-radius: inherit; background: var(--p-action); transition: width var(--s-lift) var(--s-ease-out); }
.s-plan__body { padding: var(--gs-space-3); }
.s-plan__milestone { display: block; margin-bottom: var(--gs-space-1); }
.s-plan__groups { display: grid; gap: var(--gs-space-2); }
.s-group { border-top: var(--gs-border-width) solid var(--p-border); padding-top: var(--gs-space-1); }
.s-group h4 { color: var(--p-muted); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); margin-bottom: var(--gs-space-1); }
.s-item { display: grid; grid-template-columns: 2.25rem minmax(0,1fr) 1.5rem; gap: var(--gs-space-2); align-items: center; padding: var(--gs-space-1) 0; border-radius: var(--gs-radius-control); }
.s-item + .s-item { border-top: var(--gs-border-width) solid var(--p-border); }
.s-item img { display: block; width: 2.25rem; height: 2.25rem; object-fit: contain; border-radius: 50%; background: var(--p-soft); }
.s-item div { min-width: 0; }
.s-item strong { display: block; font-size: var(--gs-text-sm); font-weight: var(--gs-weight-bold); line-height: 1.25; overflow-wrap: anywhere; transition: color var(--gs-duration-fast); }
.s-card .s-item small { display: block; margin-top: .125rem; color: var(--p-muted); font-size: var(--gs-text-xs); line-height: 1.25; }
/* The tick: an empty ring that fills with a check when done, as the app's practiced-today state reads. */
.s-item__tick { position: relative; width: 1.5rem; height: 1.5rem; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--p-border-strong); transition: background var(--gs-duration-fast), box-shadow var(--gs-duration-fast); }
.s-item__tick::after { content: ""; position: absolute; left: .5rem; top: .3rem; width: .35rem; height: .65rem; border: solid var(--p-on-action); border-width: 0 2px 2px 0; rotate: 45deg; scale: 0; transition: scale var(--gs-duration-fast) cubic-bezier(.34,1.56,.64,1); }
.s-item.is-done .s-item__tick { background: var(--p-action); box-shadow: inset 0 0 0 2px var(--p-action); }
.s-item.is-done .s-item__tick::after { scale: 1; }
.s-item.is-done strong { color: var(--p-muted); }
.s-item[role='checkbox'] { cursor: pointer; }
.s-item[role='checkbox']:focus-visible { outline-offset: 2px; }
/* The four side cards follow the app's own Today cards, translated into site tokens
   (gutsphere_app: guided/_routine_card, personal_plans/_symptom_card and _visit_card, chat/_answer;
   releases/APP-DESIGN-REFERENCE.md). Shared parts: the top row, chip, ··· button and the ink primary button. */
.s-card:not(.s-card--plan) { border-color: var(--p-border); }
.s-app__top { display: flex; align-items: center; justify-content: space-between; gap: var(--gs-space-2); min-height: 2.25rem; }
.s-app__chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 1.75rem; padding: 0 .625rem; border-radius: var(--gs-radius-control); background: var(--p-soft); color: var(--p-ink); font-size: var(--gs-text-xs); letter-spacing: var(--gs-tracking-eyebrow); text-transform: uppercase; white-space: nowrap; }
.s-app__chip--line { border: var(--gs-border-width) solid var(--p-border); background: none; font-weight: var(--gs-weight-bold); }
.s-app__icon { flex: none; width: .875rem; height: .875rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-app__more { display: flex; flex: none; align-items: center; justify-content: center; gap: 3px; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--p-soft); }
.s-app__more i { width: 3px; height: 3px; border-radius: 50%; background: var(--p-ink); }
.s-app__primary { display: flex; align-items: center; justify-content: center; gap: var(--gs-space-2); min-height: 2.75rem; margin-top: auto; border-radius: calc(var(--gs-radius-md) * 1.75); background: var(--p-action); color: var(--p-on-action); font-size: var(--gs-text-sm); font-weight: var(--gs-weight-bold); }
.s-app__primary .s-app__icon { fill: currentColor; stroke: none; }
/* Guided routine: art with ···, the title, one line, then Start. */
.s-card--routine { --s-rot: -8deg; z-index: 1; top: 9rem; left: var(--gs-space-12); rotate: var(--s-rot); gap: 0; padding: 0; }
.s-routine__art { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; }
.s-routine__art img { display: block; width: auto; max-width: calc(100% - var(--gs-space-8)); height: 76%; object-fit: contain; }
.s-routine__art .s-app__more { position: absolute; top: var(--gs-space-3); right: var(--gs-space-3); background: none; }
.s-routine__body { display: flex; flex: 1; flex-direction: column; gap: var(--gs-space-1); padding: var(--gs-space-2) var(--gs-space-4) var(--gs-space-4); }
.s-card--routine h2 { font-size: var(--gs-text-xl); }
/* Bello's once-a-day hello from the app (seated, stands, waves, sits), then the player's start screen. */
.s-routine__hello { position: absolute; inset: 0; margin: auto; width: auto; max-width: calc(100% - var(--gs-space-8)); height: 82%; object-fit: contain; }
.s-routine__hello[hidden] { display: none; }
.s-card--routine [data-routine-art] { transition: opacity var(--s-lift) var(--s-ease-out); }
/* The practice art hides at once for the hello and fades back in after it, so the two never overlap. */
.s-card--routine.is-greeting [data-routine-art] { opacity: 0; transition: none; }
.s-player__track { display: block; height: 4px; margin-top: var(--gs-space-3); overflow: hidden; border-radius: var(--gs-radius-control); background: var(--p-soft-strong); }
.s-player__track > span { display: block; width: calc(var(--s-played, 0) * 100%); height: 100%; background: var(--p-action); }
.s-card .s-player__times { display: flex; justify-content: space-between; margin-top: .25rem; font-size: var(--gs-text-xs); font-variant-numeric: tabular-nums; }
/* The app's transport: sound on the left, a round play button centred, an empty slot keeping it centred. */
.s-player__controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: var(--gs-space-2); }
.s-player__sound { display: inline-flex; align-items: center; gap: .3rem; justify-self: start; min-height: 2.25rem; padding-right: var(--gs-space-2); border-radius: var(--gs-radius-control); color: var(--p-muted); font-size: var(--gs-text-xs); }
.s-player__sound .s-app__icon { width: 1.25rem; height: 1.25rem; }
.s-player__sound .s-player__wave { display: none; }
.s-player__sound[aria-pressed='false'] .s-player__x { display: none; }
.s-player__sound[aria-pressed='false'] .s-player__wave { display: inline; }
.s-player__play { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--p-action); color: var(--p-on-action); }
.s-player__play .s-app__icon { width: 1.4rem; height: 1.4rem; fill: currentColor; stroke: none; }
.s-player__glyph-pause,.s-player__play[aria-pressed='true'] .s-player__glyph-play { display: none; }
.s-player__play[aria-pressed='true'] .s-player__glyph-pause { display: inline; }
.s-player__sound[role='button'],.s-player__play[role='button'] { cursor: pointer; }
/* Symptom check-in: chip and ···, Bello, the question, one ring per option, "Slide to rate". */
.s-card--check { --s-rot: -4deg; z-index: 2; top: 4.5rem; left: 12%; rotate: var(--s-rot); }
.s-check__bello { display: block; align-self: center; width: 3.75rem; height: auto; }
.s-card--check h2 { font-size: var(--gs-text-xl); text-align: center; }
.s-card .s-check__tags { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: var(--gs-space-3); color: var(--p-ink); font-size: var(--gs-text-sm); line-height: 1.2; text-align: center; }
/* One circle per symptom, as in the app's check-in: the arc fills by the 0–10 rating and the label under it
   reads "Not yet" until rated. The first circle shows the example rating (6/10) until script replays it. */
.s-check__tags > span { --s-v: 0; --s-label: "Not yet"; position: relative; display: grid; flex: 0 1 auto; justify-items: center; gap: var(--gs-space-2); min-width: 3rem; max-width: 100%; font-size: var(--gs-text-xs); overflow-wrap: break-word; border-radius: var(--gs-radius-md); }
.s-check__tags > span:first-child { --s-v: 6; --s-label: "6/10"; }
.s-check__tags > span::before { content: ""; width: 3rem; height: 3rem; border-radius: 50%; background: conic-gradient(var(--p-accent) calc(var(--s-v) * 10%), var(--p-soft-strong) 0); -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)); transition: background var(--s-lift) var(--s-ease-out); }
.s-check__tags > span:not(.is-other)::after { content: var(--s-label); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-medium); }
.s-check__tags > span.is-selected { color: var(--p-ink); font-weight: var(--gs-weight-bold); text-decoration: underline 2px; text-underline-offset: .3em; }
.s-check__tags > span[role='button']:focus-visible { outline-offset: 4px; }
.s-check__tags > .is-other { color: var(--p-muted); }
.s-check__tags > .is-other::before { content: "+"; display: grid; place-items: center; background: var(--p-soft); color: var(--p-muted); font-size: var(--gs-text-xl); line-height: 1; -webkit-mask: none; mask: none; }
.s-check__tags > span.is-ripple::before { animation: s-ripple 520ms var(--s-ease-out); }
@keyframes s-ripple { 50% { scale: 1.12; } }
.s-check__tags > [role='button'] { cursor: pointer; }
.s-card .s-check__said { color: var(--p-muted); font-size: var(--gs-text-md); text-align: center; }
.s-check__said strong { color: var(--p-ink); }
.s-check__said strong small { font-size: var(--gs-text-xs); font-weight: var(--gs-weight-medium); }
.s-check__track { --s-rate: 6; position: relative; flex: none; height: 2.875rem; overflow: hidden; border-radius: var(--gs-radius-control); background: var(--p-soft); }
.s-check__track > [data-check-fill] { position: absolute; inset-block: 0; left: 0; display: block; width: calc(var(--s-rate) * 10%); border-radius: inherit; background: var(--p-action); }
.s-check__dots { position: absolute; inset-block: 0; inset-inline: 1.5rem; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.s-check__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--p-border-strong); }
.s-check__dots i:nth-child(odd) { width: 6px; height: 6px; }
/* Script adds a real 0–10 range input over the track, so the example can be rated by drag or arrow keys. */
.s-check__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.s-check__track:has(.s-check__range:focus-visible) { outline: var(--gs-focus-width) solid var(--p-ink); outline-offset: var(--gs-focus-offset); }
.s-card .s-check__saved { align-self: center; padding: .15rem .6rem; border-radius: var(--gs-radius-control); background: var(--p-soft); color: var(--p-ink); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); }
.s-card--check:not(.is-saved) .s-check__saved { visibility: hidden; }
/* The app's pointer for the first-view demo: a hand that comes in and taps the first circle. */
.s-hand { position: absolute; z-index: 3; top: 0; left: 0; width: 2.25rem; height: 2.25rem; color: var(--p-ink); pointer-events: none; translate: var(--s-hand-x, 0) var(--s-hand-y, 0); transition: translate 700ms var(--s-ease-out), opacity 300ms; }
.s-hand svg { width: 100%; height: 100%; fill: var(--gs-neutral-0); stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.s-hand.is-tap svg { animation: s-tap 260ms ease-in-out; }
@keyframes s-tap { 50% { scale: .86; } }
.s-brief__rows { margin: 0; }
.s-brief__rows > div { display: flex; justify-content: space-between; gap: var(--gs-space-2); border-top: var(--gs-border-width) solid var(--p-border); padding-top: var(--gs-space-2); margin-top: var(--gs-space-2); font-size: var(--gs-text-xs); line-height: 1.3; }
.s-brief__rows dt { color: var(--p-muted); }
.s-brief__rows dd { margin: 0; font-weight: var(--gs-weight-medium); text-align: right; overflow-wrap: anywhere; }
/* Copilot: the question as an ink bubble, each answer under its guide's by-line. */
.s-card--copilot { --s-rot: 4deg; z-index: 2; top: 4.5rem; right: 12%; rotate: var(--s-rot); }
.s-card .s-chat__you { align-self: flex-end; max-width: 88%; padding: var(--gs-space-2) var(--gs-space-3); border-radius: var(--gs-radius-panel) var(--gs-radius-panel) var(--gs-radius-card) var(--gs-radius-panel); background: var(--p-action); color: var(--p-on-action); font: var(--gs-weight-regular) var(--gs-text-sm)/1.4 var(--gs-font-body); letter-spacing: normal; }
.s-reply { display: grid; gap: var(--gs-space-1); }
.s-card .s-chat__by { display: flex; align-items: center; gap: .375rem; color: var(--p-muted); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); }
.s-chat__by img { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; object-fit: cover; background: var(--p-soft); }
.s-chat__by strong { color: inherit; font-weight: inherit; }
.s-card .s-chat__answer { color: var(--p-ink); font-size: var(--gs-text-sm); }
/* Who Bello asked: a collapsible line (the app's "Bello asked a specialist") over the steps it took, shown live
   one by one while it thinks, then folded away once the answer arrives. */
.s-think { color: var(--p-muted); font-size: var(--gs-text-xs); }
.s-think summary { display: flex; align-items: center; gap: .4rem; width: fit-content; min-height: 1.75rem; font-weight: var(--gs-weight-bold); cursor: pointer; list-style: none; }
.s-think summary::-webkit-details-marker { display: none; }
/* Outranks the unified details "Show/Hide" label: this disclosure uses a chevron instead. */
.s-card .s-think > summary::after { content: ""; float: none; width: .4rem; height: .4rem; margin: 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px; transition: rotate var(--gs-duration-fast); }
.s-card .s-think[open] > summary::after { content: ""; rotate: 225deg; translate: 0 1px; }
.s-think summary img { width: 1.25rem; height: auto; }
.s-think ol { display: grid; gap: .25rem; margin: .25rem 0 0; padding-left: 1.75rem; }
.s-think li { transition: opacity var(--s-lift); }
.s-card--copilot.is-thinking .s-think summary span { background: linear-gradient(90deg, var(--p-muted) 35%, var(--p-ink) 50%, var(--p-muted) 65%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: s-shimmer 1.4s linear infinite; }
.s-card--copilot.is-thinking .s-think summary img { animation: s-breathe 2.4s ease-in-out infinite; }
.s-think li.is-pending { opacity: 0; }
@keyframes s-shimmer { to { background-position: -150% 0; } }
@keyframes s-breathe { 50% { scale: 1.08; } }
.s-card .s-finding { display: flex; align-items: baseline; gap: .4rem; width: fit-content; padding: .3rem .6rem; border-radius: var(--gs-radius-md); background: var(--p-soft); color: var(--p-muted); font-size: var(--gs-text-xs); }
.s-finding strong { color: var(--p-ink); font: var(--gs-weight-bold) var(--gs-text-md)/1 var(--gs-font-heading); }
.s-finding:empty { display: none; }
.s-card--copilot.is-asking .s-reply { opacity: 0; translate: 0 .5rem; }
.s-card--copilot .s-reply { transition: opacity var(--s-lift) var(--s-ease-out), translate var(--s-lift) var(--s-ease-out); }
.s-card--copilot.is-sending .s-chat__you { opacity: 0; translate: 0 .75rem; scale: .96; }
.s-card--copilot .s-chat__you { transform-origin: 100% 100%; transition: opacity 320ms var(--s-ease-out), translate 320ms var(--s-ease-out), scale 320ms var(--s-ease-out); }
/* Visit brief: the Today visit card once the brief is ready. */
.s-card--brief { --s-rot: 8deg; z-index: 1; top: 9rem; right: var(--gs-space-12); rotate: var(--s-rot); }
.s-brief__segments { display: flex; gap: 3px; }
.s-brief__segments i { flex: 1; height: 5px; border-radius: 3px; background: var(--p-action); }
.s-card .s-brief__caption { color: var(--p-muted); font-size: var(--gs-text-sm); }
.s-card--brief h2 { font-size: var(--gs-text-lg); }
@media (min-width: 42.01em) {
  .s-card--plan { min-height: 29.5rem; }
  .s-card--routine,.s-card--brief { top: 3.8rem; min-height: 62%; }
  .s-card--routine { left: var(--gs-space-6); }
  .s-card--brief { right: var(--gs-space-10); }
  .s-card--check,.s-card--copilot { top: 1.8rem; min-height: 77%; }
  /* Only each side card's outer edge shows beside the plan, so the copilot and brief tops sit to the right. */
  .s-card--copilot .s-app__top,.s-card--brief .s-app__top { flex-direction: row-reverse; }
  .s-routine__art { place-items: center start; padding-left: var(--gs-space-4); }
  .s-routine__art img { width: 5rem; height: auto; }
}
.s-brief__rows > div { display: block; }
.s-brief__rows dd { margin-top: var(--gs-space-1); text-align: left; }
.s-card-status { display: none; }
/* Hero card motion: the side screens deal out from behind the plan, then lift on hover.
   Keyframes end on each card's resting geometry, so the backwards fill hands off without a jump. */
.s-suite { --s-ease-out: cubic-bezier(.22,1,.36,1); --s-deal: 950ms; --s-lift: 450ms; }
@keyframes s-card-deal { from { opacity: 0; translate: var(--s-from-x,0) var(--s-from-y,1.5rem); rotate: 0deg; scale: .9; } }
@keyframes s-card-focus { 0%,100% { scale: .93; opacity: .7; } 50% { scale: 1; opacity: 1; } }
@media (min-width: 42.01em) and (prefers-reduced-motion: no-preference) {
  .s-rail > .s-card { transition: translate var(--s-lift) var(--s-ease-out), rotate var(--s-lift) var(--s-ease-out), scale var(--s-lift) var(--s-ease-out), box-shadow var(--s-lift) var(--s-ease-out); animation: s-card-deal var(--s-deal) var(--s-ease-out) var(--s-delay,0ms) backwards; }
  .s-motion:not(.is-dealt) .s-rail > .s-card { animation-play-state: paused; }
  .s-rail > .s-card--plan { --s-from-y: 2rem; }
  .s-rail > .s-card--check { --s-from-x: 7rem; --s-from-y: 3rem; --s-delay: 240ms; }
  .s-rail > .s-card--copilot { --s-from-x: -7rem; --s-from-y: 3rem; --s-delay: 240ms; }
  .s-rail > .s-card--routine { --s-from-x: 12rem; --s-from-y: 4rem; --s-delay: 380ms; }
  .s-rail > .s-card--brief { --s-from-x: -12rem; --s-from-y: 4rem; --s-delay: 380ms; }
  .s-rail > .s-card:focus-visible { translate: 0 -.4rem; rotate: calc(var(--s-rot,0deg) / 2); scale: 1.03; box-shadow: var(--gs-space-3) var(--gs-space-4) 0 var(--p-soft-strong); }
  @media (hover:hover) {.s-rail > .s-card:hover { translate: 0 -.4rem; rotate: calc(var(--s-rot,0deg) / 2); scale: 1.03; box-shadow: var(--gs-space-3) var(--gs-space-4) 0 var(--p-soft-strong); }}
}
/* Phone rail: the centred card settles to full size as it snaps in. */
@supports (animation-timeline: view()) {
  @media (max-width: 42em) and (prefers-reduced-motion: no-preference) {
    .s-rail > .s-card { animation: s-card-focus linear both; animation-timeline: view(inline); animation-range: cover; }
  }
}
@media (max-width: 68em) { .s-page .h-hero__inner { grid-template-columns: 1fr; max-width: 46rem; } }
@media (max-width: 42em) {
  .s-page .h-hero__inner { padding-inline: var(--gs-space-4); gap: var(--gs-space-8); }
  .s-page .h-copy h1 { font-size: clamp(1.5rem,8vw,3rem); }
  .s-page .h-cta.gs-button { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .s-rail { --s-side-width: min(84vw, calc(100% - var(--gs-space-6)), 22rem); --s-plan-width: min(88vw, calc(100% - var(--gs-space-4)), 23rem); display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding: var(--gs-space-2) 0 var(--gs-space-6); margin-inline: calc(-1 * var(--gs-space-4)); }
  .s-rail::before,.s-rail::after { content: ""; flex: 0 0 calc((100% - var(--s-side-width)) / 2); }
  .s-rail::before { flex-basis: calc((100% - var(--s-plan-width)) / 2); }
  .s-rail > .s-card + .s-card { margin-inline-start: var(--gs-space-3); }
  .s-card,.s-card--plan,.s-card--routine,.s-card--check,.s-card--copilot,.s-card--brief { position: relative; top: auto; left: auto; right: auto; z-index: auto; flex: 0 0 auto; height: auto; transform: none; rotate: none; box-shadow: none; scroll-snap-align: center; }
  .s-card--plan { border-color: var(--p-border-strong); }
  .s-card-status { display: block; margin: var(--gs-space-2) 0 0; color: var(--p-muted); font-size: var(--gs-text-sm); text-align: center; }
}
@media (max-width: 22.5em) {
  .s-page .h-copy h1 { font-size: clamp(1.4rem,7.2vw,2.6rem); }
}

.p-section { background: var(--p-page); padding: clamp(5rem, 8vw, 8rem) var(--gs-gutter); }
.p-section + .p-section { border-top: var(--gs-border-width) solid var(--p-border); }
.p-inner { max-width: var(--gs-content-width); margin: auto; }
.p-section__intro { max-width: 43rem; margin-bottom: var(--gs-space-10); }
.p-section h2 { font-size: clamp(2.25rem, 3.5vw, 3.7rem); max-width: 17ch; margin-bottom: var(--gs-space-5); }
.p-section__intro > p:last-child,.p-visit__intro > p,.p-practice__inner > p:not(.p-time),.p-app__copy > p,.p-trust__grid p { color: var(--p-muted); font-size: var(--gs-text-lg); line-height: 1.6; }
.p-choice-list { margin: 0; padding: 0; list-style: none; border: var(--gs-border-width) solid var(--p-border-strong); border-radius: var(--gs-radius-card); overflow: hidden; }
.p-choice-list li + li { border-top: var(--gs-border-width) solid var(--p-border); }
.p-choice { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: var(--gs-space-6); padding: var(--gs-space-6) var(--gs-space-8); min-height: 7.75rem; text-decoration: none; transition: background var(--gs-duration-fast), transform var(--gs-duration-fast); }
.p-choice:hover { background: var(--p-soft); transform: translateY(-2px); }
.p-choice:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.p-choice__copy { display: grid; gap: var(--gs-space-1); }
.p-choice__copy strong { font-family: var(--gs-font-heading); font-size: var(--gs-text-2xl); line-height: 1.25; }
.p-choice__copy span { font-size: var(--gs-text-md); color: var(--p-muted); }
.p-choice__arrow { font-size: var(--gs-text-2xl); line-height: 1; }
.p-directory-links { display: flex; flex-wrap: wrap; gap: var(--gs-space-5) var(--gs-space-10); margin-top: var(--gs-space-8); }
.p-directory-links a,.p-trust__links a { min-height: var(--gs-control-height); display: inline-flex; align-items: center; gap: var(--gs-space-3); font-weight: var(--gs-weight-bold); text-underline-offset: .35em; text-decoration-thickness: var(--gs-text-decoration-strong); }
.p-practice__inner { max-width: 44rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.p-bello { width: clamp(15rem, 29vw, 21rem); margin: 0 auto var(--gs-space-4); }
.p-bello img { display: block; width: 100%; height: auto; object-fit: contain; }
.p-time { display: inline-flex; align-items: center; gap: var(--gs-space-2); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); letter-spacing: var(--gs-tracking-eyebrow); color: var(--p-muted); margin: 0 0 var(--gs-space-4); }
.p-time__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--p-action); }
.p-practice h2 { max-width: none; margin-bottom: var(--gs-space-4); }
.p-practice__inner > p:not(.p-time) { max-width: 30rem; margin-bottom: var(--gs-space-6); }
.p-text-link { display: inline-flex; align-items: center; gap: var(--gs-space-3); min-height: var(--gs-control-height); font-size: var(--gs-text-md); line-height: 1.35; font-weight: var(--gs-weight-bold); text-underline-offset: .35em; text-decoration-thickness: var(--gs-text-decoration-strong); }
.p-visit__grid,.p-app__grid,.p-trust__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(var(--gs-space-10), 7vw, 7rem); align-items: center; }
.p-visit__grid { grid-template-areas: 'intro note' 'link note'; row-gap: var(--gs-space-5); }
.p-visit__intro { grid-area: intro; align-self: end; }
.p-note { grid-area: note; }
.p-visit__link { grid-area: link; align-self: start; justify-self: start; }
.p-visit__intro { max-width: 35rem; }
.p-visit__intro > p { margin-bottom: var(--gs-space-8); }
.p-note { border: var(--gs-border-width) solid var(--p-border-strong); border-radius: var(--gs-radius-card); background: var(--p-page); padding: clamp(var(--gs-space-6), 3vw, var(--gs-space-10)); box-shadow: var(--gs-space-3) var(--gs-space-3) 0 var(--p-soft-strong); }
.p-note__head { display: flex; gap: var(--gs-space-4); align-items: center; padding-bottom: var(--gs-space-6); border-bottom: var(--gs-border-width) solid var(--p-border); }
.p-note__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border: var(--gs-border-width) solid var(--p-border-strong); border-radius: var(--gs-radius-card); font-size: var(--gs-text-2xl); line-height: 1; }
.p-note__label { font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); letter-spacing: var(--gs-tracking-eyebrow); color: var(--p-muted); }
.p-note h3 { font-size: var(--gs-text-xl); margin: var(--gs-space-1) 0 0; }
.p-note dl { margin: 0; }
.p-note dl > div { padding: var(--gs-space-5) 0; border-bottom: var(--gs-border-width) solid var(--p-border); }
.p-note dt { margin-bottom: var(--gs-space-2); font-size: var(--gs-text-sm); font-weight: var(--gs-weight-bold); color: var(--p-muted); }
.p-note dd { margin: 0; font-size: var(--gs-text-md); line-height: 1.5; }
.p-note__foot { margin: var(--gs-space-5) 0 0; color: var(--p-muted); font-size: var(--gs-text-sm); }
.p-app__grid,.p-trust__grid { align-items: start; }
.p-app__copy,.p-trust__grid > div:last-child { padding-top: var(--gs-space-10); }
.p-app__copy p { margin-bottom: var(--gs-space-6); }
.p-trust__links { display: flex; flex-wrap: wrap; gap: var(--gs-space-4) var(--gs-space-8); margin-top: var(--gs-space-8); }

@media (max-width: 60em) {
  .p-visit__grid,.p-app__grid,.p-trust__grid { gap: var(--gs-space-8); }
}
@media (max-width: 42em) {
  .p-section { padding: var(--gs-space-16) var(--gs-space-5); }
  .p-section h2 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .p-choice { grid-template-columns: minmax(0,1fr) auto; gap: var(--gs-space-3); padding: var(--gs-space-5) var(--gs-space-4); min-height: 7rem; }
  .p-choice__copy strong { font-size: var(--gs-text-xl); }
  .p-directory-links { display: grid; gap: var(--gs-space-2); }
  .p-bello { width: min(70vw, 18rem); }
  .p-visit__grid,.p-app__grid,.p-trust__grid { grid-template-columns: minmax(0,1fr); gap: var(--gs-space-6); }
  .p-visit__grid { grid-template-areas: 'intro' 'note' 'link'; }
  .p-app__copy,.p-trust__grid > div:last-child { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .p-choice { transition: none; } .p-choice:hover { transform: none; } }
/* The card keeps its original pointer target when raised. */
@media (min-width: 42.001em) {
  .s-rail > .s-card:focus-visible { z-index: 8; }
  @media (hover:hover) {.s-rail > .s-card:hover { z-index: 9; }}
}

.home-more { max-width: var(--gs-content-width); margin: 0 auto var(--gs-space-8); padding-inline: var(--gs-gutter); }
.home-more > summary { width: fit-content; min-height: var(--gs-control-height); padding: var(--gs-space-3) 0; color: var(--gs-color-link); cursor: pointer; }
