/* SPDX-License-Identifier: AGPL-3.0-only */
/* Figtree and JetBrains Mono, SIL Open Font License 1.1: see assets/*-OFL.txt */
@font-face { font-family: Figtree; src: url(assets/figtree-latin-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: Figtree; src: url(assets/figtree-latin-wght-italic.woff2) format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(assets/jetbrains-mono-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --brand: #1b46d6;
  --brand-deep: #12319b;
  --brand-pale: #c4d2fb;
  --ice: #e9efff;
  --ink: #0c1433;
  --muted: #39446a;
  --white: #fff;
  --mint: #d8f5ea;
  --sun: #ffc53d;
  --agent-edge: #8a5a00;
  --r-btn: 6px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --settle: cubic-bezier(.22,1,.36,1);
  --nav: 88px;
  --line: #d5def5;
  --accent: var(--brand);
  --gutter: 24px;
  --s-2: 8px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --r-md: 24px;
  --t-lead: 22px;
  --font-text: Figtree, ui-sans-serif, system-ui, sans-serif;
  --gut: 80px;
  font: 400 17px/1.55 Figtree, ui-sans-serif, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
pre, code { font-variant-ligatures: none; }
body { margin: 0; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, pre { margin: 0; }
h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.defs { position: absolute; }
.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.band :focus-visible { outline-color: var(--brand); }
.nav :focus-visible, .hero :focus-visible, .closing :focus-visible { outline-color: var(--white); }
.nav .skip:focus-visible { outline-color: var(--ink); }
.band--ink :focus-visible { outline-color: var(--white); }

/* nav: spread across the hero, gathered into a floating bar after it. Without script it just floats. */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; height: var(--nav); display: flex; align-items: center; justify-content: center; color: var(--white); pointer-events: none; }
.nav-bar { position: relative; display: flex; align-items: center; gap: 10px; width: min(100% - 24px, 840px); padding: 8px; border: 1px solid #ffffff3d; border-radius: 14px; background: var(--brand); box-shadow: 0 22px 44px -22px #060d2ecc, inset 0 1px 0 #ffffff2e; pointer-events: auto;
  transition: width 560ms var(--settle), background-color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.nav.is-top .nav-bar { width: min(100% - 2 * var(--gut) + 18px, 1298px); border-color: transparent; background: transparent; box-shadow: none; }
.skip { position: absolute; left: 7px; top: -100px; z-index: 2; padding: 12px 18px; border-radius: var(--r-btn); background: var(--white); color: var(--ink); font-weight: 600; }
.skip:focus { top: 10px; }
.logo { flex: none; display: flex; align-items: center; min-height: 44px; font-size: 29px; font-weight: 700; letter-spacing: -.045em; text-decoration: none; }
.logo-tile { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--white); color: var(--brand); transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 150ms var(--ease); }
.logo-tile svg { width: 34px; height: 34px; fill: currentColor; }
.logo:hover .logo-tile { transform: translateY(-1px); }
.logo-word { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width 560ms var(--settle), opacity 250ms var(--ease), margin 560ms var(--settle); }
.nav.is-top .logo-tile { background: transparent; color: var(--white); }
.nav.is-top .logo-word { max-width: 150px; margin-left: 6px; padding-right: 3px; opacity: 1; }
.nav-links { flex: 1; display: flex; justify-content: center; border-left: 1px solid #ffffff3d; }
.nav.is-top .nav-links { border-color: transparent; }
.nav-track { position: relative; display: flex; gap: 2px; padding: 3px; border: 1px solid transparent; border-radius: 10px; transition: background-color 300ms var(--ease), border-color 300ms var(--ease); }
.nav.is-top .nav-track { border-color: #ffffff2e; background: #ffffff14; }
.nav-track a { position: relative; z-index: 1; display: flex; align-items: center; min-height: 40px; padding-inline: 15px; border-radius: 7px; font-size: 15.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-ink { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 7px; background: #ffffff2b; opacity: 0; transition: transform 460ms var(--settle), width 460ms var(--settle), opacity 200ms var(--ease); }
.nav-ink.is-on { opacity: 1; }
.nav-bar > .btn { flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding-inline: 22px; border-radius: var(--r-btn); font-weight: 600; text-decoration: none; transition: background-color 150ms var(--ease), transform 150ms var(--ease); }
.btn--light { background: var(--white); color: var(--brand); }
.btn--xl { min-height: 62px; padding-inline: 34px; font-size: 20px; }
@media (hover: hover) {
  .btn:hover { background: var(--ice); transform: translateY(-1px); }
}
.btn:active { transform: translateY(1px) scale(.985); }

/* hero */
/* The dot wave melts into the next section: its lower dots grow until they merge, over a soft fade to that colour. */
.hero { --melt: linear-gradient(to top, #e9efff 0 56px, #e9efffe8 78px, #e9efffad 108px, #e9efff66 148px, #e9efff30 196px, #e9efff0f 248px, #e9efff00 300px) left bottom / 100% 100% no-repeat; position: relative; display: flex; align-items: center; min-height: max(100svh, 700px); padding: var(--nav) 0 200px; overflow: hidden; isolation: isolate; background: url(assets/skyline.svg) repeat-x center bottom -1px / 336px 210px, var(--melt), radial-gradient(58vw 70svh at 80% 46%, #4673f6 0, #4673f600 70%), var(--brand); color: var(--white); }
.hero-wrap { z-index: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { max-width: 11.5em; font-size: clamp(42px, 5.5vw, 80px); line-height: 1.04; font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 b { font-weight: 800; }
.lead { max-width: 29em; margin-top: 24px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions .btn { min-height: 54px; padding-inline: 26px; font-size: 17px; }
.btn--ghost { border: 1.5px solid #ffffff80; color: var(--white); }
@media (hover: hover) { .btn--ghost:hover { background: #ffffff1f; } }
.fine { margin-top: 18px; color: #dbe4ff; font-size: 15px; }

.giant { position: absolute; z-index: 0; top: calc(var(--nav) + 3.2svh); right: -7vw; width: min(51vw, 82svh); aspect-ratio: 1; fill: var(--white); pointer-events: none; }
.giant > svg { width: 100%; height: 100%; overflow: visible; }
.giant-gl { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.js3d .giant > svg, .has-3d .giant > svg { visibility: hidden; }


@media (prefers-reduced-motion: no-preference) {
  .m-enter [data-enter] .hero-copy > * { animation: rise 700ms var(--settle) backwards; }
  .m-enter [data-enter] .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .m-enter [data-enter] .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .m-enter [data-enter] .hero-copy > :nth-child(4) { animation-delay: 220ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* sections: one idea per screen */
.band { display: flex; align-items: flex-start; min-height: 100svh; padding: calc(var(--nav) + 40px) 0 72px; }
.band--ice { background: var(--ice); }
.band--ink { background: var(--ink); color: var(--white); }
.head { max-width: 760px; margin-bottom: 44px; }
.head h2, .close-head h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.head p { max-width: 34em; margin-top: 14px; color: var(--muted); font-size: 19px; }
.band--ink .head p { color: #c3cbe6; }
.head--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 24px; max-width: none; }
.head--split p { margin: 0; justify-self: end; }
.week { align-items: stretch; }
.week .wrap { display: flex; flex-direction: column; }
.window { flex: 1; min-height: 520px; position: relative; overflow: hidden; border: 1px solid #fff; border-radius: 24px; background: #e6ebf7; box-shadow: 0 30px 70px -36px #1b2c6b80; }
.window img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.counting { display: block; }
.counting .head { margin-bottom: 0; }
.mo-pc__step p { color: var(--muted); }
.mo-pc__visual .viz { width: 100%; background: var(--ice); }
.counting.is-live .viz { height: 100%; }
.counting:not(.is-live) .viz { height: min(30svh, 270px); min-height: 190px; }
.viz { position: relative; border-radius: 24px; overflow: hidden; }
.beats i { position: absolute; top: calc(50% - 52px); left: var(--x); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--brand); }
.blocks i { position: absolute; top: calc(50% - 18px); left: var(--x); width: var(--w); height: 54px; border-radius: 14px; background: var(--brand); transform-origin: left; }
.gap { position: absolute; top: calc(50% - 18px); left: 40%; width: 22%; height: 54px; display: grid; place-items: center; border: 2px dashed var(--brand-pale); border-radius: 14px; }
.gap::after { content: ''; width: 18px; height: 2px; background: var(--brand-pale); }
.viz--join::after { content: 'Gaps stay empty'; position: absolute; left: 0; right: 0; top: calc(50% + 54px); text-align: center; color: var(--muted); font-size: 15px; font-weight: 600; }
.gap { font-size: 0; }
.viz--split { display: grid; align-content: center; justify-items: center; gap: 26px; }
.matrix { display: grid; grid-template-columns: repeat(6, 30px); gap: 9px; }
.matrix i { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); }
.keys { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.keys span { display: flex; align-items: center; gap: 8px; }
.keys span::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); }
.matrix .with { background: var(--sun); box-shadow: inset 0 0 0 2px var(--agent-edge); }
.matrix .alone { background: transparent; box-shadow: inset 0 0 0 3.5px var(--brand); }
.keys .with::before { background: var(--sun); box-shadow: inset 0 0 0 1.5px var(--agent-edge); }
.keys .alone::before { background: transparent; box-shadow: inset 0 0 0 2.5px var(--brand); }
.viz--lanes { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 14px; padding: 24px 28px; }
.lane-name { font-size: 15px; font-weight: 600; }
.lane { position: relative; height: 46px; }
.lane i { position: absolute; top: 0; bottom: 0; left: var(--x); width: calc(var(--w) - 3px); border-radius: 8px; transform-origin: left; }
.lane .solid { background: var(--brand); }
.lane .both { background: var(--sun); box-shadow: inset 0 0 0 2px var(--agent-edge); }
.lane .hollow { box-shadow: inset 0 0 0 3px var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .beats i, .blocks i, .matrix i, .lane i { transition: transform 300ms var(--ease); }
  .viz:hover .blocks i { animation: grow 900ms var(--settle); }
  .viz:hover .matrix i { animation: pop 700ms var(--settle); }
  .viz:hover .matrix i:nth-child(n+7) { animation-delay: 90ms; }
  .viz:hover .matrix i:nth-child(n+13) { animation-delay: 180ms; }
  .viz:hover .matrix i:nth-child(n+19) { animation-delay: 270ms; }
  .viz:hover .lane i { animation: grow 900ms var(--settle); }
  @keyframes grow { from { transform: scaleX(.08); } }
  @keyframes pop { 40% { transform: scale(.72); } }
}

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.steps { display: grid; gap: 34px; }
.steps h3, .setup h3 { font-size: 23px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.steps h3 b { color: #9db6ff; font-weight: 700; }
.setup h3 b { color: var(--brand); font-weight: 700; }
.steps p { max-width: 30em; margin-top: 6px; color: #c3cbe6; }
.boundary { display: grid; gap: 14px; }
.boundary > div { position: relative; padding: 24px 28px; border-radius: 24px; }
.boundary h3 { max-width: calc(100% - 48px); margin-bottom: 8px; font-size: 20px; font-weight: 700; }
.boundary li { padding-block: 9px; border-top: 1px solid #0c143318; }
.sent { background: var(--sun); color: var(--ink); }
.kept { background: var(--brand); }
.kept li { border-color: #ffffff2e; }
.glyph { position: absolute; top: 20px; right: 24px; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.boundary > p { color: #c3cbe6; font-size: 15px; }

.setup { display: grid; gap: 28px; }
.setup code { display: block; margin-top: 6px; color: var(--brand); font: 500 13.5px/1.7 'JetBrains Mono', ui-monospace, monospace; overflow-wrap: anywhere; }
.setup p { max-width: 32em; margin-top: 4px; color: var(--muted); }
.shot { flex: none; overflow: hidden; border: 1px solid #fff; border-radius: 24px; background: #e6ebf7; box-shadow: 0 30px 60px -34px #1b2c6b80; }
.shot img { width: 100%; }
.questions .head { margin: 0; }
.head-mark { display: block; width: min(100%, 330px); height: auto; aspect-ratio: 22 / 20; margin-top: 48px; fill: var(--brand); }
.faq > div { padding-block: 26px; }
.faq > div:first-child { padding-top: 0; }
.faq > div + div { border-top: 1px solid var(--line); }
.faq h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.faq p { margin-top: 5px; color: var(--muted); }

.closing { display: flex; min-height: 100svh; padding: calc(var(--nav) + 40px) 0 72px; background: var(--brand); color: var(--white); }
.closing .wrap { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.close-call { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.close-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: block; width: 100%; height: auto; overflow: visible; fill: currentColor; }
.wordmark text { font: 800 300px Figtree, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.05em; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; border-top: 1px solid #ffffff40; padding-top: 20px; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color 150ms var(--ease); }
.foot a:hover { text-decoration-color: currentColor; }

@media (min-width: 1024px) and (max-width: 1279px) {
  .giant { right: -16vw; width: 46vw; }
}
@media (max-width: 1100px) {
  .nav-track a { padding-inline: 10px; font-size: 15px; }
}
@media (max-width: 940px) {
  .nav.is-top .logo-word { display: none; }
}
@media (max-width: 859px) {
  .nav-links { visibility: hidden; border: 0; }
  .nav-links a { display: none; }
  .nav-bar, .nav.is-top .nav-bar { width: calc(100% - 2 * var(--gut) + 14px); }
  .nav .logo-word, .nav.is-top .logo-word { display: block; max-width: 150px; margin-left: 8px; opacity: 1; }
}
@media (max-width: 1023px) {
  :root { --gut: 32px; --nav: 72px; }
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 100svh; padding: calc(var(--nav) + 32px) 0 168px; background: url(assets/skyline.svg) repeat-x center bottom -1px / 336px 210px, var(--melt), radial-gradient(90vw 30svh at 78% 74%, #4673f6 0, #4673f600 72%), var(--brand); }
  .hero-wrap { align-self: center; }
  .giant-gl { top: var(--nav); height: calc(100% - var(--nav)); }
  .giant { order: 1; position: relative; top: 0; right: auto; width: min(70vw, 34svh); margin: auto -2vw auto auto; }
  .head--split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .head--split p { justify-self: start; }
  .band, .closing { padding-block: calc(var(--nav) + 40px) 56px; }
}
/* short laptop screens keep each idea on one screen */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero h1 { font-size: clamp(42px, 5vw, 68px); }
  .lead { margin-top: 18px; font-size: 19px; }
  .hero-actions { margin-top: 24px; }
  .band, .closing { padding-top: calc(var(--nav) + 24px); }
  .band { padding-bottom: 32px; }
  .head { margin-bottom: 24px; }
  .matrix { grid-template-columns: repeat(6, 22px); gap: 7px; }
  .matrix i { width: 22px; height: 22px; }
  .viz--split { gap: 12px; }
  .window { min-height: 420px; }
  .steps, .setup { gap: 18px; }
  .faq > div { padding-block: 14px; }
  .boundary > div { padding-block: 16px; }
  .boundary li { padding-block: 5px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .giant { width: min(74vw, 36svh); }
  .counting:not(.is-live) .viz { height: min(18svh, 190px); min-height: 150px; }
  .counting .viz--split { gap: 12px; }
  .counting .matrix { grid-template-columns: repeat(12, 22px); gap: 7px; }
  .counting .matrix i { width: 22px; height: 22px; }
}
@media (max-width: 639px) {
  :root { --gut: 24px; --nav: 64px; }
  .logo { font-size: 23px; }
  .logo-tile { width: 40px; height: 40px; border-radius: 9px; }
  .logo-tile svg { width: 29px; height: 29px; }
  .nav-bar { padding: 6px; border-radius: 12px; }
  .nav-bar > .btn { min-height: 44px; padding-inline: 14px; font-size: 15px; }
  .hero { --melt: linear-gradient(to top, #e9efff 0 37px, #e9efffe8 52px, #e9efffad 72px, #e9efff66 99px, #e9efff30 131px, #e9efff0f 165px, #e9efff00 200px) left bottom / 100% 100% no-repeat; padding: calc(var(--nav) + 8px) 0 118px; background-size: 224px 140px, 100% 100%, auto; }
  .hero h1 { font-size: 38px; }
  .lead { margin-top: 12px; font-size: 16px; line-height: 1.42; }
  .hero-actions { flex-direction: column; gap: 8px; margin-top: 16px; }
  .hero-actions .btn { min-height: 48px; }
  .fine { margin-top: 8px; font-size: 13px; line-height: 1.45; }
  .giant { width: min(54vw, 23svh); margin: auto 4vw auto auto; }
  .split { grid-template-columns: minmax(0, 1fr); }
  #review, #install { min-height: 200svh; }
  #review > .wrap, #install > .wrap { align-self: stretch; display: flex; flex-direction: column; }
  #review .split, #install .split { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
  main > .counting[data-moment]:not(.is-live) { min-height: 200svh; }
  main .counting[data-moment]:not(.is-live) > .mo-pc__grid { align-self: stretch; align-content: stretch; min-height: calc(200svh - 128px); }
  .counting .mo-pc__text { align-content: stretch; grid-template-rows: auto 1fr; }
  .counting .mo-pc__steps { align-content: space-between; }
  .head-mark { width: 180px; margin-top: 24px; }
  .split { gap: 40px; }
  .band { min-height: auto; padding-block: 64px; }
  .closing { min-height: 100svh; padding-block: 64px 32px; }
  .week { height: 100svh; min-height: 720px; }
  .window { flex: 1; min-height: 0; border-radius: 20px; }
  #install .shot { flex: 1; align-self: stretch; position: relative; min-height: 360px; border-radius: 20px; }
  #install .shot img { position: absolute; height: 100%; object-fit: cover; object-position: top center; }
  #install .split { justify-content: flex-start; }
  .questions { min-height: 100svh; padding-block: 40px; }
  .questions .head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .questions .head-mark { flex: none; width: 64px; margin: 0; }
  .questions .split { gap: 20px; }
  .faq > div { padding-block: 10px; }
  .faq p { font-size: 15px; line-height: 1.42; }
  .counting .viz { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .matrix { grid-template-columns: repeat(6, 28px); }
  .matrix i { width: 28px; height: 28px; }
  .close-head .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
