/* Homepage: palette, the sky world, glass, nav, kite. Linked after the kit so it wins the cascade. */
/* palette sampled from the generated sky; gold from the logo */
:root {
  --p-bg: #0b4fe0; --p-surface: #2a6af0; --p-ink: #ffffff; --p-muted: #dfe9ff;
  --p-accent: #ffc658; --p-accent-ink: #1b2340; --p-action: #ffffff; --p-action-ink: #0b3fb0;
  --p-inv-bg: #0b1b46; --p-inv-surface: #16295e; --p-inv-ink: #ffffff; --p-inv-muted: #b9c6e6;
  --p-inv-accent: #ffc658; --p-inv-accent-ink: #1b2340; --p-inv-action: #ffffff; --p-inv-action-ink: #0b1b46;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-text: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 500;
  --display-tracking: -0.036em;
  --display-tracking-xl: -0.04em;
}
/* the sky is a fixed layer of whole photographs that zoom and crossfade as you scroll: never a cut edge,
   never a seam, because no section draws a background of its own */
html, body { background: #0146b6; }
.world { position: fixed; inset: -24px; z-index: 0; overflow: clip; pointer-events: none; }
.world__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; will-change: transform, opacity; }
.world__img + .world__img { opacity: 0; }
.world__pixels { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); }
.world__wash { position: absolute; inset: 0; background: #f3f7ff; opacity: 0; }
/* a soft blue shade over the photographs so white words stay readable on white cloud */
.world__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(1 40 150 / .3), rgb(1 40 150 / .5)); opacity: 0; }
/* body copy that sits straight on the sky gets a soft shade of its own */
.statement p, .block__lead, .sky-hero__lead, .landing p, .step p, #products .lead { text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
/* frosted glass, after macOS: a light frost tinted by the sky, a bright rim along the top edge, and a soft sheen
   that follows the pointer (--mx/--my, set by script). Text-heavy cards take more tint so white words hold on white cloud. */
.glass, .actionbar, .btn.btn--secondary, .chips li {
  --tint: rgb(16 64 200 / .2);
  background: linear-gradient(180deg, rgb(255 255 255 / .2), rgb(255 255 255 / .05)), var(--tint);
  border: 1px solid rgb(255 255 255 / .34);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 -1px 0 rgb(255 255 255 / .1), 0 24px 48px -24px rgb(0 0 0 / .28);
  isolation: isolate;
}
.glass, .btn.btn--secondary, .chips li { position: relative; }
/* the live blur is the costliest thing on the page: cards and the phone bar only, at a modest radius */
.glass, .actionbar { -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%); }
.btn.btn--secondary { --tint: rgb(16 64 200 / .42); }
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 20%) var(--my, -20%), rgb(255 255 255 / .22), transparent 60%);
}
.btn.btn--secondary { color: #fff; }
.btn.btn--secondary:hover { --tint: rgb(255 255 255 / .1); }
.chips li { --tint: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .4); }
/* the nav: clear over the hero, the solid deep-blue bar once you scroll (is-scrolled, set by script); the open phone menu is always solid */
.nav { background: transparent; border-bottom-color: transparent; transition: background-color .3s ease, border-color .3s ease; }
.nav:not(.is-scrolled, .is-open) :is(.nav__link, .nav__logo) { text-shadow: 0 1px 10px rgb(0 0 0 / .35); }
.nav:not(.is-scrolled, .is-open) .nav__logo img { filter: drop-shadow(0 1px 6px rgb(0 0 0 / .3)); }
.nav.is-scrolled, .nav.is-open { background: color-mix(in oklab, #012fc1 88%, transparent); border-bottom-color: rgb(255 255 255 / .14); }
.btn-row > .btn.btn--secondary { text-decoration: none; }
@media (max-width: 639px) { .actionbar { border-top: 0; border-radius: 999px; left: 12px; right: 12px; bottom: 12px; height: 64px; padding: 8px; } }
.nav__logo img { width: 34px; height: 34px; }
.btn.btn--primary { background: #ffc658; color: #1b2340; border-color: #ffc658; }
main { position: relative; z-index: 1; }
/* the kite rides above the sky photographs and below every word */
.kite { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.kite__body { filter: drop-shadow(0 6px 10px rgb(0 0 0 / .18)); }
.kite__string { fill: none; stroke: rgb(255 255 255 / .75); stroke-width: 1.2; }
.kite__tail { fill: none; stroke: #ffffff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kite__bows { fill: #ffc658; }
