/* /features scroll presentation (21 Oct 2026). Inter only (@font-face lives in /assets/site.css).
   Default = static stacked panels (no JS, or prefers-reduced-motion).
   html.motion (set in <head> before first paint) = pinned phone, copy scrolls past it.
   Nothing here or in features.js touches scroll position: no hijacking, no snapping. */

:root{
  --deep:#081524;
  --teal-b:#4DBFB0;
  --cream-2:rgba(240,237,230,.74);
  --cream-3:rgba(240,237,230,.6);
  --rule:rgba(240,237,230,.12);
  --app:#152233;          /* the app's own screen background */
  --hdr:78px;             /* fixed site nav, at rest (measured 77.8 px at 390, 820 and 1440) */
  --hdr-s:70px;           /* fixed site nav, once scrolled (measured 69.8 px) */
  --gutter:clamp(20px,5vw,56px);
}

.fx{color:var(--cream);font:400 1.0625rem/1.6 'Inter','Inter Fallback',system-ui,sans-serif}
.fx img{max-width:100%;display:block}
.fx a{color:var(--teal-b)}
.fx :focus-visible{outline:2px solid var(--teal-b);outline-offset:3px;border-radius:6px}
.fx h1,.fx h2,.fx h3{margin:0;font-family:'Inter','Inter Fallback',system-ui,sans-serif;font-weight:700;letter-spacing:-.04em;line-height:1.02;text-wrap:balance;color:var(--cream)}
.fx h1{font-size:clamp(2.6rem,7.2vw,5.6rem)}
.fx h2{font-size:clamp(2.1rem,5vw,4.1rem)}
.fx h3{font-size:clamp(1.7rem,3.4vw,2.8rem)}
.copy p{margin:20px 0 0;color:var(--cream-2);max-width:46ch}
.copy .lede{font-size:clamp(1.08rem,1.6vw,1.3rem);line-height:1.5}
.copy .feature{margin:0 0 18px;color:var(--teal-b);font-weight:600;font-size:.95rem;letter-spacing:-.005em}
.copy .promise{color:var(--teal-b);font-weight:700;letter-spacing:-.01em}
.copy .facts{font-size:.95rem;color:var(--cream-3);border-top:1px solid var(--rule);padding-top:14px}
.copy .small{font-size:.85rem;color:var(--cream-3)}
.copy .small a{color:var(--cream-2)}
.copy .more{font-weight:600;text-decoration:none;border-bottom:1px solid rgba(77,191,176,.4)}
.copy .more:hover{border-bottom-color:var(--teal-b)}

/* additional-features list: term and line, not cards */
.extras{margin:28px 0 0;padding:0;max-width:40rem}
.extras div{display:grid;grid-template-columns:minmax(9.5rem,13rem) 1fr;gap:4px 24px;padding:14px 0;border-top:1px solid var(--rule)}
.extras div:last-child{border-bottom:1px solid var(--rule)}
.extras dt{font-weight:600;color:var(--cream);letter-spacing:-.01em}
.extras dd{margin:0;color:var(--cream-2)}
@media (max-width:560px){.extras div{grid-template-columns:1fr}}

.cta-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:34px}
.fx .btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 28px;border-radius:999px;font-weight:600;font-size:1rem;text-decoration:none;letter-spacing:-.01em}
.fx .btn-solid{background:var(--teal-b);color:var(--navy)}
.fx .btn-solid:hover{filter:brightness(1.07)}
.fx .btn-ghost{border:1.5px solid rgba(240,237,230,.42);color:var(--cream)}
.fx .btn-ghost:hover{border-color:var(--cream)}

/* ---------- the phone ---------- */
.phone{position:relative;aspect-ratio:1320/2868;height:auto;width:100%;padding:3.2%;border-radius:15% / 7%;background:linear-gradient(160deg,#1b2f45 0%,var(--deep) 38%,#050e19 100%);box-shadow:inset 0 0 0 1px rgba(240,237,230,.14),inset 0 0 0 4px #050d17,0 40px 80px -30px rgba(0,0,0,.65)}
.screen-area{position:relative;width:100%;height:100%;border-radius:12.5% / 5.8%;overflow:hidden;background:var(--app)}
.island{position:absolute;z-index:3;top:1.6%;left:50%;width:31%;height:3.3%;transform:translateX(-50%);background:#02060b;border-radius:999px}
/* screenshots have the status bar cropped (top 190 of 2868 px), so they start below it */
.screen-area img{position:absolute;left:0;top:6.62%;width:100%;height:auto}
/* a screenshot cropped short of the full screen fades into the app background */
.screen-area img.cut{-webkit-mask-image:linear-gradient(#000 82%,transparent);mask-image:linear-gradient(#000 82%,transparent)}

/* ---------- static layout (default) ---------- */
.stage{position:relative;overflow-x:clip;padding-top:var(--hdr)}
.dock{display:none}
.rail{display:none}
.scenes{max-width:1200px;margin:0 auto;padding:0 var(--gutter)}
.step{display:grid;grid-template-columns:minmax(0,1fr);gap:36px;align-items:center;padding:72px 0;border-bottom:1px solid var(--rule)}
.step-group .step:first-child{border-bottom:0;padding-bottom:24px}
.step-intro{padding-top:56px}
.inline-phone{margin:0;justify-self:center;width:min(260px,68vw)}
.step-rest .copy,.step-cta .copy{grid-column:1/-1}
.step-cta{border-bottom:0;padding:96px 0 112px}
@media (min-width:900px){
  .step{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:64px;padding:110px 0}
  .inline-phone{width:min(300px,100%)}
}

/* ---------- motion layout ---------- */
html.motion .stage{padding-top:calc(var(--hdr) - var(--hdr-s))}
html.motion .dock{display:block;position:sticky;top:var(--hdr-s);height:calc(100svh - var(--hdr-s));z-index:2;pointer-events:none;overflow:clip}
html.motion .scenes{position:relative;z-index:1;margin-top:calc(-100svh + var(--hdr-s))}
html.motion .inline-phone{display:none}
html.motion .step{border-bottom:0;display:block;min-height:calc(100svh - var(--hdr-s))}
html.motion .step-group .step:first-child{padding-bottom:0}

/* No will-change on the phone or its screens: it would freeze their raster at the
   reveal's starting scale and leave the screenshots soft once the phone settles.
   Every value below is the state at scroll 0. features.js then scrubs transform and
   opacity from the scroll position, starting from exactly these values, so nothing jumps
   when the script arrives. */
.glow{position:absolute;left:50%;top:58%;width:min(780px,120vw);aspect-ratio:1;transform:translate3d(-50%,-50%,0);opacity:.85;background:radial-gradient(closest-side,rgba(77,191,176,.22),rgba(58,158,143,.08) 55%,transparent 72%);pointer-events:none;will-change:transform,opacity}
.veil{display:none}
.phone-wrap{position:absolute;perspective:1600px}
html.motion .phone-wrap .phone{transform-origin:50% 60%;transform:translate3d(0,8%,0) scale(.88) rotateX(22deg) rotateY(-18deg)}
html.motion .screen{position:absolute;inset:0;opacity:0}
html.motion .screen.is-on{opacity:1}
/* a crisp, flat screen surface: a faint top light, as on real glass */
html.motion .screen-area::after{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;background:linear-gradient(155deg,rgba(255,255,255,.07) 0%,rgba(255,255,255,0) 32%)}

/* one orchestrated load: the phone rises and settles */
@keyframes rise{from{opacity:0;transform:translateY(6%)}to{opacity:1;transform:none}}
html.motion .phone-wrap{animation:rise 1s cubic-bezier(.16,.8,.24,1) .05s both}

/* phones and small tablets: phone pinned in the top of the viewport, copy scrolls
   up through the band below it and then passes under the phone */
@media (max-width:899px){
  html.motion .veil{display:block;position:absolute;inset:0;background:linear-gradient(to bottom,var(--navy) 0,var(--navy) 60%,rgba(15,34,54,0) 66%);will-change:opacity}
  html.motion .phone-wrap .phone{transform:translate3d(0,8%,0) scale(.88) rotateX(16deg) rotateY(-10deg)}
  html.motion .phone-wrap{left:0;right:0;top:14px;height:56%;display:flex;justify-content:center}
  html.motion .phone-wrap .phone{height:100%;width:auto}
  html.motion .glow{top:30%;width:140vw}
  html.motion .step{padding:calc((100svh - var(--hdr-s)) * .64) 0 8svh}
  html.motion .step-intro{padding-top:calc((100svh - var(--hdr-s)) * .64 + var(--hdr-s))}
  html.motion .fx h1,html.motion h1{font-size:clamp(2.1rem,9.4vw,3rem)}
  html.motion .fx h2{font-size:clamp(1.75rem,7.6vw,2.6rem)}
  html.motion .fx h3{font-size:clamp(1.5rem,6.4vw,2.1rem)}
  html.motion .copy p{font-size:.98rem}
  html.motion .copy .lede{font-size:1.02rem}
  html.motion .step-rest{padding-top:12svh}
  html.motion .step-cta{min-height:auto;padding-bottom:14svh}
}

/* desktop: copy column left, phone column right */
@media (min-width:900px){
  html.motion .phone-wrap{top:50%;left:calc(50% + min(4vw,64px));height:min(80%,800px);width:auto;aspect-ratio:1320/2868;transform:translateY(-50%)}
  html.motion .phone-wrap .phone{height:100%}
  html.motion .glow{left:calc(50% + min(4vw,64px) + min(17vw,190px))}
  html.motion .scenes{max-width:1240px}
  html.motion .step{display:flex;align-items:center;padding:0;width:50%}
  html.motion .copy{max-width:36rem;padding-right:24px}
  html.motion .step-rest,html.motion .step-cta{width:56%}
  html.motion .step-cta{min-height:calc(100svh - var(--hdr-s))}
  html.motion .phone-wrap{animation-name:rise-d}
  @keyframes rise-d{from{opacity:0;transform:translateY(-44%)}to{opacity:1;transform:translateY(-50%)}}
}

/* rail: names, not numbers; plain anchors, never hijacks scrolling */
@media (min-width:1280px){
  .rail{display:block;position:fixed;left:22px;top:50%;transform:translateY(-50%);z-index:40}
  .rail ol{list-style:none;margin:0;padding:0 0 0 14px;border-left:1px solid var(--rule)}
  .rail li{margin:0}
  .rail a{display:block;padding:5px 0;font-size:.74rem;color:var(--cream-3);text-decoration:none;position:relative}
  .rail a:hover{color:var(--cream)}
  .rail a[aria-current="true"]{color:var(--teal-b);font-weight:600}
  .rail a[aria-current="true"]::before{content:'';position:absolute;left:-15px;top:6px;bottom:6px;width:2px;background:var(--teal-b);border-radius:2px}
}


/* the site footer sits above the pinned phone's layer */
footer{position:relative;z-index:3}
