/* ============ FRONT PAGE (index.njk only) ============
   Mobile first. Every picture and group of text sits in a card: .h-card (navy glass) or .h-block (the
   guide's topic block: dark gradient, an icon, a bold title, one line, a faint drawing faded in on the
   right). Only section headings (.h-title) sit on the backdrop. Gaps come from the parents: 16px between
   cards. Motion lives in home.js and is off under prefers-reduced-motion. */

:root{--h-r:22px;--h-blue:#5fe0ff;--h-ink:#eaf3ff;--h-mute:rgba(226,236,255,.74)}

/* The front page draws its own sky: a deep navy with the portal in the hero; the site-wide aurora rests. */
body.hdr-over{background:#060c24}
body.hdr-over .cosmos{opacity:.55}

.h-card{position:relative;border-radius:var(--h-r);border:1px solid rgba(255,255,255,.13);
  background:radial-gradient(120% 140% at 100% 0%,rgba(29,79,154,.78) 0%,rgba(18,48,106,.74) 38%,rgba(10,22,52,.86) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 18px 40px -18px rgba(2,6,24,.7)}
.h-card-title{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(200,215,245,.7);font-weight:700;margin-bottom:14px}

.grad{background:linear-gradient(100deg,#5fe0ff 0%,#a8f0ff 38%,#8f8bff 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.h-nowrap{white-space:nowrap}

/* section rhythm: a heading on the backdrop, then cards */
.h-sec{padding-block:clamp(72px,11vw,150px) 0;scroll-margin-top:60px}
.h-title{font-size:clamp(2.1rem,5.4vw,4.4rem);font-weight:850;line-height:1.04;letter-spacing:-.035em;color:#fff;margin-bottom:clamp(24px,3.4vw,44px);text-wrap:balance}
.h-title .grad{display:block;padding-bottom:.06em}

/* icon tiles: the hero-art rule, a gradient rounded square with a soft glow */
.h-tile{display:inline-grid;place-items:center;flex:0 0 auto;width:48px;height:48px;border-radius:14px;color:#fff;
  background:linear-gradient(145deg,#1aa6ff,#4b5cff);box-shadow:0 10px 26px -8px rgba(39,170,255,.7),inset 0 1px 0 rgba(255,255,255,.3)}
.h-tile svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.h-tile-violet{background:linear-gradient(145deg,#9b6bff,#5b3cff);box-shadow:0 10px 26px -8px rgba(140,90,255,.7),inset 0 1px 0 rgba(255,255,255,.3)}
.h-tile-green{background:linear-gradient(145deg,#1fcf8f,#0c8f6a);box-shadow:0 10px 26px -8px rgba(30,200,140,.6),inset 0 1px 0 rgba(255,255,255,.3)}
.h-tile-orange{background:linear-gradient(145deg,#ff9b4a,#e8456a);box-shadow:0 10px 26px -8px rgba(255,120,80,.6),inset 0 1px 0 rgba(255,255,255,.3)}

/* buttons: filled ones always carry white text */
.h-actions{display:flex;flex-wrap:wrap;gap:12px}
.h-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:0 26px;border-radius:15px;
  font-size:1.05rem;font-weight:750;text-decoration:none;color:#fff;transition:transform .25s var(--ease),box-shadow .25s,background .25s,border-color .25s}
.h-btn svg{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.h-btn-main{background:linear-gradient(135deg,#0b8fd0 0%,#2b5fe0 100%);box-shadow:0 12px 34px -10px rgba(30,150,255,.75),inset 0 1px 0 rgba(255,255,255,.25)}
.h-btn-main:hover{transform:translateY(-2px);box-shadow:0 18px 40px -10px rgba(40,170,255,.85),inset 0 1px 0 rgba(255,255,255,.3)}
.h-btn-glass{background:rgba(8,18,52,.5);border:1px solid rgba(160,210,255,.32);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.h-btn-glass:hover{border-color:rgba(95,224,255,.75);transform:translateY(-2px)}
.h-btn:active{transform:scale(.98)}

/* ---------- 0. the opening portal ---------- */
.h-intro{display:none}
.lp-intro .h-intro{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 50%,#173a7c 0%,#0c1a48 45%,#050b22 100%);cursor:pointer;
  transition:opacity .7s .55s,visibility 0s 1.3s}
.h-intro-canvas{position:absolute;inset:0;width:100%;height:100%}
.h-intro-mark{position:relative;width:128px;height:128px;border-radius:36px;display:grid;place-items:center;
  background:linear-gradient(145deg,rgba(26,166,255,.92),rgba(75,92,255,.88));border:1px solid rgba(180,235,255,.7);
  box-shadow:0 0 0 12px rgba(39,170,255,.12),0 0 110px rgba(39,199,255,.75),inset 0 1px 0 rgba(255,255,255,.35);animation:h-pop 1s cubic-bezier(.2,.9,.2,1.2) both}
.h-intro-mark img{width:80px;height:80px;filter:brightness(0) invert(1)}
.h-intro-word{position:absolute;top:calc(50% + 92px);font-size:1.9rem;font-weight:800;color:#fff;letter-spacing:-.02em;text-shadow:0 2px 24px rgba(0,10,50,.8);animation:h-rise .8s .3s both}
.h-intro-word b{color:#5fe0ff;font-weight:800}
.h-intro-skip{position:absolute;bottom:28px;font-size:.85rem;color:rgba(220,235,255,.6);animation:h-rise .6s 1s both}
.lp-intro.lp-intro-go .h-intro{opacity:0;visibility:hidden;pointer-events:none}
.lp-intro.lp-intro-go .h-intro-mark{transform:scale(16);opacity:0;transition:transform 1s cubic-bezier(.7,0,.3,1),opacity .6s .35s}
.lp-intro.lp-intro-go .h-intro-word,.lp-intro.lp-intro-go .h-intro-skip{opacity:0;transition:opacity .25s}
/* while it plays, the page underneath waits a little deeper in, then settles as the portal opens */
.lp-intro .h-hero-inner{transform:scale(1.06);opacity:0;filter:blur(6px)}
.lp-intro.lp-intro-go .h-hero-inner{transform:none;opacity:1;filter:none;transition:transform 1.3s .35s cubic-bezier(.2,.8,.2,1),opacity .9s .35s,filter 1s .35s}
.lp-intro-calm .h-intro{transition:opacity .3s .2s,visibility 0s .5s}
.lp-intro-calm .h-intro-mark,.lp-intro-calm .h-intro-word,.lp-intro-calm .h-intro-skip{animation:none}
.lp-intro-calm.lp-intro-go .h-intro-mark{transform:none;transition:opacity .3s}
.lp-intro-calm .h-hero-inner,.lp-intro-calm.lp-intro-go .h-hero-inner{transform:none;filter:none;transition:opacity .3s}
/* if the script never runs, the opening still gets out of the way */
.lp-intro:not(.lp-intro-go) .h-intro{animation:h-gone .4s 8s forwards}
.lp-intro:not(.lp-intro-go) .h-hero-inner{animation:h-back .6s 8s forwards}
html.lp-intro-hold .h-intro,html.lp-intro-hold .h-hero-inner{animation:none}
@keyframes h-gone{to{opacity:0;visibility:hidden}}
@keyframes h-back{to{opacity:1;transform:none;filter:none}}
@keyframes h-pop{from{transform:scale(.4);opacity:0}}
@keyframes h-rise{from{transform:translateY(16px);opacity:0}}

/* ---------- 1. hero: the portal is the hero's own card, edge to edge, rounded at the foot ---------- */
.h-hero{position:relative;isolation:isolate;overflow:hidden;min-height:100vh;min-height:100svh;padding:110px 0 64px;
  border-radius:0 0 clamp(24px,4vw,48px) clamp(24px,4vw,48px);border-bottom:1px solid rgba(120,190,255,.18);
  background:radial-gradient(ellipse 80% 70% at 50% 42%,#173a7c 0%,#0c1a48 50%,#060c24 100%)}
.h-portal{position:absolute;inset:0;width:100%;height:100%;z-index:-2;opacity:0;transition:opacity 1.2s}
.portal-on>.h-portal{opacity:.9}
/* the scrim that keeps the words readable over the swirl */
.h-hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 55% 38% at 50% 30%,rgba(5,10,32,.62),transparent 75%),linear-gradient(180deg,rgba(6,12,36,.2) 0%,transparent 30%,transparent 62%,rgba(6,12,36,.86) 100%)}
.h-hero-inner{display:flex;flex-direction:column;align-items:center}
.h-hero-copy{text-align:center;max-width:980px}
.h-hero h1{font-size:clamp(2.7rem,8.4vw,7.2rem);font-weight:900;line-height:.98;letter-spacing:-.05em;color:#fff;text-wrap:balance;text-shadow:0 4px 40px rgba(0,8,40,.5)}
.h-hero h1 .h-line{display:block}
.h-sub{margin:24px auto 0;max-width:40ch;font-size:clamp(1.06rem,1.9vw,1.32rem);line-height:1.5;color:#d2e0fa;text-shadow:0 2px 18px rgba(0,8,40,.7)}
.h-hero .h-actions{justify-content:center;margin-top:32px}
.h-plat{list-style:none;display:inline-flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;margin-top:22px;padding:9px 18px;border-radius:999px;
  background:rgba(6,13,40,.55);border:1px solid rgba(140,200,255,.22);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.88rem;font-weight:650;color:#dbe7ff}
.h-plat li::before{content:"✓";color:#3ee6a0;margin-right:6px;font-weight:900}

/* the portal you step through: the logo's arch four times over, nested; --hp (home.js, 0 to 1 as the hero scrolls
   away) grows each one past you at its own pace and fades it. Transform and opacity only, one layer each. */
.h-arches{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;--hp:0}
.h-arches::before{content:"";position:absolute;left:50%;top:44%;width:min(70vmin,620px);aspect-ratio:1;translate:-50% -50%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(95,224,255,.22),rgba(75,92,255,.10) 55%,transparent);opacity:calc(1 - var(--hp) * .8)}
.h-arch{position:absolute;left:50%;top:44%;width:var(--w);aspect-ratio:1;translate:-50% -56%;transform-origin:50% 60%;
  scale:calc(1 + var(--hp) * var(--g));opacity:calc(var(--o) * (1 - var(--hp) * var(--f)));will-change:scale,opacity;
  filter:drop-shadow(0 0 10px rgba(39,199,255,.55))}
.h-arch path{fill:none;stroke:#5fe0ff;stroke-width:1.1;stroke-linecap:round;vector-effect:non-scaling-stroke}
.h-arch-1{--w:min(30vmin,260px);--g:2.4;--f:.6;--o:.85}
.h-arch-2{--w:min(52vmin,460px);--g:1.9;--f:.8;--o:.6}
.h-arch-3{--w:min(80vmin,720px);--g:1.5;--f:1;--o:.42}
.h-arch-4{--w:min(118vmin,1060px);--g:1.2;--f:1;--o:.26}
.h-arch-3 path,.h-arch-4 path{stroke:#8f8bff}
/* a slow band of light crossing the portal */
.h-sweep{position:absolute;top:-10%;bottom:-10%;left:0;width:26%;background:linear-gradient(100deg,transparent,rgba(150,230,255,.09) 50%,transparent);
  transform:translateX(-120%) skewX(-14deg);animation:h-sweep 11s cubic-bezier(.45,0,.25,1) 2.5s infinite}
@keyframes h-sweep{0%{transform:translateX(-120%) skewX(-14deg)}55%,100%{transform:translateX(480%) skewX(-14deg)}}

/* the computer and the phone, with depth (home.js tilts them as you scroll and move) */
.h-duo{position:relative;width:min(1080px,100%);margin-top:clamp(40px,6vw,72px);perspective:1600px;--tilt:14deg;--lift:0px;--px:0;--py:0}
.h-duo-laptop{width:82%;transform:rotateX(var(--tilt)) translateY(var(--lift)) rotateY(calc(var(--px) * 4deg));transform-origin:50% 100%;will-change:transform}
.h-phone.h-duo-phone{position:absolute;right:0;top:-4%;width:24%;transform:translate3d(calc(var(--px) * -14px),calc(var(--py) * -10px + var(--lift) * -1.8),60px) rotate(3deg);will-change:transform}

/* device frames: CSS only, the screenshot is the content */
.h-laptop{position:relative}
.h-laptop-lid{position:relative;border-radius:16px;padding:11px;background:linear-gradient(#1f2f5a,#0d1631);border:1px solid rgba(160,200,255,.25);
  box-shadow:0 50px 100px -30px rgba(0,0,0,.85),0 0 0 1px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.12)}
.h-laptop-lid img{display:block;width:100%;height:auto;border-radius:7px;background:#0a1634}
.h-laptop::after{content:"";position:absolute;left:-5%;right:-5%;bottom:-14px;height:14px;border-radius:0 0 16px 16px;background:linear-gradient(#34477a,#121d3d);box-shadow:0 18px 30px -10px rgba(0,0,0,.7)}
.h-phone{position:relative;border-radius:13% / 6.2%;padding:3.2%;background:linear-gradient(160deg,#1a2550,#070c1e);border:1px solid rgba(160,200,255,.28);
  box-shadow:0 40px 80px -24px rgba(0,0,0,.9),0 0 60px -14px rgba(39,199,255,.35),inset 0 0 0 1px rgba(255,255,255,.05)}
.h-phone img{display:block;width:100%;height:auto;border-radius:10.5% / 4.9%;background:#0a1634}

/* ---------- the topic block (the wiki home's blocks, the owner's favourite) ---------- */
.h-block{position:relative;isolation:isolate;overflow:hidden;display:flex;min-height:168px;border-radius:20px;color:#fff;text-decoration:none;
  border:1px solid rgba(255,255,255,.14);background:radial-gradient(120% 140% at 100% 0%,#1d4f9a 0%,#12306a 38%,#0a1634 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 10px 28px rgba(2,8,30,.4);transition:transform .25s var(--ease),border-color .25s,box-shadow .25s}
a.h-block:hover{transform:translateY(-4px);border-color:rgba(95,224,255,.6);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 16px 36px rgba(2,8,30,.55)}
a.h-block:focus-visible{outline:2px solid #5fe0ff;outline-offset:3px}
.h-block-art{position:absolute;inset:0 0 0 40%;z-index:-1;opacity:.55;-webkit-mask-image:linear-gradient(90deg,transparent 0%,transparent 18%,#000 70%);mask-image:linear-gradient(90deg,transparent 0%,transparent 18%,#000 70%)}
.h-block-art svg{width:100%;height:100%;display:block}
.h-block-body{display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:20px 22px;max-width:66%}
.h-block-body>b{font-size:1.18rem;line-height:1.25;font-weight:750;letter-spacing:-.01em}
.h-block-body>span:not(.h-chiptile):not(.h-kind-apps):not(.h-go):not(.h-step-n){font-size:.94rem;line-height:1.45;color:rgba(235,244,255,.86)}
.h-chiptile{display:grid;place-items:center;width:44px;height:44px;margin-bottom:auto;border-radius:13px;background:rgba(95,224,255,.14);border:1px solid rgba(95,224,255,.42)}
.h-chiptile svg{width:22px;height:22px;fill:none;stroke:#5fe0ff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.h-go{display:inline-flex;align-items:center;gap:6px;margin-top:6px;font-size:.9rem;font-weight:700;color:#7fe9ff}
.h-go svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.h-more-row{display:flex;justify-content:center;margin-top:20px}

/* ---------- 2. three steps, and what is done for you ---------- */
.h-steps3{list-style:none;display:grid;gap:16px;counter-reset:none}
.h-steps3 .h-block{min-height:200px}
/* each step's own small computer-and-phone pair (a phone, a tablet, or no script); the sticky stage is for wide screens */
.h-step{flex-direction:column}
.h-step-pic{position:relative;padding:0 22px 26px;margin-top:auto}
.h-step-laptop{width:86%}
.h-phone.h-step-phone{position:absolute;right:16px;bottom:10px;width:24%}
.h-story-stage{display:none}
.h-block-body>.h-step-n{font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#7fe9ff}
.h-done{display:grid;gap:16px;margin-top:16px}
.h-done-card{padding:clamp(20px,3vw,34px)}
.h-done-title{display:flex;align-items:center;gap:10px;font-size:clamp(1.4rem,2.6vw,2rem);font-weight:850;letter-spacing:-.02em;margin-bottom:18px;color:#fff}
.h-done-title svg{width:26px;height:26px;fill:none;stroke:#5fe0ff;stroke-width:2;stroke-linecap:round}
.h-done-list{list-style:none;display:grid;gap:10px}
.h-done-list li{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:16px;background:rgba(6,14,40,.45);border:1px solid rgba(255,255,255,.08)}
.h-done-list b{display:block;font-size:1.04rem;color:#fff}
.h-done-list li>span:last-child>span{display:block;font-size:.92rem;line-height:1.45;color:var(--h-mute)}
.h-done-pics{position:relative;display:flex;justify-content:center;align-items:center;gap:4%;padding:28px 16px;overflow:hidden;
  background:radial-gradient(90% 80% at 50% 40%,rgba(39,140,255,.35),rgba(10,22,52,.9) 70%)}
.h-done-phone{width:min(46%,250px)}
.h-done-phone-a{transform:rotate(-4deg) translateY(10px)}
.h-done-phone-b{transform:rotate(3deg) translateY(-10px)}

/* ---------- 3. the family ---------- */
.h-family,.h-kinds,.h-owns{list-style:none;display:grid;gap:16px}
.h-family>li,.h-owns>li{display:flex}
.h-family>li>.h-block,.h-owns>li>.h-block{flex:1}
.h-fam-ico{width:56px;height:56px;border-radius:15px;margin-bottom:auto;box-shadow:0 10px 24px -8px rgba(30,160,255,.6)}

/* the family round the portal: --fp (home.js) runs 0 to 1 as the card comes up the screen; the icons close in from
   far out onto the orbit, which then turns once a minute (each icon turns back, so it stays upright) */
.h-orbit{position:relative;height:clamp(340px,34vw,440px);margin-bottom:16px;overflow:hidden;--fp:1;
  background:radial-gradient(60% 70% at 50% 50%,rgba(39,140,255,.34),rgba(10,22,52,.92) 72%)}
.h-orbit-core{position:absolute;left:50%;top:50%;translate:-50% -50%;width:128px;height:128px;border-radius:36px;display:grid;place-items:center;
  background:linear-gradient(145deg,rgba(26,166,255,.92),rgba(75,92,255,.88));border:1px solid rgba(180,235,255,.6);
  box-shadow:0 0 0 12px rgba(39,170,255,.10),0 0 90px rgba(39,199,255,.6),inset 0 1px 0 rgba(255,255,255,.35);scale:calc(.7 + var(--fp) * .3)}
.h-orbit-core img{width:78px;height:78px;filter:brightness(0) invert(1)}
.h-orbit-ring{position:absolute;left:50%;top:50%;width:0;height:0;--r:clamp(130px,13vw,170px);animation:h-spin 60s linear infinite}
.h-orbit-ring::before{content:"";position:absolute;left:calc(var(--r) * -1);top:calc(var(--r) * -1);width:calc(var(--r) * 2);height:calc(var(--r) * 2);border-radius:50%;
  border:1px dashed rgba(127,233,255,.28);opacity:var(--fp)}
.h-orbit-item{position:absolute;left:0;top:0;transform:rotate(calc(var(--i) * 45deg)) translateY(calc(var(--r) * -1 * (1 + (1 - var(--fp)) * 1.6)));
  opacity:calc(var(--fp) * 1.4 - .2)}
.h-orbit-item>span{display:block;transform:rotate(calc(var(--i) * -45deg))}
.h-orbit-item img{display:block;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:17px;box-shadow:0 12px 30px -8px rgba(30,160,255,.7);animation:h-spin 60s linear infinite reverse}
.js .h-orbit:not(.h-live) .h-orbit-ring,.js .h-orbit:not(.h-live) .h-orbit-item img{animation-play-state:paused}
@keyframes h-spin{to{rotate:360deg}}

/* ---------- 4. what you can run ---------- */
.h-kind{min-height:150px}
.h-kind .h-block-body{max-width:100%;justify-content:space-between;gap:14px}
.h-kind-apps{display:flex;flex-wrap:wrap;gap:8px}
.h-kind-app{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border-radius:12px;font-size:.9rem;font-weight:650;color:#fff;
  background:rgba(6,14,40,.62);border:1px solid rgba(255,255,255,.14)}
.h-kind-app img{width:28px;height:28px;border-radius:8px}

/* ---------- 5. real screens ---------- */
.h-gallery{display:grid;gap:16px}
.h-shotcard{display:flex;flex-direction:column;gap:18px;padding:22px 22px 0;overflow:hidden}
.h-shotcard figcaption{display:flex;align-items:center;gap:12px}
.h-shotcard figcaption b{font-size:1.12rem;color:#fff}
.h-shotcard .h-tile{width:42px;height:42px;border-radius:12px}
.h-shotcard .h-tile svg{width:21px;height:21px}
.h-shot-phone{width:min(78%,290px);margin:0 auto -18%;border-bottom-left-radius:0;border-bottom-right-radius:0}

/* ---------- 6. privacy ---------- */
.h-own{min-height:190px}

/* ---------- 7. the way in ---------- */
.h-final{position:relative;isolation:isolate;overflow:hidden;margin-top:clamp(80px,12vw,160px);padding:clamp(90px,13vw,170px) 0 clamp(60px,8vw,110px);
  border-radius:clamp(24px,4vw,48px) clamp(24px,4vw,48px) 0 0;border-top:1px solid rgba(120,190,255,.18);
  background:radial-gradient(ellipse 80% 70% at 50% 50%,#173a7c 0%,#0c1a48 50%,#060c24 100%)}
.h-final::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 50% 40% at 50% 34%,rgba(5,10,32,.55),transparent 75%),linear-gradient(transparent 70%,rgba(6,12,36,.7))}
.h-final-inner{text-align:center}
.h-final-title{font-size:clamp(2.6rem,8vw,7rem);font-weight:900;letter-spacing:-.05em;line-height:.98;color:#fff;text-shadow:0 6px 40px rgba(0,8,40,.6)}
.h-final-title .grad{display:block}
.h-final-card{max-width:780px;margin:clamp(30px,4vw,48px) auto 0;padding:clamp(20px,3vw,32px);text-align:left;display:grid;gap:16px;
  background:rgba(8,16,46,.78);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.h-badge{display:inline-flex;align-items:center;gap:8px;font-size:.84rem;font-weight:700;color:#bff4ff;padding:7px 14px;border-radius:999px;margin-bottom:22px;
  border:1px solid rgba(95,224,255,.4);background:rgba(6,20,52,.7)}
.h-badge .dot,.h-version .dot{width:7px;height:7px;border-radius:50%;background:#3ee6a0;box-shadow:0 0 10px #3ee6a0}
.h-dl-groups{display:grid;gap:16px}
.h-dl-group h3{display:flex;align-items:center;gap:8px;font-size:.95rem;font-weight:700;color:#dbe7ff;margin-bottom:10px}
.h-dl-group h3 svg{width:18px;height:18px;fill:none;stroke:#5fe0ff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.h-dl{display:grid;grid-template-columns:1fr;gap:10px}
.h-btn-wide{width:100%}
.h-have{border-radius:16px;background:rgba(6,14,40,.5);border:1px solid rgba(255,255,255,.1)}
.h-have summary{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 16px;cursor:pointer;font-weight:650;color:#dbe7ff;list-style:none}
.h-have summary::-webkit-details-marker{display:none}
.h-have summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;flex:0 0 auto}
.h-have[open] summary::after{transform:rotate(-135deg)}
.h-have summary svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:#5fe0ff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.h-have>:not(summary){margin:0 16px 16px}
.h-term .term-bar em{white-space:normal}
.h-term .copy svg{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.h-final-links{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:.92rem}
.h-final-links a{color:#9fe3ff;font-weight:600}
.h-version{display:flex;align-items:center;gap:8px;justify-content:center;font-size:.85rem;color:var(--h-mute)}

/* the footer of the front page meets the final section without a seam */
body.hdr-over footer{margin-top:0;background:#060c24}

/* ---------- reveal on scroll (home.js adds .in) ---------- */
.js .rv{opacity:0;transform:translateY(34px);transition:opacity .8s var(--ease),transform .9s var(--ease);transition-delay:calc(var(--d,0) * 90ms);animation:revealSafety .01s 9s forwards}
/* the real screens rise into their frames a moment after their card arrives */
.js .h-shotcard.rv .h-shot-phone{transform:translateY(70px);transition:transform 1.3s var(--ease) calc(var(--d,0) * 90ms + .2s)}
.js .h-shotcard.rv.in .h-shot-phone{transform:none}
.js .rv.in{opacity:1;transform:none}

/* ---------- wider screens ---------- */
@media (min-width:640px){
  .h-family,.h-kinds,.h-owns,.h-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h-dl-groups{grid-template-columns:2fr 1fr}
  .h-dl-group:first-child .h-dl{grid-template-columns:1fr 1fr}
}
@media (min-width:861px){
  html:not(.js) .h-steps3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .h-done{grid-template-columns:1.25fr 1fr}
  .h-done-list{grid-template-columns:1fr 1fr}
  .h-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
  .h-kinds{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* the three steps as a story: the steps scroll past on the left, the app beside them changes with each (home.js marks the one in view) */
@media (min-width:900px){
  .js .h-story{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:clamp(32px,4vw,64px);align-items:start}
  .js .h-steps3{gap:28vh;padding-block:12vh 20vh}
  .js .h-step-pic{display:none}
  .js .h-step{min-height:0;transition:opacity .5s,border-color .5s,transform .25s var(--ease)}
  .js .h-step:not(.is-on){opacity:.45}
  .js .h-step.is-on{border-color:rgba(95,224,255,.55)}
  .js .h-story-stage{display:block;position:sticky;top:calc(50vh - min(22vw,250px));height:min(44vw,500px)}
  .js .h-story-stage{overflow:hidden;background:radial-gradient(90% 80% at 50% 40%,rgba(39,140,255,.32),rgba(10,22,52,.9) 72%)}
  .h-story-duo{position:absolute;inset:9% 6% 11% 5%;opacity:0;transform:translateY(28px) scale(.97);transition:opacity .6s var(--ease),transform .9s var(--ease)}
  .h-story-duo.on{opacity:1;transform:none}
  .h-story-laptop{width:86%}
  .h-phone.h-story-phone{position:absolute;right:0;bottom:4%;width:22%;transform:rotate(3deg)}
}
/* a tablet or a phone: each step is a row, the words and its small pair side by side */
@media (max-width:899px){
  .h-step{display:grid;grid-template-columns:minmax(0,1fr) 38%;align-items:center;min-height:0}
  .h-step .h-block-art{display:none}
  .h-step .h-block-body{max-width:none}
  .h-step-pic{padding:14px 14px 18px 0;margin:0}
  .h-step-laptop{width:92%}
  .h-phone.h-step-phone{right:8px;bottom:10px;width:30%}
}
@media (min-width:1100px){
  .h-family,.h-owns{grid-template-columns:repeat(4,minmax(0,1fr))}
  .h-done-list{grid-template-columns:1fr}
}
@media (min-width:1400px){.h-done-list{grid-template-columns:1fr 1fr}}
/* ---------- a phone: the same sections, folded short (about five screens) ----------
   The hero's computer and phone smaller, steps/privacy as icon rows, the catalogue as category tiles, the real screens
   as one sideways strip and the downloads as two buttons. The art and the "Adding a server" pair are
   desktop only; nothing here changes a wider screen. */
.h-dl-short{display:none}
@media (max-width:700px){
  .h-sec{padding-top:44px}
  .h-title{font-size:clamp(1.65rem,7.6vw,2rem);margin-bottom:18px}
  .h-block-body{max-width:82%}
  .h-more-row{margin-top:14px}
  .h-more-row .h-btn{width:100%}
  .h-btn{min-height:50px;padding:0 16px;font-size:1rem;gap:8px}

  /* 1. hero: the computer full width, the phone small at its own shape on the computer's lower-right corner */
  .h-hero{padding:84px 0 32px;min-height:0}
  .h-hero h1{font-size:clamp(2.2rem,10.5vw,2.9rem)}
  .h-badge{margin-bottom:16px}
  .h-sub{margin-top:16px;font-size:1rem}
  .h-hero .h-actions{margin-top:22px;flex-wrap:nowrap;gap:10px}
  .h-hero .h-actions .h-btn{flex:1 1 0;min-width:0}
  .h-plat{gap:2px 8px;margin-top:16px;padding:7px 12px;font-size:.76rem}
  .h-plat li{white-space:nowrap}
  .h-plat li::before{margin-right:3px}
  .h-arch-4,.h-sweep{display:none}
  .h-arch,.h-arches::before{top:30%}
  .h-duo{margin-top:26px;padding-bottom:44px;perspective:none}
  .h-duo-laptop{width:88%;transform:none}
  .h-phone.h-duo-phone{top:auto;bottom:0;right:0;width:30%;transform:rotate(3deg)}

  /* 2. three steps and "Done for you" as rows: icon, then words */
  .h-steps3{gap:10px}
  .h-steps3 .h-block,.h-own{min-height:0}
  .h-steps3 .h-block-art,.h-own .h-block-art,.h-kind .h-block-art{display:none}
  .h-steps3 .h-block-body,.h-own .h-block-body{max-width:none;display:grid;grid-template-columns:44px 1fr;column-gap:14px;row-gap:2px;align-content:center;padding:14px 16px}
  .h-own .h-chiptile{grid-row:1 / span 3;margin:0;align-self:center}
  .h-steps3 .h-chiptile{display:none}
  .h-steps3 .h-block-body{display:flex;padding:12px 4px 12px 16px}
  .h-step-pic{padding:10px 10px 14px 0}
  .h-step-pic .h-laptop-lid{padding:4px;border-radius:7px}
  .h-step-pic .h-laptop-lid img{border-radius:3px}
  .h-step-pic .h-laptop::after{bottom:-6px;height:6px;border-radius:0 0 6px 6px}
  .h-phone.h-step-phone{right:4px;bottom:8px;padding:2.6%}
  .h-steps3 .h-block-body>*:not(.h-chiptile),.h-own .h-block-body>*:not(.h-chiptile){grid-column:2}
  .h-steps3{counter-reset:h-step}
  .h-steps3>li{counter-increment:h-step}
  .h-block-body>.h-step-n{display:none}
  .h-steps3 .h-block-body>b::before{content:counter(h-step) ". ";color:#7fe9ff}
  .h-steps3 .h-block-body>b,.h-own .h-block-body>b{font-size:1.05rem}
  .h-steps3 .h-block-body>span:not(.h-chiptile):not(.h-step-n),.h-own .h-block-body>span:not(.h-chiptile):not(.h-go){font-size:.88rem;line-height:1.4}
  .h-done{margin-top:10px}
  .h-done-card{padding:16px}
  .h-done-title{font-size:1.25rem;margin-bottom:12px}
  .h-done-list{gap:0}
  .h-done-list li{gap:12px;padding:10px 0;border-radius:0;background:none;border:0;border-top:1px solid rgba(255,255,255,.09)}
  .h-done-list li:first-child{border-top:0;padding-top:0}
  .h-done-list li:last-child{padding-bottom:0}
  .h-done-list .h-tile{width:38px;height:38px;border-radius:11px}
  .h-done-list .h-tile svg{width:19px;height:19px}
  .h-done-list b{font-size:.98rem}
  .h-done-list li>span:last-child>span{font-size:.86rem;line-height:1.38}
  .h-done-pics{display:none}

  /* 3. the family as one sideways strip: icon, name and line on each card; the next card peeks in */
  .h-family>li{flex:0 0 min(62%,250px);scroll-snap-align:start}
  .h-fam{min-height:0}
  .h-fam .h-block-art{display:none}
  .h-fam .h-block-body{max-width:none;justify-content:flex-start;gap:4px;padding:14px}
  .h-fam .h-fam-ico{width:42px;height:42px;border-radius:12px;margin:0 0 6px}
  .h-fam .h-block-body>b{font-size:1rem}
  .h-fam .h-block-body>span{font-size:.86rem;line-height:1.38}

  /* 4. what you can run: category tiles, two a row, each with its apps' icons (names on tap-and-hold) */
  .h-kinds{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .h-kind{min-height:0}
  .h-kind .h-block-body{gap:10px;padding:14px}
  .h-kind .h-block-body>b{font-size:.95rem}
  .h-kind-apps{gap:6px}
  .h-kind-app{padding:4px;border-radius:10px}
  .h-kind-app img{width:26px;height:26px}
  .h-kind-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

  .h-orbit{display:none}
  /* 3 and 5. the family and the real screens scroll sideways; the next card peeks in and the bar shows there is more */
  .h-family,.h-gallery{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:calc(var(--gutter) * -1);padding:0 var(--gutter) 12px;
    scroll-padding-inline:var(--gutter);scrollbar-width:thin;scrollbar-color:rgba(95,224,255,.55) rgba(255,255,255,.08)}
  .h-family::-webkit-scrollbar,.h-gallery::-webkit-scrollbar{height:6px}
  .h-family::-webkit-scrollbar-thumb,.h-gallery::-webkit-scrollbar-thumb{background:rgba(95,224,255,.55);border-radius:3px}
  .h-family::-webkit-scrollbar-track,.h-gallery::-webkit-scrollbar-track{background:rgba(255,255,255,.08);border-radius:3px}
  .js .h-family .rv,.js .h-gallery .rv{opacity:1;transform:none}
  .h-shotcard{flex:0 0 min(64%,260px);scroll-snap-align:start;gap:12px;padding:14px 14px 0}
  .h-shotcard figcaption b{font-size:.95rem;line-height:1.25}
  .h-shotcard .h-tile{width:36px;height:36px;border-radius:10px}
  .h-shotcard .h-tile svg{width:18px;height:18px}
  .h-shot-phone{width:74%;margin-bottom:-40%}

  /* 6. privacy: four rows like the steps */
  .h-owns{gap:10px}
  .h-go{margin-top:2px;font-size:.84rem}

  /* 7. the way in: two buttons to the download page */
  .h-final{margin-top:44px;padding:48px 0 36px}
  .h-final-title{font-size:clamp(2.2rem,10.5vw,2.9rem)}
  .h-final-card{margin-top:22px;padding:16px;gap:12px}
  .h-dl-short{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .h-dl-groups{display:none}
}

/* ---------- reduced motion: everything is shown, nothing moves on its own ---------- */
@media (prefers-reduced-motion:reduce){
  .js .rv{opacity:1!important;transform:none!important;transition:none!important;animation:none!important}
  .h-intro-mark,.h-intro-word,.h-intro-skip{animation:none}
  .h-duo-laptop,.h-duo-phone{transform:none!important}
  .h-duo-phone{transform:rotate(3deg)!important}
  .h-sweep{animation:none;display:none}
  .h-orbit-ring,.h-orbit-item img{animation:none}
  .js .h-shotcard.rv .h-shot-phone{transform:none;transition:none}
  .h-arches{--hp:0!important}
  .h-block,.h-portal{transition:none!important}
  a.h-block:hover{transform:none}
}
