/* ═══════════════════════════════════════════════════════════════
   Homepage. The fly-in stage:
   1. on load, seven phones fly in from the edges and fan out around the headline
   2. scrolling pulls them into the centre, where they merge into one phone
   3. that phone turns through five features, with the words in the corners
   Without JS or with reduced motion: headline, one phone, then a plain list.
   ═══════════════════════════════════════════════════════════════ */

.fly{position:relative;background:transparent}
.fly-pin{position:relative;overflow:hidden;isolation:isolate}
/* the page-wide colour wash (styles.css) shows through the stage; an extra glow here was
   clipped to the stage height and left a visible band when Safari's toolbar collapsed */
.fly-glow{display:none}

/* headline */
.fly-head::before{content:"";position:absolute;z-index:-1;left:50%;top:44%;width:min(1100px,110vw);height:78%;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(255,255,255,.92),rgba(255,255,255,.7) 55%,rgba(255,255,255,0));pointer-events:none}
.fly-head{position:relative;z-index:3;text-align:center;padding:clamp(112px,15vh,150px) var(--gut) 0;max-width:980px;margin:0 auto}
.fly-head h1{font-size:clamp(52px,8.4vw,128px);line-height:.94;letter-spacing:-.05em}
.fly-head h1 .grad{display:inline-block;padding-bottom:.06em}
.fly-head .lede{margin:22px auto 0;max-width:46ch}
.fly-head .stores{justify-content:center;margin-top:30px}

/* phones */
.fly-phones{position:relative}
.fp{width:clamp(200px,min(30vw,28vh),380px)}
.fp .phone{width:100%}
.fp-main .phone{box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.14),0 80px 140px -40px rgba(11,13,18,.45),0 40px 80px -40px rgba(11,13,18,.3)}
.fp .device-screen img{position:absolute;inset:0;opacity:0;transition:opacity .45s ease}
.fp .device-screen img.on{opacity:1}

/* static layout (default) */
.fly-phones{display:flex;justify-content:center;padding:48px 0 24px}
.fp:not(.fp-main){display:none}
.fly-points,.fly-rail{display:none}
.chapters{list-style:none;width:min(var(--wrap),100% - var(--gut)*2);margin:0 auto;padding-bottom:clamp(40px,6vw,80px)}
.chapter{display:grid;grid-template-columns:1fr minmax(220px,300px);gap:clamp(32px,6vw,96px);align-items:center;padding:clamp(48px,7vw,88px) 0;border-top:1px solid var(--line)}
.ch-name{display:inline-block;font-size:15px;font-weight:700;padding:6px 12px;border-radius:999px;margin-bottom:16px}
.ch-name[data-c="coral"]{background:#FFE9E6;color:var(--coral-ink)}
.ch-name[data-c="teal"]{background:#DDF6F1;color:var(--teal-ink)}
.ch-name[data-c="gold"]{background:#FFF1D9;color:#8A5600}
.ch-name[data-c="orange"]{background:#FFEBDD;color:#A3480F}
.chapter h2{font-size:clamp(40px,5vw,72px)}
.ch-b p{margin-top:16px;font-size:clamp(17.5px,1.5vw,20px);color:var(--ink-2);max-width:40ch}
.ch-b .xlink{margin-top:16px;font-size:17px}
.ch-pt{display:flex;align-items:center;gap:12px;margin-top:14px;font-weight:650;font-size:16px}
.ch-pt i{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--soft-2)}
.ch-pt i svg{width:20px;height:20px}
.ch-pt[data-c="coral"] i{background:#FFE9E6;color:var(--coral-ink)}
.ch-pt[data-c="teal"] i{background:#DDF6F1;color:var(--teal-ink)}
.ch-pt[data-c="gold"] i{background:#FFF1D9;color:#8A5600}
.ch-pt[data-c="orange"] i{background:#FFEBDD;color:#A3480F}
.ch-shot .phone{width:100%}
.ch-text{display:block}
@media (max-width:760px){.chapter{grid-template-columns:1fr}.ch-shot{max-width:240px}}

/* ── Fly mode (JS + motion allowed) ───────────────────────────── */
.fly-mode .fly{height:calc(100svh * var(--fly-screens,6.6))}
.fly-mode .fly-pin{position:sticky;top:0;height:100svh}
.fly-mode .fly-head{position:absolute;left:0;right:0;top:0;will-change:opacity,transform}
.fly-mode .fly-phones{position:absolute;inset:0;padding:0;display:block;perspective:1600px;perspective-origin:50% 40%;z-index:2;pointer-events:none}
.fly-mode .fp{display:block;position:absolute;left:50%;top:50%;margin-left:calc(clamp(200px,min(30vw,28vh),380px) / -2);margin-top:calc(clamp(200px,min(30vw,28vh),380px) * 2868 / 1320 / -2);transform-style:preserve-3d;will-change:transform,opacity;backface-visibility:hidden}
.fly-mode .fly.intro .fp{transition:transform 1.25s cubic-bezier(.16,1,.3,1),opacity .8s ease}
.fly-mode .chapters{position:absolute;inset:0;width:auto;padding:0;pointer-events:none;z-index:3}
.fly-mode .chapter{position:absolute;inset:0;display:block;padding:0;border:0}
.fly-mode .ch-shot{display:none}
.fly-mode .ch-text{position:absolute;inset:0}
.fly-mode .ch-a,.fly-mode .ch-b,.fly-mode .ch-pt{position:absolute;opacity:0;transition:opacity .45s ease,transform .6s cubic-bezier(.16,1,.3,1)}
.fly-mode .chapter.on .ch-a,.fly-mode .chapter.on .ch-b,.fly-mode .chapter.on .ch-pt{opacity:1;transform:none;pointer-events:auto}
/* corners: the stage is a box around the phone */
.fly-mode .ch-a{left:max(var(--gut),calc(50vw - 640px));top:clamp(104px,15vh,150px);width:min(30vw,420px);transform:translate(-24px,-16px)}
.fly-mode .ch-a h2{font-size:clamp(36px,3.9vw,60px)}
.fly-mode .ch-b{left:max(var(--gut),calc(50vw - 640px));bottom:clamp(76px,12vh,120px);width:min(28vw,380px);transform:translate(-24px,16px)}
.fly-mode .ch-b p{margin-top:0}
.fly-mode .ch-pt{left:calc(50% + clamp(200px,min(30vw,28vh),380px)*.36);width:min(22vw,290px);margin:0;padding:14px 16px;border-radius:22px;background:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(22px) saturate(1.9);backdrop-filter:blur(22px) saturate(1.9);box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),inset 0 1px 0 #fff,inset 0 0 24px rgba(255,255,255,.45),0 18px 44px -16px rgba(11,13,18,.35);isolation:isolate}
.fly-mode .ch-pt::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;background:linear-gradient(165deg,rgba(255,255,255,.8),rgba(255,255,255,0) 45%)}
.fly-mode .ch-pt.c{top:28vh;transform:translate(24px,-16px)}
.fly-mode .ch-pt.d{left:calc(50% + clamp(200px,min(30vw,28vh),380px)*.5);bottom:24vh;transform:translate(24px,16px)}
.fly-mode .chapter.on .ch-pt.d{transition-delay:.08s}
.fly-mode .chapter.on .ch-b{transition-delay:.05s}
/* progress rail */
.fly-mode .fly-rail{display:flex;position:absolute;z-index:4;left:50%;bottom:clamp(20px,4vh,36px);transform:translateX(-50%);gap:4px;padding:6px;border-radius:999px;background:rgba(255,255,255,.7);-webkit-backdrop-filter:blur(20px) saturate(1.9);backdrop-filter:blur(20px) saturate(1.9);box-shadow:inset 0 0 0 1px rgba(255,255,255,.6),inset 0 1px 0 #fff,0 14px 36px -14px rgba(11,13,18,.3);opacity:var(--rail-o,0);transition:opacity .3s;pointer-events:none}
.fly-mode .fly-rail.live{pointer-events:auto}
.fly-rail button{position:relative;display:block;border:0;margin:0;padding:7px 14px;border-radius:999px;background:transparent;font:inherit;font-size:14px;font-weight:650;color:var(--ink-2);cursor:pointer;transition:color .3s,background .3s}
.fly-rail button:hover{color:var(--ink);background:rgba(11,13,18,.06)}
.fly-rail button.on{color:#fff;background:var(--ink)}
.fly-rail button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

@media (max-width:900px){
  .fly-mode .ch-a{left:var(--gut);right:var(--gut);width:auto;top:88px;text-align:center}
  .fly-mode .ch-a h2{font-size:clamp(32px,8.6vw,46px)}
  .fly-mode .ch-name{margin-bottom:10px}
  .fly-mode .ch-b{left:var(--gut);right:var(--gut);width:auto;top:calc(88px + 2.2em + clamp(32px,8.6vw,46px)*2.1);bottom:auto;text-align:center}
  .fly-mode .ch-b p{font-size:16px;max-width:none;margin:0 auto}
  .fly-mode .ch-b .xlink{display:none}
  .fly-mode .ch-pt{width:auto;max-width:44vw;padding:9px 11px;font-size:13.5px;gap:8px;border-radius:14px}
  .fly-mode .ch-pt i{width:30px;height:30px;border-radius:9px}
  .fly-mode .ch-pt i svg{width:16px;height:16px}
  .fly-mode .ch-pt.c{right:auto;left:10px;top:auto;bottom:34svh}
  .fly-mode .ch-pt.d{left:auto}
  .fly-mode .ch-pt.d{right:10px;bottom:18svh}
  /* dots on phones: 10px dot, 28px tap target */
  .fly-rail button{width:28px;height:28px;padding:0;background:transparent}
  .fly-rail button span{position:absolute;left:9px;top:9px;width:10px;height:10px;border-radius:50%;background:var(--line-2);font-size:0;overflow:hidden;transition:background .3s,transform .3s}
  .fly-rail button:hover{background:transparent}
  .fly-rail button.on{background:transparent}
  .fly-rail button.on span{background:var(--ink);transform:scale(1.15)}
  .fly-mode .fly-rail{gap:0;padding:2px 4px}
}
@media (max-width:900px) and (max-height:720px){.fly-mode .ch-b{display:none}}

/* ── Who it's for ─────────────────────────────────────────────── */
.who{padding:clamp(80px,10vw,136px) 0;background:rgba(245,247,250,.4)}
.who-top{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:24px 48px;margin-bottom:clamp(28px,4vw,44px)}
.who-top h2{max-width:13ch}
.who-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:5px;border-radius:999px;background:rgba(255,255,255,.75);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),inset 0 1px 0 #fff,0 10px 30px -14px rgba(11,13,18,.25)}
.who-tabs button{min-height:44px;padding:0 20px;border-radius:999px;font-weight:650;color:var(--ink-2);transition:background .2s,color .2s}
.who-tabs button:hover{color:var(--ink)}
.who-tabs button[aria-selected="true"]{background:var(--ink);color:#fff}
.who-panel{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(28px,5vw,72px);align-items:center}
.who-panel[hidden]{display:none}
.who-media{position:relative;margin:0;border-radius:28px;background:var(--soft-2);box-shadow:0 30px 70px -34px rgba(11,13,18,.4)}
.who-photo{width:100%;aspect-ratio:4/5;max-height:640px;object-fit:cover;border-radius:28px}
.who-media .phone{position:absolute;right:-28px;bottom:-36px;width:clamp(150px,15vw,200px);padding:6px;border-radius:36px}
.who-media .phone-screen{border-radius:30px}
.who-text h3{font-size:clamp(32px,3.6vw,50px);font-weight:820;letter-spacing:-.045em;line-height:1}
.who-text p{margin-top:18px;color:var(--ink-2);font-size:clamp(17.5px,1.5vw,20px);max-width:44ch}
.who-text ul{list-style:none;margin-top:24px;display:grid;gap:10px}
.who-text li{position:relative;padding:12px 14px 12px 48px;border-radius:16px;font-weight:600}
.who-text li::before{content:"";position:absolute;left:14px;top:50%;margin-top:-11px;width:22px;height:22px;border-radius:50%;background:#DDF6F1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B8C78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat}
.who-text .btn{margin-top:28px}
@media (max-width:860px){
  .who-panel{grid-template-columns:1fr}
  .who-media .phone{right:12px;bottom:-24px;width:120px}
  .who-photo{aspect-ratio:4/3}
  .who-tabs{width:100%;justify-content:space-between}
  .who-tabs button{flex:1;padding:0 8px}
}
@media (max-width:520px){.who-tabs{flex-wrap:nowrap;gap:2px;padding:4px}.who-tabs button{flex:1 1 auto;padding:0 6px;font-size:14px;min-height:40px}}

/* ── Earnings ─────────────────────────────────────────────────── */
.earn{padding:clamp(80px,10vw,136px) 0}
.earn-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,80px);align-items:center}
.earn-text p{margin-top:18px;color:var(--ink-2);font-size:clamp(17.5px,1.5vw,20px);max-width:46ch}
.earn-box{position:relative;isolation:isolate;border-radius:32px;padding:clamp(22px,3vw,36px);background:linear-gradient(150deg,rgba(255,255,255,.8),rgba(255,255,255,.56));box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),inset 0 1px 0 #fff,0 30px 70px -30px rgba(11,13,18,.3)}
.earn-box::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;background:linear-gradient(165deg,rgba(255,255,255,.7),rgba(255,255,255,0) 40%)}
.earn-modes{display:flex;gap:4px;padding:5px;border-radius:999px;background:rgba(11,13,18,.05);box-shadow:inset 0 1px 2px rgba(11,13,18,.06);margin-bottom:26px}
.earn-modes button{flex:1;min-height:42px;border-radius:999px;font-weight:650;font-size:15px;color:var(--ink-2);white-space:nowrap}
.earn-modes button[aria-pressed="true"]{background:rgba(255,255,255,.92);color:var(--ink);box-shadow:inset 0 0 0 1px #fff,0 6px 16px -8px rgba(11,13,18,.3)}
.ctl{margin-bottom:20px}
.ctl-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;font-weight:600}
.ctl-top output{font-variant-numeric:tabular-nums;font-weight:750;font-size:19px}
.ctl input[type=range]{width:100%;height:28px;background:none;-webkit-appearance:none;appearance:none;cursor:pointer;--p:50%}
.ctl input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:6px;background:linear-gradient(90deg,var(--teal) var(--p),var(--soft-2) var(--p))}
.ctl input[type=range]::-moz-range-track{height:6px;border-radius:6px;background:var(--soft-2)}
.ctl input[type=range]::-moz-range-progress{height:6px;border-radius:6px;background:var(--teal)}
.ctl input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-10px;border-radius:50%;background:#fff;border:0;box-shadow:0 2px 8px rgba(11,13,18,.25),0 0 0 1px rgba(11,13,18,.06)}
.ctl input[type=range]::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:#fff;border:0;box-shadow:0 2px 8px rgba(11,13,18,.25)}
.earn-out{margin-top:8px;padding:22px;border-radius:22px;background:linear-gradient(120deg,rgba(255,229,223,.85),rgba(255,240,219,.7) 50%,rgba(221,246,240,.85));box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),inset 0 1px 0 #fff}
.earn-out .cap{font-weight:600;color:var(--ink-2)}
.earn-amt{font-weight:850;font-size:clamp(56px,7vw,92px);line-height:1;letter-spacing:-.05em;font-variant-numeric:tabular-nums;margin-top:4px}
.earn-break{margin-top:8px;color:var(--ink-2);font-size:15.5px;font-variant-numeric:tabular-nums}
.earn-note{margin-top:16px;font-size:14.5px;color:var(--ink-3);line-height:1.5}
@media (max-width:900px){.earn-grid{grid-template-columns:1fr}}
@media (max-width:520px){.earn-modes button{font-size:14px;padding:0 6px}}

/* ── Screens strip ────────────────────────────────────────────── */
.screens{padding:clamp(80px,10vw,136px) 0;background:rgba(245,247,250,.4)}
.screens-top{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:36px}
.strip-ctl{display:flex;gap:10px}
.strip-ctl button{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;transition:background .2s,color .2s;background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),inset 0 1px 0 #fff,0 10px 24px -12px rgba(11,13,18,.35)}
.strip-ctl button:hover{background:var(--ink);color:#fff}
.strip-ctl svg{width:20px;height:20px}
.strip{display:flex;gap:clamp(18px,2.4vw,32px);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:12px max(var(--gut),calc((100vw - var(--wrap))/2)) 48px;scroll-padding-inline:max(var(--gut),calc((100vw - var(--wrap))/2))}
.strip::-webkit-scrollbar{display:none}
.strip figure{flex:none;width:clamp(200px,19vw,250px);scroll-snap-align:start}
.strip .phone{width:100%;padding:7px;border-radius:40px;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.14),0 30px 60px -30px rgba(11,13,18,.35)}
.strip .phone-screen{border-radius:34px}
.strip figcaption{margin-top:18px;font-weight:700}
.strip figcaption small{display:block;font-weight:400;color:var(--ink-3);font-size:14.5px;margin-top:2px}
@media (max-width:640px){.strip-ctl{display:none}}

/* ── Explore + FAQ ────────────────────────────────────────────── */
.explore,.home-faq{padding:clamp(72px,9vw,120px) 0}
.home-faq{padding-top:0}
.explore h2,.home-faq h2{max-width:14ch;margin-bottom:clamp(28px,4vw,44px)}

/* landscape phones get the stacked layout (the stage needs 600px of height);
   keep every phone mockup shorter than the screen */
@media (orientation:landscape) and (max-height:600px){
  .ch-shot{max-width:max(40vh,180px);justify-self:center}
  .fp{width:max(40vh,180px)}
}
