/* The top of the page: the Grand Opening sign that becomes the bar as the page scrolls, and the waitlist's glass.
   - The sign is a white vinyl banner printed GRAND OPENING in navy, lashed across the window by a thin cord through a
     small metal grommet in each corner; the four cords run off the window's sides. banner.js draws it in one SVG from
     the window's width and the scroll. The lockup, the links in navy and the Join sit on it level, and
     stay still. It pulls up into the bar as the page scrolls, still a sign. Without scripts the bar is the same white,
     with its print left off.
   - The key (.gl) is the dashboard's go glass, and the Join a parent sees as the next step wears its halo (home.js
     says which). The email field takes the glass's height and ends (home.css). */

/* ---------- the banner ---------- */
.gob { position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: var(--hang); pointer-events: none; }
.gob__svg { position: absolute; left: 0; top: 0; overflow: visible; }
/* the print: Barlow at its heaviest in navy ink, thickened a little more by a stroke of its own colour */
.gob__print { font-family: var(--print); font-weight: 700; letter-spacing: .045em; fill: #13213d; stroke: #13213d; stroke-linejoin: round; paint-order: stroke;
  transition: opacity .25s ease; }
/* where the print and the Join can't share the bar (banner.js marks the sign), the print gives way to the Join */
.bar:is(.is-past, :has([data-open-join][aria-expanded="true"])) .gob.is-swap .gob__print { opacity: 0; }
/* after dark the white dims, still light enough for its navy */
.gob__night { opacity: 0; transition: opacity .45s ease; }
.bar.is-night .gob__night { opacity: .28; }

/* the bar's things, on the sign: level on its line wherever the sign is (banner.js sets --row) */
.bar.is-gob .bar__in { transform: translateY(var(--row, 0px)); }
.bar.is-gob .mark { transform-origin: 0 50%; transform: scale(var(--mark-s, 1)); }
.bar.is-gob .bar__nav a:hover { color: var(--pc-ink); background: rgba(19, 33, 61, .06); }
/* The section on screen: its link in Baloo's heavier weight, inside a soft outline in the sign's navy ink (banner.js
   marks it). Each link holds the room its heavier name takes, so nothing moves when the weight changes. Phones hide
   the links, so this shows on wide screens only. The outline changes at once, with the weight: a fade here was left
   half-painted by WebKit after a jump to a section. */
.bar__nav a { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.bar__nav a::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 800; pointer-events: none; }
.bar__nav a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 1.5px rgba(19, 33, 61, .2), inset 0 2px 3px rgba(19, 33, 61, .06); }
.bar__nav a.is-here { font-weight: 800; color: var(--pc-ink); }
.bar__nav a.is-here::before { opacity: 1; }
/* on phones they stand a little further in, clear of the grommets */
@media (max-width: 560px) { .bar.is-gob .bar__in { padding-inline: calc(var(--gutter) + 5px); } }
/* the links make room for the Join key until it arrives, then slide over for it */
@media (min-width: 921px) {
  .bar.is-gob .bar__nav { transition: transform .45s var(--ease); }
  .js .bar.is-gob:not(.is-past) .bar__nav { transform: translateX(var(--join-w, 0px)); }
}
/* Before the sign is drawn the bar's things wait, so they don't show on the bare sky and then jump onto it.
   If the script never draws it, they come back on their own. */
.bar:not(.is-gob) .bar__in { opacity: 0; animation: gob-late .2s 2.5s forwards; }
@keyframes gob-late { to { opacity: 1; } }
/* no scripts: the bar in the sign's white, with its print left off */
@media (scripting: none) {
  .bar { background: linear-gradient(180deg, #fff 0%, #f6f7fa 55%, #eaedf2 100%); box-shadow: 0 3px 10px rgba(27, 42, 74, .16); }
  .bar:not(.is-gob) .bar__in { opacity: 1; animation: none; }
}

/* ---------- the waitlist's key: the dashboard's go glass ----------
   The Hyperglass render (porcelain.css .pc-gl at platform f4146c2e1), nine-sliced a quarter of its height from top
   and bottom and half from each end. Its glass sits 5.9% of the key's height in from top and bottom and 5.3% in from
   each end, and its ends are superellipses as tall as the glass (render.py --cn 2.8). */
.gl { --h: 52px; --light: #8dd8ff; --ink-g: #16417e; --halo: color-mix(in oklch, var(--light) 60%, var(--ink-g));
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 2px calc(var(--h) * .55) 0; border: 0; background: none;
  font-family: var(--pc-voice); font-weight: 800; font-size: calc(var(--h) * .36); line-height: 1; letter-spacing: .005em;
  color: var(--ink-g); white-space: nowrap; text-decoration: none; text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  -webkit-tap-highlight-color: transparent; }
/* the light it throws on what's under it: a soft gradient where the dashboard blurs one, so no filter ever moves */
.gl::before { content: ""; position: absolute; z-index: -2; inset: 58% 5% -26%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(141, 216, 255, .95), rgba(141, 216, 255, .5) 48%, rgba(141, 216, 255, 0));
  opacity: .5; transition: opacity .15s ease, transform .15s ease; }
.gl::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; border: solid transparent; border-width: calc(var(--h) / 4) calc(var(--h) / 2);
  border-image-source: var(--pc-glass-go); border-image-slice: 15 30 fill; border-image-repeat: stretch; filter: drop-shadow(0 2px 1.5px rgba(20, 38, 70, .17));
  transition: transform .12s ease; }
.gl:hover::before { opacity: .72; }
.gl:active::after { transform: translateY(1.5px); }
.gl:active::before { opacity: .25; transform: scaleY(.7); }
.gl:focus-visible { border-radius: calc(var(--h) * .397); }
.gl--big { --h: 64px; }
.gl--small { --h: 42px; }
.gl.is-done { --ink-g: #2e5a2a; cursor: default; }
/* The narrowest phones: a key can't wrap, so it gets smaller instead. */
@media (max-width: 374px) { .gl--big { --h: 56px; } .gl { padding-inline: calc(var(--h) * .42); } }

/* ---------- the halo: two rings of the glass's own light round the glass, breathing on a 2.4 s cycle ----------
   The dashboard's .pc-gl--halo (platform f4146c2e1), with its rings drawn round the glass itself. A plain rounded corner
   of .397 of the key's height, on the key's box, runs .059H outside the glass's superellipse end all the way round, and
   grows with each ring's offset, so every ring keeps one gap from the glass to within a quarter pixel, the same in
   WebKit (no corner-shape) and Chromium. The glow the dashboard's glass throws through an animated filter is the
   halo's own shadow here instead, since this page never animates a filter. The two endpoints
   are painted once and crossfaded. Animating --pc-halo used to lay out and repaint even
   offscreen keys every frame. Custom properties here are constants, never animated. */
.gl__halo--low { --pc-halo: .2; animation: gl-halo-low 2.4s ease-in-out infinite paused; }
.gl__halo--high { --pc-halo: 1; animation: gl-halo-high 2.4s ease-in-out infinite paused; }
@keyframes gl-halo-low { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes gl-halo-high { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.gl__halo { display: none; position: absolute; z-index: -2; inset: 0 calc(var(--h) * -.006); pointer-events: none; border-radius: calc(var(--h) * .397);
  box-shadow: 0 0 calc(2px + 8px * var(--pc-halo)) color-mix(in oklab, var(--light) calc(25% + 45% * var(--pc-halo)), transparent); }
.gl--halo:not(:disabled, .is-done) > .gl__halo { display: block; }
.gl__halo i { position: absolute; inset: calc(-1 * var(--pc-out)); border: 2px solid var(--halo); border-radius: calc(var(--h) * .397 + var(--pc-out));
  box-shadow: 0 0 calc(5px + 9px * var(--pc-halo)) color-mix(in oklab, var(--halo) 55%, transparent), inset 0 0 calc(3px + 6px * var(--pc-halo)) color-mix(in oklab, var(--halo) 35%, transparent);
  --pc-out: calc(4px + 2px * var(--pc-halo)); opacity: calc(.35 + .65 * var(--pc-halo)); background: color-mix(in oklab, var(--light) calc(8% + 22% * var(--pc-halo)), transparent); }
.gl__halo i + i { --pc-out: calc(10px + 3px * var(--pc-halo)); opacity: calc(.12 + .4 * var(--pc-halo)); border-width: 1.5px; background: none; }
.gl--halo:not(:disabled, .is-done)::before { animation: gl-light 2.4s ease-in-out infinite paused; transition: none; }
@keyframes gl-light {
  0%, 100% { opacity: .54; transform: scale(1.012, 1.06); }
  50% { opacity: .9; transform: scale(1.06, 1.3); }
}
.gl.is-halo-visible > .gl__halo, .gl.is-halo-visible::before { animation-play-state: running; }
.page-hidden .gl > .gl__halo, .page-hidden .gl::before { animation-play-state: paused; }
/* after dark the rings are the glass's light itself */
.close .gl { --halo: var(--light); }
/* in the bar's drop-down the rings sit closer (the bar's own Join wears none, home.js) */
.bar .gl__halo i { --pc-out: calc(2.5px + 1.5px * var(--pc-halo)); }
.bar .gl__halo i + i { --pc-out: calc(6px + 2.5px * var(--pc-halo)); }
@media (max-width: 560px) {
  .bar .gl__halo i { --pc-out: calc(2px + 1px * var(--pc-halo)); }
  .bar .gl__halo i + i { --pc-out: calc(4.5px + 1.5px * var(--pc-halo)); }
}

/* Reduce Motion: the bar changes at once (the page's near-zero transitions left WebKit painting the bar's old state
   after a jump, such as a link to Price, until the next scroll), and the halo holds still: one ring, lit. */
@media (prefers-reduced-motion: reduce) {
  .bar, .bar *, .bar *::before, .bar *::after { transition: none !important; }
  .gl--halo:not(:disabled, .is-done)::before { animation: none; opacity: .765; transform: scale(1.042, 1.21); }
  .gl__halo { animation: none; --pc-halo: .7; }
  .gl--halo:not(:disabled, .is-done) > .gl__halo--high { display: none; }
  .gl__halo i { --pc-out: 6px; opacity: .85; }
  .bar .gl__halo i { --pc-out: 3.5px; }
  .gl__halo i + i { display: none; }
}
.editing .gl__halo { animation: none; --pc-halo: .7; }
.editing .gl--halo > .gl__halo--high { display: none; }
.editing .gl--halo::before { animation: none; }
@media (forced-colors: active) { .gl--halo > .gl__halo { display: none !important; } }
