/* Daddy, Cull! landing page.
   The app's own palette and face: cool neutrals, one mint accent, and the
   logo's coral, amber and mint kept for the calendar's scale of what is left
   to cull. Night is the default, as in the app; day follows the system.
   Every scene is drawn in em inside a box whose font size follows its width,
   so a scene scales as a picture would and never reflows. */

@font-face {
  font-family: "Google Sans Flex";
  src: url("fonts/google-sans-flex.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #121317;
  --frame: #1a1c22;
  --panel: #16181d;
  --raised: #1d1f26;
  --line: #282b34;
  --text: #eef0f5;
  --muted: #9297a3;
  --accent: #7ed9b2;
  --accent-ink: #0c2a1f;
  --accent-soft: rgb(126 217 178 / .14);
  --coral: #f397a2;
  --amber: #f7c66a;
  --mint: #7ed9b2;
  --few: #b9ecd6;
  --some: #fbe0ae;
  --many: #f9cdd2;
  --cell-ink: #16181d;
  --done: #2b2e37;
  --code-k: #8fc8ff;
  --code-s: #f7c66a;
  --shadow: 0 40px 100px -50px rgb(0 0 0 / .8);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fcfdfc;
    --frame: #f2f4f3;
    --panel: #ffffff;
    --raised: #f6f7f8;
    --line: #e3e5ea;
    --text: #16181d;
    --muted: #61656f;
    --accent: #0f7a52;
    --accent-ink: #ffffff;
    --accent-soft: rgb(15 122 82 / .1);
    --coral: #ec7f8c;
    --amber: #f0b541;
    --mint: #149163;
    --few: #c9efdd;
    --some: #fbe3b4;
    --many: #fad3d8;
    --done: #dfe2e7;
    --code-k: #1f5fae;
    --code-s: #9a5b00;
    --shadow: 0 40px 90px -50px rgb(22 24 29 / .35);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fcfdfc;
  --frame: #f2f4f3;
  --panel: #ffffff;
  --raised: #f6f7f8;
  --line: #e3e5ea;
  --text: #16181d;
  --muted: #61656f;
  --accent: #0f7a52;
  --accent-ink: #ffffff;
  --accent-soft: rgb(15 122 82 / .1);
  --coral: #ec7f8c;
  --amber: #f0b541;
  --mint: #149163;
  --few: #c9efdd;
  --some: #fbe3b4;
  --many: #fad3d8;
  --done: #dfe2e7;
  --code-k: #1f5fae;
  --code-s: #9a5b00;
  --shadow: 0 40px 90px -50px rgb(22 24 29 / .35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

code, pre, kbd { font-family: var(--mono); }
p code, li code { font-size: .86em; padding: .1em .35em; border-radius: 5px; background: var(--frame); border: 1px solid var(--line); }

h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.06; font-weight: 700; font-stretch: 90%; letter-spacing: -.025em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 12px; background: var(--panel); border-radius: 8px; }

section { padding: 128px 0; }
.head { text-align: center; margin: 0 auto 56px; max-width: 820px; }
.section-lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 18px auto 0; max-width: 38em; text-wrap: pretty; }
.center { text-align: center; margin: 40px 0 0; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; display: inline-block; transition: transform .3s var(--ease); }
.more:hover::after { transform: translateX(4px); }

/* Arriving sections */

.rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* Top bar */

.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.brand { display: flex; }
.logo { height: 24px; width: auto; }
.logo .t0 { fill: var(--coral); }
.logo .t1 { fill: var(--amber); }
.logo .t2 { fill: var(--mint); }
.logo .ink { fill: var(--text); }
.logo .mint { fill: var(--mint); }
nav { position: relative; display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
nav a { position: relative; z-index: 1; color: var(--muted); text-decoration: none; padding: 5px 12px; border-radius: 999px; transition: color .3s; }
nav a:hover, nav a[aria-current] { color: var(--text); }
.nav-pill {
  position: absolute; left: 0; top: 50%; height: 30px; margin-top: -15px; border-radius: 999px;
  background: var(--frame); box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.nav-pill.show { opacity: 1; }
nav .gh { color: var(--text); box-shadow: inset 0 0 0 1px var(--line); margin-left: 10px; }
nav .gh:hover { color: var(--text); background: var(--frame); }

/* Hero */

.hero { padding: 104px 0 64px; }
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto; }
h1 {
  font-size: clamp(46px, 8vw, 104px);
  line-height: .98;
  font-weight: 750;
  font-stretch: 86%;
  letter-spacing: -.035em;
}
h1 .two { display: block; color: var(--accent); }
.hero-copy > * { animation: rise-in 1.1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
.hero-copy > :nth-child(4) { animation-delay: .32s; }
.hero-copy > :nth-child(5) { animation-delay: .4s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } }
.lede { font-size: 21px; line-height: 1.5; color: var(--muted); margin: 28px auto 0; max-width: 36em; text-wrap: pretty; }
.define { font-size: 16px; color: var(--muted); margin: 18px auto 0; font-style: italic; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 999px;
  color: var(--accent-ink); background: var(--accent); transition: filter .2s, background .2s;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { filter: none; background: var(--frame); }
.fine { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

.cmd {
  display: flex; align-items: center; gap: 8px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px 6px 6px 18px;
}
.cmd code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  font-size: 13.5px; color: var(--text); padding: 8px 0; scrollbar-width: none;
}
.cmd code::-webkit-scrollbar { display: none; }
.copy {
  flex: none; font: 600 14px var(--font); cursor: pointer;
  color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 9px; padding: 9px 16px;
  min-width: 78px;
}
.copy:hover { filter: brightness(1.06); }

/* The Year calendar, drawn as the app draws it */

.year {
  margin: 0 auto; padding: 26px 26px 20px; max-width: 1040px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow);
}
.year-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.year-title { font-size: 22px; font-weight: 600; }
.year-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.year-count b { color: var(--text); font-weight: 650; }
.year-bar { height: 4px; border-radius: 4px; background: var(--line); margin: 12px 0 18px; overflow: hidden; }
.year-bar span { display: block; height: 100%; width: 0; background: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: 34px repeat(31, minmax(0, 1fr));
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.grid .m { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); align-self: center; }
.grid .c {
  aspect-ratio: 1; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .35s ease, transform .35s ease;
}
.grid .c.few, .grid .c.some, .grid .c.many, .grid .c.done { box-shadow: none; }
.grid .c.few { background: var(--few); }
.grid .c.some { background: var(--some); }
.grid .c.many { background: var(--many); }
.grid .c.done { background: var(--done); }
.grid .c.now { background: var(--some); box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--amber); position: relative; z-index: 1; }
.grid .gap { aspect-ratio: 1; }

.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--cell-ink); }
.chip.few { background: var(--few); }
.chip.some { background: var(--some); }
.chip.many { background: var(--many); }
.chip.done { background: var(--done); color: var(--muted); }
.chip.today { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--amber); }

/* Scenes: the frame, and what every scene shares */

.scene {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
}
.fit { container-type: inline-size; aspect-ratio: 5 / 4; }
.sci {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em;
  line-height: 1.35;
}
.fit > .sci { position: absolute; inset: 0; font-size: 3.2cqw; padding: 1em; }
.sci .i { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.sci b { font-weight: 650; }
.sci kbd {
  font-size: .8em; min-width: 1.9em; padding: .1em .45em; border-radius: .4em;
  display: inline-block; text-align: center; color: var(--text);
  background: var(--raised); border: 1px solid var(--line); border-bottom-width: 2px;
  transition: transform .12s, background-color .2s, color .2s, border-color .2s;
}
.sci kbd.down { transform: translateY(1px) scale(.92); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sci kbd.lit { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.ph { position: relative; overflow: hidden; border-radius: .5em; background-size: cover; background-position: center; background-color: var(--frame); }
.ph.focus { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.ph-heart {
  position: absolute; top: .45em; right: .45em; color: #ff6d7e; display: grid;
  opacity: 0; transform: scale(.3); transition: opacity .25s, transform .45s cubic-bezier(.3, 1.8, .5, 1);
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / .4));
}
.ph-heart .i { width: 1.35em; height: 1.35em; }
.fav .ph-heart { opacity: 1; transform: none; }
.ph-kept {
  position: absolute; left: .45em; bottom: .45em; width: 1.5em; height: 1.5em; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  opacity: 0; transform: scale(.4); transition: opacity .25s, transform .45s cubic-bezier(.3, 1.8, .5, 1);
}
.ph-kept .i { width: 1em; height: 1em; }
.kept .ph-kept { opacity: 1; transform: none; }
.ph-dur { position: absolute; right: .45em; bottom: .45em; font-size: .68em; font-weight: 600; color: #fff; background: rgb(0 0 0 / .5); border-radius: .35em; padding: 0 .4em; }
.ph-bin {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .35em;
  font-size: .85em; font-weight: 600; color: #fff; background: rgb(18 19 23 / .72);
  opacity: 0; transition: opacity .3s;
}
.binned .ph-bin { opacity: 1; }
.binned { filter: grayscale(.8); }

.fly { position: absolute; z-index: 5; width: 18px; height: 18px; border-radius: 50%; background-size: cover; box-shadow: 0 2px 8px rgb(0 0 0 / .4); pointer-events: none; }
.bit { position: absolute; z-index: 6; width: 7px; height: 4px; border-radius: 1px; pointer-events: none; }
.tdot { position: absolute; z-index: 4; width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 2px 8px rgb(0 0 0 / .35); pointer-events: none; }

.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; text-align: center;
  font-size: .76em; font-weight: 650; line-height: 1.3; padding: .5em 1em; border-radius: 999px;
  color: var(--accent-ink); background: var(--accent);
  transition: transform .15s, filter .2s, opacity .4s;
}
.pill-btn.small { font-size: .72em; padding: .35em .8em; }
.pill-btn.ghost { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pill-btn.hit { transform: scale(.93); filter: brightness(1.15); }

.mini-panel { width: 27em; max-width: 100%; background: var(--raised); border: 1px solid var(--line); border-radius: .9em; padding: 1em; }
.mini-meta { font-size: .8em; color: var(--muted); margin: 0 0 .8em; font-variant-numeric: tabular-nums; }
.mini-meta b { color: var(--text); }
@keyframes row-in { from { opacity: 0; transform: translateY(-.5em); } }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.3); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes blink { 50% { opacity: 0; } }

/* The app, as the Today and Addons scenes draw it */

.fit > .sc-today, .fit > .sc-addons { padding: 0; }
.scene-today { aspect-ratio: 16 / 10; border-radius: 22px; box-shadow: var(--shadow); transform-origin: 50% 0; will-change: transform; }
.scene-today > .sci { font-size: 1.25cqw; }
.app { position: absolute; inset: 0; display: grid; grid-template-rows: 3.4em minmax(0, 1fr); background: var(--bg); text-align: left; }
.app-top { display: flex; align-items: center; gap: .9em; padding: 0 1.2em; border-bottom: 1px solid var(--line); min-width: 0; }
.app-mark { height: 1.7em; width: auto; }
.app-streak { display: inline-flex; align-items: center; gap: .15em; color: var(--amber); font-weight: 700; font-size: .95em; font-variant-numeric: tabular-nums; }
.app-ico { color: var(--muted); display: grid; }
.app-search {
  flex: 1; min-width: 0; max-width: 30em; margin-left: .6em; display: flex; align-items: center; gap: .55em;
  height: 2.2em; padding: 0 .9em; border-radius: 999px; background: var(--frame); border: 1px solid var(--line);
  color: var(--muted); font-size: .85em;
}
.app-pill { display: inline-flex; align-items: center; gap: .3em; padding: .1em .6em; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-weight: 600; white-space: nowrap; }
.app-ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-action {
  margin-left: auto; display: inline-flex; align-items: center; gap: .4em; white-space: nowrap;
  padding: .5em 1em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: .8em; font-weight: 650; transition: background-color .3s, color .3s, box-shadow .3s;
}
.app-action.hit { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.app-body { display: grid; grid-template-columns: 13em minmax(0, 1fr); min-height: 0; }
.app-side { display: flex; flex-direction: column; gap: .1em; padding: .9em .7em; border-right: 1px solid var(--line); font-size: .84em; min-height: 0; overflow: hidden; }
.side-item { position: relative; display: flex; align-items: center; gap: .65em; padding: .42em .65em; border-radius: .55em; color: var(--muted); white-space: nowrap; }
.side-item.on { background: var(--frame); color: var(--text); font-weight: 600; }
.side-item.new { color: var(--text); background: var(--accent-soft); }
.side-h { font-size: .66em; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: .9em .8em .25em; }
.side-h[hidden] { display: none; }
.side-n { margin-left: auto; font-size: .78em; font-weight: 700; color: var(--cell-ink); background: var(--coral); border-radius: 999px; padding: 0 .5em; font-variant-numeric: tabular-nums; }
.side-n[hidden] { display: none; }
.side-gap { flex: 1; }
.side-meter { display: block; height: .3em; margin: 0 .65em .8em; border-radius: .3em; background: var(--line); overflow: hidden; }
.side-meter span { display: block; height: 100%; width: 38%; background: var(--accent); transition: width .8s var(--ease); }
.app-main { position: relative; padding: 1.3em 1.6em; display: flex; flex-direction: column; gap: 1em; min-width: 0; overflow: hidden; }

.day-h h4 { margin: 0; font-size: 1.6em; font-weight: 650; letter-spacing: -.01em; }
.day-h p { margin: .1em 0 0; font-size: .82em; color: var(--muted); }
.day-h b { color: var(--text); }
.yr h5 { margin: 0 0 .45em; font-size: .85em; font-weight: 650; }
.yr h5 span { color: var(--muted); font-weight: 400; margin-left: .3em; }
.row { --h: 10em; display: flex; gap: .4em; height: var(--h); max-width: calc(var(--sum, 3) * var(--h) * 1.35); }
.row .ph { flex-basis: 0; flex-shrink: 1; min-width: 0; transition: flex-grow .55s var(--ease), opacity .4s, transform .5s var(--ease), box-shadow .2s; }
.row .ph.gone { opacity: 0; transform: scale(.6); }
.keyhint {
  position: absolute; left: 50%; bottom: 1.4em; display: flex; align-items: center; gap: .6em;
  padding: .45em 1.1em .45em .5em; border-radius: 999px; font-size: .95em; white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5);
  opacity: 0; transform: translate(-50%, .8em); transition: opacity .3s, transform .4s var(--ease);
}
.keyhint.show { opacity: 1; transform: translate(-50%, 0); }
.keyhint kbd { font-size: .9em; }
.done-card {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.done-card.show { opacity: 1; }
.done-in {
  display: flex; flex-direction: column; align-items: center; gap: .4em; padding: 1.6em 2.6em;
  background: var(--panel); border: 1px solid var(--line); border-radius: 1.1em; box-shadow: var(--shadow);
  transform: scale(.9); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1);
}
.done-card.show .done-in { transform: none; }
.done-in .i { width: 3em; height: 3em; color: var(--accent); }
.done-in b { font-size: 1.3em; }
.done-in span { font-size: .9em; color: var(--muted); }

.scene-addons { aspect-ratio: 16 / 11; box-shadow: var(--shadow); transform-origin: 50% 0; will-change: transform; }
.scene-addons > .sci { font-size: 1.85cqw; }
.ad-h h4 { margin: 0; font-size: 1.5em; font-weight: 650; }
.ad-h p { margin: .15em 0 0; font-size: .82em; color: var(--muted); }
.ad-sec { margin: .5em 0 -.4em; font-size: .66em; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.ad-list { display: flex; flex-direction: column; gap: .4em; }
.ad {
  display: grid; grid-template-columns: 2.3em minmax(0, 1fr) auto; align-items: center; gap: .8em;
  padding: .5em .8em; border-radius: .65em; background: var(--panel); border: 1px solid var(--line); font-size: .8em;
  transition: border-color .4s, box-shadow .4s;
}
.ad > div { min-width: 0; }
.ad b { display: block; }
.ad b em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85em; margin-left: .3em; }
.ad span:not(.ad-i):not(.sw) { display: block; color: var(--muted); font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad.fresh { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ad-i { width: 2.3em; height: 2.3em; border-radius: .55em; display: grid; place-items: center; background: var(--frame); color: var(--accent); }
.ad-empty { margin: 0; padding: .9em 1em; font-size: .78em; color: var(--muted); border: 1px dashed var(--line); border-radius: .65em; }
.sw { position: relative; width: 2.3em; height: 1.3em; border-radius: 999px; background: var(--line); transition: background-color .3s, transform .15s; }
.sw::after { content: ""; position: absolute; top: .17em; left: .17em; width: .96em; height: .96em; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .35s var(--ease); }
.sw.on { background: var(--accent); }
.sw.on::after { transform: translateX(1em); }
.sw.hit { transform: scale(.88); }
.modal {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 3;
  background: rgb(0 0 0 / .35); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal.show { opacity: 1; }
.modal-in {
  width: 24em; padding: 1.2em 1.4em; font-size: .85em; border-radius: 1em;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: scale(.94) translateY(.5em); transition: transform .4s var(--ease);
}
.modal.show .modal-in { transform: none; }
.modal-in b { display: block; font-size: 1.15em; }
.modal-in p { margin: .5em 0 .3em; color: var(--muted); }
.modal-in ul { list-style: none; margin: 0 0 1.1em; padding: 0; }
.modal-in li { display: flex; gap: .45em; align-items: center; }
.modal-in li .i { color: var(--accent); }
.modal-b { display: flex; justify-content: flex-end; gap: .5em; }

/* How it works: three small scenes */

.sc-sources { flex-direction: row; gap: 2.4em; }
.src-list { display: flex; flex-direction: column; gap: .5em; }
.src {
  display: flex; align-items: center; gap: .55em; padding: .5em .85em; font-size: .85em; white-space: nowrap;
  border-radius: .65em; background: var(--raised); border: 1px solid var(--line); color: var(--muted);
  transition: border-color .3s, color .3s;
}
.src .i { color: var(--accent); }
.src.on { border-color: var(--accent); color: var(--text); }
.inbox {
  width: 8.5em; height: 8.5em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15em;
  border-radius: 1.1em; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft);
}
.inbox .i { width: 2.4em; height: 2.4em; color: var(--accent); }
.inbox span { font-size: .8em; color: var(--muted); font-variant-numeric: tabular-nums; }
.inbox span b { color: var(--text); }
.fchip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .45em;
  padding: .25em .65em .25em .25em; font-family: var(--mono); font-size: .7em; white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: .55em; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .45);
}
.fchip i { width: 1.8em; height: 1.8em; border-radius: .35em; background-size: cover; }
.fchip.still { position: static; transition: opacity .4s, transform .4s var(--ease); }
.fchip.still.gone { opacity: .25; transform: scale(.92); }

.file-in { display: flex; align-items: center; gap: .9em; }
.taken { font-size: .8em; color: var(--muted); opacity: 0; transition: opacity .4s; }
.taken.show { opacity: 1; }
.ftree { width: 22em; padding: .9em 1.1em; font-family: var(--mono); font-size: .78em; background: var(--bg); border: 1px solid var(--line); border-radius: .75em; }
.fl { display: flex; align-items: center; gap: .5em; padding: .12em 0 .12em calc(var(--d) * 1.2em); color: var(--muted); opacity: 0; transform: translateX(-.6em); transition: opacity .35s, transform .45s var(--ease), color .4s; white-space: nowrap; }
.fl .i { width: 1.1em; height: 1.1em; }
.fl.show { opacity: 1; transform: none; }
.fl.hot { color: var(--text); }
.fl.hot .i { color: var(--accent); }
.fl.dupe { margin-top: .5em; padding-top: .5em; border-top: 1px dashed var(--line); color: var(--amber); white-space: normal; }

.keys-stage { width: 16em; aspect-ratio: 3 / 2; }
.keys-stage .ph { width: 100%; height: 100%; border-radius: .7em; transition: filter .4s; }
.keycaps { display: flex; gap: .6em; }
.keycaps kbd { font-size: 1em; min-width: 2.4em; padding: .2em .5em; }
.keys-said { min-height: 1.4em; font-size: .9em; color: var(--muted); }

/* Features: the pinned stage and the beats that scroll past it */

.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.beats { grid-column: 1; grid-row: 1; padding: 18vh 0; }
.beat { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: .25; transition: opacity .6s var(--ease); }
.beat.on { opacity: 1; }
.beat h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; font-weight: 700; font-stretch: 92%; letter-spacing: -.015em; }
.beat p { margin: 0; font-size: 18px; color: var(--muted); max-width: 26em; text-wrap: pretty; }
.beat kbd, .scene-note kbd, .api kbd, .facts kbd {
  font-size: .78em; font-weight: 600; color: var(--text); min-width: 1.8em; text-align: center; padding: .05em .45em; border-radius: 6px;
  display: inline-block; background: var(--frame); border: 1px solid var(--line); border-bottom-width: 2px;
}
.stage { grid-column: 2; grid-row: 1; position: sticky; top: max(76px, calc(50vh - 250px)); align-self: start; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stage-in {
  position: relative; width: 100%; max-width: calc((100vh - 170px) * 1.25); aspect-ratio: 5 / 4;
  background: var(--panel); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden;
}
.stage .scene {
  position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; background: transparent;
  opacity: 0; transform: scale(.94) translateY(14px); filter: blur(8px); pointer-events: none;
  transition: opacity .55s var(--ease), transform .9s var(--ease), filter .6s var(--ease);
}
.stage .scene.on { opacity: 1; transform: none; filter: none; }
.stage-dots { display: flex; gap: 8px; }
.stage-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--line); transition: width .45s var(--ease), background-color .3s;
}
.stage-dots button:hover { background: var(--muted); }
.stage-dots button.on { width: 26px; background: var(--accent); }

.dup-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6em; }
.dup-row .ph { aspect-ratio: 1; border-radius: .6em; transition: opacity .5s, transform .5s var(--ease), box-shadow .3s, filter .5s; }
.dup-row .ph.keeper { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--accent); }
.dup-row .ph.gone { opacity: .18; transform: scale(.9); filter: grayscale(1); }
.badge { position: absolute; left: .4em; bottom: .4em; display: inline-flex; align-items: center; gap: .25em; font-size: .64em; font-weight: 600; padding: .2em .55em; border-radius: 999px; color: #fff; background: rgb(0 0 0 / .55); white-space: nowrap; }
.badge .i { width: 1.1em; height: 1.1em; }
.keeper .badge { background: var(--accent); color: var(--accent-ink); }
.ph-date { position: absolute; top: .45em; left: .5em; font-size: .62em; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.mini-panel .pill-btn { display: flex; margin-top: .9em; width: 100%; }
.mini-bin { position: absolute; right: 1.2em; top: 1.2em; width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); color: var(--muted); }

.viewer { width: 28em; height: 17em; display: flex; border-radius: .8em; overflow: hidden; background: #050506; border: 1px solid var(--line); }
.v-stage { position: relative; flex: 1; display: grid; place-items: center; }
.v-img { width: 82%; aspect-ratio: 3 / 2; border-radius: .2em; transition: transform .6s var(--ease); }
.v-badge { position: absolute; top: .7em; left: .7em; font-size: .66em; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgb(255 255 255 / .16); padding: .15em .55em; border-radius: .35em; }
.v-info { flex: none; width: 0; overflow: hidden; background: var(--panel); color: var(--text); transition: width .5s var(--ease); }
.v-info.open { width: 11.5em; }
.v-info b { display: block; width: 10em; margin: .9em .9em .5em; font-size: .9em; }
.v-info dl { width: 12.5em; margin: 0 .9em; font-size: .68em; }
.v-info dt { color: var(--muted); }
.v-info dd { margin: 0 0 .55em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v-info .mono { font-family: var(--mono); }
.v-keys { display: flex; gap: .5em; }

.undo-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7em; font-size: .9em; }
.undo-h span { font-size: .85em; color: var(--muted); font-variant-numeric: tabular-nums; }
.undo-list { display: flex; flex-direction: column; gap: .4em; min-height: 11.5em; }
.undo-row {
  display: grid; grid-template-columns: 1.3em 6em minmax(0, 1fr) auto; align-items: center; gap: .55em;
  padding: .5em .7em; border-radius: .55em; background: var(--frame); font-size: .8em;
  animation: row-in .4s var(--ease); transition: opacity .35s, background-color .35s;
}
.undo-row .i { color: var(--accent); }
.undo-row span { font-family: var(--mono); font-size: .92em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo-row em { font-style: normal; font-size: .85em; color: var(--muted); }
.undo-row.undone { opacity: .45; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.undo-row.undone b, .undo-row.undone span { text-decoration: line-through; }

.tasks { display: flex; flex-direction: column; gap: .7em; }
.task { display: flex; align-items: center; gap: .85em; padding: .7em .8em; border-radius: .65em; background: var(--frame); font-size: .8em; }
.task > div { flex: 1; min-width: 0; }
.task b { display: block; }
.task span:not(.ring):not(.pill-btn) { font-size: .9em; color: var(--muted); font-variant-numeric: tabular-nums; }
/* A task's button sits at the end of its row, not across the panel as a
   panel's own button does. */
.task .pill-btn { flex: none; width: auto; margin-top: 0; }
.ring {
  --p: 0; flex: none; width: 2.3em; height: 2.3em; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1turn), var(--line) 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%);
}
.ring.ok { --p: 1; }
.ring.warn { display: grid; place-items: center; background: none; -webkit-mask: none; mask: none; box-shadow: inset 0 0 0 2px var(--coral); color: var(--coral); }
.ring.warn .i { width: 1.1em; height: 1.1em; }
.pill-btn[hidden] { display: none; }
.grace .ph { height: 6em; border-radius: .65em; }
.grace .count { position: absolute; left: .55em; bottom: .55em; font-size: .72em; color: #fff; background: rgb(0 0 0 / .6); padding: .25em .7em; border-radius: 999px; font-variant-numeric: tabular-nums; }

.bellrow { width: 24em; display: flex; justify-content: flex-end; }
.bell { position: relative; width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); transform-origin: 50% 10%; }
.bell b { position: absolute; top: -.25em; right: -.25em; min-width: 1.3em; height: 1.3em; padding: 0 .3em; border-radius: 999px; display: grid; place-items: center; font-size: .66em; color: var(--cell-ink); background: var(--coral); animation: pop .35s; }
.bell b[hidden] { display: none; }
.notes { width: 24em; min-height: 9.8em; display: flex; flex-direction: column; gap: .4em; padding: .7em; }
.note { display: flex; align-items: center; gap: .6em; padding: .5em .6em; border-radius: .55em; background: var(--frame); font-size: .78em; animation: row-in .4s var(--ease); }
.note .i { color: var(--accent); }
.strip { width: 24em; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4em; }
.scell { position: relative; aspect-ratio: 1; border-radius: .4em; background: var(--done); }
.scell i { position: absolute; top: .3em; left: .4em; font-style: normal; font-size: .68em; color: var(--muted); }
.scell.dot::after { content: ""; position: absolute; top: .35em; right: .35em; width: .55em; height: .55em; border-radius: 50%; background: #ff4d5e; animation: pop .4s; }

.streak { display: flex; flex-direction: column; align-items: center; gap: .1em; }
.flame { display: inline-flex; align-items: center; gap: .1em; font-size: 3.4em; font-weight: 750; color: var(--amber); font-variant-numeric: tabular-nums; }
.flame .i { width: 1.05em; height: 1.05em; }
.streak-l { font-size: .85em; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, 2.7em); gap: .5em; }
.wd { height: 3.5em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2em; border-radius: .65em; background: var(--raised); border: 1px solid var(--line); transition: background-color .35s, border-color .35s; }
.wd i { font-style: normal; font-size: .72em; color: var(--muted); transition: color .35s; }
.wd .i { width: 1em; height: 1em; color: var(--accent-ink); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.3, 1.8, .5, 1); }
.wd.on { background: var(--accent); border-color: var(--accent); }
.wd.on i { color: var(--accent-ink); }
.wd.on .i { opacity: 1; transform: none; }

.zip { display: flex; align-items: center; gap: .6em; padding: .65em 1.1em; border-radius: .75em; background: var(--raised); border: 1px solid var(--line); font-size: .85em; }
.zip .i { width: 1.6em; height: 1.6em; color: var(--amber); }
.zip span { color: var(--muted); }
.buckets { width: 27em; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6em; }
.bk { padding: .8em .9em; border-radius: .75em; background: var(--raised); border: 1px solid var(--line); }
.bk b { display: block; font-size: 1.55em; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk span { font-size: .7em; color: var(--muted); }
.bk.new b { color: var(--accent); }
.bk.diff b { color: var(--amber); }
.bk.have b { color: var(--muted); }
.sc-takeout > [data-add] { opacity: 0; transform: translateY(.5em); }
.sc-takeout > [data-add].show { opacity: 1; transform: none; }
.sc-takeout > [data-add].hit { transform: scale(.94); }

.menubar { width: 28em; height: 1.9em; display: flex; align-items: center; gap: .55em; padding: 0 .75em; border-radius: .5em; background: var(--frame); border: 1px solid var(--line); font-size: .72em; }
.menubar span:first-child { flex: 1; }
.menubar img { height: 1.15em; width: auto; }
.mb-t { color: var(--muted); }
.lanes { width: 28em; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .8em; align-items: center; }
.lane { padding: .7em; border-radius: .75em; background: var(--raised); border: 1px solid var(--line); }
.lane > b { display: block; font-size: .78em; margin-bottom: .5em; }
.lane-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-height: 11.3em; align-content: start; }
.lane-ph { aspect-ratio: 1; border-radius: .45em; transition: opacity .3s; }
.lane-ph.sent { opacity: .2; }
.lane-ph.done { animation: pop .35s; }
.lane-ph.moving { position: absolute; z-index: 4; }
.lk { position: absolute; right: .25em; bottom: .25em; width: 1.45em; height: 1.45em; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .55); color: #fff; font-size: .8em; }
.lk .i { width: .95em; height: .95em; }
.lk.delete { background: var(--coral); color: var(--cell-ink); }
.lk.favorite { color: #ff6d7e; }
.done .lk.delete { background: var(--accent); color: var(--accent-ink); }
.arrow { color: var(--accent); }
.arrow .i { width: 1.7em; height: 1.7em; animation: spin 4s linear infinite; }
.lane-note { margin: 0; font-size: .78em; color: var(--muted); font-variant-numeric: tabular-nums; }

.sc-guide > * { width: 27em; }
.mini-top { display: flex; justify-content: space-between; align-items: center; font-size: 1.1em; font-weight: 650; }
.q { width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; font-size: .75em; color: var(--muted); border: 1px solid var(--line); transition: background-color .2s, color .2s; }
.q.hit { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.guide { max-height: 12em; overflow: hidden; padding: .85em 1em; border-radius: .85em; background: var(--raised); border: 1px solid var(--line); transition: max-height .6s var(--ease), opacity .4s, padding .6s var(--ease), margin .6s var(--ease), border-color .4s; }
.guide.hide { max-height: 0; opacity: 0; padding-block: 0; margin-block: -.5em; border-color: transparent; }
.guide-h { display: flex; align-items: center; gap: .5em; font-size: .88em; }
.guide-h .i { color: var(--accent); }
.guide-h .pill-btn { margin-left: auto; }
.guide ul { margin: .55em 0 0; padding-left: 1.2em; font-size: .76em; color: var(--muted); }
.guide li { margin: .3em 0; }
.guide kbd { font-size: .92em; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45em; }
.guide-grid .ph { aspect-ratio: 1; border-radius: .45em; }

.mini-side { width: 19em; padding: 1.1em 1.3em; font-size: 1.1em; border-radius: .9em; background: var(--raised); border: 1px solid var(--line); }
.lib-h { display: flex; align-items: center; gap: .5em; margin-bottom: .5em; font-size: .9em; }
.lib-h .i { color: var(--muted); }
.mini-side table { width: 100%; border-collapse: collapse; font-size: .85em; font-variant-numeric: tabular-nums; }
.mini-side th { text-align: left; font-weight: 500; color: var(--muted); padding: .4em 0; }
.mini-side td { text-align: right; padding: .4em 0 .4em 1em; }
.mini-side tfoot th, .mini-side tfoot td { border-top: 1px solid var(--line); color: var(--text); font-weight: 650; }

.dn { width: 26em; border-radius: .9em; overflow: hidden; background: #fcfdfc; border: 1px solid #e3e5ea; transition: background-color .9s, border-color .9s; }
.dn-top { display: flex; align-items: center; gap: .7em; padding: .65em .85em; border-bottom: 1px solid #e3e5ea; transition: border-color .9s; }
.dn-top img { height: 1.4em; width: auto; }
.dn-search { flex: 1; height: 1.6em; border-radius: 999px; background: #f2f4f3; transition: background-color .9s; }
.dn-clock { display: inline-flex; align-items: center; gap: .3em; font-size: .82em; color: #16181d; font-variant-numeric: tabular-nums; transition: color .9s; }
.dn-clock .i { color: #f0b541; }
.dn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45em; padding: .85em; }
.dn-grid .ph { aspect-ratio: 4 / 3; border-radius: .45em; }
.dn.night { background: #121317; border-color: #282b34; }
.dn.night .dn-top { border-color: #282b34; }
.dn.night .dn-search { background: #1f2128; }
.dn.night .dn-clock { color: #eef0f5; }
.dn.night .dn-clock .i { color: #f7c66a; }

.srv { position: relative; width: 29em; height: 15em; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wires path { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.wires path.ro { stroke: var(--muted); stroke-dasharray: 2 5; }
.box {
  position: absolute; z-index: 1; top: 10%; width: 20%; height: 34%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15em; text-align: center;
  border-radius: .75em; background: var(--raised); border: 1px solid var(--line); font-size: .74em;
}
.box .i { width: 1.5em; height: 1.5em; color: var(--accent); }
.box span { display: inline-flex; align-items: center; gap: .2em; font-size: .8em; color: var(--muted); line-height: 1.2; }
.box span .i { width: 1em; height: 1em; color: var(--muted); }
.box.imp { left: 0; }
.box.wr { left: 40%; }
.box.lib { left: 80%; }
.box.web { left: 40%; top: 46%; }

/* The API */

.api-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.api-copy h2 { margin-bottom: 20px; }
.api-copy > p { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.scene-term { aspect-ratio: 4 / 3; background: #0e0f13; border-color: #23252d; box-shadow: var(--shadow); }
.scene-term > .sci { font-size: 2.4cqw; padding: 0; }
.term { position: absolute; inset: 0; display: flex; flex-direction: column; color: #d8dbe3; text-align: left; }
.term-bar { flex: none; display: flex; align-items: center; gap: .45em; height: 2.2em; padding: 0 .9em; border-bottom: 1px solid #23252d; }
.term-bar i { width: .72em; height: .72em; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { flex: 1; text-align: center; padding-right: 3.2em; font-size: .72em; color: #8a8f9b; }
.term-body { flex: 1; min-height: 0; margin: 0; padding: .9em 1.1em; overflow: hidden; font-size: .8em; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.term-body .pr { color: #7ed9b2; }
.term-body .k { color: #8fc8ff; }
.term-body .s { color: #f7c66a; }
.term-body .n { color: #f397a2; }
.term-body .d { color: #8a8f9b; }
.term-body .outl { animation: row-in .25s var(--ease); display: inline; }
.caret { display: inline-block; width: .55em; height: 1.1em; margin-left: .1em; vertical-align: text-bottom; background: #d8dbe3; animation: blink 1s steps(1) infinite; }

/* Addons */

.addons-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.addons-copy h3 { font-size: 24px; margin-bottom: 12px; }
.addons-copy p { color: var(--muted); margin: 0 0 18px; }
.code {
  margin: 0 0 18px; padding: 16px 18px; overflow-x: auto;
  font-size: 13px; line-height: 1.6; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.code .p { color: var(--muted); }
.code .k { color: var(--code-k); }
.code .s { color: var(--code-s); }
.built-in { font-size: 15px; }

/* Friends */

.friends-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.friends h2 { margin-bottom: 20px; }
.friends p { margin: 0; font-size: 18px; color: var(--muted); }
.scene-friends { aspect-ratio: 20 / 13; }
.scene-friends > .sci { font-size: 2.5cqw; padding: 0; }
.hub { position: absolute; inset: 0; }
.spokes { position: absolute; inset: 0; width: 100%; height: 100%; }
.spokes path { fill: none; stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spokes path.quiet { stroke-dasharray: 4 6; }
.node {
  position: absolute; z-index: 1; transform: translate(-50%, -50%); min-width: 8.5em;
  display: flex; flex-direction: column; align-items: center; gap: .05em; padding: .65em 1em;
  border-radius: .85em; background: var(--raised); border: 1px solid var(--line); font-size: .9em; text-align: center;
  transition: border-color .3s, box-shadow .5s;
}
.node span { font-size: .8em; color: var(--muted); }
.node.core { left: 50%; top: 50%; min-width: 9.5em; padding: .9em 1.2em; }
.node.core .i { width: 1.8em; height: 1.8em; color: var(--accent); }
.n1 { left: 17.5%; top: 19.2%; }
.n2 { left: 82.5%; top: 19.2%; }
.n3 { left: 17.5%; top: 80.8%; }
.n4 { left: 82.5%; top: 80.8%; }
.node.ping { border-color: var(--accent); box-shadow: 0 0 0 .35em var(--accent-soft); }
.hubdot { position: absolute; z-index: 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 3px 10px rgb(0 0 0 / .35); }
.hubdot .i { width: 15px; height: 15px; }
.hubdot.heart { background: var(--coral); color: var(--cell-ink); }
.hubdot.scan { background: var(--accent); color: var(--accent-ink); }

/* How it works */

.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.steps > li {
  counter-increment: step;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 14px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
}
.steps .scene { border-radius: 14px; background: var(--bg); margin-bottom: 10px; }
.scene-mini > .sci { font-size: 4.1cqw; }
.steps h3, .steps p { padding: 0 12px; }
.steps h3::before {
  content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; vertical-align: 2px;
  border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent);
}
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.setup { max-width: 820px; margin: 32px auto 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.setup summary { cursor: pointer; padding: 16px 22px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.setup summary::-webkit-details-marker { display: none; }
.setup summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .25s var(--ease); }
.setup[open] summary::before { transform: rotate(45deg); }
.setup summary:hover { color: var(--accent); }
.setup ul { margin: 0; padding: 0 22px 18px 42px; color: var(--muted); font-size: 15.5px; display: grid; gap: 8px; }

/* The demo */

.demo { padding-top: 64px; }
.progress { margin-top: 112px; }
.progress .head { margin-bottom: 36px; }
.sub { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; font-weight: 700; font-stretch: 90%; letter-spacing: -.02em; text-wrap: balance; }
.scene-note { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 15.5px; }
.keys { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; }
.keys > span { white-space: nowrap; }

/* Why */

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.why-grid > div { padding: 30px 28px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.why-grid h3 { font-size: 22px; line-height: 1.2; margin-bottom: 12px; font-weight: 650; }
.why-grid p { margin: 0; color: var(--muted); }

/* Safety */

.safety { border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.facts h3 { margin-bottom: 8px; font-size: 18px; }
.facts p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* What's new */

.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; }
.timeline > li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.ver { justify-self: start; align-self: start; margin-top: 2px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--accent); background: var(--accent-soft); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 18px; }
.timeline p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }

/* Install */

.install { background: var(--frame); border-top: 1px solid var(--line); }
.install-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.install h2 { margin-bottom: 22px; }
.install p { color: var(--muted); margin: 0 0 20px; }
.install .cmd { margin-bottom: 20px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.tabs [role="tab"] { font: 600 14.5px var(--font); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 8px 18px; white-space: nowrap; cursor: pointer; transition: color .3s, background-color .3s; }
.tabs [role="tab"][aria-selected="true"] { color: var(--accent-ink); background: var(--accent); }
.pane[hidden] { display: none; }
.prompt { position: relative; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.prompt pre {
  margin: 0; max-height: 340px; overflow: auto; padding: 16px 18px; padding-right: 104px;
  font: 14px/1.6 var(--font); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere;
  border-radius: 14px;
}
/* A fade at the foot says the prompt goes on below. */
.prompt::after {
  content: ""; position: absolute; left: 1px; right: 14px; bottom: 1px; height: 44px; pointer-events: none;
  border-radius: 0 0 14px 14px; background: linear-gradient(transparent, var(--panel));
}
.prompt code { font: inherit; }
.prompt pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prompt .copy { position: absolute; top: 8px; right: 8px; }
.install .prompt-note { font-size: 14px; }
.scene-install { background: var(--panel); }
.inst { list-style: none; margin: 0; padding: 18px 22px; display: grid; gap: 10px; font-size: 15px; }
.inst li { display: flex; align-items: center; gap: 12px; color: var(--muted); transition: color .3s; }
.inst li.run, .inst li.ok { color: var(--text); }
.st { flex: none; position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.run .st { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.ok .st { border-color: var(--accent); background: var(--accent); animation: pop .3s; }
.ok .st::after {
  content: ""; position: absolute; inset: 1px; background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.reqs { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.reqs caption { text-align: left; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.reqs th, .reqs td { text-align: left; padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.reqs th { font-weight: 600; width: 38%; padding-right: 16px; }
.reqs td { color: var(--muted); }

.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; font-size: 14.5px; color: var(--muted); }
.foot p { margin: 0; max-width: 60ch; }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* Narrower screens */

@media (max-width: 1080px) {
  nav a[href="#how"], nav a[href="#new"] { display: none; }
}

@media (max-width: 980px) {
  section { padding: 96px 0; }
  .api-in, .addons-in, .friends-in, .install-in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .steps, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .steps > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; column-gap: 8px; }
  .steps .scene { grid-row: span 2; margin: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* The stage pins under the header and the beats pass beneath it. */
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { grid-column: 1; grid-row: 1; top: 60px; z-index: 2; padding: 12px 0 14px; background: var(--bg); gap: 12px; }
  .stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
  .stage-in { max-width: min(100%, calc((46vh) * 1.25)); border-radius: 20px; }
  .beats { grid-column: 1; grid-row: 2; padding: 4vh 0 22vh; }
  .beat { min-height: 44vh; }
}

@media (max-width: 760px) {
  nav a:not(.gh) { display: none; }
  .nav-pill { display: none; }
  .steps > li { display: flex; }
  .steps .scene { margin-bottom: 10px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 80px 0; }
  .head { margin-bottom: 36px; }
  .section-lede { font-size: 17.5px; }
  .hero { padding: 56px 0 40px; }
  .lede { font-size: 18px; margin: 22px auto 28px; }
  .year { padding: 16px 12px 14px; border-radius: 16px; }
  .progress { margin-top: 72px; }
  .ctas .btn { flex: 1 1 100%; }
  .grid { grid-template-columns: 24px repeat(31, minmax(0, 1fr)); gap: 1.5px; }
  .grid .m { font-size: 8.5px; letter-spacing: .02em; }
  .grid .c { border-radius: 2px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .beat h3 { font-size: 24px; }
  .beat p { font-size: 16.5px; }

  /* The app scenes fold their sidebar to a rail, as the app does. */
  .scene-today, .scene-addons { aspect-ratio: 4 / 5; border-radius: 16px; }
  .scene-today > .sci, .scene-addons > .sci { font-size: 2.6cqw; }
  .app-body { grid-template-columns: 3.6em minmax(0, 1fr); }
  .app-side { padding: .9em .45em; }
  .side-l, .side-h, .side-meter { display: none; }
  .side-h[hidden] { display: none; }
  .side-item { justify-content: center; padding: .5em; }
  .side-n { position: absolute; top: 0; right: 0; font-size: .7em; }
  .app-ph, .app-action span, .app-ico { display: none; }
  .app-main { padding: 1.2em; }
  .row { --h: 9.4em; }
  .keyhint { font-size: .85em; }
  .ad span:not(.ad-i):not(.sw) { white-space: normal; }
  .scene-term { aspect-ratio: 3 / 4; }
  .scene-term > .sci { font-size: 3.6cqw; }
  .scene-friends { aspect-ratio: 1; }
  .scene-friends > .sci { font-size: 3.2cqw; }
  .timeline > li { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .inst { padding: 16px; font-size: 14px; }
  .tabs { display: flex; }
  .tabs [role="tab"] { flex: 1 1 auto; padding: 8px 10px; font-size: 14px; }
  .prompt pre { max-height: 300px; padding: 56px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .stage .scene { filter: none; transform: none; }
}
