/* Shared kit of the Features pages (copied to assets/v3/features.css by build.mjs). Loads after site.css and solutions.css,
   so every landing and Solutions class (.sec .band .deep .wrap .h2 .lead .list .btn .sl-media .sl-win .sl-vid .sl-cap .hx-under …)
   works here too. Page-only styles go in the page's own <style>. Usage: KIT.md in the build notes.
   Template: .ft-hero (+ .ft-sig) → .ft-how (.ft-steps) → .ft-sides → .ft-guard → Works with (built) → briefing (built). */
.ft{--ft-r:24px;--ft-ease:cubic-bezier(.23,1,.32,1)}
.ft .h1,.ft .h2,.ft .h3{font-weight:500}

/* 1. Hero: crumb, then headline left and promise + buttons right, then the signature visual across the page */
.ft-hero{padding:56px 0 0}
.ft-hero .sl-crumb{justify-content:flex-start}
.ft-hero-g{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:24px 64px;align-items:end;margin-top:28px}
.ft-hero .h1{font-size:clamp(2.5rem,4.6vw,3.75rem);line-height:1.05;letter-spacing:-.025em;max-width:13ch}
.ft-hero .lead{margin:0;max-width:44ch}
.ft-hero .ctas{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px;margin-top:28px}
.ft-sig{position:relative;margin:56px 0 0;border-radius:var(--ft-r);overflow:hidden;isolation:isolate;background:var(--band);box-shadow:inset 0 0 0 1px rgb(14 18 24/.06)}
.ft-sig.deep{box-shadow:none}
.ft-sig+.hx-under{margin-bottom:0}

/* 2. How it works: steps on the left; on wide screens their screens collect in one sticky frame on the right and change with the step
   in view (features.js SonaSteps). Without JS, or narrow, each screen sits under its step. */
.ft-steps{margin-top:56px}
.ft-step-list{list-style:none;margin:0;padding:0;display:grid;gap:56px;counter-reset:st}
.ft-step{counter-increment:st}
.ft-step h3{display:flex;gap:14px;align-items:baseline;margin:0;font:500 1.5rem/1.25 Onest,sans-serif;letter-spacing:-.01em;color:var(--ink)}
.ft-step h3::before{content:counter(st);flex:none;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--brand-s);color:var(--brand);font:500 14px/1 Onest,sans-serif;transform:translateY(-3px)}
.ft-step p{margin:12px 0 0 42px;color:var(--t2);font-size:1.0625rem;line-height:1.6;max-width:46ch}
.ft-step .ft-shot{margin:24px 0 0}
.ft-shot{margin:0}
.ft-shot figcaption{margin-top:12px;font-size:14px;line-height:20px;color:var(--t3)}
.ft-shots{display:none}
@media (min-width:1101px){
  .ft-steps.js{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:80px;align-items:start}
  .ft-steps.js .ft-step-list{padding:12vh 0 18vh;gap:22vh}
  .ft-steps.js .ft-step .ft-shot{display:none}
  .ft-steps.js .ft-step{transition:opacity .3s ease}
  .ft-steps.js .ft-step:not([aria-current]){opacity:.42}
  .ft-steps.js .ft-shots{display:grid;position:sticky;top:calc(50vh - var(--ft-shots-h,560px)/2);min-height:var(--ft-shots-h,560px);align-items:center}
  .ft-shots>.ft-shot{grid-area:1/1;opacity:0;visibility:hidden;transform:translateY(8px) scale(.985);transition:opacity .45s var(--ft-ease),transform .45s var(--ft-ease),visibility 0s .45s}
  .ft-shots>.ft-shot.on{opacity:1;visibility:visible;transform:none;transition-delay:0s}
}
@media (prefers-reduced-motion:reduce){.ft-shots>.ft-shot{transform:none!important;transition:opacity .2s ease,visibility 0s .2s}}

/* 3. What staff and patients see: two views side by side, each with who sees it */
.ft-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:56px}
.ft-side{display:flex;flex-direction:column;min-width:0}
.ft-who{display:flex;align-items:center;gap:10px;margin:0 0 14px;font:500 15px/20px Inter,sans-serif;color:var(--spruce-800)}
.ft-who i{width:8px;height:8px;border-radius:50%;background:var(--brand)}
.ft-who.pt i{background:var(--spruce-400)}
.ft-side .sl-media{flex:1}
.ft-side p{margin:14px 0 0;color:var(--t2);font-size:15px;line-height:1.55;max-width:52ch}
.ft-sides.wide{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}

/* web screens: under 640px a <picture> swaps in a tighter -mobile crop (4:5, 1:1 or 4:3) so the UI stays readable */
.sl-win picture{display:block}

/* a phone screen in a device edge (Figma exports and phone stills; 402×874 is the iPhone frame size used across the site) */
.ft-phone{width:min(100%,300px);margin:0 auto;border-radius:44px;padding:8px;background:#0E1218;box-shadow:0 30px 60px -28px rgb(5 48 48/.55)}
.ft-phone img,.ft-phone video{display:block;width:100%;height:auto;aspect-ratio:402/874;object-fit:cover;object-position:top;border-radius:36px} /* the iPhone screen aspect; any other asset is cropped from the top, never stretched */
.sl-media.ft-ph{display:flex;align-items:flex-start;justify-content:center;padding:40px 24px 0;height:520px}

/* 4. Guardrails: what waits for a person and what never happens, each with where it happens */
.ft-rules{list-style:none;margin:48px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 48px}
.ft-rules li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:16px;padding:22px 0;border-top:1px solid rgb(14 18 24/.1)}
.ft-rules svg{width:22px;height:22px;color:var(--brand);margin-top:1px}
.ft-rules b{display:block;font:500 18px/1.35 Onest,sans-serif;color:var(--ink)}
.ft-rules p{margin:6px 0 0;color:var(--t2);font-size:15px;line-height:1.55}
.ft-rules small{display:block;margin-top:8px;font-size:13px;line-height:18px;color:var(--t3)}
.deep .ft-rules li{border-color:rgb(255 255 255/.14)}
.deep .ft-rules svg{color:#8FCBC4}
.deep .ft-rules b{color:#fff}
.deep .ft-rules p{color:rgb(255 255 255/.8)}
.deep .ft-rules small{color:rgb(255 255 255/.62)}

/* 5. Works with (built from pages.json) and the index cards: a real still of the feature, its name and its line */
.ft-works .sl-head{margin-bottom:8px}
.ft-works-g{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:48px}
.ft-works .rel-sh{margin-top:24px}
.ft-cards{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ft-sols{list-style:none;padding:0;grid-template-columns:1fr!important}
.ft-card{display:flex;flex-direction:column;height:100%;border-radius:18px;background:var(--surface);color:var(--ink);text-decoration:none;overflow:hidden;box-shadow:0 0 0 1px var(--line),0 1px 2px rgb(14 18 24/.04),0 18px 36px -28px rgb(5 48 48/.4);transition:box-shadow .2s var(--ft-ease)}
.ft-card-v{aspect-ratio:16/10;background:var(--band);overflow:hidden}
.ft-card-v picture{display:block;height:100%}
.ft-card-v img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0} /* web stills are pre-cut crops at the box's aspect, so cover never trims */
/* phone thumbs: align-items:flex-start stops the flex row stretching the image to the card height (that squashed it ~75%);
   the phone keeps its 402×874 aspect and the card clips it below the fold, so the top of the screen shows */
.ft-card-v.ph{display:flex;align-items:flex-start;justify-content:center;padding-top:20px}
.ft-card-v.ph img{width:46%;height:auto;aspect-ratio:402/874;object-fit:cover;object-position:top;transform:none;border-radius:20px 20px 0 0;box-shadow:0 0 0 5px #0E1218}
.ft-card-t{padding:16px 18px 0}
.ft-card-t b{display:block;font:500 18px/1.3 Onest,sans-serif;letter-spacing:-.01em}
.ft-card-t p{margin:4px 0 0;font-size:14px;line-height:1.5;color:var(--t2)}
.ft-card>.ar{margin:auto 18px 16px auto;padding-top:12px;box-sizing:content-box;width:16px;height:16px;color:var(--brand);transition:transform .2s var(--ft-ease)}
.ft-card.off{box-shadow:0 0 0 1px var(--line);background:rgb(255 255 255/.5)}
.ft-card.off .ft-card-v img{opacity:.7}
.ft-soon{display:inline-block;margin:10px 0 18px;padding:3px 10px;border-radius:999px;background:var(--band);font-size:13px;line-height:18px;color:var(--t2)}
.ft-card:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@media (hover:hover) and (pointer:fine){
  a.ft-card:hover{box-shadow:0 0 0 1px var(--brand),0 1px 2px rgb(14 18 24/.04),0 24px 40px -26px rgb(5 48 48/.5)}
  a.ft-card:hover>.ar{transform:translateX(3px)}
}
@media (prefers-reduced-motion:no-preference){a.ft-card:active{transform:scale(.99)}}
.ft-all{margin:40px 0 0}
.ft-all a{display:inline-flex;align-items:center;gap:8px;font-weight:500;color:var(--brand);text-decoration:none}
.ft-all .ar{width:16px;height:16px}

/* 6. Closing: the shared briefing gets a second button on these pages */
.ft-btn-ow{background:transparent;color:#fff;border-color:rgb(255 255 255/.45);margin-left:8px}
.ft-btn-ow:hover{border-color:#fff}

/* a small cited fact row (real numbers only, each with its source line) */
.ft-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;margin:56px 0 0;border-radius:18px;overflow:hidden;background:var(--line)}
.ft-facts div{background:var(--canvas);padding:22px 22px 20px}
.band .ft-facts div{background:var(--band)}
.ft-facts b{display:block;font:500 2rem/1.1 Onest,sans-serif;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.ft-facts span{display:block;margin-top:8px;font-size:14px;line-height:1.45;color:var(--t2)}

/* the index: groups of cards */
.ft-grp{padding-top:72px}
.ft-grp>.h3{font-size:1.75rem;letter-spacing:-.015em}
.ft-grp .ft-cards{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:24px}

@media (max-width:1100px){
  .ft-hero-g,.ft-works-g,.ft-sides.wide{grid-template-columns:minmax(0,1fr)}
  .ft-hero .h1{max-width:18ch}
  .ft-grp .ft-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){.ft-card-v:not(.ph){aspect-ratio:4/3}} /* matches the -mobile card crops */
@media (max-width:760px){
  .ft-hero{padding-top:28px}
  .ft-hero .h1{font-size:clamp(2rem,9vw,2.5rem);line-height:1.12}
  .ft-hero-g{margin-top:16px}
  .ft-sig{margin-top:36px;border-radius:20px}
  .ft-sides,.ft-rules,.ft-cards,.ft-grp .ft-cards{grid-template-columns:minmax(0,1fr)}
  .ft-step p{margin-left:0}
  .ft-step-list{gap:48px}
  .sl-media.ft-ph{height:440px}
  .ft-phone{width:240px;border-radius:38px}
  .ft-phone img,.ft-phone video{border-radius:30px}
  .ft-btn-ow{margin-left:0}
  .ft-grp{padding-top:56px}
  /* the phone dock (site.css .dock, 68 px plus the safe area) never hides the last lines or a focused or anchored target */
  html{scroll-padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  main>section:last-child{padding-bottom:calc(72px + 92px + env(safe-area-inset-bottom,0px))}
}

/* 7. Motion kit (features.js): one ease, enters 240–420 ms, stagger 50 ms, no bounce. Nothing here moves under reduced motion. */
.ft{--ft-mo:cubic-bezier(.2,.8,.2,1)}

/* the step rail (wide screens): a line through the numbers, filled to the step in view; the step in view gets a solid number */
.ft-step h3::before{position:relative;z-index:1;transition:background-color .24s var(--ft-mo),color .24s var(--ft-mo),box-shadow .24s var(--ft-mo)}
.ft-step[aria-current] h3::before{background:var(--brand);color:#fff}
.ft-step.done h3::before{box-shadow:inset 0 0 0 1.5px var(--brand)}
@media (min-width:1101px){
  .ft-rail{position:relative}
  .ft-rail::before,.ft-rail::after{content:"";position:absolute;left:13px;top:var(--rt,0);height:var(--rh,0);width:2px;border-radius:1px;background:var(--line);pointer-events:none}
  .ft-rail::after{background:var(--brand);transform-origin:50% 0;transform:scaleY(var(--rp,0));transition:transform .42s var(--ft-mo)}
}

/* step reveals: a screen rises out of a soft clip; a diagram's rows arrive in turn. In the sticky column, again on each step. */
.ft-mo .ft-step .ft-shot>.sl-media{transition:opacity .42s var(--ft-mo),transform .42s var(--ft-mo)}
.ft-mo .ft-step .ft-shot>.sl-media img{transition:clip-path .42s var(--ft-mo)}
.ft-mo .ft-step .ft-shot:not(.in)>.sl-media{opacity:0;transform:translateY(16px)}
.ft-mo .ft-step .ft-shot:not(.in)>.sl-media img{clip-path:inset(0 0 12% 0)}
.ft-mo .ft-step .ft-shot>[role=img]>*{transition:opacity .36s var(--ft-mo),transform .36s var(--ft-mo);transition-delay:calc(var(--i,0)*50ms)}
.ft-mo .ft-step .ft-shot:not(.in)>[role=img]>*{opacity:0;transform:translateY(10px)}
.ft-mo .ft-shots>.ft-shot.on>[role=img]>*{animation:ft-up .36s var(--ft-mo) backwards;animation-delay:calc(var(--i,0)*50ms + 80ms)}
@keyframes ft-up{from{opacity:0;transform:translateY(10px)}}

/* tap-to-read notes on a screen (SonaSpots): numbered pins, and the caption under the screen that steps through them */
.ft-spots{position:absolute;inset:0;z-index:2;pointer-events:none}
.ft-spot{position:absolute;left:var(--x);top:var(--y);width:44px;height:44px;margin:-22px 0 0 -22px;padding:0;border:0;background:none;display:grid;place-items:center;isolation:isolate;pointer-events:auto;cursor:pointer;font:600 11px/1 Inter,sans-serif;font-variant-numeric:tabular-nums;color:var(--brand);-webkit-tap-highlight-color:transparent;transition:color .16s var(--ft-mo),transform .14s var(--ft-mo)}
.ft-spot::before{content:"";position:absolute;z-index:-1;left:11px;top:11px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 0 0 1.5px var(--brand),0 4px 12px -2px rgb(5 48 48/.35);transition:background-color .16s var(--ft-mo),transform .24s var(--ft-mo)}
.ft-spot::after{content:"";position:absolute;z-index:-2;left:11px;top:11px;width:22px;height:22px;border-radius:50%;background:var(--brand);opacity:0}
.ft-spot.on{color:#fff}
.ft-spot.on::before{background:var(--brand);transform:scale(1.12)}
.ft-mo .ft-spot.on::after{animation:ft-ping .7s var(--ft-mo) 2}
@keyframes ft-ping{from{opacity:.35;transform:scale(1)}to{opacity:0;transform:scale(2)}}
.ft-spot:active{transform:scale(.96)}
@media (hover:hover) and (pointer:fine){.ft-spot:hover::before{transform:scale(1.12)}}
@media (max-width:640px){.ft-spots.crop .ft-spot{display:none}.ft-spots.crop .ft-spot.m{display:grid;left:var(--xm);top:var(--ym)}} /* a pin keeps its place on the phone crop only if it has one (--xm/--ym) */
.ft-note{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 14px;align-items:center;margin-top:12px;padding:6px 6px 6px 16px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 1px 2px rgb(14 18 24/.04)}
.ft-note-n{margin:0;font:500 13px/18px Inter,sans-serif;font-variant-numeric:tabular-nums;color:var(--t3)}
.ft-note-n span{color:var(--brand)}
.ft-note-t{display:grid;align-items:center}
.ft-note-t>p{grid-area:1/1;margin:0;font-size:14px;line-height:20px;color:var(--ink);text-wrap:pretty;transition:opacity .24s var(--ft-mo),transform .24s var(--ft-mo)}
.ft-note-t>p[hidden]{display:block;visibility:hidden;opacity:0;transform:translateY(4px)}
.ft-note-b{display:flex}
.ft-note-b button{width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:12px;background:none;color:var(--ink);cursor:pointer;transition:background-color .16s var(--ft-mo),transform .14s var(--ft-mo)}
.ft-note-b svg{width:16px;height:16px}
.ft-note-b button:active{transform:scale(.96);background:var(--mist)}
.ft-note-b button:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
@media (hover:hover) and (pointer:fine){.ft-note-b button:hover{background:var(--mist)}}
@media (max-width:640px){.ft-note{grid-template-columns:minmax(0,1fr) auto;padding-left:14px}.ft-note-t{grid-column:1/-1;grid-row:1;padding:8px 0 0}.ft-note-n{grid-row:2}.ft-note-b{grid-row:2;justify-self:end}}

/* index cards: the still settles in a touch on hover */
.ft-card-v img{transition:transform .42s var(--ft-mo)}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){a.ft-card:hover .ft-card-v:not(.ph) img{transform:scale(1.02)}}

@media (prefers-reduced-motion:reduce){.ft-rail::after,.ft-note-t>p,.ft-spot,.ft-spot::before{transition:none}}
