/* The space between the hero and "How it works": fifteen variants to compare,
   picked with ?gap=N (html[data-gap="N"], set in the page head). Without it none
   applies. Selectors start html:root[data-gap] so they outrank hero-variants.css's
   html[data-hero] rules. Only margins, padding, min-height, sizes and pseudo-elements
   change here: the hero's load animation (hv-pop-in, on translate and scale) and
   its desktop centring (translate on .hero) are left alone. */

/* 1. Just a little tighter */
html:root[data-gap="1"] body.landing-mode main>.hero{min-height:calc(100svh - 82px - 64px);padding-bottom:72px}
html:root[data-gap="1"] body.landing-mode .cs-how{margin-top:88px}
@media(max-width:700px){
 html:root[data-gap="1"] body.landing-mode main>.hero{min-height:calc(100svh - 76px - 64px);padding-bottom:56px}
 html:root[data-gap="1"] body.landing-mode .cs-how{margin-top:64px}
}

/* 2. Hero sized to its content */
html:root[data-gap="2"] body.landing-mode main>.hero{min-height:0;justify-content:flex-start;padding-top:clamp(48px,8vh,80px);padding-bottom:clamp(56px,9vh,88px)}
@media(max-width:700px){
 html:root[data-gap="2"] body.landing-mode main>.hero{padding-top:48px;padding-bottom:40px}
}

/* 3. Hero at 80% height */
html:root[data-gap="3"] body.landing-mode main>.hero{min-height:max(560px,calc(80svh - 72px));padding-bottom:48px}
html:root[data-gap="3"] body.landing-mode .cs-how{margin-top:96px}
@media(max-width:700px){
 html:root[data-gap="3"] body.landing-mode main>.hero{min-height:max(500px,calc(80svh - 72px));padding-bottom:40px}
 html:root[data-gap="3"] body.landing-mode .cs-how{margin-top:64px}
}

/* 4. Heading peeks above the fold */
html:root[data-gap="4"] body.landing-mode main>.hero{min-height:max(560px,calc(100svh - 72px - 150px));padding-bottom:24px}
html:root[data-gap="4"] body.landing-mode .cs-how{margin-top:56px}
@media(max-width:700px){
 html:root[data-gap="4"] body.landing-mode main>.hero{min-height:max(520px,calc(100svh - 72px - 110px));padding-bottom:16px}
 html:root[data-gap="4"] body.landing-mode .cs-how{margin-top:40px}
}

/* 5. Content nudged up under nav */
html:root[data-gap="5"] body.landing-mode main>.hero{justify-content:flex-start;min-height:0;padding-top:clamp(12px,2.4vh,28px);padding-bottom:clamp(72px,12vh,120px)}
@media(max-width:700px){
 html:root[data-gap="5"] body.landing-mode main>.hero{padding-top:20px;padding-bottom:56px}
}

/* 6. Tighter How it works top */
html:root[data-gap="6"] body.landing-mode main>.hero{min-height:calc(100svh - 82px - 72px);padding-bottom:48px}
html:root[data-gap="6"] body.landing-mode .cs-how{margin-top:32px}
@media(max-width:700px){
 html:root[data-gap="6"] body.landing-mode main>.hero{min-height:calc(100svh - 76px - 80px);padding-bottom:40px}
 html:root[data-gap="6"] body.landing-mode .cs-how{margin-top:24px}
}

/* 7. Heading overlaps the hero's foot */
html:root[data-gap="7"] body.landing-mode .cs-how{position:relative;z-index:3;margin-top:-56px}
@media(max-width:700px){
 html:root[data-gap="7"] body.landing-mode .cs-how{margin-top:-48px}
}

/* 8. Soft warm tint from the fold */
html:root[data-gap="8"] body.landing-mode{background:linear-gradient(#fff 0,#fff calc(100svh - 160px),#f7f5f1 calc(100svh + 40px),#f7f5f1 calc(100svh + 260px),#fff calc(100svh + 900px)) no-repeat,#fff}
html:root[data-gap="8"] body.landing-mode main>.hero{min-height:calc(100svh - 82px - 56px);padding-bottom:64px}
html:root[data-gap="8"] body.landing-mode .cs-how{margin-top:72px}

/* 9. "How it works" pill cue */
html:root[data-gap="9"] body.landing-mode main>.hero{padding-bottom:120px}
html:root[data-gap="9"] body.landing-mode main>.hero::after{content:"How it works \2193";position:absolute;left:50%;bottom:44px;transform:translateX(-50%);
 padding:7px 14px 8px;border-radius:999px;background:#f3f1ec;color:#6f6f73;font:600 13px/1 Inter,sans-serif;letter-spacing:-.01em;white-space:nowrap;pointer-events:none}
html:root[data-gap="9"] body.landing-mode .cs-how{margin-top:56px}
@media(prefers-reduced-motion:no-preference){
 html:root[data-gap="9"][data-hero-ready] body.landing-mode main>.hero::after{animation:hg-fade .6s ease .55s backwards}
}
@media(max-width:700px){
 html:root[data-gap="9"] body.landing-mode main>.hero{padding-bottom:96px}
 html:root[data-gap="9"] body.landing-mode main>.hero::after{bottom:32px}
 html:root[data-gap="9"] body.landing-mode .cs-how{margin-top:40px}
}
@keyframes hg-fade{from{opacity:0}to{opacity:1}}

/* 10. Bobbing arrow at the foot */
html:root[data-gap="10"] body.landing-mode main>.hero{min-height:calc(92svh - 82px);padding-bottom:112px}
html:root[data-gap="10"] body.landing-mode main>.hero::after{content:"";position:absolute;left:50%;bottom:40px;width:11px;height:11px;margin-left:-6px;
 border-right:2px solid #8e8e93;border-bottom:2px solid #8e8e93;rotate:45deg;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 html:root[data-gap="10"] body.landing-mode main>.hero::after{animation:hg-bob 2.2s ease-in-out 1s infinite}
}
@keyframes hg-bob{0%,100%{translate:0 0}50%{translate:0 6px}}
html:root[data-gap="10"] body.landing-mode .cs-how{margin-top:56px}
@media(max-width:700px){
 html:root[data-gap="10"] body.landing-mode main>.hero{padding-bottom:88px}
 html:root[data-gap="10"] body.landing-mode main>.hero::after{bottom:30px}
 html:root[data-gap="10"] body.landing-mode .cs-how{margin-top:40px}
}

/* 11. Bigger title and photos */
@media(min-width:701px){
 html:root[data-gap="11"][data-hero="1"] body .hero .hv-g-title,html:root[data-gap="11"][data-hero="1"] body .hero .hv-g-tag{font-size:clamp(40px,min(6.2vw,8.4vh),92px)}
 html:root[data-gap="11"] body.landing-mode .hero .hv-g-fan{--w:clamp(96px,min(16vw,25vh),236px)}
 html:root[data-gap="11"] body.landing-mode main>.hero{min-height:calc(100svh - 82px - 48px);padding-bottom:72px}
 html:root[data-gap="11"] body.landing-mode .cs-how{margin-top:88px}
}
@media(max-width:700px){
 html:root[data-gap="11"][data-hero="1"] body .hero .hv-g-title,html:root[data-gap="11"][data-hero="1"] body .hero .hv-g-tag{font-size:clamp(28px,9.4vw,44px)}
 html:root[data-gap="11"] body.landing-mode main>.hero{min-height:calc(100svh - 76px - 56px);padding-bottom:64px}
 html:root[data-gap="11"] body.landing-mode .cs-how{margin-top:56px}
}

/* 12. Roomier hero, less outside */
html:root[data-gap="12"] body.landing-mode main>.hero{min-height:0;justify-content:flex-start;padding-top:clamp(40px,7vh,72px);padding-bottom:clamp(56px,9vh,88px)}
html:root[data-gap="12"] body.landing-mode .hero .hv-g-fan{margin-top:clamp(28px,5vh,52px);margin-bottom:clamp(24px,4.6vh,48px)}
html:root[data-gap="12"] body.landing-mode main>.hero>.note{margin-top:clamp(32px,5vh,52px)}
@media(max-width:700px){
 html:root[data-gap="12"] body.landing-mode main>.hero{padding-top:44px;padding-bottom:40px}
}

/* 13. Tighter spacing, whole story */
html:root[data-gap="13"] body.landing-mode main>.hero{min-height:0;justify-content:flex-start;padding-top:clamp(40px,6vh,64px);padding-bottom:clamp(40px,6vh,64px)}
html:root[data-gap="13"] body.landing-mode .cs-how{margin-top:72px}
html:root[data-gap="13"] body.landing-mode .hw-rows{margin-top:clamp(40px,4.4vw,64px);row-gap:clamp(80px,8.5vw,128px)}
@media(max-width:700px){
 html:root[data-gap="13"] body.landing-mode main>.hero{padding-top:40px;padding-bottom:32px}
 html:root[data-gap="13"] body.landing-mode .cs-how{margin-top:48px}
}

/* 14. Hairline rule between them */
html:root[data-gap="14"] body.landing-mode main>.hero{min-height:max(560px,calc(86svh - 72px));padding-bottom:72px}
html:root[data-gap="14"] body.landing-mode main>.hero::after{content:"";position:absolute;left:50%;bottom:0;width:min(120px,30%);height:1px;margin-left:min(-60px,-15%);background:#dcdcdf;pointer-events:none}
html:root[data-gap="14"] body.landing-mode .cs-how{margin-top:72px}
@media(max-width:700px){
 html:root[data-gap="14"] body.landing-mode main>.hero{min-height:max(520px,calc(86svh - 72px));padding-bottom:48px}
 html:root[data-gap="14"] body.landing-mode .cs-how{margin-top:48px}
}

/* 15. Optical centre, shorter hero */
html:root[data-gap="15"] body.landing-mode main>.hero{min-height:max(560px,calc(90svh - 72px));padding-top:0;padding-bottom:clamp(64px,11vh,112px)}
html:root[data-gap="15"] body.landing-mode .cs-how{margin-top:64px}
@media(max-width:700px){
 html:root[data-gap="15"] body.landing-mode main>.hero{min-height:max(520px,calc(90svh - 72px));padding-bottom:72px}
 html:root[data-gap="15"] body.landing-mode .cs-how{margin-top:48px}
}
