/* a generic laptop: lid with screen, then the base */
.lap{position:absolute;left:0;top:6%;width:86%}
.lap-lid{position:relative;border-radius:18px 18px 6px 6px;background:#030A1E;padding:2.2% 2.2% 2.6%;box-shadow:0 0 0 1px rgba(158,216,255,.16),0 50px 120px -40px rgba(10,98,255,.55)}
.lap-lid::before{content:'';position:absolute;top:.9%;left:50%;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:#1D2A4F}
.lap-scr{position:relative;aspect-ratio:16/10;border-radius:6px;overflow:hidden;background:var(--cloud)}
.lap-base{height:14px;margin:0 -5%;border-radius:2px 2px 14px 14px;background:linear-gradient(#26345C,#111A38);box-shadow:0 0 0 1px rgba(158,216,255,.12)}
.lap-base::after{content:'';display:block;width:16%;height:5px;margin:0 auto;border-radius:0 0 8px 8px;background:#0A1230}

/* a realistic phone: metal rim, black bezel, rounded screen, camera pill and status bar */
.iph{aspect-ratio:71.6/146.6;border-radius:17.5%/8.6%;padding:1.1%;background:linear-gradient(145deg,#4B5163 0%,#1C2030 16%,#0B0D16 48%,#22273A 76%,#5A6074 100%);box-shadow:0 0 0 .5px rgba(255,255,255,.18) inset,0 1px 1px rgba(255,255,255,.35) inset,0 50px 90px -30px rgba(0,0,0,.8),0 20px 40px -20px rgba(10,98,255,.35);position:relative}
.phn.iph{position:absolute;right:0;bottom:0;width:29%;max-width:250px}
.iph::before{content:'';position:absolute;right:-1.4%;top:27%;width:1.6%;height:13%;border-radius:0 3px 3px 0;background:linear-gradient(90deg,#4A5369,#20263A)}
.iph::after{content:'';position:absolute;left:-1.4%;top:19%;width:1.6%;height:5%;border-radius:3px 0 0 3px;background:linear-gradient(270deg,#4A5369,#20263A);box-shadow:0 260% 0 #2E354B,0 520% 0 #2E354B}
.iph-bez{height:100%;border-radius:16%/7.8%;background:#000;padding:3.6%}
.iph-scr{position:relative;height:100%;border-radius:12.8%/6.1%;overflow:hidden;background:var(--cloud);isolation:isolate}
.iph-scr::after{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;background:linear-gradient(115deg,rgba(255,255,255,.16) 0%,rgba(255,255,255,.05) 22%,rgba(255,255,255,0) 40%);box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.iph-sb{position:absolute;left:0;right:0;top:0;height:6.2%;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:0 7.5% 0 11%;background:#F6F8FD;color:#050B1F;container-type:inline-size}
.iph-sb b{font-size:max(9px,4.6cqw);font-weight:640;letter-spacing:-.01em}
.iph-sb svg{width:22%;height:auto}
.iph-isl{position:absolute;left:50%;top:22%;width:31%;height:56%;margin-left:-15.5%;border-radius:99px;background:#000}
.iph-scr .shot-w{top:6.2%;height:93.8%}
.iph-scr .shot-w.full{top:0;height:100%}
.iph-scr:has(.shot.full.on) .iph-sb{background:transparent;color:#fff}
.ph .iph-scr:has(img.full) .iph-sb{background:transparent;color:#fff}
@media (max-width:900px){html.tour-in .dock,html.tour-in .bradio{opacity:0!important;pointer-events:none!important;transform:translateY(12px)}.dock,.bradio{transition:opacity .3s,transform .3s}}

/* the feature tour: the section holds still while you scroll; each feature wipes onto the laptop and the phone
   (pairs with flight-home-tour.js, which sets the height of the scroll and drives the wipe) */
.tour{position:relative;margin:0 10px 10px}
.tour-pin{position:relative;height:calc(100svh + var(--steps, 6) * 52vh)}
.tour-frame{position:sticky;top:10px;height:calc(100svh - 20px);min-height:620px;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;gap:clamp(28px,4vw,72px);
  padding:clamp(96px,11vh,120px) clamp(24px,4.4vw,72px) clamp(28px,5vh,56px);border-radius:var(--r-frame);overflow:hidden;
  background:radial-gradient(70% 70% at 76% 50%,rgba(47,123,255,.20),transparent 62%),linear-gradient(180deg,#081536 0%,#050E2C 60%,#040B24 100%);box-shadow:inset 0 0 0 1px rgba(158,216,255,.16)}
.tour-frame::before{content:'';position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(158,216,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(158,216,255,.05) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(60% 70% at 72% 50%,#000,transparent 78%);mask-image:radial-gradient(60% 70% at 72% 50%,#000,transparent 78%)}
.tour-left{position:relative;z-index:1;min-width:0}
.tour-chip{display:inline-flex;align-items:center;gap:9px;height:34px;padding:0 15px 0 12px;border-radius:999px;font-size:14px;font-weight:550;color:#E8F0FF;box-shadow:inset 0 0 0 1px rgba(158,216,255,.2);background:rgba(4,11,30,.5)}
.tour-chip i{width:8px;height:8px;border-radius:50%;background:var(--electric-hi);box-shadow:0 0 0 3px rgba(47,123,255,.25)}
.tour h2{margin-top:18px;font-size:clamp(30px,3.4vw,50px);line-height:1;letter-spacing:-.04em;font-weight:620;font-style:italic;font-variation-settings:'wdth' 112;color:#fff;text-wrap:balance;max-width:14em}

/* the list of features: the current one opens and its line fills as you scroll */
.tour-rows{list-style:none;margin:clamp(20px,3.4vh,36px) 0 0;padding:0}
.tour-rows li{position:relative;border-top:1px solid rgba(158,216,255,.12)}
.tour-rows li:last-child{border-bottom:1px solid rgba(158,216,255,.12)}
.tour-rows button{display:flex;align-items:baseline;gap:16px;width:100%;padding:clamp(10px,1.5vh,15px) 0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.tour-rows .n{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;color:rgba(143,160,196,.6);transition:color .3s}
.tour-rows .t{flex:1;min-width:0}
.tour-rows .h{display:block;font-size:clamp(16px,1.35vw,19px);letter-spacing:-.02em;color:rgba(232,240,255,.5);transition:color .3s}
.tour-rows .d{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s var(--ease),opacity .35s;opacity:0}
.tour-rows .d>span{overflow:hidden;font-size:14.5px;line-height:1.55;color:var(--mist);max-width:34em}
.tour-rows .k{font-size:13px;color:rgba(143,160,196,.6);white-space:nowrap;transition:color .3s}
.tour-rows li.on .n,.tour-rows li.on .k{color:var(--ice)}
.tour-rows li.on .h{color:#fff}
.tour-rows li.on .d{grid-template-rows:1fr;opacity:1}
.tour-rows li.on .d>span{padding-top:8px}
.tour-rows button:hover .h{color:#fff}
.tour-rows button:focus-visible{outline:2px solid var(--ice);outline-offset:2px}
.tour-rows .bar{position:absolute;left:0;top:-1px;height:1px;width:100%;transform-origin:left;transform:scaleX(var(--p,0));background:linear-gradient(90deg,var(--electric-hi),var(--ice));box-shadow:0 0 8px rgba(158,216,255,.6);opacity:0;transition:opacity .3s}
.tour-rows li.on .bar{opacity:1}
.tour-foot{margin-top:clamp(18px,3vh,30px);display:flex;gap:12px 20px;align-items:center;flex-wrap:wrap}
.tour-foot .alt{color:var(--ice);font-weight:550}
.tour-note{color:var(--mist);font-size:13.5px;flex-basis:100%}
@media (max-height:860px) and (min-width:901px){.tour-note{display:none}}
@media (max-height:760px) and (min-width:901px){.tour-foot{display:none}}

/* the devices, with faint rings behind them */
.tour-right{position:relative;height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center}
.tour-rings{position:absolute;left:50%;top:48%;width:min(118%,820px);aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none}
.tour-rings i{position:absolute;inset:0;border-radius:50%;border:1px solid rgba(158,216,255,.08)}
.tour-rings i:nth-child(2){inset:16%;border-style:dashed;border-color:rgba(158,216,255,.07)}
.tour-rings i:nth-child(3){inset:32%;border-color:rgba(158,216,255,.06)}
.stage{position:relative;width:100%;max-width:760px;aspect-ratio:1.42;margin:0 auto}
.tour-cap{position:relative;margin-top:22px;text-align:center;font-size:12.5px;color:rgba(158,216,255,.5)}
.tour-cap [data-credit]{opacity:0;transition:opacity .4s}
.tour-cap [data-credit].on{opacity:1}

/* screens stack; the next one wipes down over the last, with a bright line on its edge */
.shot-w{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden}
.shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top center}
.scan{position:absolute;left:0;right:0;top:0;height:2px;z-index:3;pointer-events:none;opacity:0;background:linear-gradient(90deg,transparent,var(--ice) 18%,#fff 50%,var(--ice) 82%,transparent);box-shadow:0 0 14px 3px rgba(47,123,255,.65),0 0 40px 10px rgba(47,123,255,.25)}

/* phones: device on top, the current feature below with a segmented progress bar */
@media (max-width:900px){
  .tour{margin:0 6px 6px}
  .tour-pin{height:calc(100svh + var(--steps, 6) * 46svh)}
  .tour-frame{top:6px;height:calc(100svh - 12px);min-height:0;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:14px;padding:80px 18px 30px;border-radius:24px}
  .tour-left{order:2;display:flex;flex-direction:column}
  .tour-chip,.tour h2,.tour-foot{display:none}
  .tour-rows{margin:0;display:grid}
  .tour-rows li{grid-area:1/1;border:0!important;opacity:0;visibility:hidden;transition:opacity .35s,visibility 0s .35s}
  .tour-rows li.on{opacity:1;visibility:visible;transition:opacity .35s}
  .tour-rows button{flex-wrap:wrap;gap:4px 10px;padding:14px 0 0;cursor:default}
  .tour-rows .t{flex-basis:100%;order:3}
  .tour-rows .k{order:2}
  .tour-rows .h{font-size:22px;font-style:italic;font-weight:600;letter-spacing:-.03em}
  .tour-rows .d>span{font-size:14.5px}
  .tour-rows .bar{display:none}
  .tour-segs{display:flex;gap:5px}
  .tour-segs i{flex:1;height:3px;border-radius:2px;background:rgba(158,216,255,.16);overflow:hidden;position:relative}
  .tour-segs i::after{content:'';position:absolute;inset:0;transform-origin:left;transform:scaleX(var(--p,0));background:var(--ice)}
  .tour-right{order:1;min-height:0}
  .tour-rings{width:150%}
  .stage{height:100%;max-width:none;aspect-ratio:auto}
  .stage .lap{display:none}
  .phn.iph{left:50%;right:auto;top:0;bottom:auto;height:100%;width:auto;max-width:none;transform:translateX(-50%)}
  .tour-cap{margin-top:10px;font-size:11.5px}
}
@media (min-width:901px){.tour-segs{display:none}}

/* no motion: the section scrolls normally and the rows switch the screens */
.tour.static .tour-pin{height:auto}
.tour.static .tour-frame{position:relative;top:0;height:auto;min-height:0}
@media (max-width:900px){.tour.static .tour-right{height:56svh}}

.statement{padding-bottom:clamp(70px,9vw,120px)}
.lap-scr{isolation:isolate}
.stage .phn{z-index:2}
.iph-scr .iph-sb{z-index:20}
.iph-scr::after{z-index:21}
.scan{z-index:19}
html.tour-sim .stage .iph-sb{background:transparent;color:#fff}
