/* gate-sky.css — p157 (2026-11-22). Albert, choosing from the p156 mock: "use sunrise and sky".
   The sign-in / waitlist page (#gate) stands on a colour backdrop: Sky when the app's theme is White, Sunrise when it is
   Dark. The theme switch and its saved choice stay the app's own (theme.js, "patron.theme"), so after sign-in the app is
   Dark or White exactly as before; only this page shows them as Sky and Sunrise. On both the page takes its white look
   (copied from theme-light.css's p102 block, keyed on html[data-gb]:not([data-sky="dark"]), which gate.js sets) and the white board. The clouds
   are Blender renders (assets/clouds, gate.js buildSky). Loaded after theme-light.css.
   p162 (Albert: "add a dark truly dark theme"): three looks (theme.js, html[data-sky]). Sky and Sunrise as before; in Dark
   none of the colour rules here apply ("html[data-gb]:not([data-sky=dark])"), so the page is login.css's black one with the
   dark A3 board (p155's look). The board's place (the last rules) is the same in all three. */
html[data-gb]:not([data-sky="dark"]) .lg{
  color-scheme:light;
  --lt-page:#f7f7f5; --lt-side:#f0f0ed; --lt-card:#ffffff; --lt-hover:#f0f0ed; --lt-press:#e7e7e3;
  --lt-line:#e5e5e1; --lt-line2:#d6d6d1; --lt-field:#dcdcd7;
  --lt-ink:#161616; --lt-text:#2b2b29; --lt-2:#5c5c58; --lt-3:#6b6b67; --lt-ph:#737370;
  --lt-amber:#8a5800; --lt-green:#177a42; --lt-red:#c0362c; --lt-link:#1f5fbf; --lt-blue:#1f6fe0; --lt-focus:#2f6fd6;
  --lt-pop:0 18px 50px rgba(24,24,20,.14),0 2px 6px rgba(24,24,20,.06);
  /* base.css (the old shell) */
}
html[data-gb]:not([data-sky="dark"]) .lg{
  background:radial-gradient(ellipse 70% 45% at 50% 82%,rgba(255,255,255,.9),rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 50% 40% at 50% 0%,rgba(255,255,255,.95),rgba(255,255,255,0) 70%),var(--lt-page);
  color:var(--lt-text)}
/* the top bar: the wordmark inverted (as in the app), Sign in a white pill with a hairline */
html[data-gb]:not([data-sky="dark"]) .lg-navword{filter:invert(1)}
html[data-gb]:not([data-sky="dark"]) .lg-signin{background:rgba(255,255,255,.8);box-shadow:inset 0 0 0 1px rgba(24,24,20,.13),0 1px 2px rgba(24,24,20,.04);color:var(--lt-text)}
html[data-gb]:not([data-sky="dark"]) .lg-signin:hover{background:#fff;box-shadow:inset 0 0 0 1px rgba(24,24,20,.24),0 1px 2px rgba(24,24,20,.06);color:var(--lt-ink)}
html[data-gb]:not([data-sky="dark"]) :is(.lg-signin,.lg-join-go,.lg-ref,.lg-pill,.lg-join,.lg-send,.lg-link):focus-visible{outline-color:var(--lt-focus)}
html[data-gb]:not([data-sky="dark"]) .lg-h1{color:var(--lt-ink)}
html[data-gb]:not([data-sky="dark"]) .lg-sub{color:var(--lt-2)}
/* the email pill: white, a hairline and a soft shadow; Request access is the ink key */
html[data-gb]:not([data-sky="dark"]) .lg-joinform{background:#fff;box-shadow:inset 0 0 0 1px var(--lt-field),0 24px 60px rgba(24,24,20,.08),0 0 0 6px rgba(24,24,20,.025)}
html[data-gb]:not([data-sky="dark"]) .lg-joinform:focus-within{box-shadow:inset 0 0 0 1px #b9b9b3,0 24px 60px rgba(24,24,20,.09),0 0 0 6px rgba(24,24,20,.045)}
html[data-gb]:not([data-sky="dark"]) .lg-join-in{color:var(--lt-ink)}
html[data-gb]:not([data-sky="dark"]) .lg-join-in::placeholder{color:var(--lt-ph)}
html[data-gb]:not([data-sky="dark"]) .lg-join-go{background:var(--lt-ink);color:#fff}
html[data-gb]:not([data-sky="dark"]) .lg-join-go:hover:not(:disabled){background:#000}
/* the words of every step */
html[data-gb]:not([data-sky="dark"]) .lg-head{color:var(--lt-ink)}
html[data-gb]:not([data-sky="dark"]) .lg-text{color:var(--lt-2)}
html[data-gb]:not([data-sky="dark"]) .lg-text b{color:var(--lt-ink)}
html[data-gb]:not([data-sky="dark"]) .lg-text.bad{color:var(--lt-red)}
html[data-gb]:not([data-sky="dark"]) .lg-only,html[data-gb]:not([data-sky="dark"]) .lg[data-state="idle"] .lg-only{color:var(--lt-3)}
html[data-gb]:not([data-sky="dark"]) .lg-link{color:var(--lt-3);text-decoration-color:rgba(107,107,103,.45)}
html[data-gb]:not([data-sky="dark"]) .lg-link:hover{color:var(--lt-ink)}
html[data-gb]:not([data-sky="dark"]) .lg-dot{color:#b9b9b3}
/* the code: six white keys with a lip, the one being typed ringed in ink */
html[data-gb]:not([data-sky="dark"]) .lg-code-box{background:#fff;border-color:rgba(24,24,20,.13);color:var(--lt-ink);
  box-shadow:inset 0 -1px 0 rgba(24,24,20,.03),0 4px 0 #e0e0db,0 12px 24px -12px rgba(24,24,20,.18)}
html[data-gb]:not([data-sky="dark"]) .lg-code-box.full{background:#fff}
html[data-gb]:not([data-sky="dark"]) .lg-code-box.on{border-color:rgba(22,22,22,.72);box-shadow:0 0 0 3px rgba(22,22,22,.07),0 4px 0 #e0e0db,0 12px 24px -12px rgba(24,24,20,.18)}
html[data-gb]:not([data-sky="dark"]) .lg-code-box.on:empty::after{background:var(--lt-ink)}
/* on the list: the same quiet line, their link and the copy mark */
html[data-gb]:not([data-sky="dark"]) .lg-onlist{color:var(--lt-ink)}
html[data-gb]:not([data-sky="dark"]) .lg-ref{color:var(--lt-2)}
html[data-gb]:not([data-sky="dark"]) .lg-ref:hover{color:var(--lt-ink);background:rgba(24,24,20,.045)}
html[data-gb]:not([data-sky="dark"]) .lg-ref.ok{color:var(--lt-ink)}
html[data-gb]:not([data-sky="dark"]) .lg-ref.ok .lg-ref-i{color:var(--lt-green)}
/* Sign in's own field, and an invitation's buttons */
html[data-gb]:not([data-sky="dark"]) .lg-email{background:#fff;border-color:var(--lt-field);color:var(--lt-ink);caret-color:var(--lt-ink);box-shadow:0 10px 30px -12px rgba(24,24,20,.12)}
html[data-gb]:not([data-sky="dark"]) .lg-email::placeholder{color:var(--lt-ph)}
html[data-gb]:not([data-sky="dark"]) .lg-email:focus{border-color:#a9a9a3}
html[data-gb]:not([data-sky="dark"]) .lg-send{background:var(--lt-ink);color:#fff}
html[data-gb]:not([data-sky="dark"]) .lg-send:hover:not(:disabled){background:#000}
html[data-gb]:not([data-sky="dark"]) .lg-pill{background:#fff;border-color:var(--lt-line2);color:var(--lt-text)}
html[data-gb]:not([data-sky="dark"]) .lg-pill:hover{background:#fff;border-color:#bdbdb7;color:var(--lt-ink)}
html[data-gb]:not([data-sky="dark"]) .lg-join{background:var(--lt-ink);border-color:var(--lt-ink);color:#fff}
html[data-gb]:not([data-sky="dark"]) .lg-join:hover:not(:disabled){background:#000;border-color:#000}
html[data-gb]:not([data-sky="dark"]) .lg-badge{background:rgba(255,255,255,.75);box-shadow:inset 0 0 0 1px rgba(24,24,20,.12);color:#3d3d3a}
/* the five: the tray in light aluminium with a soft shadow, a fainter reflection, the keys' floor glow quieter */
html[data-gb]:not([data-sky="dark"]) .lg-deck{-webkit-box-reflect:below 6px linear-gradient(transparent 62%,rgba(255,255,255,.08))}
html[data-gb]:not([data-sky="dark"]) .lg-tray{background:linear-gradient(180deg,#ecece9,#dfdfdb);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 0 0 1px rgba(24,24,20,.07),0 30px 60px rgba(24,24,20,.12),0 6px 14px rgba(24,24,20,.05)}
html[data-gb]:not([data-sky="dark"]) .lg-key>ellipse{opacity:.6}
html[data-gb]:not([data-sky="dark"]) .lg-tip{color:var(--lt-2)}
/* a phone: no reflection ("initial": Chrome drops login.css's "-webkit-box-reflect: none", Safari takes both) */
@media (max-width:800px){html[data-gb]:not([data-sky="dark"]) .lg-deck{-webkit-box-reflect:initial}}

/* ---------------- the backdrops: the sky on the page itself, the clouds in #lg-sky over it, the board and words above */
html[data-gb]:not([data-sky="dark"]) .lg{color:var(--lt-text);
  background:linear-gradient(180deg,#3D84E6 0%,#5E9AEC 30%,#8DBBF1 62%,#B7D5F6 84%,#CFE3F8 100%)}
html[data-gb][data-sky="sunrise"] .lg{
  background:radial-gradient(ellipse 34% 26% at 50% 86%,rgba(255,244,226,.95),rgba(255,232,205,.55) 45%,rgba(255,220,190,0) 100%),
    linear-gradient(180deg,#A898E4 0%,#C6A6DF 22%,#E9B2CF 46%,#F9C1B7 66%,#FFD9BF 84%,#FFEBD6 100%)}
.lg-sky{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.lg-sky-set{position:absolute;inset:0;display:none}
.lg-sky img{position:absolute;display:block;user-select:none;-webkit-user-drag:none}
html[data-sky="sky"] .lg-sky-day{display:block}
html[data-sky="sunrise"] .lg-sky-sun{display:block}
.lg-sky-sun img{filter:sepia(.32) saturate(1.7) hue-rotate(-18deg) brightness(1.04)}      /* the warm clouds lean peach */
/* the words: deep blue ink on the sky, plum on the sunrise */
html[data-gb]:not([data-sky="dark"]) .lg-h1{color:#0A1A33}
html[data-gb][data-sky="sunrise"] .lg-h1{color:#2A1631}
html[data-gb]:not([data-sky="dark"]) .lg-joinform{box-shadow:0 24px 60px rgba(20,40,90,.16),0 0 0 6px rgba(255,255,255,.22)}
html[data-gb]:not([data-sky="dark"]) .lg-signin{background:rgba(255,255,255,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);color:#0A1A33}
html[data-gb]:not([data-sky="dark"]) .lg-signin:hover{background:rgba(255,255,255,.8)}
/* the white board on both backdrops (gate.js loads only its pictures); no reflection */
html[data-gb] .lg-deck.lg-board{-webkit-box-reflect:initial;bottom:2vh}
/* the switch (Sky / Sunrise): a frosted pill on the colour */
html[data-gb]:not([data-sky="dark"]) .lg .lg-theme{background:rgba(255,255,255,.42);box-shadow:inset 0 0 0 1px rgba(255,255,255,.6);color:rgba(10,26,51,.55)}
html[data-gb]:not([data-sky="dark"]) .lg .lg-theme .home-themeknob{background:#fff;box-shadow:0 1px 3px rgba(10,26,51,.18)}
html[data-gb]:not([data-sky="dark"]) .lg .lg-theme .home-themeb:hover{color:rgba(10,26,51,.85)}
html[data-gb]:not([data-sky="dark"]) .lg .lg-theme .home-themeb[aria-checked="true"]{color:#0A1A33}
@media (max-width:800px){
  html[data-gb] .lg-deck.lg-board{bottom:auto}
}

/* the pictures never show their alt text while they load */
.lg-pic{color:transparent;font-size:0}
/* p158c (Albert: "a better mobile view where all bots are seen"): on a phone the whole board fits, so it sits in the middle of the free sky under the form */
@media (max-width:800px){html[data-gb] .lg-deck.lg-board{margin-top:clamp(22px,calc((100svh - 520px) / 3.2),130px)}}

/* ---------------- p164 (Albert, 2026-11-22: "now make a good mobile landing page"): the phone as one composed screen.
   The top bar is the wordmark and Sign in only; the words and the five sit together in the middle of the screen; the five
   are as big as the width allows (their keys edge to edge, the deck's ends run off the sides, gate.js fitBoard); the cloud
   bank rises behind the keys and fills the foot (gate.js bankAt); the theme switch stands centred at the foot (gate.js
   placeSwitch). The page still scrolls when the words grow (the code, the keyboard). */
.lg-foot,.lg-bank,.lg-shelves{display:none}
@media (max-width:800px){
  html[data-gb] .lg{display:flex;flex-direction:column}
  html[data-gb] .lg-center{flex:none;margin-top:auto;padding:76px 22px 0}
  html[data-gb] .lg-h1{font-size:clamp(38px,11.4vw,50px);line-height:1;letter-spacing:-.04em}
  html[data-gb] .lg-act{margin-top:26px;width:100%;max-width:440px}
  html[data-gb] .lg-joinform{width:100%;box-sizing:border-box}
  html[data-gb] .lg-deck.lg-board{flex:none;margin:8px 0 0}
  html[data-gb] .lg-foot{display:flex;justify-content:center;flex:none;margin-top:auto;padding:28px 0 calc(16px + env(safe-area-inset-bottom));position:relative;z-index:2}
  html[data-gb] .lg-foot .lg-theme{margin:0}
  /* p164 (Albert: "phone looks shit redesign"): the five on two shelves, three over two (gate.js buildShelves, seat) */
  html[data-gb] .lg-deck.lg-board.lg-ph .lg-stage{display:none}
  html[data-gb] .lg-deck.lg-board.lg-ph .lg-shelves{display:flex;flex-direction:column;align-items:center}
  html[data-gb] .lg-shelf{position:relative;flex:none;width:calc(var(--sw) * var(--ss,.3));height:calc(var(--sh) * var(--ss,.3));margin-top:calc(var(--ss,.3) * 342px)}
  html[data-gb] .lg-shelf + .lg-shelf{margin-top:calc(var(--ss,.3) * 156px)}
  /* the switch stands in the bottom shelf's floor shadow, so the page is one screen */
  html[data-gb] .lg-deck.lg-board.lg-ph{margin-bottom:-30px}
  html[data-gb] .lg-deck.lg-ph ~ .lg-foot{padding-top:8px}
  /* the cloud bank (gate.js bankAt): its crest behind the robots' legs, its body to the foot of the screen, clipped there */
  html[data-gb] .lg-bank{display:block;position:absolute;left:50%;top:var(--bank-top,60vh);width:440vw;aspect-ratio:2400/900;transform:translateX(-50%);
    background:url("../assets/clouds/day-bank.webp?v=2026-11-22p157") center top / 100% auto no-repeat}
  html[data-gb][data-sky="sunrise"] .lg-bank{background-image:url("../assets/clouds/warm-bank.webp?v=2026-11-22p157");
    filter:sepia(.32) saturate(1.7) hue-rotate(-18deg) brightness(1.04)}
  /* Dark: the same bank by moonlight (the app's Dark night, assets/clouds/night-bank) */
  html[data-gb][data-sky="dark"] .lg-bank{background-image:url("../assets/clouds/night-bank.webp?v=2026-11-22p162")}
}
/* p164: a short phone (an SE): the words a little closer to the top bar and a touch smaller */
@media (max-width:800px) and (max-height:700px){
  html[data-gb] .lg-center{padding-top:64px}
  html[data-gb] .lg-h1{font-size:clamp(34px,10.4vw,44px)}
  html[data-gb] .lg-act{margin-top:20px}
}

/* p166: the banner plane (gate.js buildSky / placePlane): it crosses left to right, then the sky is empty a while; it bobs a
   little on the way. Nothing moves for someone who asks for less motion: no plane at all then. */
.lg-plane{position:absolute;left:0;top:9vh;width:30vw;aspect-ratio:1122/220;z-index:0;transform:translateX(-102%);
  animation:lg-fly 46s linear 1.5s infinite;will-change:transform}
.lg-plane[hidden]{display:none}
.lg-sky .lg-plane img{position:static;width:100%;height:auto;animation:lg-bob 5.2s ease-in-out infinite alternate}
@keyframes lg-fly{0%{transform:translateX(-102%)}72%{transform:translateX(100vw)}100%{transform:translateX(100vw)}}
@keyframes lg-bob{0%{transform:translateY(-4px) rotate(-.6deg)}100%{transform:translateY(5px) rotate(.5deg)}}
@media (max-width:800px){.lg-plane{animation-duration:27s;animation-delay:.8s}}
@media (prefers-reduced-motion:reduce){.lg-plane{display:none}}

/* p167: Dark's landing is the app's night (patron-chat-d.css): near-black, a faint indigo high up, stars, moonlit clouds
   (gate.js buildSky, .lg-sky-night), a few stars that twinkle; still for someone who asks for less motion */
html[data-gb][data-sky="dark"] .lg{background:radial-gradient(ellipse 62% 60% at 50% -14%,rgba(56,66,128,.34),rgba(56,66,128,0) 72%),
  linear-gradient(180deg,#0A0C14 0%,#07080D 55%,#050609 100%)}
html[data-sky="dark"] .lg-sky-night{display:block}
.lg-twinkle{position:absolute;width:2px;height:2px;border-radius:50%;background:#EEF1FF;box-shadow:0 0 4px 1px rgba(200,212,255,.55);
  opacity:.25;animation:lg-twinkle 3.6s ease-in-out infinite alternate}
.lg-twinkle.b{width:3px;height:3px;box-shadow:0 0 6px 1.5px rgba(200,212,255,.6)}
@keyframes lg-twinkle{0%{opacity:.15;transform:scale(.7)}100%{opacity:1;transform:scale(1.15)}}
@media (prefers-reduced-motion:reduce){.lg-twinkle{animation:none;opacity:.7}}
/* the stars are farther than the plane: behind it (the plane and the puffs stand at 0 in #lg-sky's stacking) */
.lg-sky-night img:first-child,.lg-twinkle{z-index:-1}
