/* Col website. One dark page in the manner of Apple's product pages: the system font (SF Pro on Apple devices), black
   grounds, real captures of the app on a real macOS desktop, and motion that follows the scroll. Readable without
   JavaScript; html.js turns on what moves. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../assets/fonts/inter-600.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #0b0b0d;
  --tile: #161617;
  --tile-2: #1d1d1f;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --accent: #2997ff;
  --accent-strong: #0071e3;
  --edge: rgb(255 255 255 / 0.09);
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --ai: linear-gradient(90deg, #2997ff 0%, #7a5cff 34%, #e0458f 68%, #ff9f0a 100%);
  --gutter: max(22px, env(safe-area-inset-left, 0px));
  --wrap: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.2, 1.25, 0.4, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; letter-spacing: inherit; }
code, kbd { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap-wide { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - var(--gutter) * 2); margin-inline: auto; }
.center { text-align: center; }

/* Type. */
.eyebrow { margin: 0 0 10px; color: var(--text-2); font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.01em; }
.eyebrow.new { color: var(--accent); }
.h1 { margin: 0; font-size: clamp(46px, 8.4vw, 104px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { margin: 0; font-size: clamp(36px, 5.6vw, 72px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.lead { max-width: 40em; margin: 20px 0 0; color: var(--text-2); font-size: clamp(19px, 1.9vw, 24px); font-weight: 500; line-height: 1.38; letter-spacing: -0.015em; text-wrap: pretty; }
.center .lead { margin-inline: auto; }
.lead b, .lead strong { color: var(--text); font-weight: 600; }
.fine { margin: 18px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.5; letter-spacing: -0.005em; }
.gradient { background: var(--ai); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blue { color: var(--accent); }

/* Navigation: translucent, like Apple's local nav. */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(0 0 0 / 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--edge);
}
.nav-inner { display: flex; align-items: center; gap: 22px; width: min(var(--wrap), 100% - var(--gutter) * 2); height: 52px; margin-inline: auto; }
.nav-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 13px; letter-spacing: -0.01em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current='true'] { color: var(--text); text-decoration: none; }
.nav-sound {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-2); cursor: pointer; transition: color 0.2s, background-color 0.2s;
}
.nav-sound:hover { background: rgb(255 255 255 / 0.1); color: var(--text); }
.nav-sound svg { width: 17px; height: 17px; }
.nav-sound .off { display: none; }
.nav-sound[aria-pressed='false'] .on { display: none; }
.nav-sound[aria-pressed='false'] .off { display: block; }
.nav-cta { padding: 5px 13px; border-radius: 980px; background: var(--accent-strong); color: #fff; font-size: 13px; font-weight: 500; transition: background-color 0.2s; }
.nav-cta:hover { background: #0066cc; text-decoration: none; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-sound { margin-left: auto; } }

/* Buttons. */
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border: 0; border-radius: 980px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; cursor: pointer; transition: background-color 0.2s, transform 0.2s var(--ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #0066cc; }
.btn-ghost { padding-inline: 4px; background: none; color: var(--accent); font-size: 19px; }
.btn-ghost::after { content: '›'; margin-left: 2px; font-size: 1.1em; transition: transform 0.2s var(--ease); }
.btn-ghost:hover { text-decoration: underline; }
.btn-ghost:hover::after { transform: translateX(3px); }
.btn svg { width: 18px; height: 18px; }

/* Sections. */
.section { position: relative; padding-block: clamp(96px, 13vw, 168px); }
.section-2 { background: var(--bg-2); }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center .lead { margin-inline: auto; }

/* Reveal on scroll (with JS only, so the page is complete without it). */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--delay, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero. */
.hero { position: relative; padding-top: clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% 0 auto; height: 70%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgb(10 132 255 / 0.22), transparent 70%);
}
.ribbon {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 26px; padding: 6px 8px 6px 14px; border-radius: 980px;
  background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text); font-size: 14px; letter-spacing: -0.01em;
  transition: background-color 0.2s;
}
.ribbon:hover { background: rgb(255 255 255 / 0.11); text-decoration: none; }
.ribbon b { color: var(--accent); font-weight: 600; }
.ribbon span:last-child { padding: 3px 10px; border-radius: 980px; background: rgb(255 255 255 / 0.1); color: var(--text-2); font-size: 13px; }
.hero .h1 { max-width: 12ch; margin-inline: auto; }
.hero .lead { max-width: 30em; }
.hero-name { margin: 0 0 6px; color: var(--text-2); font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--text-3); font-size: 14px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li + li::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); margin-left: -14px; }

/* A screen: the top of a real macOS desktop with real captures of Col on it, both at 2x. --span is how many points
   of the 1512-point screen show across, --rows how many down; each capture's --w is its width in points, so
   everything keeps the proportions of a 14-inch MacBook Pro whatever the size of the frame. */
.stage {
  --span: 1512;
  --rows: 400;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--span) / var(--rows);
  background: #0b0c0e url('../assets/desktop-top.webp') no-repeat 50% 0 / calc(100% * 1512 / var(--span)) auto;
}
.stage .shot { position: absolute; top: 0; left: 50%; width: calc(100% * var(--w) / var(--span)); max-width: none; height: auto; transform: translateX(-50%); }
.stage .shot[data-state] {
  opacity: 0;
  transform: translateX(-50%) scale(0.42, 0.22);
  transform-origin: 50% 0;
  filter: blur(6px);
  transition: opacity 0.18s linear, transform 0.5s var(--spring), filter 0.3s linear;
}
.stage .shot[data-state].on {
  opacity: 1;
  transform: translateX(-50%);
  filter: none;
  transition: opacity 0.24s linear 0.04s, transform 0.62s var(--spring), filter 0.35s linear;
}
@media (prefers-reduced-motion: reduce) {
  .stage .shot[data-state], .stage .shot[data-state].on { transform: translateX(-50%); filter: none; transition: opacity 0.25s linear; }
}
.stage.lake { background-image: url('../assets/desktop-lake.webp'); }
.frame { position: relative; overflow: hidden; border-radius: 22px; background: #000; box-shadow: 0 0 0 1px var(--edge); }

/* The top of the MacBook's lid around the hero's screen: the bezel, then the screen fading into the page. */
.lid {
  width: min(1180px, 100% - var(--gutter) * 2);
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: 12px 12px 0;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #2c2e32 0, #16171a 3px, #0a0a0c 100%);
  box-shadow: inset 0 0 0 1px #3b3d42, inset 0 1.5px 0 rgb(255 255 255 / 0.1);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  transform-origin: 50% 0;
}
.lid .stage { --span: 1120; --rows: 400; border-radius: 15px 15px 0 0; }
@media (max-width: 734px) {
  .lid { width: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, #000 55%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, #000 55%, transparent 100%);
    mask-composite: intersect; }
  .lid .stage { --span: 700; --rows: 330; border-radius: 0; }
}

/* Segmented chips. */
.chips { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 980px; background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px var(--edge); }
.chip {
  position: relative; padding: 8px 16px; border: 0; border-radius: 980px; background: transparent; color: var(--text-2);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: color 0.25s, background-color 0.25s, transform 0.2s var(--ease);
}
.chip:hover { color: var(--text); }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed='true'] { background: var(--text); color: #000; }
.chip-row { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 734px) {
  /* On a phone the chips stay on one line and scroll sideways, as Apple's segmented controls do. */
  .chip-row { justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none; }
  /* The hero's row runs to the edges of the screen. */
  .hero .chip-row { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chip-row::-webkit-scrollbar { display: none; }
  .chips { flex-wrap: nowrap; flex: none; }
  .chip { white-space: nowrap; }
  .hero .chip-row .chips { margin-inline: auto; }
}
.caption { min-height: 3.2em; max-width: 34em; margin: 16px auto 0; color: var(--text-2); font-size: 17px; text-align: center; transition: opacity 0.3s; }

/* Pinned walkthrough: the screen stays while the words scroll by. */
.pin { position: relative; height: 320vh; }
.pin-sticky { position: sticky; top: 52px; display: grid; align-content: center; gap: 36px; height: calc(100vh - 52px); min-height: 560px; }
.pin .stage { --span: 900; --rows: 300; }
.pin-steps { position: relative; height: 7.5em; text-align: center; }
.pin-step { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.pin-step.now { opacity: 1; transform: none; }
.pin-step .label { color: var(--accent); font-size: 15px; font-weight: 600; }
.pin-step h3 { margin: 6px 0 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.025em; }
.pin-step p { max-width: 32em; margin: 8px auto 0; color: var(--text-2); font-size: 17px; }
.pin-progress { display: flex; justify-content: center; gap: 8px; }
.pin-progress i { width: 8px; height: 8px; border-radius: 980px; background: rgb(255 255 255 / 0.25); transition: width 0.4s var(--ease), background-color 0.4s; }
.pin-progress i.now { width: 28px; background: var(--text); }
html:not(.js) .pin { height: auto; }
html:not(.js) .pin-sticky { position: static; height: auto; }
html:not(.js) .pin-step { position: static; opacity: 1; transform: none; margin-bottom: 18px; }
@media (max-width: 734px) { .pin .stage { --span: 640; --rows: 260; } .pin-steps { height: 9em; } }

/* Tiles: Apple's rounded cards. */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile { position: relative; grid-column: span 6; overflow: hidden; padding: clamp(28px, 3.4vw, 44px); border-radius: 28px; background: var(--tile); }
.tile.wide { grid-column: span 12; }
.tile.third { grid-column: span 4; }
.tile .h3 + p, .tile h4 + p { margin: 10px 0 0; color: var(--text-2); font-size: 17px; text-wrap: pretty; }
.tile h4 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.tile .media { margin: 28px calc(clamp(28px, 3.4vw, 44px) * -1) calc(clamp(28px, 3.4vw, 44px) * -1); }
.tile .media .stage { border-radius: 0; }
.tile-kicker { margin: 0 0 8px; color: var(--accent); font-size: 14px; font-weight: 600; }
@media (max-width: 834px) { .tile, .tile.third { grid-column: span 12; } }

/* Films: real recordings, played while on screen. */
.film { position: relative; overflow: hidden; border-radius: 22px; background: #0b0c0e; box-shadow: 0 0 0 1px var(--edge); }
.film video { width: 100%; }
.film-toggle {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(30 30 32 / 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text); cursor: pointer; opacity: 0.85; transition: opacity 0.2s, transform 0.2s var(--ease);
}
.film-toggle:hover { opacity: 1; }
.film-toggle:active { transform: scale(0.92); }
.film-toggle svg { width: 14px; height: 14px; }
.film-toggle .play { display: none; }
.film[data-paused] .film-toggle .play { display: block; }
.film[data-paused] .film-toggle .pause { display: none; }

/* Two columns: words beside a picture. */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.duo.flip > :first-child { order: 2; }
@media (max-width: 834px) { .duo { grid-template-columns: 1fr; } .duo.flip > :first-child { order: 0; } }
.duo .lead { font-size: clamp(18px, 1.7vw, 21px); }
.points { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--text-2); font-size: 17px; }
.points li b { display: block; color: var(--text); font-weight: 600; }
.points svg { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }

/* The agent's request, live: Allow and Deny answer. */
.ask-stage { position: relative; }
/* Allow and Deny, laid over the capture: the island is 588 points wide on a --span-point screen, 224 tall; Allow
   starts 86 points in and 116 down, 60 by 26; Deny starts 154 in, 58 wide. */
.hotspot {
  position: absolute; z-index: 2; padding: 0; border: 0; border-radius: 980px; background: transparent; cursor: pointer;
  top: calc(116 / var(--rows) * 100%); height: calc(26 / var(--rows) * 100%);
  transition: box-shadow 0.25s;
}
.hotspot[data-answer='allow'] { left: calc(50% - 208 / var(--span) * 100%); width: calc(60.5 / var(--span) * 100%); }
.hotspot[data-answer='deny'] { left: calc(50% - 139.5 / var(--span) * 100%); width: calc(58 / var(--span) * 100%); }
@media (max-width: 734px) { .ask-stage { --span: 610 !important; --rows: 240 !important; } }
.hotspot:hover { box-shadow: 0 0 0 3px rgb(41 151 255 / 0.55); }
.hotspot:active { transform: scale(0.97); }
.ask-stage[data-answered] .hotspot { pointer-events: none; }
.toast {
  position: absolute; left: 50%; bottom: 16%; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 980px;
  background: rgb(28 28 30 / 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgb(0 0 0 / 0.4), inset 0 0 0 1px var(--edge);
  color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 10px) scale(0.96); transition: opacity 0.3s, transform 0.45s var(--spring); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.toast.deny i { background: var(--red); }
.hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: var(--text-3); font-size: 14px; }
.hint::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 50% { opacity: 0.25; transform: scale(0.7); } }

/* Compatibility list. */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 20px; overflow: hidden; border-radius: 22px; background: var(--edge); }
.agents div { padding: 20px 22px; background: var(--tile); }
.agents b { display: block; font-size: 17px; font-weight: 600; }
.agents span { color: var(--text-2); font-size: 15px; }
@media (max-width: 834px) { .agents { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .agents { grid-template-columns: 1fr; } }

/* Scenes: real captures of Col and real pieces of macOS (the arrow cursor, a file's Finder icon, a TextEdit window),
   moved in time like a short film. */
.scene { --span: 900; --rows: 400; }
.scene .file,
.scene .cursor,
.scene .window,
.scene .keys,
.scene .flyer {
  position: absolute;
  left: calc(100% * var(--x) / var(--span));
  top: calc(100% * var(--y) / var(--rows));
  max-width: none;
}
/* The arrow's tip is 5 points in from its image's corner: the image is placed so the tip lands on --x, --y. */
.scene .cursor { width: calc(100% * 28 / var(--span)); margin: calc(-100% * 5 / var(--span)) 0 0 calc(-100% * 5 / var(--span)); z-index: 5; opacity: 0; }
.scene .file { width: calc(100% * 84 / var(--span)); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: calc(100% * 3 / 84); z-index: 4; }
.scene .file img { width: calc(100% * 64 / 84); height: auto; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); }
.scene .file span { padding: 0.1em 0.45em; border-radius: 4px; color: #fff; font-size: clamp(8px, 1.1vw, 12px); font-weight: 500; text-shadow: 0 1px 2px rgb(0 0 0 / 0.6); white-space: nowrap; }
.scene .file.dragging { opacity: 0.8; }
.scene .file.dragging span { background: #2a62d6; text-shadow: none; }
.scene .window { width: calc(100% * var(--w) / var(--span)); height: auto; border-radius: 10px; box-shadow: 0 18px 50px rgb(0 0 0 / 0.45), 0 0 0 0.5px rgb(255 255 255 / 0.18); z-index: 2; }
.scene .keys { display: flex; gap: 6px; transform: translate(-50%, 0) scale(0.8); opacity: 0; z-index: 3; }
.scene .keys kbd {
  display: grid;
  place-items: center;
  min-width: clamp(28px, 4.2vw, 52px);
  height: clamp(28px, 4.2vw, 52px);
  padding: 0 0.4em;
  border-radius: 10px;
  background: linear-gradient(180deg, #2c2d31, #1b1c1f);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 3px 0 #0b0b0c, 0 8px 20px rgb(0 0 0 / 0.45);
  color: #f5f5f7;
  font: 500 clamp(14px, 2vw, 24px)/1 var(--font);
  transition: transform 0.12s, box-shadow 0.12s;
}
.scene .keys.down kbd { transform: translateY(2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 1px 0 #0b0b0c, 0 4px 10px rgb(0 0 0 / 0.4); }
/* A row of the real clipboard page, cut from its capture: 440 x 28 points, 74 in from the left, 42 down. */
.scene .flyer {
  width: calc(100% * 440 / var(--span));
  aspect-ratio: 440 / 28;
  overflow: hidden;
  border-radius: 9px;
  opacity: 0;
  z-index: 6;
  transform-origin: 50% 0;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.5);
}
.scene .flyer img { position: absolute; width: calc(100% * 588 / 440); max-width: none; left: calc(-100% * 74 / 440); top: calc(-100% * 42 / 28); }

/* On phones the scenes come closer: 620 points across, just wider than the open island, and taller, so the pieces
   stack under it. col.js places them for this view. */
@media (max-width: 734px) {
  .scene { --span: 620 !important; --rows: 560 !important; }
  .scene .file span { font-size: 7px; }
}
.scene-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 16px 20px 18px; background: var(--tile-2); }
.scene-frame .scene-steps { display: flex; }
.scene-steps span { color: var(--text-3); font-size: 15px; transition: color 0.3s; }
.scene-steps span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 2px; }
.scene-steps span.now { color: var(--text); }

/* Settings and welcome windows. */
.window-shot { width: 100%; filter: drop-shadow(0 30px 60px rgb(0 0 0 / 0.55)); }
.welcome-deck { position: relative; display: grid; }
.welcome-deck img { grid-area: 1 / 1; opacity: 0; transform: scale(0.985); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.welcome-deck img.on { opacity: 1; transform: none; }
html:not(.js) .welcome-deck img:first-child { opacity: 1; transform: none; }
.steps-list { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps-list button {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: transparent;
  color: var(--text-2); text-align: left; cursor: pointer; transition: background-color 0.3s, color 0.3s;
}
.steps-list button::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgb(255 255 255 / 0.1); color: var(--text-2); font-size: 13px; font-weight: 600; }
.steps-list button b { display: block; color: var(--text); font-size: 17px; font-weight: 600; }
.steps-list button[aria-pressed='true'] { background: var(--tile); }
.steps-list button[aria-pressed='true']::before { background: var(--accent-strong); color: #fff; }

/* Numbers. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 30px 26px; border-radius: 26px; background: var(--tile); }
.stat .num { margin: 0; font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .num small { margin-left: 4px; color: var(--text-2); font-size: 0.42em; font-weight: 600; letter-spacing: -0.01em; }
.stat h3 { margin: 14px 0 0; font-size: 17px; font-weight: 600; }
.stat p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Privacy promises. */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { padding: 32px 28px; border-radius: 26px; background: var(--tile); }
.promise svg { width: 30px; height: 30px; color: var(--accent); }
.promise h3 { margin: 18px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.promise p { margin: 8px 0 0; color: var(--text-2); }
@media (max-width: 834px) { .promises { grid-template-columns: 1fr; } }

/* The terminal. */
.terminal { overflow: hidden; border-radius: 16px; background: #0d0d0f; box-shadow: 0 0 0 1px var(--edge), 0 30px 60px rgb(0 0 0 / 0.5); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #1c1c1e; }
.terminal-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 8px; color: var(--text-3); font-size: 13px; }
.terminal pre { min-height: 9.5em; margin: 0; padding: 18px 20px 22px; overflow-x: auto; color: #e5e5ea; font-family: var(--mono); font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.terminal .prompt { color: var(--green); }
.terminal .dim { color: var(--text-3); }
.terminal .caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: var(--text); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.code-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.code-tiles .tile { grid-column: auto; padding: 28px; }
.code-tiles code { display: block; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #0d0d0f; color: #e5e5ea; font-size: 13px; overflow-x: auto; white-space: nowrap; }
@media (max-width: 834px) { .code-tiles { grid-template-columns: 1fr; } }

/* Open source card. */
.repo { display: grid; gap: 10px; max-width: 640px; margin: 40px auto 0; padding: 26px 28px; border-radius: 22px; background: var(--tile); color: var(--text); text-align: left; transition: background-color 0.25s, transform 0.3s var(--ease); }
.repo:hover { background: var(--tile-2); text-decoration: none; transform: translateY(-2px); }
.repo-top { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.repo-top svg { width: 22px; height: 22px; }
.repo-desc { color: var(--text-2); }
.repo-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-3); font-size: 14px; }
.repo-meta i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #f05138; }

/* FAQ. */
.faq { margin-top: 48px; border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--accent); font-size: 26px; font-weight: 300; line-height: 1; transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { overflow: hidden; }
.faq details p { max-width: 40em; margin: 0; padding: 0 0 24px; color: var(--text-2); }

/* Download. */
.download { overflow: hidden; text-align: center; }
.download::before { content: ''; position: absolute; inset: 30% 0 0; pointer-events: none; background: radial-gradient(45% 50% at 50% 60%, rgb(10 132 255 / 0.18), transparent 70%); }
.download .mac { margin-bottom: clamp(32px, 5vw, 64px); }
.island { position: absolute; inset: 0; pointer-events: none; }
.island .shot { position: absolute; top: 0; left: 50%; width: calc(100% * var(--w) / 1512); max-width: none; transform: translateX(-50%); }

/* Footer. */
.footer { padding-block: 40px 56px; border-top: 1px solid var(--edge); background: var(--bg-2); color: var(--text-3); font-size: 13px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; font-weight: 600; }
.footer-brand:hover { text-decoration: none; }
.footer-brand img { width: 22px; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.footer-links a { color: var(--text-2); }
.legal { margin: 20px 0 0; line-height: 1.6; }
