/* Front page, round after the devices were locked: backgrounds (dial "Background") and device layouts (dial "Devices").
   The rig is 728 x 640 at 1440 wide; the MacBook is 700 x 487, the phone 226 x 452. Layouts key off the hidden .lay dial. */
.lay{display:none}

/* ---------- backgrounds ---------- */
/* B: a moss sun the devices sit on */
.bg-arc{background:#fbfaf6}
.bg-arc .disc,.bg-arc .ring{position:absolute;border-radius:50%}
.bg-arc .disc{width:1120px;height:1120px;left:calc(50% + 30px);top:150px;background:radial-gradient(circle at 32% 28%,#eef6f0 0,#c6e3d1 26%,#86c2a2 52%,#4f8a69 76%,#35593f 100%)}
.bg-arc .ring{border:1px solid rgba(65,105,79,.16)}
.bg-arc .r1{width:1320px;height:1320px;left:calc(50% - 70px);top:50px}
.bg-arc .r2{width:1540px;height:1540px;left:calc(50% - 180px);top:-60px;border-color:rgba(65,105,79,.09)}

/* C: a deep moss stage behind the devices, running off the right edge */
.bg-stage{background:#F7F6F1}
.bg-stage .panel{position:absolute;left:calc(50% - 40px);right:0;top:120px;bottom:64px;border-radius:30px 0 0 30px;overflow:hidden;
  background:radial-gradient(70% 60% at 25% 15%,rgba(124,194,157,.55),transparent 60%),linear-gradient(150deg,#41694F,#203629)}
.bg-stage .panel::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:48px 48px}

/* D: paper, the devices standing on a pale moss floor */
.bg-desk{background:linear-gradient(#fbfaf6,#f3f2ec 70%)}
.bg-desk .floor{position:absolute;left:0;right:0;top:calc(50% + 300px);bottom:0;background:linear-gradient(#dde9e1,#eef4f0 70%);box-shadow:0 -1px 0 rgba(65,105,79,.22)}

/* E: forest, dark; words turn light */
.bg-forest{background:#0f1c15}
.bg-forest .grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:64px 64px;-webkit-mask-image:radial-gradient(60% 70% at 70% 55%,#000,transparent);mask-image:radial-gradient(60% 70% at 70% 55%,#000,transparent)}
.bg-forest .glow{position:absolute;width:980px;height:720px;right:-4%;top:16%;border-radius:50%;background:radial-gradient(closest-side,rgba(124,194,157,.42),rgba(65,105,79,.18) 55%,transparent);filter:blur(20px)}
.hi:has(.bg-forest.on){color:#e9f1ec}
.hi:has(.bg-forest.on) h1{color:#f4f3ed}
.hi:has(.bg-forest.on) .lead,.hi:has(.bg-forest.on) .fine{color:rgba(233,241,236,.72)}
.hi:has(.bg-forest.on) .fp-nav{color:#e2ece6}
.hi:has(.bg-forest.on) .btn-p{background:#f3f7f4;color:#0b1510}
.hi:has(.bg-forest.on) .btn-g{background:rgba(255,255,255,.08);color:#fff;outline:1px solid rgba(255,255,255,.14)}
.hi:has(.bg-forest.on) .logo img{filter:brightness(1.8)}

/* F: Stripe's old angled stripes, top right, in moss */
.bg-stripes{background:#fbfaf6}
.bg-stripes .sk{position:absolute;left:0;right:0;top:0;height:640px;transform:skewY(-11deg);transform-origin:0 0;overflow:hidden}
.bg-stripes i{position:absolute;height:150px}
.bg-stripes .base{inset:0;height:auto;background:linear-gradient(100deg,#f1f6f2 0%,#d9eadf 45%,#b7dac5 100%)}
.bg-stripes .s1{right:0;top:0;width:34%;background:#7cc29d}
.bg-stripes .s2{right:22%;top:150px;width:22%;background:#a9d6bb}
.bg-stripes .s3{right:0;top:300px;width:16%;background:#41694F}
.bg-stripes .s4{left:0;top:150px;width:18%;background:#e6f1ea}
.bg-stripes .s5{right:12%;top:450px;width:14%;background:#cfe6d7}

/* G: the full gradient with film grain, words on a soft veil */
.bg-grain .veil{position:absolute;inset:0;background:radial-gradient(48% 70% at 16% 52%,rgba(255,255,255,.8),rgba(255,255,255,.3) 60%,transparent 80%)}
.bg-grain .noise{position:absolute;inset:0;opacity:.35;mix-blend-mode:multiply;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}

/* H: dot grid fading out, one pale glow */
.bg-dots{background:#fbfbf8}
.bg-dots .dots{position:absolute;inset:0;background-image:radial-gradient(rgba(30,60,42,.2) 1.1px,transparent 1.5px);background-size:22px 22px;-webkit-mask-image:radial-gradient(55% 65% at 72% 55%,#000 20%,transparent 75%);mask-image:radial-gradient(55% 65% at 72% 55%,#000 20%,transparent 75%)}
.bg-dots .glow{position:absolute;width:760px;height:560px;right:4%;top:24%;border-radius:50%;background:radial-gradient(closest-side,rgba(163,212,183,.55),transparent);filter:blur(24px)}

/* ---------- layouts (desktop; the narrow rules in hero-i.css still scale the rig) ---------- */
/* B: phone over the laptop's right corner */
.hi:has(.lay [data-ov=B].on) .mbp{left:0;top:96px}
.hi:has(.lay [data-ov=B].on) .iph3{left:540px;top:186px}
/* C: laptop bigger, running off the right edge */
.hi:has(.lay [data-ov=C].on) .mbp{left:80px;top:46px;width:900px}
.hi:has(.lay [data-ov=C].on) .iph3{left:-24px;top:190px}
/* D: centred, the devices under the words */
.hi:has(.lay [data-ov=D].on) .wrap.hw{grid-template-columns:1fr;justify-items:center;align-content:start;text-align:center;gap:52px;padding-top:150px}
.hi:has(.lay [data-ov=D].on) h1{max-width:900px}
.hi:has(.lay [data-ov=D].on) .lead{margin-left:auto;margin-right:auto}
.hi:has(.lay [data-ov=D].on) .ctas{justify-content:center}
.hi:has(.lay [data-ov=D].on) .rig{width:900px;height:560px}
.hi:has(.lay [data-ov=D].on) .mbp{left:80px;top:0}
.hi:has(.lay [data-ov=D].on) .iph3{left:660px;top:100px}
/* E: side by side, bottoms on one line */
.hi:has(.lay [data-ov=E].on) .iph3{left:0;top:150px}
.hi:has(.lay [data-ov=E].on) .mbp{left:258px;top:212px;width:560px}
/* F: the phone in front, the laptop smaller behind it */
.hi:has(.lay [data-ov=F].on) .mbp{left:-10px;top:60px;width:620px}
.hi:has(.lay [data-ov=F].on) .iph3{left:430px;top:118px;transform:scale(1.12);transform-origin:top left}

@media (max-width:1100px){
  .hi:has(.lay [data-ov=D].on) .wrap.hw{padding-top:110px;gap:36px}
  .hi:has(.lay [data-ov=D].on) .rig{width:auto;height:470px}
}
@media (max-width:760px){
  .hi:has(.lay [data-ov=D].on) .rig{height:280px}
  .hi:has(.lay [data-ov=C].on) .mbp{width:700px}
}

/* fixes after the first look */
.bg-arc .disc{width:900px;height:900px;left:calc(50% - 40px);top:70px}
.bg-arc .r1{width:1080px;height:1080px;left:calc(50% - 130px);top:-20px}
.bg-arc .r2{width:1280px;height:1280px;left:calc(50% - 230px);top:-120px}
.bg-desk .floor{top:calc(50% + 250px);background:linear-gradient(#cfe1d5,#e9f1ec 75%)}
.hi:has(.bg-forest.on) .fp-nav a,.hi:has(.bg-forest.on) .fp-nav .logo{color:#e2ece6}
.hi:has(.bg-forest.on) .fp-nav .btn-p{color:#0b1510}
.bg-dots .dots{background-image:radial-gradient(rgba(30,60,42,.3) 1.2px,transparent 1.6px)}
.bg-desk .floor{top:calc(50% + 316px)}
.hi:has(.lay [data-ov=E].on) .iph3{left:-40px;top:150px}
.hi:has(.lay [data-ov=E].on) .mbp{left:212px;top:240px;width:516px}
