/* web/src/static/landing.css: the layout of the public page (src/site.ts) and the hero's motion. The
   shared look (fonts, dark tokens, avatars, mark) is team.css, linked first. Dark only.
   Every rule outside the motion block at the end shows the END state: with no script and with
   reduced motion the page is whole and nothing is hidden. The motion block runs only with the
   class "js" (landing.js) and prefers-reduced-motion: no-preference, and moves only transform and
   opacity. The living pictures (the phone screens, the fleet master's picture) have their places and
   their still state here; their loops are in scenes.css (made by src/site-scenes.ts), and so are the
   screens and the rings of a phone (max-width 760 px), beside the pictures that they belong to. */
:root{--wrap:1080px;--pad:24px;--gap:120px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.5 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden}
a{color:inherit;text-decoration:none}
p,h1,h2,h3,ul,ol{margin:0;padding:0}
ul,ol{list-style:none}
img{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit;border:0;cursor:pointer}
a:focus-visible,summary:focus-visible,button:focus-visible,.get:focus-visible{outline:2px solid var(--ink1);outline-offset:3px;border-radius:6px}
.wrap{width:min(var(--wrap),100%);margin:0 auto;padding:0 var(--pad)}
h1{font-size:clamp(44px,7.2vw,92px);line-height:0.98;font-weight:600;letter-spacing:-0.045em;text-wrap:balance}
h2{font-size:clamp(30px,4.2vw,52px);line-height:1.04;font-weight:600;letter-spacing:-0.035em;text-wrap:balance}
h3{font-size:22px;line-height:1.2;font-weight:500;letter-spacing:-0.02em;text-wrap:balance}
.sub{color:var(--ink1);font-size:clamp(17px,1.6vw,20px);line-height:1.45;max-width:34em;text-wrap:pretty}
.label{color:var(--ink2);font:500 13px/1.3 var(--mono)}

/* the header (solid) and the footer */
.top{position:sticky;top:0;z-index:5;background:var(--bg);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;height:60px}
.top nav{display:flex;align-items:center;gap:8px}
.foot{margin-top:var(--gap);border-top:1px solid var(--line)}
.foot .wrap{display:flex;align-items:center;justify-content:space-between;height:76px;color:var(--ink1);font-size:14px}
.foot nav{display:flex;gap:22px}

/* buttons: a link or a button that acts; a span with the same look in a picture does not */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:10px;background:var(--inv);color:var(--invink);font-weight:500;font-size:16px;white-space:nowrap}
.btn.q{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line2)}
a.btn,button.btn{touch-action:manipulation}
a.btn:active,button.btn:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){
  a.btn:hover,button.btn:hover{background:#d4d4d4}
  a.btn.q:hover,button.btn.q:hover{background:var(--raise)}
  .foot nav a:hover{color:var(--ink)}
}
.top .btn{height:34px;padding:0 14px;font-size:14px;border-radius:8px}
.top .btn.q{box-shadow:none;color:var(--ink1)}

/* sections: one column of text on one left edge; the part under it starts on the same edge */
section{padding-top:var(--gap)}
.card{border-radius:16px;background:var(--card);box-shadow:0 0 0 1px var(--line)}
.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:48px;align-items:start}
.copy{max-width:560px}
.copy h1{margin-left:-0.04em}
.copy h2{margin-left:-0.025em}
.copy h1+.sub{margin-top:28px}
.copy h2+.sub{margin-top:20px}
.copy .btn{margin-top:36px}
.below{margin-top:56px}
.act{margin-top:40px}

/* 1. the hero: the text, and the team at the right */
.hero{padding-top:136px}
.hero .two{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.hero .copy{max-width:520px}
.team{display:grid;grid-template-columns:repeat(4,96px);gap:32px}
.team li{display:grid;grid-template-columns:100%;justify-items:center;gap:10px}
.team .hop{display:block}
.team .label{font-size:12px;color:var(--ink1)}

/* 2. what you get: three phone frames, each with one line under it. A frame holds a living screen
   (.scr, scenes.css): a picture, its sizes follow the frame's width. */
.get{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px}
.get li{display:grid;gap:24px;align-content:start}
.phone{border-radius:30px;padding:8px;background:#000;box-shadow:0 0 0 1px var(--line2),0 24px 60px #00000080}

/* 3. the fleet master: the console's picture in a frame, the team on its top edge, four numbered
   places (rings) and their four lines. A mover is a track as wide as the picture: translateX(n%) of
   the track = n % of the picture, at each width. The wrap cuts the tracks at its own edge, so the
   page never scrolls sideways. Here: the still state (four rings, four lines, the two workers at
   their end places, no chip on its way). */
.fms{overflow-x:clip}
.tour{position:relative;margin-top:150px}
.shot{position:relative;border-radius:14px;overflow:hidden;background:#0a0a0a;box-shadow:0 0 0 1px var(--line2),0 30px 80px #00000080}
.shot img{width:100%}
.shot .p{display:none}
.ledge{position:absolute;left:0;right:0;top:0;height:0;z-index:2;--fm:90%;--ld:74%;--wb:60%;--wa:46%;--q:6%;--fmc:86.5%;--ldc:71%;--wk:36px;--chip:104px}
.lg{position:absolute;bottom:0}
.l-fm{left:var(--fm)}
.l-web{left:var(--ld)}
.lg .label{position:absolute;bottom:calc(100% + 6px);left:50%;translate:-50% 0;font-size:12px;white-space:nowrap}
.fm{display:grid;place-items:center;width:72px;height:72px;border-radius:25%;background:var(--avtile)}
.fm::before{content:"";width:22px;height:22px;border:3px solid var(--ink);border-radius:3px;transform:rotate(45deg)}
.trk{position:absolute;left:0;right:0;bottom:0;height:0}
.trk>*{position:absolute;left:0;bottom:0}
.wk{display:block;width:48px;height:48px}
.trk .wk{width:var(--wk);height:var(--wk)}
.chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:8px;background:var(--raise2);box-shadow:inset 0 0 0 1px var(--line2);color:var(--ink);font:500 13px/1 var(--sans);white-space:nowrap}
.bub{display:grid;place-items:center;width:24px;height:24px;border-radius:50% 50% 50% 4px;background:var(--inv);color:var(--invink);font:600 15px/1 var(--mono)}
.t-msg,.t-ord{opacity:0}
.t-msg .chip,.t-ord .chip{bottom:var(--chip)}
.t-wa{transform:translateX(var(--q))}
.t-wb{transform:translateX(var(--wb))}
.t-wa .pr{bottom:calc(var(--wk) + 6px);left:-14px}
.t-wb .bub{bottom:calc(var(--wk) + 2px);left:calc(var(--wk) - 8px)}
.t-wb .walk{opacity:0}
.ring{position:absolute;border-radius:10px;box-shadow:0 0 0 2px var(--ink),0 0 0 7px #ededed24;pointer-events:none}
.ring b{position:absolute;right:-11px;top:-11px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--inv);color:var(--invink);font:600 13px/1 var(--mono)}
.r1{left:49.4%;top:24%;width:39.3%;height:6.3%}
.r2{left:31.2%;top:34.8%;width:33.2%;height:15.2%}
.r3{left:.5%;top:31.5%;width:19.7%;height:16%}
.r4{left:.5%;top:6.7%;width:19.7%;height:4.6%}
.caps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-top:28px}
.caps li{display:flex;align-items:baseline;gap:12px;font-size:19px;line-height:1.3;font-weight:500;letter-spacing:-0.01em}

/* the one sentence on the locked accounts, said by the lead of security */
.say1{display:flex;align-items:center;gap:28px}
.os .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px 28px;flex-wrap:wrap}
.os p{font-size:clamp(20px,2.3vw,28px);line-height:1.22;font-weight:500;letter-spacing:-0.022em;text-wrap:balance}
.os .btn svg{flex:none}
.say1 p{font-size:clamp(20px,2.3vw,28px);line-height:1.22;font-weight:500;letter-spacing:-0.022em;max-width:30em;text-wrap:balance}

/* 4. the plans */
.plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.plan{display:grid;gap:6px;align-content:start;padding:24px}
.p-name{display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:17px;min-height:26px}
.p-tag{padding:4px 9px;border-radius:999px;background:var(--inv);color:var(--invink);font-size:12px;font-weight:500}
.p-price{margin-top:14px;font-size:44px;line-height:1;font-weight:600;letter-spacing:-0.04em}
.p-price span{white-space:nowrap;font-size:16px;font-weight:400;letter-spacing:0;color:var(--ink1)}
.p-year{color:var(--ink1);font-size:15px}
.p-server{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);color:var(--ink1);font:400 13.5px/1.4 var(--mono)}
.p-left{margin-top:8px;color:var(--ink0)}
.plan.rec{box-shadow:0 0 0 1px var(--line2);background:var(--raise)}
.note{margin-top:16px;color:var(--ink1);font-size:14px}

/* 5. the questions: closed until opened */
.faq li+li{border-top:1px solid var(--line)}
.faq details{padding:0 22px}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;font-weight:500;cursor:pointer;list-style:none;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.faq summary::-webkit-details-marker{display:none}
.chev{flex:none;width:9px;height:9px;border-right:1.5px solid var(--faint);border-bottom:1.5px solid var(--faint);transform:translateY(-2px) rotate(45deg)}
.faq details[open] .chev{transform:translateY(2px) rotate(225deg)}
.faq p{margin:0 0 20px;color:var(--ink1)}

/* a narrow screen: the team under the text, the plans one under the other */
@media (max-width:1000px){
  .hero .two{grid-template-columns:minmax(0,1fr);row-gap:64px}
  .plans{grid-template-columns:minmax(0,1fr)}
}
/* the phone: one column; the team under the action; the fleet master's picture is the phone's chat */
@media (max-width:760px){
  :root{--gap:84px;--pad:20px}
  .two,.hero .two{grid-template-columns:minmax(0,1fr);row-gap:40px}
  .hero{padding-top:56px}
  .hero .two{row-gap:48px}
  .copy h1+.sub{margin-top:20px}
  .copy h2+.sub{margin-top:16px}
  .copy .btn{margin-top:28px}
  .below{margin-top:36px}
  .act{margin-top:28px}
  .team{grid-template-columns:repeat(4,72px);gap:14px}
  .team .av{width:72px;height:72px}
  h3{font-size:20px}
  /* a row of cards that the reader swipes: one card at its place, 40 px of the next one in view; the last
     card ends at the page's margin */
  .get{display:flex;gap:12px;margin:-2px calc(-1 * var(--pad)) 0;padding:2px var(--pad) 0;overflow:auto hidden;scroll-snap-type:x mandatory;scroll-padding:0 var(--pad);overscroll-behavior-x:contain;scrollbar-width:none}
  .get::-webkit-scrollbar{display:none}
  .get:focus-visible{outline-offset:-2px}
  .get li{flex:0 0 min(100% - 32px,360px);gap:16px;scroll-snap-align:start}
  .get li:last-child{scroll-snap-align:end}
  .phone{border-radius:28px;padding:6px}
  .tour{max-width:430px;margin-top:108px}
  .ledge{--fm:86%;--ld:55%;--wb:42%;--wa:29%;--q:4%;--fmc:70%;--ldc:47%;--wk:24px;--chip:72px}
  .fm,.ledge .av{width:48px;height:48px}
  .fm::before{width:15px;height:15px;border-width:2px;border-radius:2px}
  .l-fm .label{left:auto;right:0;translate:none}
  .ledge .chip{height:22px;padding:0 6px;font-size:12px;border-radius:6px}
  .ledge .bub{width:18px;height:18px;font-size:12px}
  .t-wa .pr{left:-6px}
  .shot .d{display:none}
  .shot{box-shadow:0 0 0 1px var(--line2)}
  .shot .p{display:block;object-fit:cover;object-position:top}
  .caps{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:20px}
  .caps li{font-size:18px;text-wrap:balance}
  .say1{gap:18px;align-items:flex-start}
  .foot .wrap{height:auto;padding-top:22px;padding-bottom:22px;flex-direction:column;align-items:flex-start;gap:14px}
}
/* the fleet master's picture from edge to edge: the size that the console has on this phone */
@media (max-width:479.98px){
  .tour{max-width:none;margin-left:calc(-1 * var(--pad));margin-right:calc(-1 * var(--pad))}
  .ledge{--fm:calc(100% - var(--pad) - 48px);--fmc:calc(100% - var(--pad) - 106px);--q:7%}
  .shot{border-radius:0}
  .caps{margin-left:var(--pad);margin-right:var(--pad)}
}
/* a narrow phone: the team at 48 px, so four still fit in a row */
@media (max-width:369px){
  .team{grid-template-columns:repeat(4,48px);gap:14px 20px}
  .team .av{width:48px;height:48px}
  .ledge{--ld:52%;--ldc:44%}
}

/* ---------------------------------------------------------------- the hero's motion (script + motion allowed) */
@media (prefers-reduced-motion:no-preference){
  .js a.btn,.js button.btn{transition:transform 160ms var(--ease-out)}
  .js .chev{transition:transform 200ms var(--ease-out)}

  /* the hero: the team comes in row by row, then one hop wave runs across it, one time */
  .js .team li{animation:t-in 420ms var(--ease-out) both}
  .js .team li:nth-child(2){animation-delay:45ms}
  .js .team li:nth-child(3){animation-delay:90ms}
  .js .team li:nth-child(4){animation-delay:135ms}
  .js .team li:nth-child(5){animation-delay:180ms}
  .js .team li:nth-child(6){animation-delay:225ms}
  .js .team li:nth-child(7){animation-delay:270ms}
  .js .team li:nth-child(8){animation-delay:315ms}
  .js .team li:nth-child(9){animation-delay:360ms}
  .js .team li:nth-child(10){animation-delay:405ms}
  .js .team li:nth-child(11){animation-delay:450ms}
  .js .team li:nth-child(12){animation-delay:495ms}
  .js .team .hop{animation:hop 280ms var(--ease-in-out) 1000ms both}
  .js .team li:is(:nth-child(2),:nth-child(5)) .hop{animation-delay:1070ms}
  .js .team li:is(:nth-child(3),:nth-child(6),:nth-child(9)) .hop{animation-delay:1140ms}
  .js .team li:is(:nth-child(4),:nth-child(7),:nth-child(10)) .hop{animation-delay:1210ms}
  .js .team li:is(:nth-child(8),:nth-child(11)) .hop{animation-delay:1280ms}
  .js .team li:nth-child(12) .hop{animation-delay:1350ms}
  /* a pointer on an avatar: it hops one time (landing.js sets data-hop, and removes it at the end) */
  .js .team li[data-hop] .av{animation:hop 280ms var(--ease-in-out)}

}
@keyframes t-in{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
@keyframes hop{0%,100%{transform:translateY(0)}50%{transform:translateY(-8.3333%)}}
