/* Fit content, never discard it. fx.js switches only an over-height track to
   its flowing layout, retaining all cards and their entrance animation. */
.hs .stage{padding-bottom:48px}
.hs .tcard{min-height:0;max-height:none;overflow:visible;justify-content:center}
.hs .bar{bottom:18px}
@media(max-height:760px){
 .hs .tcard{padding:20px}
 .hs .tcard .num{font-size:56px}
 .hs .tcard h3{font-size:clamp(30px,8vw,48px);margin:4px 0 10px}
 .hs .tcard p,.hs .tcard li{font-size:17px;line-height:1.5}
 .hs .tcard .ex{padding:12px;font-size:16px;display:block}
}
.hs.flow{height:auto!important;padding:48px 20px;view-timeline-name:none}
.hs.flow .stage{position:relative;height:auto;overflow:visible;padding:0;background:none}
.hs.flow .track{display:grid;width:auto;gap:20px;padding:0;animation:none;transform:none!important}
.hs.flow .tcard{width:100%;min-height:0;animation:card-arrive 1s both;animation-timeline:view();animation-range:entry 0% entry 65%}
.hs.flow .bar{position:relative;inset:auto;margin-top:22px}
@keyframes card-arrive{from{transform:translateY(35px) rotate(-2deg);opacity:.3}to{transform:none;opacity:1}}
@media(max-width:700px){
 .hero>.st{display:block;pointer-events:none;z-index:0;opacity:.22}
 .hero>.s1{width:64px;height:64px;top:12%;left:-24px}
 .hero>.s2{width:42px;height:42px;top:auto;bottom:12%;left:auto;right:-18px}
 .hero>.s3{width:100px;height:100px;top:auto;bottom:-38px;left:12%}
 .hero>.s4{width:34px;height:34px;top:16%;left:auto;right:-12px}
 .hero>h1,.hero>.lead,.hero>.btn{position:relative;z-index:1}
}
/* JS disables sticking only when a card cannot fit, not for a whole device class. */
.stk.too-tall{position:relative!important;top:auto!important}
@media(prefers-reduced-motion:reduce){.hs.flow .tcard{animation:none}}
/* proc steps: lift step text clear of the chat bubble and the stage edge (short/landscape viewports) */
.proc .stage{padding-bottom:110px}
/* proc: pin every row in place (pages without the mono label mis-placed them) and keep the morph shape clear of text */
.proc .stage>.mono{grid-row:1}
.proc .stage>h2{grid-row:2}
.proc .mid{grid-row:3}
.proc .dash{grid-row:4}
.proc .psteps{grid-row:5}
.proc .shape{height:min(calc(100% - 48px),56vmin)}
/* proc on short landscape screens: the center slot cannot hold the morph shape,
   so move it to the empty area beside the steps instead of letting it collapse */
@media(max-height:600px) and (min-width:800px){
 .proc .mid{position:static}
 .proc .shape{left:13%;top:64%;height:min(30svh,150px)}
}
/* playground demo: keep the typed multi-line prompt and answer readable */
.pg .msg{white-space:pre-line}
/* hero typer: readable multiline prompts, steady height during typing */
.typer{display:flex;flex-direction:column;align-items:stretch;width:640px;max-width:100%;border-radius:24px;box-sizing:border-box}
.typer b{display:block;white-space:pre-line;overflow-wrap:anywhere;min-width:0;font-size:16px;line-height:1.65}
.typer u{flex-shrink:0}

/* The approved offer overview sits before the inspiration prompt. */
.site-intro{width:760px;max-width:100%;margin:0 0 26px}
.site-intro .intro-line{font-size:clamp(23px,3vw,32px);font-weight:700;line-height:1.35;margin:0 0 9px}
.site-intro .intro-desc{font-size:18px;line-height:1.6;margin:0 0 22px;max-width:640px}
.intro-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:2px solid var(--dk)}
.intro-grid>a{display:block;min-width:0;padding:14px 12px 4px 0;border-inline-start:1px solid #b5c5ed;text-decoration:none;color:var(--dk);transition:background .2s}
.intro-grid>a:last-child{border-inline-start:0}
.intro-grid>a:hover{background:rgba(255,255,255,.55)}
.intro-grid>a:focus-visible{outline:2px solid var(--b);outline-offset:3px;border-radius:3px}
.intro-grid span{display:block;color:var(--b);font-size:11px;margin-bottom:9px}
.intro-grid b{display:block;font-size:19px;margin-bottom:6px}
.intro-grid small{display:block;font-size:13px;line-height:1.6;color:#4b5475}
@media(max-width:700px){
 .site-intro .intro-desc{font-size:16px}
 .intro-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}
 .intro-grid>a:nth-child(2){border-inline-start:0}
 .intro-grid b{font-size:18px}
}
/* scroll after the phone: the sky section opens like a widening card, its headline rises into place */
@supports (animation-timeline:view()){
@media(prefers-reduced-motion:no-preference){
 .sky{animation:skyOpen linear both;animation-timeline:view();animation-range:entry 0% entry 85%}
 .sky>h2{animation:skyRise linear both;animation-timeline:view();animation-range:entry 10% cover 38%}
 .sky>.mono{animation:skyRise linear both;animation-timeline:view();animation-range:entry 0% cover 30%}
}}
@keyframes skyOpen{from{clip-path:inset(0 14% 0 14% round 56px 56px 0 0)}to{clip-path:inset(0 0 0 0 round 0)}}
@keyframes skyRise{from{transform:translateY(70px) scale(.92);opacity:.15}to{transform:none;opacity:1}}
