/* How the home page scales across screens (Oscar, 7 Nov 2026: "do a deep review with codex on the scaling of the website
   according to different screens"; Codex's review in reviews/2026-11-07-scaling-codex.md, measured at 14 sizes).
   Loaded last, so these win without another !important chain. One file: removing its <link> undoes it. */

/* 1. one page scale beside the hero's own unit */
:root{--gutter:clamp(1rem,3vw,3rem);--section-space:clamp(2.5rem,5vw,6rem);--heading:clamp(2rem,3.6vw,3.375rem);--display:clamp(2.125rem,5vw,4.625rem)}
.section:not(.split):not(.tour):not(.bk-scene):not(.boxscroll){padding-top:var(--section-space);padding-bottom:var(--section-space)}
.container{max-width:80rem;padding-left:var(--gutter);padding-right:var(--gutter)}
html{scroll-padding-top:96px}

/* 2. the hero: its unit stops growing at 1600 px wide (16 px), so a 2560 screen gets 45 px titles, not 60 */
:root{--hu:min(1vw,1.5vh,1rem)}
@supports (height:1svh){:root{--hu:min(1vw,1.5svh,1rem)}}
@media(max-width:767px){:root{--hu:min(2.3vw,1.05vh)}.hero-img-wrap{height:clamp(28rem,78svh,46rem)!important;min-height:0!important}}

/* 3. get started: the cards' inherited 350 px minimum pushed them off a phone */
#get-started .cta-cols{width:100%;max-width:64rem;grid-template-columns:minmax(0,1fr);gap:1rem}
#get-started .cta-block{min-width:0;width:100%;box-sizing:border-box;padding:1.5rem;gap:1.25rem}
#get-started .rows-48{gap:2rem}
#get-started .cta-button{height:auto;min-height:44px;padding:.75rem 1rem;white-space:normal}
@media(min-width:768px){#get-started .cta-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
#get-started h3{font-size:var(--heading);line-height:1.1}

/* 5. the box moment: its scroll stops growing with the screen (was 3600 px on a 2560 screen) */
.bs-track{height:min(220vh,150rem)}
@media (max-width:991px),(max-height:520px){.bs-track{height:auto}}
@media (prefers-reduced-motion:reduce){.bs-track{height:auto}}

/* 6. book it in a minute: fixed gutters, a capped scene, one column below 992 px, a square scene on a phone */
.bk-stage{max-width:82.5rem;padding:var(--section-space) var(--gutter)}
@media(min-width:992px){.bk-show{max-width:41.25rem;justify-self:center}}
@media(max-width:991px){.bk-stage{grid-template-columns:minmax(0,1fr);gap:24px}.bk-show{order:-1;max-width:41.25rem;justify-self:center;width:100%}}
@media(max-width:560px){.bk-show{aspect-ratio:1/1!important}.bk-phone{height:88%!important}}
.bk-replay{min-height:44px}

/* 7. the rider text and the founder's story: capped, with spacing that stops growing (was 307 px each side at 2560) */
.section.split.blend{max-width:90rem;margin-left:auto;margin-right:auto}
.section.split.blend .slider-txt-wrap{min-width:0;max-width:none;padding:var(--section-space) var(--gutter)!important;gap:24px}
.section.split.blend .slider-txt-wrap p{max-width:60ch}
@media(max-width:991px){.section.split.blend .slider-wrap{height:clamp(15rem,50vw,25rem);aspect-ratio:auto}}

/* 8. the quote reads at a set width; the CO2 block stops pinning where it would not fit */
#boxscroll + .section.green .container{max-width:64rem}
@media(max-width:991px),(max-height:799px){#co2{position:relative!important;top:auto!important;transform:none!important}} /* relative, not static: the pedals badge is placed against this block */

/* 9. phone bars and touch targets */
@media(max-width:479px){html{scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom))}.wa-float{bottom:calc(92px + env(safe-area-inset-bottom))!important}}
.demo-pill{font-size:.75rem;line-height:1.4}
.join-big,.foot-legal a{min-height:44px;display:inline-flex;align-items:center}
.foot-legal a{padding-left:8px;padding-right:8px}
.nav-contact .nav-call{height:42px!important;border-right:0!important;padding-right:12px!important;background:linear-gradient(rgba(255,255,255,.45),rgba(255,255,255,.45)) right center/1px 26px no-repeat} /* the whole pill height is the target; the divider is drawn, not a border */

/* Oscar, 7 Nov 2026: "big screen the co2 is kinda polluting hugo, maybe a bit lower and have the pedal animation thing a bit
   bigger": the exhaust sits inside the CO2 block's green so its cloud never drifts over the founder's photo; the pedals larger */
.nozzle-wrap{left:0!important;bottom:auto!important;top:clamp(28px,3vw,56px)!important;width:clamp(200px,18vw,300px)!important;z-index:1!important}
.pedal-link svg{width:clamp(120px,10vw,150px)!important;height:clamp(120px,10vw,150px)!important}
@media(max-width:767px){.pedal-link svg{width:104px!important;height:104px!important}}
