/* flexxocare.com: the apps' "Warm & lively" look (frontend/DESIGN.md), made for big screens.
   Rounded photos with colour shapes peeking out behind them, cream pages,
   two-tone Outfit headlines, forest pill buttons with a butter arrow. */
:root {
  --canvas: #fbf4e6;
  --surface: #fffdf9;
  --white: #ffffff;
  --sunken: #f2e8d6;
  --line: #eadfcb;
  --ink: #1a221e;
  --ink-soft: #414a44;
  --ink-muted: #68706a;
  --forest: #1b4332;
  --forest-pressed: #143326;
  --forest-deep: #10291f;
  --accent: #d95f3d;
  --coral: #ee8665;
  --butter: #f6d98a;
  --butter-tint: #f9ebc4;
  --blush: #f7cfc0;
  --blush-tint: #fbe6dc;
  --sage: #bfd4bf;
  --sage-tint: #ebf1eb;
  --radius-photo: 30px;
  --radius-card: 28px;
  --shadow-soft: 0 18px 40px -24px rgba(26, 34, 30, 0.42);
  --shadow-float: 0 24px 50px -20px rgba(26, 34, 30, 0.35);
  --display: 'Outfit', system-ui, sans-serif;
  --text: 'Figtree', system-ui, sans-serif;
  --page: min(1180px, 100% - 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--forest); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--forest); color: var(--surface); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: var(--page); margin-inline: auto; }

.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

.overline {
  margin: 0 0 14px;
  font: 600 13px/1.3 var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); margin: 0; max-width: 36em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--surface);
  font: 600 17px/1 var(--text);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
  box-shadow: 0 10px 24px -14px rgba(27, 67, 50, 0.8);
}
.btn:hover { background: var(--forest-pressed); transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn__arrow {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--butter); color: var(--forest);
  transition: transform 0.3s var(--ease);
}
.btn__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--small { min-height: 46px; padding: 5px 5px 5px 20px; font-size: 15px; gap: 10px; box-shadow: none; }
.btn--small .btn__arrow { width: 36px; height: 36px; }
.btn--light { background: var(--surface); color: var(--forest); box-shadow: none; }
.btn--light:hover { background: var(--white); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 10px;
  font-weight: 600; color: var(--forest); text-decoration: none;
}
.link-quiet:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 32px; }

/* ---------- Top menu ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(251, 244, 230, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { width: var(--page); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.nav__brand img { width: 96px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links > a:not(.btn) {
  padding: 10px 14px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 500; font-size: 16px; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__links > a:not(.btn):hover { background: var(--sunken); color: var(--ink); }
.nav__links > a[aria-current='page']:not(.btn) { color: var(--forest); font-weight: 600; background: var(--sage-tint); }
.nav__links .btn { margin-left: 10px; }
.nav__toggle { display: none; }

@media (max-width: 920px) {
  .nav__toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 0; background: var(--surface); box-shadow: var(--shadow-soft); cursor: pointer;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); content: '';
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
  }
  .nav__bars { position: relative; }
  .nav__bars::before { position: absolute; top: -6px; }
  .nav__bars::after { position: absolute; top: 6px; }
  .nav.is-open .nav__bars { background: transparent; }
  .nav.is-open .nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__links {
    position: absolute; left: 16px; right: 16px; top: 72px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-float);
    opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none; visibility: hidden;
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav__links > a:not(.btn) { padding: 14px 16px; font-size: 17px; }
  .nav__links .btn { margin: 8px 0 0; justify-content: space-between; }
  .nav.is-open { background: var(--canvas); }
}

/* ---------- Photos with shapes (PhotoStage) ---------- */
.stage { position: relative; isolation: isolate; }
.stage__photo {
  position: relative;
  width: 100%;
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  background: var(--sunken);
}
.shape {
  position: absolute; z-index: -1;
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  animation: drift 10s ease-in-out infinite alternate;
}
.shape--butter { background: var(--butter); }
.shape--sage { background: var(--sage); animation-delay: -3s; }
.shape--coral { background: var(--coral); animation-delay: -5s; }
.shape--blush { background: var(--blush); animation-delay: -2s; }
.shape--dot { border-radius: 50%; }
.leaf {
  position: absolute; z-index: -1; width: 46px; height: 24px;
  background: var(--sage); border-radius: 0 100% 0 100%;
  animation: sway 6s ease-in-out infinite alternate;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); overflow: clip; }
.hero__grid {
  width: var(--page); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
.hero h1 .line { display: block; overflow: clip; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; animation: lineUp 0.9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.16s; }
.hero .lead, .hero .actions, .hero__where { animation: fadeUp 0.9s var(--ease) 0.3s both; }
.hero .actions { animation-delay: 0.4s; }
.hero__where { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--ink-muted); font-size: 15px; animation-delay: 0.5s; }
.pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blush-tint); color: var(--accent); }
.pin svg { width: 16px; height: 16px; fill: currentColor; }

.hero__art { position: relative; height: clamp(440px, 52vw, 620px); }
.hero__main {
  position: absolute; right: 6%; top: 0; width: 68%; height: 86%;
  /* Rises in but is visible from the first frame: it's the page's largest picture (how fast Google sees the page load). */
  animation: heroIn 1.1s var(--ease) 0.1s both;
}
.hero__main img { height: 100%; object-position: 50% 30%; }
.hero__second {
  position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 1.3;
  animation: photoIn 1.1s var(--ease) 0.3s both;
}
.hero__second img { height: 100%; border: 6px solid var(--canvas); border-radius: 34px; }
.hero__art .shape--butter { width: 46%; aspect-ratio: 1; right: -4%; top: -5%; }
.hero__art .shape--sage { width: 34%; aspect-ratio: 1.1; left: 10%; top: 10%; }
.hero__art .shape--coral { width: 13%; aspect-ratio: 1; right: 0; bottom: 6%; }
.hero__art .leaf { right: 66%; top: 4%; }

/* Small app moments floating over the photos */
.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow-float);
  font-size: 14px; line-height: 1.3; color: var(--ink-soft);
  animation: popIn 0.7s var(--ease) both, bob 6s ease-in-out infinite alternate;
}
.float strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.float__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--sage-tint); color: var(--forest); }
.float__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float--visit { left: -2%; top: 12%; background: var(--butter-tint); animation-delay: 0.9s, 0s; }
.float--visit .float__icon { background: var(--white); }
.float--plan { right: -3%; bottom: 20%; animation-delay: 1.15s, -2s; }
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s ease-out infinite; }

/* ---------- Ribbon (moving list) ---------- */
.ribbon {
  background: var(--forest); color: var(--surface);
  padding: 22px 0; overflow: hidden; transform: rotate(-1.2deg); margin: 0 -10px;
}
.ribbon__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon__set { display: flex; gap: 0; padding-right: 0; }
.ribbon__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 600 clamp(20px, 2.4vw, 28px)/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.ribbon__item::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--butter); }
.ribbon:hover .ribbon__track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section h2, .h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 700; margin: 0 0 18px; }
.section--sunken { background: var(--surface); }

/* ---------- How it works: the phone tells the story as you scroll ---------- */
.story { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__steps { display: grid; gap: 0; }
.story__step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0; opacity: 0.32; transition: opacity 0.5s ease;
}
.story__step.is-active { opacity: 1; }
.story__num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; margin-bottom: 20px;
  background: var(--butter-tint); color: var(--forest); font: 700 20px/1 var(--display);
  transition: background 0.4s ease, color 0.4s ease, transform 0.5s var(--ease);
}
.story__step.is-active .story__num { background: var(--forest); color: var(--butter); transform: rotate(-6deg); }
.story__step h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; margin: 0 0 14px; }
.story__step p { margin: 0; color: var(--ink-soft); font-size: 18px; max-width: 30em; }
.story__phone { position: sticky; top: 12vh; height: 76vh; max-height: 760px; display: grid; place-items: center; }
.story__phone .shape--butter { width: 70%; aspect-ratio: 1; right: -16%; top: 6%; }
.story__phone .shape--sage { width: 56%; aspect-ratio: 1.1; left: -18%; bottom: 8%; }
.story__phone .shape--coral { width: 16%; aspect-ratio: 1; left: -6%; top: 14%; }
.story__mobile-shot { display: none; }

/* The phone */
.phone {
  position: relative; width: min(330px, 100%); aspect-ratio: 9 / 19;
  border-radius: 48px; background: #11181a; padding: 11px;
  box-shadow: 0 50px 80px -40px rgba(16, 41, 31, 0.6), inset 0 0 0 2px #2b3437;
}
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 20px; background: #11181a; z-index: 5; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--canvas); }
.screen {
  position: absolute; inset: 0; padding: 58px 18px 18px; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.5s ease, transform 0.6s var(--ease);
  font-size: 13px; line-height: 1.35; color: var(--ink-soft);
}
.phone[data-step='1'] .screen--1, .phone[data-step='2'] .screen--2, .phone[data-step='3'] .screen--3, .phone[data-step='4'] .screen--4 { opacity: 1; transform: none; }
.screen__over { font: 600 10px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 4px 0 -4px; }
.screen__title { font: 700 25px/1.08 var(--display); letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.screen__title em { font-style: normal; color: var(--accent); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mini-choice { position: relative; border-radius: 18px; background: var(--white); padding: 8px; box-shadow: 0 8px 18px -14px rgba(26, 34, 30, 0.5); font-weight: 600; color: var(--ink); font-size: 12px; }
.mini-choice img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 12px; margin-bottom: 6px; }
.mini-choice.is-on { background: var(--sage-tint); box-shadow: inset 0 0 0 2px var(--forest); }
.mini-choice.is-on::after {
  content: ''; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  animation: popIn 0.4s var(--ease) 0.5s both;
}
.mini-btn {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; background: var(--forest); color: var(--surface); font-weight: 600; padding: 6px 6px 6px 18px; font-size: 14px;
}
.mini-btn i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--butter); color: var(--forest); font-style: normal; font-weight: 700; }
.mini-card { border-radius: 20px; background: var(--white); padding: 12px; box-shadow: 0 8px 18px -14px rgba(26, 34, 30, 0.5); }
.mini-card--butter { background: var(--butter-tint); box-shadow: none; }
.mini-card--forest { background: var(--forest); color: var(--surface); box-shadow: none; }
.mini-card--forest strong { color: var(--white); }
.mini-physio { display: flex; gap: 10px; align-items: center; }
.mini-physio img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; object-position: 50% 20%; }
.mini-physio strong { display: block; color: var(--ink); font-size: 14px; }
.days { display: flex; gap: 6px; }
.day { flex: 1; text-align: center; border-radius: 14px; background: var(--white); padding: 7px 0; font-size: 10px; color: var(--ink-muted); }
.day b { display: block; font: 700 16px/1.2 var(--display); color: var(--ink); }
.day.is-on { background: var(--forest); color: var(--sage); }
.day.is-on b { color: var(--white); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.time { text-align: center; border-radius: 999px; background: var(--white); padding: 8px 0; font-weight: 600; color: var(--ink); font-size: 12px; }
.time.is-on { background: var(--forest); color: var(--white); position: relative; }
.time.is-on::after { content: ''; position: absolute; top: 5px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--butter); }
.map {
  position: relative; height: 210px; border-radius: 22px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 70px 70px,
    linear-gradient(0deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 70px 70px,
    #e8efe3;
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .route { fill: none; stroke: var(--forest); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 6 8; }
.map .home { fill: var(--accent); }
.map .rider { offset-path: path('M30 180 C 80 170, 90 110, 150 100 S 230 60, 250 40'); offset-rotate: 0deg; animation: ride 7s ease-in-out infinite alternate; }
.code { display: flex; gap: 6px; margin-top: 8px; }
.code b { display: grid; place-items: center; width: 34px; height: 40px; border-radius: 12px; background: var(--white); font: 700 20px/1 var(--display); color: var(--forest); }
.ex { display: flex; align-items: center; gap: 10px; }
.ex img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.ex strong { display: block; color: var(--ink); font-size: 13px; }
.ex .tick { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.ex .tick.is-on { border: 0; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; padding-top: 6px; }
.bars span { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--sage); transform-origin: bottom; }
.phone[data-step='4'] .bars span { animation: grow 0.8s var(--ease) both; }
.bars span:nth-child(1) { height: 30%; }
.bars span:nth-child(2) { height: 45%; }
.bars span:nth-child(3) { height: 55%; }
.bars span:nth-child(4) { height: 72%; }
.bars span:nth-child(5) { height: 90%; }
.ink { color: var(--ink); }
.bars span:nth-child(2) { animation-delay: 0.08s !important; }
.bars span:nth-child(3) { animation-delay: 0.16s !important; }
.bars span:nth-child(4) { animation-delay: 0.24s !important; }
.bars span:nth-child(5) { animation-delay: 0.32s !important; background: var(--forest); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: 0 2px 0 rgba(26, 34, 30, 0.03), var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.service__photo { overflow: hidden; margin: 10px 10px 0; border-radius: 22px; aspect-ratio: 3 / 2; }
.service__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service:hover .service__photo img { transform: scale(1.06); }
.service__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service h3 { font-size: 23px; line-height: 1.15; margin: 0; }
.service p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.service__meta { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font: 700 22px/1 var(--display); color: var(--forest); }
.price small { font: 500 14px var(--text); color: var(--ink-muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--sage-tint); color: var(--forest); font-size: 14px; font-weight: 600; }
.note { margin: 28px 0 0; color: var(--ink-muted); font-size: 15px; }

/* ---------- Feature rows (photo + words) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 140px); }
.feature--flip .feature__art { order: 2; }
.feature__art { position: relative; }
.feature__art .stage__photo { aspect-ratio: 5 / 4; }
.feature__art .shape--a { width: 44%; aspect-ratio: 1; right: -6%; top: -8%; }
.feature__art .shape--b { width: 32%; aspect-ratio: 1.1; left: -6%; bottom: -8%; }
.feature__art .float { bottom: 8%; left: -6%; }
.feature--flip .feature__art .float { left: auto; right: -6%; }
.feature h2 { font-size: clamp(34px, 4.4vw, 54px); }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 40px; color: var(--ink-soft); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 9px;
  background: var(--sage-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231B4332' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Trust tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile { border-radius: var(--radius-card); padding: 28px 24px; background: var(--white); box-shadow: var(--shadow-soft); }
.tile:nth-child(1) { background: var(--sage-tint); box-shadow: none; }
.tile:nth-child(2) { background: var(--butter-tint); box-shadow: none; }
.tile:nth-child(3) { background: var(--blush-tint); box-shadow: none; }
.tile:nth-child(4) { background: var(--white); }
.tile__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--white); color: var(--forest); margin-bottom: 18px; }
.tile:nth-child(4) .tile__icon { background: var(--sage-tint); }
.tile__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 21px; line-height: 1.2; margin: 0 0 8px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Areas ---------- */
.areas { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.areas__row { display: flex; width: max-content; gap: 12px; padding: 6px 0; animation: marquee 60s linear infinite; }
.areas__row--back { animation-direction: reverse; animation-duration: 70s; }
.areas__row span { padding: 12px 22px; border-radius: 999px; background: var(--white); box-shadow: 0 6px 16px -12px rgba(26, 34, 30, 0.5); font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.areas__row span:nth-child(3n) { background: var(--sage-tint); box-shadow: none; color: var(--forest); }
.areas__row span:nth-child(4n) { background: var(--butter-tint); box-shadow: none; }

/* ---------- Questions ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 22px; box-shadow: 0 8px 22px -18px rgba(26, 34, 30, 0.45); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px 20px 26px; font: 600 18px/1.35 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sage-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--butter); }
.faq details > div { padding: 0 26px 22px; color: var(--ink-soft); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin: 0; }
.faq details[open] > div { animation: fadeUp 0.4s var(--ease) both; }
.faq-groups { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.faq-groups__nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.faq-groups__nav a { padding: 10px 16px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.faq-groups__nav a:hover { background: var(--sunken); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 30px; margin: 0 0 18px; }

/* ---------- Download band ---------- */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  width: var(--page); margin: 0 auto clamp(72px, 9vw, 120px);
  border-radius: 40px; background: var(--forest); color: var(--surface);
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 32px;
  padding: clamp(36px, 6vw, 72px);
}
.band h2 { color: var(--surface); font-size: clamp(36px, 5vw, 60px); line-height: 1.02; margin: 0 0 16px; }
.band h2 .accent { color: var(--butter); }
.band p { color: rgba(251, 244, 230, 0.82); margin: 0; font-size: 18px; max-width: 30em; }
.band .shape { opacity: 0.95; }
.band .shape--a { width: 340px; aspect-ratio: 1; right: -90px; top: -110px; background: var(--forest-pressed); }
.band .shape--b { width: 180px; aspect-ratio: 1; left: 42%; bottom: -100px; background: var(--coral); opacity: 0.9; }
.band__phone { position: relative; justify-self: center; display: flex; align-items: center; gap: 22px; }
.band__qr { background: var(--surface); padding: 14px; border-radius: 24px; width: 172px; text-align: center; color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.band__qr img { width: 144px; height: 144px; margin-bottom: 8px; }
.band__photo { width: 220px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 30px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); transform: rotate(4deg); }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: clip; }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1; letter-spacing: -0.035em; margin: 0 0 20px; animation: fadeUp 0.8s var(--ease) both; }
.page-hero .lead { animation: fadeUp 0.8s var(--ease) 0.12s both; }
.page-hero .overline { animation: fadeUp 0.8s var(--ease) both; }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-hero__art { position: relative; }
.page-hero__art .stage__photo { aspect-ratio: 4 / 3.3; animation: heroIn 1s var(--ease) both; }
.page-hero__art .shape--a { width: 48%; aspect-ratio: 1; right: -8%; top: -10%; }
.page-hero__art .shape--b { width: 30%; aspect-ratio: 1.1; left: -8%; bottom: -8%; }
.page-hero--plain { padding-bottom: 24px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { border-radius: var(--radius-card); padding: 30px 28px; background: var(--white); box-shadow: var(--shadow-soft); }
.card--sage { background: var(--sage-tint); box-shadow: none; }
.card--butter { background: var(--butter-tint); box-shadow: none; }
.card--blush { background: var(--blush-tint); box-shadow: none; }
.card h2, .card h3 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.card p { margin: 0 0 10px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card .big { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--display); color: var(--forest); text-decoration: none; word-break: break-word; }
.card .big:hover { text-decoration: underline; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { display: flex; gap: 16px; align-items: flex-start; color: var(--ink-soft); }
.steps li::before {
  counter-increment: step; content: counter(step);
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: var(--butter-tint); color: var(--forest); font: 700 17px/1 var(--display);
}
.steps strong { color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Long policy text */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(72px, 9vw, 120px); }
.doc__toc { position: sticky; top: 100px; display: grid; gap: 2px; font-size: 15px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 8px; }
.doc__toc strong { font: 600 13px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 10px 12px; }
.doc__toc a { padding: 8px 12px; border-radius: 12px; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.doc__toc a:hover { background: var(--sunken); color: var(--ink); }
.doc__toc a.is-here { background: var(--sage-tint); color: var(--forest); font-weight: 600; }
.prose { max-width: 760px; color: var(--ink-soft); }
.prose h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; margin: 56px 0 14px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose li { font-size: 17px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0; font-size: 15px; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--sage-tint); color: var(--forest); font-weight: 600; }
.callout { border-radius: 22px; padding: 20px 24px; background: var(--butter-tint); color: var(--ink-soft); margin: 20px 0; }
.callout--sage { background: var(--sage-tint); }
.callout--blush { background: var(--blush-tint); }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin: 0; }
.updated { color: var(--ink-muted); font-size: 15px; margin: 0; animation: fadeUp 0.8s var(--ease) 0.2s both; }

/* ---------- Download page ---------- */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 8px 0 56px; }
.app { background: var(--surface); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); }
.app--patient { background: linear-gradient(180deg, var(--sage-tint), var(--white) 46%); }
.app--partner { background: linear-gradient(180deg, var(--blush-tint), var(--white) 46%); }
.app .art { position: relative; padding: 28px 28px 0; isolation: isolate; }
.app .photo { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-photo); box-shadow: var(--shadow-soft); animation: photoIn 0.9s var(--ease) both; }
.app--patient .photo { object-position: 50% 24%; }
.app--partner .photo { object-position: 50% 18%; animation-delay: 0.08s; }
.blob { position: absolute; z-index: -1; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; animation: drift 9s ease-in-out infinite alternate; }
.blob--butter { width: 46%; aspect-ratio: 1; background: var(--butter); top: 10px; right: 6px; }
.blob--sage { width: 36%; aspect-ratio: 1.1; background: var(--sage); bottom: -18px; left: 8px; animation-delay: -3s; }
.blob--coral { width: 40%; aspect-ratio: 1; background: var(--coral); top: 14px; left: 8px; opacity: 0.85; }
.blob--blush { width: 44%; aspect-ratio: 1.15; background: var(--blush); bottom: -16px; right: 10px; animation-delay: -4s; }
.app .body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.app-id { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(26, 34, 30, 0.08); }
.for { margin: 0; font: 600 12px/1.3 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.app h2 { font-size: 30px; line-height: 1.1; margin: 2px 0 0; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-soft); }
.perks li { position: relative; padding-left: 32px; }
.perks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.download { margin-top: auto; justify-content: space-between; }
.download[aria-disabled='true'] { background: var(--line); color: var(--ink-muted); pointer-events: none; box-shadow: none; }
.download[aria-disabled='true'] .btn__arrow { background: var(--surface); color: var(--ink-muted); }
.meta { margin: -6px 0 0; min-height: 1.4em; font-size: 14px; color: var(--ink-muted); text-align: center; }
.install { background: var(--white); border-radius: var(--radius-card); padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 8px 48px; align-items: start; margin-bottom: clamp(72px, 9vw, 120px); box-shadow: var(--shadow-soft); }
.install h2 { grid-column: 1 / -1; font-size: 30px; margin: 0 0 12px; }
.qr { width: 200px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.qr img { margin: 0 auto 10px; border-radius: 16px; border: 1px solid var(--line); padding: 8px; background: var(--surface); width: 148px; height: 148px; }
.qr p { margin: 0; }

/* ---------- Footer ---------- */
.foot { background: var(--forest-deep); color: rgba(251, 244, 230, 0.78); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: 15px; }
.foot__inner { width: var(--page); margin-inline: auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot__brand p { margin: 18px 0 22px; max-width: 26em; }
.foot__brand img { width: 96px; }
.foot__app { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.07); color: var(--surface); text-decoration: none; transition: background 0.2s ease; }
.foot__app:hover { background: rgba(255, 255, 255, 0.12); }
.foot__app img { border-radius: 11px; }
.foot__app span { font-size: 13px; line-height: 1.35; color: rgba(251, 244, 230, 0.7); }
.foot__app strong { display: block; color: var(--surface); font-size: 15px; font-weight: 600; }
.foot__col { display: grid; align-content: start; gap: 10px; }
.foot__col h2 { font: 600 13px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--butter); margin: 6px 0 8px; }
.foot__col a { color: rgba(251, 244, 230, 0.86); text-decoration: none; word-break: break-word; }
.foot__col a:hover { color: var(--white); text-decoration: underline; }
.foot__base { width: var(--page); margin: 48px auto 0; padding-top: 22px; border-top: 1px solid rgba(251, 244, 230, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: rgba(251, 244, 230, 0.6); }
.foot__base p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal='left'] { transform: translateX(-40px); }
.js [data-reveal='right'] { transform: translateX(40px); }
.js [data-reveal='zoom'] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Photos ease up a little as the page scrolls past them (where the browser can) */
@supports (animation-timeline: view()) {
  .parallax { animation: parallax linear both; animation-timeline: view(); }
}

/* ---------- Motion ---------- */
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroIn { from { transform: translateY(24px) scale(0.97); } to { transform: none; } }
@keyframes photoIn { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(10px, -14px) rotate(10deg); } }
@keyframes sway { from { transform: rotate(-12deg); } to { transform: rotate(10deg) translateY(-6px); } }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.8); opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ride { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes parallax { from { transform: translateY(40px); } to { transform: translateY(-40px); } }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__inner { grid-template-columns: 1fr 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .hero__grid, .page-hero__grid, .feature, .band, .faq-groups, .doc { grid-template-columns: 1fr; }
  .hero__art { height: clamp(380px, 96vw, 560px); max-width: 600px; }
  .feature--flip .feature__art { order: 0; }
  .feature__art { max-width: 620px; }
  .services, .cards-3, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-groups__nav, .doc__toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; max-height: none; }
  .doc__toc strong { width: 100%; margin: 0 0 4px 4px; }
  .doc__toc a, .faq-groups__nav a { background: var(--white); padding: 8px 14px; border-radius: 999px; font-size: 14px; }
  .band__phone { justify-self: start; }
  .page-hero__art { max-width: 560px; }

  /* The phone story becomes four short cards with their own screen */
  .story { grid-template-columns: 1fr; }
  .story__phone { display: none; }
  .story__step { min-height: 0; opacity: 1; padding: 0 0 56px; }
  .story__mobile-shot { display: block; margin-top: 24px; max-width: 340px; }
  .story__mobile-shot .phone { width: 100%; max-width: 300px; }
  .story__mobile-shot .screen { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .services, .cards-3, .contact-grid, .tiles, .split { grid-template-columns: 1fr; }
  .float { font-size: 12px; padding: 9px 12px 9px 9px; gap: 9px; }
  .float strong { font-size: 13px; }
  .float__icon { width: 32px; height: 32px; border-radius: 11px; }
  .float--visit { left: -1%; top: 4%; }
  .float--plan { right: -1%; bottom: 14%; }
  .hero__main { width: 74%; right: 2%; }
  .hero__second { width: 52%; }
  .actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .actions .link-quiet { padding: 0; }
  .band { border-radius: 30px; }
  .band__photo { display: none; }
  .apps { grid-template-columns: 1fr; gap: 20px; }
  .app .art { padding: 20px 20px 0; }
  .app .body { padding: 20px; }
  .install { grid-template-columns: 1fr; padding: 24px 20px; }
  .qr, .band__qr { display: none; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .feature__art .float, .feature--flip .feature__art .float { left: 4%; right: auto; bottom: -6%; }
  .prose table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ribbon__track, .areas__row { animation: none !important; flex-wrap: wrap; width: auto; }
  .ribbon__set[aria-hidden], .areas__row [aria-hidden] { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ======================================================================
   Motion layer: page transitions, scroll progress, word reveals, the
   drawn underline, scroll-reactive ribbon, magnetic buttons, tilting
   cards, photo wipes, morphing shapes, drawn icons and the story rail.
   Everything here is switched off for people who prefer less motion.
   ====================================================================== */

/* Pages fade and lift into each other (browsers that support it) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.28s ease both vtOut; }
::view-transition-new(root) { animation: 0.45s var(--ease) both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }
.nav { view-transition-name: nav; }

/* Reading progress */
.progress {
  position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--butter));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* Headlines: each word rises out of its own mask */
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 0.06s); }
.is-in .w > span, .w.is-in > span { transform: none; }

/* The drawn underline under “home.” */
.scribble { position: relative; display: inline-block; }
.scribble svg { position: absolute; left: -2%; bottom: -0.08em; width: 104%; height: 0.32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--butter); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) 0.75s forwards; }
.scribble > span { position: relative; z-index: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Ribbon leans with scroll speed */
.ribbon__track { transform: skewX(var(--skew, 0deg)); transition: transform 0.4s var(--ease); }
.ribbon { --skew: 0deg; }

/* Magnetic buttons */
.btn { will-change: transform; }
.btn.is-magnet { transition: background 0.2s ease, box-shadow 0.2s ease; }

/* Cards tilt towards the pointer, with a soft light */
.service { transform-style: preserve-3d; }
.service::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.38), transparent 45%);
  opacity: 0; transition: opacity 0.3s ease;
}
.service.is-tilting::after { opacity: 1; }
.service.is-tilting { transition: box-shadow 0.4s ease; }

/* Photos wipe open as they arrive */
.js [data-reveal='wipe'] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round var(--radius-photo)); transition: clip-path 1.2s var(--ease); }
.js [data-reveal='wipe'].is-in { clip-path: inset(0 0 0 0 round var(--radius-photo)); }

/* Shapes slowly change their outline as they drift */
.shape:not(.shape--dot), .blob { animation: drift 10s ease-in-out infinite alternate, morph 14s ease-in-out infinite alternate; }
@keyframes morph {
  0% { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; }
  50% { border-radius: 42% 58% 38% 62% / 60% 40% 60% 40%; }
  100% { border-radius: 50% 50% 62% 38% / 42% 62% 38% 58%; }
}

/* Icons draw themselves in */
.tile__icon svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) 0.25s; }
.tile.is-in .tile__icon svg *, html:not(.js) .tile__icon svg * { stroke-dashoffset: 0; }
.tile__icon { transition: transform 0.5s var(--ease); }
.tile:hover .tile__icon { transform: rotate(-8deg) scale(1.08); }
.tile { transition: transform 0.5s var(--ease), opacity 0.9s var(--ease); }
.tile:hover { transform: translateY(-6px); }

/* How it works: a line fills as you read through the steps */
.story__steps { position: relative; }
.story__rail { position: absolute; left: 23px; top: 36vh; bottom: 36vh; width: 2px; background: var(--line); border-radius: 2px; }
.story__rail span { position: absolute; inset: 0; background: var(--forest); border-radius: 2px; transform-origin: top; transform: scaleY(var(--p, 0)); }
.story__num { position: relative; z-index: 1; }
.story__step { min-height: 64vh; }

/* Floating app moments drift in from the side */
.float--visit { animation-name: slideInLeft, bob; }
.float--plan { animation-name: slideInRight, bob; }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px) scale(0.9); } to { opacity: 1; transform: none; } }

/* Phone screens: chosen items pop as each screen arrives */
.phone .time.is-on, .phone .day.is-on { transition: transform 0.5s var(--ease) 0.35s; transform: scale(0.85); }
.phone[data-step='2'] .time.is-on, .phone[data-step='2'] .day.is-on, .story__mobile-shot .time.is-on, .story__mobile-shot .day.is-on { transform: none; }
.phone .code b { transform: translateY(8px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.4s ease; }
.phone[data-step='3'] .code b, .story__mobile-shot .code b { transform: none; opacity: 1; }
.phone .code b:nth-child(2) { transition-delay: 0.08s; }
.phone .code b:nth-child(3) { transition-delay: 0.16s; }
.phone .code b:nth-child(4) { transition-delay: 0.24s; }
.phone .ex .tick.is-on { transform: scale(0); transition: transform 0.45s var(--ease) 0.4s; }
.phone[data-step='4'] .ex .tick.is-on, .story__mobile-shot .ex .tick.is-on { transform: none; }

@media (max-width: 920px) {
  .story__rail { display: none; }
  .story__step { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .w > span { transform: none !important; }
  .scribble path { stroke-dashoffset: 0; }
  .js [data-reveal='wipe'] { clip-path: none; }
  .tile__icon svg * { stroke-dashoffset: 0 !important; }
  .progress { display: none; }
}

/* Hover lifts must beat the finished reveal state */
.js .services > .is-in:hover { transform: translateY(-6px); }
.js .tiles > .is-in:hover { transform: translateY(-6px); }
.js [data-reveal='words'] { opacity: 1; transform: none; }
.page-hero h1[data-split] { animation: none; }

/* Photo wipe sits on a frame around the photo (a fully clipped image never lazy-loads) */
.wipe { position: relative; border-radius: var(--radius-photo); }
.feature__art .wipe .stage__photo { aspect-ratio: 5 / 4; }

/* Story steps: number in its own column, so the progress line runs beside the text, never through it */
.story__step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 28px; align-content: center; }
.story__step > .story__num { grid-row: 1 / span 3; margin: 4px 0 0; align-self: start; }
.story__step > :not(.story__num) { grid-column: 2; }
@media (max-width: 920px) {
  .story__step { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .story__step > .story__num { width: 40px; height: 40px; border-radius: 13px; font-size: 17px; }
  .story__step > .story__mobile-shot { grid-column: 1 / -1; justify-self: center; }
}
.wipe { overflow: hidden; box-shadow: var(--shadow-soft); }
.wipe .stage__photo { box-shadow: none; border-radius: 0; }
@supports (animation-timeline: view()) {
  .wipe .parallax { animation: parallaxInside linear both; animation-timeline: view(); }
}
@keyframes parallaxInside { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }

/* Shapes and the tilted ribbon may poke past the screen edge; never let them widen the page.
   clip (not hidden) keeps the sticky phone working. */
main, .foot { overflow-x: clip; }
@media (max-width: 920px) {
  .story__mobile-shot { width: min(300px, 100%); }
  .story__mobile-shot .phone { width: 100%; }
}
/* Tablets: a third card in a two-column row spans the full width instead of sitting alone */
@media (min-width: 641px) and (max-width: 920px) {
  .cards-3 > :nth-child(3), .contact-grid > :nth-child(3) { grid-column: 1 / -1; }
}
/* Contact cards fill the row whether there are two or three */
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.service__where { color: var(--ink-muted); font-size: 15px; }
/* A full-length photo: shown at its own shape, top-anchored and without the drift zoom, so heads stay in frame */
.feature__art .wipe--whole .stage__photo { aspect-ratio: 600 / 544; object-position: 50% 0; }

/* ── Free exercise library (/exercises/) ─────────────────────────────── */
.lib { display: grid; gap: 28px; }
.lib-map { display: block; }
.lib-region h2 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 12px; }
.lib-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.lib-card { display: flex; gap: 16px; align-items: center; background: var(--surface); border-radius: 22px; padding: 14px 18px; box-shadow: var(--shadow-soft); color: inherit; text-decoration: none; transition: transform 0.2s var(--ease); }
.lib-card:hover { transform: translateY(-2px); }
.lib-card__map { flex: none; background: var(--sage-tint); border-radius: 16px; overflow: hidden; line-height: 0; }
.lib-card__text { display: grid; gap: 4px; }
.lib-card__text strong { font-family: var(--display); font-size: 1.05rem; }
.lib-card__text span { color: var(--ink-soft); font-size: 0.95rem; }
.lib-card__text em { font-style: normal; color: var(--forest); font-weight: 600; font-size: 0.9rem; }
.lib-note { color: var(--ink-muted); font-size: 0.92rem; max-width: 70ch; }
.lib-hero { display: flex; gap: 32px; align-items: center; }
.lib-hero__map { flex: none; display: flex; gap: 10px; justify-content: center; background: var(--sage-tint); border-radius: var(--radius-card); padding: 18px 22px; line-height: 0; }
.lib-hero .overline a { color: inherit; }
.lib-areas__title { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 18px 0 8px; }
.lib-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lib-areas li { padding-left: 18px; position: relative; color: var(--forest); }
.lib-areas li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.lib-areas span, .lib-areas small { color: var(--muted, #68706a); font-weight: 400; }
.lib-credit { font-size: 0.75rem; color: var(--muted, #68706a); }
.lib-credit a { color: inherit; }
.lib-safety { background: var(--blush-tint); border-radius: 22px; padding: 18px 22px; }
.lib-safety h2 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 6px; color: #9c4228; }
.lib-count { font-family: var(--display); font-size: 1.2rem; margin: 0; }
.lib-exercises { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.lib-ex { background: var(--surface); border-radius: 22px; padding: 18px 22px; box-shadow: var(--shadow-soft); display: grid; gap: 14px 22px; }
.lib-ex:has(.lib-ex__media:not(:empty)) { grid-template-columns: minmax(0, 280px) 1fr; align-items: start; }
.lib-ex__thumb { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--sunken); aspect-ratio: 16 / 9; }
.lib-ex__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s var(--ease); }
.lib-ex__thumb:hover img { transform: scale(1.04); }
.lib-ex__play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); }
.lib-ex__play::after { content: ''; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.lib-ex__player { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; display: block; background: #000; }
.lib-card__previews { display: flex !important; align-items: center; gap: 6px; margin-top: 4px; }
.lib-card__previews img { width: 52px; height: 30px; object-fit: cover; border-radius: 6px; background: var(--sunken); }
.lib-card__previews b { color: var(--ink-muted); font-size: 0.85rem; font-weight: 600; }
@media (max-width: 640px) {
  .lib-ex:has(.lib-ex__media:not(:empty)) { grid-template-columns: 1fr; }
}
.lib-ex__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lib-ex__head h3 { font-family: var(--display); font-size: 1.1rem; margin: 0; flex: 1; }
.lib-ex__n { width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.lib-ex__dose { color: var(--ink-muted); font-size: 0.9rem; }
.lib-ex__media:empty { display: none; }
.lib-ex__media > img, .lib-ex__media > video { width: 100%; border-radius: 16px; display: block; background: var(--sunken); }
.lib-ex__watch { font-weight: 600; color: var(--forest); }
.lib-ex h4 { margin: 14px 0 4px; font-size: 0.95rem; color: var(--ink-soft); }
.lib-ex__desc { color: var(--ink-soft); }
@media (max-width: 640px) {
  .lib-hero { flex-direction: column; align-items: flex-start; gap: 18px; }
  .lib-hero__map { padding: 12px; align-self: stretch; }
  .lib-hero__map svg { height: 260px; width: auto; }
}

/* Breadcrumbs: a quiet trail above the page title (inner pages) */
.crumbs { padding-top: 18px; position: relative; z-index: 1; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; margin-block: 0; font-size: 13.5px; color: var(--ink-muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ''; width: 6px; height: 6px; margin: 0 10px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs + * .page-hero, .crumbs + .page-hero { padding-top: clamp(16px, 3vw, 40px); }
