/*
 * Lantern for Mac: the site. Tokens are the app's own (src/styles/tokens.css): ink and paper,
 * monochrome surfaces, colour only in the dither field and the agent glyphs.
 */

@font-face { font-family: 'Neue Montreal'; src: url('../fonts/ppneuemontreal-book.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Montreal'; src: url('../fonts/ppneuemontreal-medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Montreal'; src: url('../fonts/ppneuemontreal-bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Montreal'; src: url('../fonts/ppneuemontreal-italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neue Montreal'; src: url('../fonts/ppneuemontreal-thin.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #070708;
  --sheet: #0c0c0e;
  --panel: #121214;
  --panel-2: #18181b;
  --panel-3: #1f1f23;
  --fill-1: rgb(255 255 255 / 0.035);
  --fill-2: rgb(255 255 255 / 0.06);
  --fill-3: rgb(255 255 255 / 0.09);
  --fill-4: rgb(255 255 255 / 0.125);
  --line: rgb(255 255 255 / 0.06);
  --line-2: rgb(255 255 255 / 0.09);
  --line-3: rgb(255 255 255 / 0.15);
  --ov: 255 255 255;
  --text-rgb: 242 241 238;
  --bg-rgb: 7 7 8;
  --sheet-rgb: 12 12 14;
  --cmp-fill: #08080a;
  --accent-hover: #fff;
  --accent-press: #e4e2dd;
  --md-panel: #101012;
  --pill-1: #1a1a1e;
  --mark-0: #e8ebee;
  --mark-1: #b1b5b9;
  --mark-2: #777b7f;
  --mark-3: #4e5255;
  --mark-4: #2f3133;
  --cta-bg: #38383c;
  --cta-fg: #f2f1ee;
  --cta-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  --text: #f2f1ee;
  --text-2: #d6d4ce;
  --text-3: #a6a49e;
  --text-4: #85837c;
  --text-cap: #7a7975;
  --text-inverse: #0a0a0b;
  --amber: oklch(0.84 0.135 82);
  --red: oklch(0.71 0.175 24);
  --green: oklch(0.8 0.15 150);
  --ember: oklch(0.76 0.165 48);
  --add-bg: oklch(0.8 0.15 150 / 0.1);
  --del-bg: oklch(0.71 0.175 24 / 0.1);
  --focus: rgb(242 241 238 / 0.55);
  --shadow-pop: 0 12px 32px -12px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(0 0 0 / 0.35);
  --shadow-app: 0 40px 120px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.06);
  --glass: rgb(14 14 16 / 0.72);
  --dither-50: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 0h1v1h-1zM2 0h1v1h-1zM1 1h1v1h-1zM3 1h1v1h-1zM0 2h1v1h-1zM2 2h1v1h-1zM1 3h1v1h-1zM3 3h1v1h-1z'/%3E%3C/svg%3E");
  --dither-25: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 0h1v1h-1zM2 0h1v1h-1zM0 2h1v1h-1zM2 2h1v1h-1z'/%3E%3C/svg%3E");
  --dither-fade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 0h1v1h-1zM1 0h1v1h-1zM2 0h1v1h-1zM3 0h1v1h-1zM4 0h1v1h-1zM5 0h1v1h-1zM6 0h1v1h-1zM7 0h1v1h-1zM8 0h1v1h-1zM9 0h1v1h-1zM10 0h1v1h-1zM12 0h1v1h-1zM14 0h1v1h-1zM16 0h1v1h-1zM18 0h1v1h-1zM20 0h1v1h-1zM0 1h1v1h-1zM1 1h1v1h-1zM3 1h1v1h-1zM4 1h1v1h-1zM5 1h1v1h-1zM7 1h1v1h-1zM9 1h1v1h-1zM11 1h1v1h-1zM13 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM5 2h1v1h-1zM6 2h1v1h-1zM7 2h1v1h-1zM8 2h1v1h-1zM10 2h1v1h-1zM12 2h1v1h-1zM14 2h1v1h-1zM16 2h1v1h-1zM18 2h1v1h-1zM0 3h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM9 3h1v1h-1zM11 3h1v1h-1zM15 3h1v1h-1z'/%3E%3C/svg%3E");
  --dither-fade-size: 48px 8px;

  --font: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --d-1: 90ms;
  --d-2: 120ms;
  --d-3: 200ms;
  --d-4: 340ms;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 18px;
  --wrap: 1240px;
  --gutter: 32px;
  --nav-h: 64px;
  --cursor-hand: image-set(url('../img/cursor-hand.svg') 1x, url('../img/cursor-hand@2x.svg') 2x) 8 1, pointer;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #e6e3dd;
  --sheet: #eeebe5;
  --panel: #f4f2ed;
  --panel-2: #f8f6f2;
  --panel-3: #fbfaf7;
  --fill-1: rgb(38 32 24 / 0.04);
  --fill-2: rgb(38 32 24 / 0.065);
  --fill-3: rgb(38 32 24 / 0.095);
  --fill-4: rgb(38 32 24 / 0.13);
  --line: rgb(38 32 24 / 0.085);
  --line-2: rgb(38 32 24 / 0.12);
  --line-3: rgb(38 32 24 / 0.19);
  --ov: 38 32 24;
  --text-rgb: 28 27 25;
  --bg-rgb: 230 227 221;
  --sheet-rgb: 238 235 229;
  --cmp-fill: #fbfaf7;
  --accent-hover: #34322e;
  --accent-press: #46433e;
  --md-panel: #f6f4f0;
  --pill-1: #e9e6e0;
  --mark-0: #1f2022;
  --mark-1: #4b4e52;
  --mark-2: #7c7f84;
  --mark-3: #aaadb1;
  --mark-4: #cfd1d4;
  --cta-bg: #1f2022;
  --cta-fg: #fbfaf7;
  --text: #1c1b19;
  --text-2: #45433e;
  --text-3: #5a5750;
  --text-4: #6b675f;
  --text-inverse: #f4f2ee;
  --amber: oklch(0.64 0.15 72);
  --red: oklch(0.56 0.19 25);
  --green: oklch(0.56 0.14 150);
  --ember: oklch(0.62 0.17 45);
  --add-bg: oklch(0.56 0.14 150 / 0.1);
  --del-bg: oklch(0.56 0.19 25 / 0.09);
  --focus: rgb(28 27 25 / 0.45);
  --shadow-pop: 0 14px 34px -14px rgb(60 45 25 / 0.28), 0 0 0 1px rgb(60 45 25 / 0.07);
  --shadow-app: 0 40px 100px -40px rgb(60 45 25 / 0.45), 0 0 0 1px rgb(60 45 25 / 0.1);
  --glass: rgb(244 242 237 / 0.78);
  --dither-50: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%231c1b19' d='M0 0h1v1h-1zM2 0h1v1h-1zM1 1h1v1h-1zM3 1h1v1h-1zM0 2h1v1h-1zM2 2h1v1h-1zM1 3h1v1h-1zM3 3h1v1h-1z'/%3E%3C/svg%3E");
  --dither-25: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%231c1b19' d='M0 0h1v1h-1zM2 0h1v1h-1zM0 2h1v1h-1zM2 2h1v1h-1z'/%3E%3C/svg%3E");
  --dither-fade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%231c1b19' d='M0 0h1v1h-1zM1 0h1v1h-1zM2 0h1v1h-1zM3 0h1v1h-1zM4 0h1v1h-1zM5 0h1v1h-1zM6 0h1v1h-1zM7 0h1v1h-1zM8 0h1v1h-1zM9 0h1v1h-1zM10 0h1v1h-1zM12 0h1v1h-1zM14 0h1v1h-1zM16 0h1v1h-1zM18 0h1v1h-1zM20 0h1v1h-1zM0 1h1v1h-1zM1 1h1v1h-1zM3 1h1v1h-1zM4 1h1v1h-1zM5 1h1v1h-1zM7 1h1v1h-1zM9 1h1v1h-1zM11 1h1v1h-1zM13 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM5 2h1v1h-1zM6 2h1v1h-1zM7 2h1v1h-1zM8 2h1v1h-1zM10 2h1v1h-1zM12 2h1v1h-1zM14 2h1v1h-1zM16 2h1v1h-1zM18 2h1v1h-1zM0 3h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM9 3h1v1h-1zM11 3h1v1h-1zM15 3h1v1h-1z'/%3E%3C/svg%3E");
}

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: var(--nav-h); }
html.lenis, html.lenis body { height: auto; }
/* Lenis owns the scroll position; the browser's scroll anchoring nudging it as well makes them fight. */
html { overflow-anchor: none; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color var(--d-4) var(--ease), color var(--d-4) var(--ease);
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a, button, [role='radio'] { cursor: var(--cursor-hand); }
img, svg { display: block; }
.ic { width: 16px; height: 16px; fill: currentColor; flex: none; }
::selection { background: rgb(var(--text-rgb) / 0.2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--text); color: var(--text-inverse); font-weight: 500;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ── type ── */
.display {
  font-weight: 500;
  font-size: clamp(46px, 6.6vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.026em;
  text-wrap: balance;
}
.h2 {
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.037em;
  text-wrap: balance;
}
.h2.big { font-size: clamp(40px, 6vw, 88px); line-height: 0.95; }
.soft { color: var(--text-3); }
.lead { font-weight: 400; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--text-2); max-width: 36em; letter-spacing: -0.005em; }
.body { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 32em; }
.body.dim { color: var(--text-3); }
.meta { font-weight: 400; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-3); }
.meta .dot { width: 3px; height: 3px; background: currentColor; opacity: 0.6; }
.center { justify-content: center; text-align: center; margin-inline: auto; }
.link { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size var(--d-4) var(--ease-out), color var(--d-2); color: var(--text); padding-bottom: 1px; }
.link:hover { background-size: 100% 1px; }

/* ── the Lantern mark (built in JS as 15 tiles) and wordmark ── */
.mark { display: inline-block; width: 22px; height: 22px; flex: none; }
.mark svg { width: 100%; height: 100%; }
.mark rect { transition: opacity var(--d-3); }
.mark-lg { width: 56px; height: 56px; margin-bottom: 28px; }
/* The full logo (icon + wordmark), inlined so its tiles follow the theme and build on load. */
.logo { display: block; height: 26px; width: auto; aspect-ratio: 157 / 38; color: var(--text); }
.logo rect { shape-rendering: crispEdges; }
.brand:hover .logo rect[data-cell], .brand:focus-visible .logo rect[data-cell] { animation: tile-wave 1.4s var(--ease) infinite; animation-delay: calc(var(--d) * 90ms); }

/* ── nav ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color var(--d-4) var(--ease), box-shadow var(--d-4); }
.nav[data-scrolled] {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.nav-row { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; padding: 8px 0; color: var(--text); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-md); font-size: 16px; font-weight: 500; color: var(--text); transition: color var(--d-2), background-color var(--d-2); }
.nav-links a:hover { color: var(--text); background: var(--fill-2); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 12px; }

/* The app's theme switch (sidebar footer): sun and moon on a sliding dither pill. */
.theme-switch { position: relative; display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--fill-2); }
.theme-switch-pill { position: absolute; top: 2px; left: 2px; width: 34px; height: 32px; border-radius: 999px; transition: transform var(--d-4) var(--ease-out); }
:root[data-theme='dark'] .theme-switch-pill { transform: translateX(36px); }
.theme-switch-btn { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 32px; border-radius: 999px; color: var(--text-3); transition: color var(--d-2), scale var(--d-1) var(--ease-out); }
.theme-switch-btn .ic { width: 16px; height: 16px; transition: transform var(--d-4) var(--ease-out); }
.theme-switch-btn:hover, .theme-switch-btn[aria-checked='true'] { color: var(--text); }
.theme-switch-btn:hover .ic { transform: rotate(-14deg) scale(1.06); }
.theme-switch-btn:active { scale: 0.92; }
.dither-sel { background-color: var(--fill-4); overflow: hidden; }
.dither-sel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--dither-fade) left top / var(--dither-fade-size) repeat-y; image-rendering: pixelated; opacity: 0.08; pointer-events: none; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 30px; border-radius: var(--r-md);
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color var(--d-2) var(--ease), color var(--d-2), transform var(--d-1) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 36px; padding: 0 24px; font-size: 14.5px; }
.btn-primary { background: var(--text); color: var(--text-inverse); }
/* Dither on hover: a band of cells sweeps left to right, leaves an ordered-dither gradient settled at
   the right end, and a few of its cells keep blinking. Cells are built by ditherHover() in main.js. */
.btn-fx { position: relative; overflow: hidden; isolation: isolate; --fx-a: 0.16; }
:root[data-theme='light'] .btn-fx { --fx-a: 0.14; }
.btn-fx .fx-label, .btn-fx .dl-main, .btn-fx .dl-tag { position: relative; z-index: 1; }
.btn-fx .fx { position: absolute; inset: 0; z-index: 0; display: grid; gap: 1px; align-content: center; justify-content: start; padding-left: 1px; color: var(--text-inverse); pointer-events: none; opacity: 0; transition: opacity 220ms var(--ease); }
.btn-fx:hover .fx, .btn-fx:focus-visible .fx { opacity: 1; }
.btn-fx .fx i { width: 2px; height: 2px; background: currentColor; opacity: 0; }
.btn-fx .fx.go i { animation: fx-in 220ms linear both; animation-delay: calc(var(--x) * 5ms); }
.btn-fx .fx.go i.blink { animation: fx-in 220ms linear both, fx-blink var(--bdur) steps(1) infinite; animation-delay: calc(var(--x) * 5ms), var(--bd); }
@keyframes fx-in { 0% { opacity: 0; } 35% { opacity: 0.32; } 100% { opacity: calc(var(--on) * var(--fx-a)); } }
@keyframes fx-blink { 0%, 100% { opacity: var(--fx-a); } 50% { opacity: 0; } 75% { opacity: calc(var(--fx-a) * 1.5); } }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--fill-3); }
/* A ghost button's dither is drawn in the text colour: its fill is light-on-light, not ink. */
:root[data-theme] .btn-ghost.btn-fx { --fx-a: 0.26; }
.btn-ghost.btn-fx .fx { color: var(--text); }

/* The download button: one action and its platform, side by side. */
.dl {
  display: inline-flex; align-items: stretch; height: 52px; border-radius: var(--r-lg);
  background: var(--text); color: var(--text-inverse); overflow: hidden; position: relative;
  transition: background-color var(--d-2) var(--ease), transform var(--d-2) var(--ease-out);
}
.dl:hover { background: var(--accent-hover); transform: translateY(-1px); }
.dl:active { transform: scale(0.98); }
.dl-main { display: inline-flex; align-items: center; gap: 10px; padding: 0 18px 0 16px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.dl-main .ic { width: 18px; height: 18px; transition: transform var(--d-4) var(--ease-out); }
.dl:hover .dl-main .ic { transform: translateY(2px); }
.dl-tag { display: inline-flex; align-items: center; padding: 0 16px; font-size: 14px; opacity: 0.62; box-shadow: inset 1px 0 0 rgb(var(--bg-rgb) / 0.16); position: relative; }
.dl-tag::before { content: ''; position: absolute; inset: 0; background: var(--dither-25) 0 0 / 4px 4px; image-rendering: pixelated; opacity: 0.06; filter: invert(1); }
:root[data-theme='light'] .dl-tag::before { filter: none; }
.dl-lg { height: 60px; }
.dl-lg .dl-main { font-size: 17px; padding: 0 22px 0 20px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ── sections ── */
.sec { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 56px) 0 96px; }
.sec-head { margin-bottom: 56px; max-width: 14em; }

/* ── hero ── */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(56px, 10vh, 120px)); overflow: clip; }
.hero-field { position: absolute; inset: 0 0 auto; height: min(1100px, 125vh); }
.hero-veil { position: absolute; inset: 0 0 auto; height: min(1100px, 125vh); pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(var(--bg-rgb) / 0.7), transparent 140px),
    radial-gradient(85% 70% at 18% 28%, rgb(var(--bg-rgb) / 0.92) 0%, rgb(var(--bg-rgb) / 0.7) 40%, transparent 75%),
    linear-gradient(to bottom, transparent 60%, var(--bg)); }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-copy .display { max-width: 11.5em; }
.hero-copy .cta-row { margin-top: 8px; }
.hero-app { position: relative; margin-top: clamp(64px, 10vh, 112px); padding-bottom: 120px; }
.hero-app .scaler { position: relative; z-index: 1; }
/* The agent tabs: six pills over the window, a small mark beside each name. The picked one is solid. */
.agent-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.atab {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 17px 0 13px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; color: var(--text-2); white-space: nowrap;
  background: rgb(var(--sheet-rgb) / 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -18px rgb(0 0 0 / 0.55);
  transition: background-color var(--d-2), color var(--d-2), box-shadow var(--d-2), transform var(--d-1) var(--ease-out);
}
.atab:hover { color: var(--text); background: rgb(var(--sheet-rgb) / 0.92); box-shadow: inset 0 0 0 1px var(--line-3), 0 12px 30px -18px rgb(0 0 0 / 0.55); }
.atab:active { transform: scale(0.97); }
.atab[aria-checked='true'] { color: var(--text-inverse); background: var(--text); box-shadow: 0 14px 30px -16px rgb(0 0 0 / 0.6); }
.brand-ic { display: block; flex: none; }
.brand-ic.in-tab { width: 17px; height: 17px; }
.brand-ic.mono { background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.atab .brand-ic.mono { color: var(--text); }
.atab[aria-checked='true'] .brand-ic.mono { color: var(--text-inverse); }
[data-tab='codex'] .mono { --src: url('../img/agents/openai.svg'); }
[data-tab='copilot'] .mono { --src: url('../img/agents/copilot.svg'); }
[data-tab='grok'] .mono { --src: url('../img/agents/grok.svg'); }

/* Entrance: a short rise and fade, once (data-enter). */
[data-enter] { animation: rise 900ms var(--ease-out) both; }
.hero-app[data-enter] { animation-delay: 160ms; animation-duration: 1200ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ── tech text: letters become dashed outlines under the cursor ── */
.tech { position: relative; -webkit-user-select: none; user-select: none; cursor: crosshair; }
.tech .w { display: inline-block; white-space: nowrap; }
.tech .ch { position: relative; display: inline-block; padding: 0.16em 0.07em; margin: -0.16em -0.07em; transition: color 160ms var(--ease); }
/* The padding is room for the dithered fill, which background-clip:text cuts to the box (Safari
   clips descenders and overhangs); the matching negative margins keep the letter spacing as it was. */
/* The light passing over the type, in Lantern's dither: square 2px cells, sparse then dense,
   in the backdrop's blue with its pale hot end (as the field ramps). */
:root { --tech-ink: hsl(204 59% 60%); --tech-hot: hsl(204 40% 88%); }
:root[data-theme='light'] { --tech-ink: hsl(204 59% 46%); --tech-hot: hsl(204 45% 72%); }
.tech .ch[data-lv] { -webkit-background-clip: text; background-clip: text; color: transparent; transition: none; }
.tech .ch[data-lv='1'] {
  background:
    conic-gradient(from 90deg at 2px 2px, transparent 75%, var(--tech-ink) 0) 0 0 / 4px 4px,
    linear-gradient(rgb(var(--text-rgb) / 0.55), rgb(var(--text-rgb) / 0.55));
  -webkit-background-clip: text; background-clip: text;
}
.tech .ch[data-lv='2'] {
  background:
    repeating-conic-gradient(var(--tech-hot) 0 25%, var(--tech-ink) 0 50%) 0 0 / 4px 4px;
  -webkit-background-clip: text; background-clip: text;
}
.tech .ch svg.vec { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; }
.tech .ch svg.vec text { font: inherit; letter-spacing: 0; fill: none; stroke: var(--text); stroke-width: 1px; stroke-dasharray: 3 2.4; vector-effect: non-scaling-stroke; }
.tech .ch::before, .tech .ch::after { content: ''; position: absolute; pointer-events: none; opacity: 0; transition: opacity 160ms var(--ease); }
.tech .ch::after { inset: calc(0.06em + 0.16em) calc(-0.02em + 0.07em) calc(0.02em + 0.16em); outline: 1px dashed rgb(var(--text-rgb) / 0.45); }
.tech .ch::before {
  inset: calc(0.06em + 0.16em - 3px) calc(-0.02em + 0.07em - 3px) calc(0.02em + 0.16em - 3px);
  background:
    linear-gradient(var(--text), var(--text)) left top / 5px 5px no-repeat,
    linear-gradient(var(--text), var(--text)) right top / 5px 5px no-repeat,
    linear-gradient(var(--text), var(--text)) left bottom / 5px 5px no-repeat,
    linear-gradient(var(--text), var(--text)) right bottom / 5px 5px no-repeat;
}
.tech .ch[data-lv='3'] { background: none; }
.tech .ch[data-lv='3'] svg.vec { opacity: 1; }
.tech .ch[data-lv='3']::before, .tech .ch[data-lv='3']::after { opacity: 1; }
.tech-label {
  position: absolute; z-index: 2; pointer-events: none;
  font: 500 11px/1 var(--mono); letter-spacing: 0; color: var(--text-inverse);
  background: var(--text); padding: 4px 6px; border-radius: 4px; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity 140ms var(--ease);
}
.tech-label.on { opacity: 1; }

/* ── scaled UI mocks: designed at a fixed size, scaled to their frame ── */
.scaler { position: relative; width: 100%; }
.scaler > * { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* ── the app mock ── */
.app {
  width: 1240px; height: 760px; display: grid; grid-template-columns: 236px 1fr 344px;
  background: var(--bg); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-app);
  font-size: 13px; line-height: 1.45; color: var(--text); letter-spacing: 0;
}
.app .ic { width: 14px; height: 14px; }
.app-side { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 10px; }
.traffic { display: flex; gap: 8px; padding: 4px 6px 14px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; background: var(--fill-4); }
.cta-slab { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--cta-bg) var(--cta-grain); color: var(--cta-fg); font-weight: 500; margin-bottom: 14px; }
.cta-slab .kbd { margin-left: auto; font-size: 11.5px; opacity: 0.55; }
.side-group { display: flex; flex-direction: column; gap: 1px; margin-bottom: 12px; }
.side-folder { display: flex; align-items: center; gap: 8px; padding: 6px 8px; color: var(--text-3); font-weight: 500; }
.side-row { position: relative; display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px 0 10px; border-radius: 8px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-row.is-on { background: var(--fill-2); color: var(--text); }
.sdot { width: 12px; height: 12px; flex: none; }
.sdot.amber::after { content: ''; display: block; width: 7px; height: 7px; margin: 2.5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px oklch(0.84 0.135 82 / 0.16); }
.ring { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1.5px solid rgb(var(--text-rgb) / 0.16); border-top-color: var(--text); animation: spin 0.9s linear infinite; }
.ring.idle { animation: none; border-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 2px; border-top: 1px solid var(--line); }
.acct { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.meter { position: relative; width: 38px; height: 4px; border-radius: 2px; background: var(--fill-3); overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--text-2); transition: width 900ms var(--ease-out), background-color var(--d-3); }
.meter-fill::after { content: ''; position: absolute; inset: 0; background: var(--dither-50) 0 0 / 2px 2px; image-rendering: pixelated; opacity: 0.35; }
.meter-fill[data-level='high'] { background: var(--amber); }
.meter-fill[data-level='full'] { background: var(--red); }
.mini-switch { position: relative; display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--fill-1); color: var(--text-3); }
.mini-switch .ic { width: 22px; height: 20px; padding: 3px 4px; position: relative; z-index: 1; }
.mini-switch .ic.on { color: var(--text); }
.mini-switch .dither-sel { position: absolute; top: 2px; left: 26px; width: 22px; height: 20px; border-radius: 999px; }
:root[data-theme='light'] .mini-switch .dither-sel { left: 2px; }
:root[data-theme='light'] .mini-switch .ic { color: var(--text-3); }
:root[data-theme='light'] .mini-switch .ic:first-of-type { color: var(--text); }

.app-stage { position: relative; margin: 8px 0 8px; background: var(--sheet); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
/* The horizon crests at 47% of this band (HORIZON_APEX), so a 320px band crests just above the composer and sinks behind it, as in the app. */
.stage-field { position: absolute; inset: auto 0 0; height: 320px; }
.stage-head { position: relative; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.stage-head .title { font-weight: 500; }
.chip { padding: 2px 8px; border-radius: 999px; background: var(--fill-2); color: var(--text-3); font-size: 12px; }
.timeline { position: relative; flex: 1; width: 540px; margin: 0 auto; padding: 26px 0 150px; display: flex; flex-direction: column; gap: 18px; }
.bubble { align-self: flex-end; max-width: 400px; padding: 9px 14px; border-radius: 14px 14px 4px 14px; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 13.5px; }
.turn { display: flex; flex-direction: column; gap: 10px; }
.live { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.live [data-live-text] { background: linear-gradient(90deg, var(--text-3) 0%, var(--text) 40%, var(--text-3) 80%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.trail { display: flex; flex-direction: column; gap: 2px; padding-left: 2px; }
.trail li { display: flex; align-items: center; gap: 10px; height: 26px; color: var(--text-2); animation: step-in 360ms var(--ease-out) both; }
.trail li .ic { color: var(--text-3); }
.trail li code { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.trail li .add { color: var(--green); font-variant-numeric: tabular-nums; }
.trail li .del { color: var(--red); font-variant-numeric: tabular-nums; }
.trail li .out { color: var(--text-3); }
@keyframes step-in { from { opacity: 0; transform: translateY(4px); } }
.summary { display: none; align-items: center; gap: 9px; color: var(--text-2); }
.summary .ic { color: var(--text-3); }
.summary .sep { width: 3px; height: 3px; background: var(--text-4); }
.files { padding: 1px 7px; border-radius: 6px; background: var(--fill-2); font-size: 12px; color: var(--text-2); }
.answer { display: none; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.6; color: var(--text); }
.answer p { min-height: 4.8em; }
.answer .md-caret { display: inline-block; width: 0; height: 1em; box-shadow: 0 0 0 0.6px var(--text); vertical-align: -0.12em; margin-left: 1px; }
.cost { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(4px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.cost.on { opacity: 1; transform: none; }
.cost .ic { width: 14px; height: 14px; margin-left: 6px; }
.widget { padding: 14px 16px 12px; border-radius: 12px; background: var(--md-panel); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(6px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.widget.on { opacity: 1; transform: none; }
.widget-head { font-size: 12.5px; color: var(--text-2); margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; }
.bars span { position: relative; flex: 1; height: 100%; }
.bars span::before { content: ''; position: absolute; inset: auto 0 18px; height: calc((100% - 18px) * var(--v) * var(--grow, 0)); min-height: 3px; border-radius: 3px 3px 0 0; background: var(--agent-ink, var(--ember)); transition: height 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.bars span::after { content: ''; position: absolute; inset: auto 0 18px; height: calc((100% - 18px) * var(--v) * var(--grow, 0)); min-height: 3px; background: var(--dither-50) 0 0 / 4px 4px; image-rendering: pixelated; opacity: 0.18; transition: height 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.bars b { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-weight: 400; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.widget.on .bars { --grow: 1; }

/* The composer, as the app draws it (composer.css): one slab, 9/11/10 padding, a 28px toolbar. */
.composer {
  position: absolute; left: 50%; bottom: 20px; width: 624px; transform: translateX(-50%);
  padding: 9px 11px 10px; border-radius: 20px; background: var(--cmp-fill);
  box-shadow: 0 0 0 1px rgb(var(--ov) / 0.05), 0 18px 44px -20px rgb(0 0 0 / 0.8);
  /* The selected effort level: an ivory pill on dark, an ink pill with grain on paper (the app's --sel-*). */
  --sel-bg: #e9e7e2; --sel-fg: #1c1b19; --sel-grain: none;
}
:root[data-theme='light'] .composer { --sel-bg: var(--cta-bg); --sel-fg: var(--cta-fg); --sel-grain: var(--cta-grain); box-shadow: 0 0 0 1px rgb(var(--ov) / 0.06), 0 18px 40px -22px rgb(60 45 25 / 0.45); }
.cmp-text { position: relative; min-height: 32px; padding: 5px 3px; font-size: 14px; line-height: 22px; color: var(--text); }
.cmp-text .ph { position: absolute; left: 3px; top: 5px; color: var(--text-4); }
.cmp-text.has .ph { display: none; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; vertical-align: -0.15em; background: var(--text); animation: blink 1s steps(1) infinite; margin-left: 1px; }
.cmp-text:not(.typing) .caret { opacity: 0; animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.cmp-bar { display: flex; align-items: center; gap: 8px; height: 28px; margin-top: 10px; }
.cmp-side { display: flex; align-items: center; gap: 4px; min-width: 0; height: 28px; }
.cmp-right { gap: 2px; margin-left: auto; }
.cmp-attach { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 2px; border-radius: 50%; color: var(--text-2); background: var(--fill-2); flex: none; }
.cmp-plus path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tb-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 9px; border-radius: 999px; font-size: 13px; white-space: nowrap; color: var(--text-2); }
.tb-chip svg { flex: none; color: var(--text-3); }
.cm-mode { color: var(--text); font-weight: 500; background: var(--fill-2); }
.cm-mode svg { color: var(--text-2); }
.cm-model { gap: 5px; padding: 0 8px 0 10px; }
.cm-model-name { color: var(--text); }
.cm-model .cm-caret { width: 11px; height: 11px; opacity: 0.7; color: var(--text-2); }
.th-inline { display: inline-flex; align-items: center; gap: 1px; height: 28px; padding: 2px; border-radius: 999px; background: var(--fill-1); flex: none; }
.th-inline[hidden] { display: none; }
.th-lv { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.th-lv.on { color: var(--sel-fg); background-color: var(--sel-bg); background-image: var(--sel-grain); background-size: 120px 120px; }
.th-lv-uc { width: 26px; padding: 0; justify-content: center; }
.ux-mark { display: block; color: var(--text); overflow: visible; }
.ux-mark path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ux-mark .ux-m2 { opacity: 0.55; }
/* Send: a dim glyph in a faint ring with nothing to send; a solid disc once there is. */
.cmp-send { display: grid; place-items: center; width: 28px; height: 28px; margin-left: 4px; border-radius: 50%; flex: none; color: var(--text-4); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color var(--d-1), color var(--d-1), box-shadow var(--d-1), scale 80ms var(--ease-out); }
.cmp-send path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cmp-send.ready { color: var(--text-inverse); background: var(--text); box-shadow: none; }
.cmp-send.press { scale: 0.94; }

/* The sidebar's sessions: each row carries its agent's mark; working or waiting takes its place. */
.side-list { display: flex; flex-direction: column; min-height: 0; }
button.side-row { width: 100%; text-align: left; transition: background-color var(--d-1), color var(--d-1); }
button.side-row:hover { background: var(--fill-1); color: var(--text); }
button.side-row.is-on { background: var(--fill-2); color: var(--text); }
.side-row[hidden] { display: none; }
.srow-mark { display: grid; place-items: center; width: 13px; height: 13px; flex: none; }
.srow-mark .tiles { grid-template-columns: repeat(5, 2px); grid-template-rows: repeat(5, 2px); }
.srow-mark .sdot { width: 12px; height: 12px; }
.srow-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cta-slab { transition: transform var(--d-1) var(--ease-out); }
.cta-slab.hover { transform: scale(0.98); }

/* New session: the home screen inside the window. */
.app-stage[data-view='home'] .stage-head,
.app-stage[data-view='home'] .timeline,
.app-stage[data-view='home'] .composer.dock { visibility: hidden; }
.home-view { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; }
.home-view[hidden] { display: none; }
.home-center { position: relative; width: 600px; display: flex; flex-direction: column; align-items: center; padding-bottom: 70px; }
.home-mark { width: 40px; height: 40px; }
.home-title { margin: 18px 0 26px; font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.app .composer.at-home { position: relative; left: auto; bottom: auto; width: 100%; transform: none; }
.home-chips { position: relative; align-self: flex-start; display: flex; align-items: center; gap: 2px; margin-top: 10px; padding: 0 4px; }
.hc { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px 0 8px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: background-color var(--d-1), color var(--d-1); }
.hc.hover, .hc.open { color: var(--text); background: var(--fill-2); }
.hc .hc-icon { color: var(--text-3); }
.hc-caret { flex: none; color: var(--text-3); opacity: 0.7; margin-left: -1px; fill: currentColor; }
.hc-menu { position: absolute; left: 4px; top: 36px; z-index: 4; width: 248px; padding: 4px; border-radius: 16px; transform-origin: 20px 0; }
.hc-row { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 8px; border-radius: 10px; color: var(--text); transition: background-color 90ms; }
.hc-row.hover { background: var(--fill-2); }
.hc-name { flex: 1; }
.hc-check { display: grid; place-items: center; width: 14px; color: var(--text); opacity: 0; }
.hc-row.on .hc-check { opacity: 1; }

/* The side panel's changes, for the session in view. */
.rail-body { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.rf-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-empty { margin: 0; padding: 6px 2px; color: var(--text-3); font-size: 12.5px; }
.perm-actions .mbtn { font-weight: 500; }
.perm-actions .mbtn:hover { background: var(--fill-3); }
.perm-actions .mbtn.primary:hover { background: var(--accent-hover); }
.perm-actions .mbtn:active { transform: scale(0.97); }

.app-rail { background: var(--bg); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid transparent; }
.rail-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--fill-1); margin-bottom: 6px; }
.rail-tabs span { flex: 1; text-align: center; padding: 5px 0; border-radius: 7px; color: var(--text-3); font-size: 12.5px; }
.rail-tabs span.on { background: var(--fill-3); color: var(--text); }
.rail-file { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 12.5px; }
.rail-file .ic { color: var(--text-3); }
.rail-file .add { margin-left: auto; color: var(--green); }
.rail-file .del { color: var(--red); }
.diff { margin: 0 0 6px; padding: 10px 0; border-radius: 10px; background: var(--md-panel); box-shadow: inset 0 0 0 1px var(--line); font: 11.5px/1.65 var(--mono); color: var(--text-2); overflow: hidden; white-space: pre; }
.diff { white-space: normal; }
.diff span { display: block; padding: 0 12px; white-space: pre; min-height: 1.65em; }
.diff .add { background: var(--add-bg); color: var(--text); }
.diff .add::first-letter { color: var(--green); }
.diff .del { background: var(--del-bg); color: var(--text-2); }
.diff .del::first-letter { color: var(--red); }
.diff .ctx { color: var(--text-3); }
.diff.dim .add, .diff.dim .del { background: transparent; }

/* The working indicator: the Lantern mark's 15 tiles with a wave along the diagonal. */
.tiles { display: inline-grid; grid-template-columns: repeat(5, 3px); grid-template-rows: repeat(5, 3px); flex: none; }
.tiles i { background: var(--t); animation: tile-wave 1.4s var(--ease) infinite; animation-delay: calc(var(--d) * 90ms); }
.tiles.rest i { animation: none; }
@keyframes tile-wave { 0%, 100% { opacity: 1; } 40% { opacity: 0.18; } }

.glyph-box { display: inline-grid; place-items: center; flex: none; }

/* ── agents ── */
.agents { overflow: clip; }
.agents-field { position: absolute; inset: 0; }
.agents::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg), transparent 30%, transparent 70%, var(--bg)); pointer-events: none; z-index: 1; }
/* Stacked and centred: the heading, the three points as cards in one container, then the sessions panel
   at the same width. */
.agents-grid { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.agents-copy { display: flex; flex-direction: column; align-items: center; gap: 44px; width: 100%; max-width: 1080px; }
.agents-copy .h2 { max-width: none; text-align: center; text-wrap: balance; }
.agent-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; padding: 6px; border-radius: 22px;
  background: rgb(var(--sheet-rgb) / 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -40px rgb(0 0 0 / 0.7);
}
:root[data-theme='light'] .agent-points { box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 70px -40px rgb(60 45 25 / 0.35); }
.agent-points li { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 22px; border-radius: 16px; background: rgb(var(--ov) / 0.02); box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px; line-height: 1.5; color: var(--text-3); }
.agent-points strong { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.agent-points .pt { width: 6px; height: 6px; background: var(--text); margin: 0 6px 6px 0; box-shadow: 6px 0 0 rgb(var(--text-rgb) / 0.35), 0 6px 0 rgb(var(--text-rgb) / 0.35); }
.agents-h { max-width: none; text-align: center; text-wrap: balance; margin-bottom: 24px; }

/* Three feature cards, each with its own small scene on top. */
.fcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1180px; }
.fcard {
  position: relative; display: flex; flex-direction: column; border-radius: 24px; padding: 8px;
  background: rgb(var(--sheet-rgb) / 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -40px rgb(0 0 0 / 0.7);
}
:root[data-theme='light'] .fcard { box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 70px -40px rgb(60 45 25 / 0.35); }
.fc-stage { position: relative; height: 300px; border-radius: 17px; overflow: hidden; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.45; color: var(--text); }
.fc-stage .ic { width: 14px; height: 14px; }
.fc-replay {
  position: absolute; top: 254px; right: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px;
  border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text-2); background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--d-1), color var(--d-1), transform var(--d-1) var(--ease-out);
}
.fc-replay .ic { width: 13px; height: 13px; }
.fc-replay:hover { color: var(--text); background: var(--fill-3); }
.fc-replay:hover .ic { transform: rotate(-40deg); transition: transform 300ms var(--ease-out); }
.fc-replay:active { transform: scale(0.96); }
.fc-replay[hidden] { display: none; }
.fc-copy { display: flex; flex-direction: column; gap: 10px; padding: 22px 18px 22px; }
.fc-title { margin: 0; font-size: 23px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.fc-text { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--text-3); text-wrap: pretty; }

/* 1 · One setup: the agent picker and the file that agent reads. */
.s1 { position: absolute; inset: 0 0 46px; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; }
.s1-seg { position: relative; display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 10px; background: var(--fill-1); }
.s1-pill { position: absolute; left: 3px; top: 3px; width: 38px; height: 30px; border-radius: 7px; background: var(--fill-3); transition: transform 420ms cubic-bezier(.16,1,.3,1); }
.s1-opt { position: relative; display: grid; place-items: center; width: 38px; height: 30px; opacity: 0.55; transition: opacity var(--d-2); }
.s1-opt.on { opacity: 1; }
.s1-who { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-3); white-space: nowrap; }
.s1-who > span { display: inline-block; }
.s1-file { padding: 2px 7px; border-radius: 6px; background: var(--fill-2); font: 12px/1.4 var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.s1-text { flex: 1; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--md-panel); box-shadow: inset 0 0 0 1px var(--line); font: 12px/1.7 var(--mono); color: var(--text-2); white-space: pre-wrap; }

/* 2 · Learn it once: one approval card, whichever agent asks. */
.s2 { position: absolute; left: 18px; right: 18px; top: calc(50% - 23px); transform: translateY(-50%); border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-pop); padding: 12px 0; }
.s2-head { display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; }
.s2-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.s2-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--amber); transition: opacity var(--d-3); }
.s2-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s2-title { display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; color: var(--text-2); }
.s2-title .ic { color: var(--text-3); }
.s2-diff { margin: 0 14px; font-size: 11px; }
.s2-acts { display: flex; gap: 8px; padding: 12px 14px 0; min-height: 42px; align-items: center; }
.s2-done { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-weight: 500; }
.s2-done .ic { color: var(--green); }

/* 3 · Out of quota: the account fills up, and the conversation carries on under the other one. */
.s3 { position: absolute; inset: 0 0 46px; display: flex; flex-direction: column; gap: 16px; padding: 18px 18px; }
.s3-head { position: relative; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.s3-title { min-width: 0; flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3-acct { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; color: var(--text-2); transition: background-color var(--d-1); white-space: nowrap; }
.s3-acct b { font-weight: 500; color: var(--text); display: inline-block; }
.s3-acct.open { background: var(--fill-2); }
.s3-acct .meter { width: 30px; }
.s3-menu { position: absolute; right: 0; top: 38px; z-index: 3; width: 168px; padding: 4px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-pop); opacity: 0; transform: translateY(-4px); transition: opacity 140ms, transform 160ms var(--ease-out); pointer-events: none; }
.s3-menu.open { opacity: 1; transform: none; }
.s3-menu-label { padding: 4px 8px 4px; font-size: 12px; color: var(--text-3); }
.s3-menu-row { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 8px; border-radius: 8px; transition: background-color 90ms; }
.s3-menu-row .meter { width: 30px; }
.s3-menu-row.hover { background: var(--fill-2); }
.s3-live { min-height: 22px; }
.s3-stopped { color: var(--text-3); font-weight: 500; }
.s3-lim { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0; transform: translateY(8px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.s3-lim.on { opacity: 1; transform: none; }
.s3-lim > .ic { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--amber); transition: color var(--d-3); }
.s3-lim.done > .ic { color: var(--text-3); }
.s3-lim-text { font-weight: 500; }
.s3-lim-detail { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--text-3); }
.s3-lim-detail .ic { width: 13px; height: 13px; color: var(--green); }

@media (max-width: 1000px) {
  .fcards { grid-template-columns: 1fr; max-width: 560px; }
}
@keyframes glyph-build { from { opacity: 0; } }

/* ── the paired demos (looping UI, captions under) ── */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.demo { display: flex; flex-direction: column; gap: 24px; }
.demo-frame { padding: 10px; border-radius: 22px; background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--line); transition: transform var(--d-3) var(--ease-out); }
.demo-frame .scaler { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.cap { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35; letter-spacing: -0.012em; color: var(--text-cap, var(--text-3)); max-width: 25em; }
:root[data-theme='light'] .cap { color: var(--text-3); }
.cap strong { font-weight: 500; color: var(--text); }

.mini { width: 560px; height: 400px; background: var(--sheet); font-size: 13.5px; line-height: 1.45; color: var(--text); overflow: hidden; }
.mini .ic { width: 14px; height: 14px; }
.mini-head { position: relative; z-index: 2; background: var(--sheet); display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mini-head .chip { margin-left: auto; }
.mini-body { padding: 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.mini .bubble { font-size: 13px; }
.cursor { position: absolute; left: 0; top: 0; z-index: 9; width: 22px; height: 22px; pointer-events: none; transition: transform 700ms var(--ease-out), opacity 300ms; opacity: 0; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); }
.cursor svg { width: 100%; height: 100%; fill: var(--text); stroke: var(--sheet); stroke-width: 1.4px; }
.cursor.on { opacity: 1; }
.cursor.down svg { transform: scale(0.86); transform-origin: 5px 3px; transition: transform 90ms; }
.click-ring { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgb(var(--text-rgb) / 0.6); animation: ring-out 520ms var(--ease-out) forwards; pointer-events: none; z-index: 8; }
@keyframes ring-out { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.perm { border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-pop); overflow: hidden; transition: opacity 300ms, transform 300ms var(--ease-out); }
.perm-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; font-weight: 500; }
.perm-head .tag { margin-left: auto; color: var(--amber); font-weight: 400; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.perm-head .tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.perm .diff { margin: 0 14px; }
.perm-actions { display: flex; gap: 8px; padding: 12px 14px; }
.mbtn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--text); transition: background-color var(--d-2), transform var(--d-1); }
.mbtn.primary { background: var(--text); color: var(--text-inverse); box-shadow: none; }
.mbtn.press { transform: scale(0.95); }
.mbtn.hover { background: var(--fill-3); }
.mbtn.primary.hover { background: var(--accent-hover); }
.kbd-hint { margin-left: auto; align-self: center; color: var(--text-4); font-size: 11.5px; }

.pop { position: absolute; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-pop); padding: 6px; transition: opacity 220ms var(--ease), transform 220ms var(--ease-out); }
.pop.hide { opacity: 0; transform: translateY(6px) scale(0.98); pointer-events: none; }
.acc-row { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; }
.acc-row.on { background: var(--fill-2); }
.acc-row .who { display: flex; flex-direction: column; }
.acc-row .who small { color: var(--text-3); font-size: 12px; }
.acc-row .meter { width: 92px; height: 6px; border-radius: 3px; }
.acc-row .pct { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; width: 34px; text-align: right; }
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: opacity 300ms, transform 300ms var(--ease-out); }
.notice .dotr { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; box-shadow: 0 0 0 4px oklch(0.84 0.135 82 / 0.15); }
.notice p { flex: 1; color: var(--text-2); font-size: 13px; }
.notice p b { color: var(--text); font-weight: 500; }
.seg-mini { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--fill-2); }
.seg-mini span { padding: 4px 10px; border-radius: 6px; font-size: 12px; color: var(--text-3); transition: background-color var(--d-2), color var(--d-2); }
.seg-mini span.on { background: var(--fill-4); color: var(--text); }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: 74px 1fr 56px; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.hbar .track { height: 14px; border-radius: 3px; background: var(--fill-1); overflow: hidden; position: relative; }
.hbar .fillb { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100% * var(--grow, 0)); background: var(--ember); border-radius: 3px; transition: width 700ms var(--ease-out); }
.hbar .fillb::after { content: ''; position: absolute; inset: 0; background: var(--dither-50) 0 0 / 4px 4px; image-rendering: pixelated; opacity: 0.2; }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-3); }
.widget.on .hbars { --grow: 1; }

/* ── the side panel deck (the motion of Wispr Flow's testimonial deck) ── */
.fly { position: relative; padding-top: clamp(96px, 14vh, 160px); }
.fly-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.fly-head .body { text-align: center; }
.fly-track { position: relative; }
.fly-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.fly-field { position: absolute; inset: 0; }
.fly-field::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--bg), transparent 22%, transparent 78%, var(--bg)); }
.fly-cards { position: absolute; inset: 0; }
.pc {
  position: absolute; left: 50%; top: 50vh; height: 30rem; margin: 0;
  display: grid; gap: 14px; padding: 14px; border-radius: 26px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -40px rgb(0 0 0 / 0.8);
  transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform;
  color: var(--text);
}
:root[data-theme='light'] .pc { box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 70px -36px rgb(60 45 25 / 0.45); }
.pc.land { width: 46rem; max-width: 86vw; grid-template-columns: 0.82fr 1fr; }
.pc.sq { width: 26rem; max-width: 86vw; grid-template-rows: auto 1fr; }
.pc-copy { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 16px 18px; min-width: 0; }
.pc.sq .pc-copy { padding: 14px 12px 4px 12px; gap: 10px; }
.pc-tag { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-3); }
.pc-tag .ic { width: 14px; height: 14px; }
.pc-line { font-size: 30px; line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.pc.sq .pc-line { font-size: 23px; line-height: 1.12; letter-spacing: -0.022em; }
.pc-sub { margin-top: auto; font-size: 15px; color: var(--text-3); }
.pc-screen { position: relative; min-width: 0; min-height: 0; border-radius: 16px; overflow: hidden; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; padding: 22px; }
.pc-field { position: absolute; inset: 0; }
.pc-win {
  position: relative; width: 100%; max-width: 360px; padding: 14px; border-radius: 14px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -24px rgb(0 0 0 / 0.7);
  font-size: 13px; line-height: 1.45; color: var(--text);
}
:root[data-theme='light'] .pc-win { box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -24px rgb(60 45 25 / 0.45); }
.pc-win .ic { width: 14px; height: 14px; }
.fcard-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--text-2); font-weight: 500; }
.fcard-head .ic { color: var(--text-3); }
.pc-win .diff { margin: 0; }
.tree { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; }
.tree span { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; border-radius: 6px; color: var(--text-2); }
.tree span.on { background: var(--fill-2); color: var(--text); }
.tree .ind1 { padding-left: 26px; }
.tree .ind2 { padding-left: 44px; }
.tree .m { margin-left: auto; color: var(--amber); font-size: 11px; }
.tree .a { margin-left: auto; color: var(--green); font-size: 11px; }
.term { margin: 0; padding: 12px; border-radius: 10px; background: var(--md-panel); box-shadow: inset 0 0 0 1px var(--line); font: 11.5px/1.7 var(--mono); color: var(--text-2); white-space: pre; overflow: hidden; }
.term .ok { color: var(--green); }
.term .p { color: var(--text-3); }
.todo { display: flex; flex-direction: column; gap: 6px; }
.todo span { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.todo .box { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line-3); display: grid; place-items: center; }
.todo .done { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-4); }
.todo .done .box { background: var(--text-2); box-shadow: none; color: var(--panel); }
.todo .done .box .ic { width: 10px; height: 10px; }
.todo .doing .box { box-shadow: inset 0 0 0 1.5px var(--text); }
.browser { border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--md-panel); }
.browser .url { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 11.5px; color: var(--text-3); border-bottom: 1px solid var(--line); }
.browser .page { padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.browser .page i { display: block; height: 8px; border-radius: 3px; background: var(--fill-3); }
.browser .page i.t { width: 55%; height: 14px; background: var(--fill-4); }
.browser .page i.b { width: 30%; height: 22px; border-radius: 6px; background: var(--text-3); margin-top: 6px; }
.usage-bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; padding: 0 2px; }
.usage-bars i { flex: 1; height: calc(var(--v) * 100%); background: var(--text-3); border-radius: 2px 2px 0 0; position: relative; }
.usage-bars i:nth-last-child(1) { background: var(--text); }
.usage-legend { display: flex; justify-content: space-between; margin-top: 10px; color: var(--text-3); font-size: 12px; }
.hist { display: flex; flex-direction: column; gap: 2px; }
.hist span { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--text-2); }
.hist span.on { background: var(--fill-2); color: var(--text); }
.hist small { margin-left: auto; color: var(--text-4); font-size: 11.5px; }
.ctx-meter { height: 10px; border-radius: 5px; background: var(--fill-2); overflow: hidden; position: relative; margin: 6px 0 12px; }
.ctx-meter span { position: absolute; inset: 0 auto 0 0; width: 46%; background: var(--text-2); }
.ctx-meter span::after { content: ''; position: absolute; inset: 0; background: var(--dither-50) 0 0 / 2px 2px; image-rendering: pixelated; opacity: 0.4; }
.kv { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; padding: 3px 0; }
.kv b { color: var(--text-2); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ── the appearance panel ── */
.backdrop .bd-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.bd-copy { display: flex; flex-direction: column; gap: 22px; }
.appearance { border-radius: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -40px rgb(0 0 0 / 0.7); overflow: hidden; }
:root[data-theme='light'] .appearance { box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 70px -40px rgb(60 45 25 / 0.35); }
.ap-head { padding: 18px 22px 14px; font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.ap-preview { position: relative; margin: 0 16px; aspect-ratio: 16 / 6.4; border-radius: 14px; overflow: hidden; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); cursor: crosshair; }
.ap-field { position: absolute; inset: 0; }
.ap-ghost { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; pointer-events: none; }
.ap-side { background: rgb(var(--bg-rgb) / 0.9); padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 1px 0 0 var(--line); }
.ap-side i { display: block; height: 6px; border-radius: 3px; background: var(--fill-3); }
.ap-side i.short { width: 60%; }
.ap-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.ap-title { display: block; width: 26%; height: 9px; border-radius: 5px; background: var(--fill-4); }
.ap-cmp { display: block; width: 50%; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-3); background: rgb(var(--sheet-rgb) / 0.4); }
/* What the preview does, said the app's way: a composer-style send chip, and the app's hand
   cursor tapping the preview now and then (a real wave goes out) until you click it yourself. */
.ap-preview { cursor: pointer; }
.ap-chip {
  position: absolute; left: 12px; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 999px; font-size: 13px; color: var(--text); pointer-events: none;
  background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease-out);
}
.ap-send { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--text-inverse); }
.ap-send .ic { width: 12px; height: 12px; }
.ap-send::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgb(var(--text-rgb) / 0.5); animation: ap-ping 2.2s var(--ease-out) infinite; }
@keyframes ap-ping { 0% { box-shadow: 0 0 0 0 rgb(var(--text-rgb) / 0.5); } 70%, 100% { box-shadow: 0 0 0 9px rgb(var(--text-rgb) / 0); } }
.ap-preview.sent .ap-chip { opacity: 0; transform: translateY(-4px); transition-delay: 1100ms; }
.ap-hand {
  position: absolute; left: 0; top: 0; z-index: 4; width: 24px; height: 26px; margin: -1px 0 0 -10px; pointer-events: none;
  opacity: 0; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.35));
  transition: transform 850ms var(--ease-out), opacity 300ms var(--ease), scale 120ms var(--ease-out);
}
.ap-hand.press { scale: 0.86; }
.ap-preview:hover .ap-hand, .ap-preview.sent .ap-hand { opacity: 0 !important; }
.ap-ripple { position: absolute; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(var(--text-rgb) / 0.8); pointer-events: none; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; padding: 16px; }
.swatch { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; color: var(--text-3); font-size: 13.5px; transition: color var(--d-2); }
.swatch .sw { position: relative; aspect-ratio: 1.6; border-radius: 9px; overflow: hidden; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform var(--d-3) var(--ease-out), box-shadow var(--d-2); }
.swatch .sw > .dither { z-index: 0; }
.swatch:hover { color: var(--text-2); }
.swatch:hover .sw { transform: translateY(-2px); }
.swatch[aria-checked='true'] { color: var(--text); }
/* The try-it steps beside the panel: numbered rows that point right at it (down, once stacked). */
.bd-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; max-width: 26rem; }
.bd-step {
  position: relative; width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 16px 12px 12px; border-radius: 16px; text-align: left; color: var(--text);
  background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color var(--d-2), box-shadow var(--d-2), transform var(--d-1) var(--ease-out);
}
.bd-step:hover, .bd-step:focus-visible, .bd-step.lit { background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line-3); }
.bd-step:active { transform: scale(0.985); }
.bd-num {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; overflow: hidden;
  font: 500 14px/1 var(--mono); color: var(--text); background: var(--fill-3);
}
.bd-num::after { content: ''; position: absolute; inset: 0; background: var(--dither-50) 0 0 / 4px 4px; image-rendering: pixelated; opacity: 0; transition: opacity var(--d-3); }
:root[data-theme='light'] .bd-num::after { filter: invert(1); }
.bd-step:hover .bd-num::after, .bd-step.lit .bd-num::after { opacity: 0.16; }
.bd-step.done .bd-num { background: var(--text); color: var(--text-inverse); }
.bd-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bd-txt strong { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.bd-txt span { font-size: 14.5px; color: var(--text-3); }
.bd-arrow { width: 16px; height: 16px; color: var(--text-3); rotate: 90deg; transition: translate 380ms var(--ease-out), color var(--d-2); }
.bd-step:hover .bd-arrow, .bd-step.lit .bd-arrow { translate: 4px 0; color: var(--text); }
/* What each step points at, lit in the panel. */
.appearance.hint-look .swatch .sw { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 2px rgb(var(--text-rgb) / 0.35); }
.appearance.hint-look .swatch[aria-checked='true'] .sw { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 2px var(--text); }
.appearance.hint-look .swatches { animation: bd-pulse 1.4s var(--ease) infinite; }
.appearance .ap-preview { transition: box-shadow var(--d-3); }
.appearance.hint-wave .ap-preview { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--text); }
@keyframes bd-pulse { 50% { opacity: 0.82; } }
@media (max-width: 900px) { .bd-arrow { rotate: 180deg; } .bd-step:hover .bd-arrow, .bd-step.lit .bd-arrow { translate: 0 3px; } }
.swatch[aria-checked='true'] .sw { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 2px var(--text); }
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 15.5px; }
.seg { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; height: 34px; padding: 0 14px; border-radius: 8px; font-size: 15px; color: var(--text-3); transition: color var(--d-2), background-color var(--d-2), transform var(--d-1); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button:active { transform: scale(0.96); }
.seg button[aria-checked='true'] { color: var(--text); background: var(--fill-4); box-shadow: inset 0 0 0 1px var(--line); }
.seg .sw-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; border-radius: 2px; }

/* ── steps ── */

/* ── download ── */
.close { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: clip; padding: calc(var(--nav-h) + 40px) 0 80px; }
.close-field { position: absolute; inset: 0; }
.close-veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(48% 46% at 50% 50%, rgb(var(--bg-rgb) / 0.78), rgb(var(--bg-rgb) / 0.2) 70%, transparent), linear-gradient(to bottom, var(--bg), transparent 26%); }
.close-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.close-inner .display { max-width: 10em; }
.close-inner .lead { text-align: center; }
/* Setup as one row, joined by a dotted line through the numbers; step 2 is the download itself. */
.setup { position: relative; display: grid; grid-template-columns: 1fr 1.3fr 1fr 1fr; gap: 28px; width: 100%; max-width: 1080px; margin-top: 18px; }
.setup::before {
  content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 17px; height: 2px;
  background: radial-gradient(circle, rgb(var(--text-rgb) / 0.35) 1px, transparent 1.2px) 0 50% / 8px 2px repeat-x;
}
.su { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.su-num {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 11px;
  font: 500 14px/1 var(--mono); color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-3);
}
.su-num .ic { position: absolute; width: 16px; height: 16px; opacity: 0; }
.su strong { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.su > span:not(.su-num) { font-size: 15px; line-height: 1.4; color: var(--text-3); max-width: 15em; }
.su-dl .su-num { background: var(--text); color: var(--text-inverse); box-shadow: none; }
.su-dl .dl { margin-top: -4px; }
.su-dl [data-su-note] { transition: color var(--d-3); }
/* Once the download starts: step 2 ticks, and its note says what to do with the file. */
.setup.got .su-dl .su-num b { opacity: 0; }
.setup.got .su-dl .su-num .ic { opacity: 1; }
.setup.got .su-dl [data-su-note] { color: var(--text); }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-row { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text-2); }
.foot-legal { max-width: 34em; margin-top: 6px; font-size: 12px; line-height: 1.35; color: var(--text-4); text-align: right; }
.foot-start { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 50%; flex: 0 0 50%; }
/* The footer's Support link: a pill with an arrow that nudges out on hover. */
.support-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 13px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--text); background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color var(--d-2), box-shadow var(--d-2), transform var(--d-1) var(--ease-out);
}
.support-btn:hover { background: var(--fill-3); box-shadow: inset 0 0 0 1px var(--line-3); }
.support-btn:active { transform: scale(0.97); }
.support-btn .ic { width: 16px; height: 16px; color: var(--text-2); }
.support-btn .arrow { width: 13px; height: 13px; rotate: 45deg; transition: translate var(--d-3) var(--ease-out); }
.support-btn:hover .arrow { translate: 2px -2px; }
.support-btn .arrow.back { rotate: -90deg; }
.support-btn:hover .arrow.back { translate: -2px 0; }

/* ── support page ── */
.sup-hero { position: relative; padding: calc(var(--nav-h) + clamp(72px, 13vh, 150px)) 0 clamp(64px, 9vh, 104px); overflow: clip; }
.sup-field { position: absolute; inset: 0; }
.sup-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(var(--bg-rgb) / 0.7), transparent 140px), radial-gradient(80% 90% at 20% 40%, rgb(var(--bg-rgb) / 0.92), rgb(var(--bg-rgb) / 0.6) 45%, transparent 80%), linear-gradient(to bottom, transparent 55%, var(--bg)); }
.sup-head { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.sup-tag { font: 500 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.sup-head .lead { max-width: 34em; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.mail-btn {
  display: inline-flex; align-items: center; gap: 11px; height: 52px; padding: 0 22px 0 18px; border-radius: var(--r-lg);
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-inverse); background: var(--text);
  transition: background-color var(--d-2), transform var(--d-2) var(--ease-out);
}
.mail-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.mail-btn:active { transform: scale(0.98); }
.mail-btn .ic { width: 18px; height: 18px; }
.copy-btn { height: 52px; padding: 0 18px; }
.copy-btn .ic { width: 16px; height: 16px; }
.sup-faq { padding: 24px 0 clamp(72px, 10vh, 120px); }
.faq { display: flex; flex-direction: column; gap: 56px; }
.faq-group { max-width: 880px; }
.faq-label { margin-bottom: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.faq-q { border-bottom: 1px solid var(--line-2); }
.faq-q summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 500; letter-spacing: -0.012em; color: var(--text);
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary .ic { width: 16px; height: 16px; flex: none; color: var(--text-3); transition: rotate var(--d-3) var(--ease-out), color var(--d-2); }
.faq-q summary:hover .ic { color: var(--text); }
.faq-q[open] summary .ic { rotate: 45deg; }
.faq-a { padding: 0 40px 24px 0; font-size: 16.5px; line-height: 1.6; color: var(--text-2); max-width: 44em; }
.faq-a code { font: 14px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--fill-2); color: var(--text); }
.faq-a strong { font-weight: 500; color: var(--text); }
.sup-cta { padding: 0 0 clamp(80px, 12vh, 140px); }
.sup-card {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: clamp(40px, 6vw, 64px) 24px; border-radius: 24px; text-align: center;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2);
}
.sup-card .body { text-align: center; }
.sup-card .mail-btn { margin-top: 10px; }

/* ── the field (Lantern's DitherField host) ── */
.dither { position: absolute; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 900ms var(--ease); contain: strict; }
.dither[data-ready='true'] { opacity: var(--dither-opacity, 1); }
.dither canvas { display: block; image-rendering: pixelated; }
.dither[data-texture='ascii'] canvas, .dither[data-texture='halftone'] canvas, .dither[data-texture='soft'] canvas { image-rendering: auto; }

/* ── responsive ── */
@media (max-width: 1100px) {
  .backdrop .bd-grid { grid-template-columns: 1fr; gap: 40px; }
  .bd-copy .h2 { max-width: 12em; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .agent-points { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-row { grid-template-columns: 1fr auto; }
  .pair { grid-template-columns: 1fr; gap: 56px; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
  .setup { grid-template-columns: 1fr; max-width: 26rem; gap: 26px; }
  .setup::before { left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; background: radial-gradient(circle, rgb(var(--text-rgb) / 0.35) 1px, transparent 1.2px) 50% 0 / 2px 8px repeat-y; }
  .su { display: grid; grid-template-columns: 36px 1fr; column-gap: 18px; row-gap: 4px; align-items: center; text-align: left; justify-items: start; }
  .su-num { grid-row: span 2; margin: 0; align-self: start; }
  .su-dl .dl { margin: 0; }
  .foot-row { flex-direction: column; }
  .foot-start { width: auto; flex: none; }
  .foot-legal { text-align: left; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 58px; }
  body { font-size: 16px; }
  .hero-copy { gap: 22px; }
  .cta-row { width: 100%; }
  .cta-row .dl, .cta-row .btn { width: 100%; justify-content: space-between; }
  .cta-row .btn { justify-content: center; height: 48px; }
  .dl-main { flex: 1; justify-content: center; }
  .nav-end .btn { display: none; }
  .ap-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg button { height: 44px; padding: 0 12px; font-size: 14px; }
  .swatches { padding: 14px 12px; gap: 8px; }
  .swatch { font-size: 12px; min-height: 44px; }
  .ap-head { padding: 16px 16px 12px; }
  .ap-preview { margin: 0 12px; aspect-ratio: 4 / 3; }
  .ap-side { display: none; }
  .ap-ghost { grid-template-columns: 1fr; }
  .pc { height: auto; min-height: 27rem; }
  .pc.land { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pc.land .pc-copy { padding: 14px 12px 4px 12px; gap: 10px; }
  .pc.land .pc-sub { display: none; }
  .pc-line, .pc.sq .pc-line { font-size: 22px; }
  .pc-screen { padding: 14px; }
  .meta { flex-wrap: wrap; row-gap: 4px; }
  .theme-switch-btn { width: 40px; height: 40px; }
  .theme-switch-pill { width: 40px; height: 40px; }
  :root[data-theme='dark'] .theme-switch-pill { transform: translateX(42px); }
  .nav-links a, .link { min-height: 44px; }
  .foot-brand p { line-height: 2.75; }
  .app { width: 640px; grid-template-columns: 1fr; border-radius: 14px; }
  .app-side, .app-rail { display: none; }
  .app-stage { margin: 0; border-radius: 14px; }
  .timeline { width: 560px; }
  .composer { width: 596px; }
  .hero-app { padding-bottom: 72px; margin-top: 72px; }
  /* One row that scrolls sideways, fading at its edges. */
  .agent-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 18px; padding: 4px var(--gutter) 14px;
    -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
  .agent-tabs::-webkit-scrollbar { display: none; }
  .atab { height: 40px; font-size: 14px; }
  .hero-app { margin-top: 48px; }
}

/* ── Browser tab and Uplink: copy beside a wide card ── */
.split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 22px; }
.split-copy .h2 { margin: 0; }
.ticks { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.5; color: var(--text-3); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--text); box-shadow: 6px 0 0 rgb(var(--text-rgb) / 0.3); }
.ticks strong { font-weight: 500; color: var(--text); }
.up-cta { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.link-btn { font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; transition: color var(--d-1), text-decoration-color var(--d-1); }
.link-btn:hover { color: var(--text); text-decoration-color: currentColor; }
.up-price { margin: 0; font-size: 14.5px; color: var(--text-3); }
.fcard.wide .fc-stage { height: auto; padding-bottom: 48px; }
.fcard.wide .fc-stage .scaler { border-radius: 17px 17px 0 0; overflow: hidden; }
.fcard.wide .fc-replay { top: auto; bottom: 18px; right: 20px; }
.sc { width: 660px; height: 430px; font-size: 13px; line-height: 1.45; color: var(--text); }
.sc .ic { width: 14px; height: 14px; }

/* 4 · the Browser tab scene */
.b4 { position: absolute; inset: 0; display: grid; grid-template-columns: 286px 1fr; }
.b4-chat { display: flex; flex-direction: column; gap: 14px; padding: 22px 18px 18px 22px; min-width: 0; }
.b4-bubble { max-width: 240px; font-size: 13px; }
.b4-turn { display: flex; flex-direction: column; gap: 8px; }
.b4-trail li { height: auto; min-height: 24px; font-size: 12.5px; }
.b4-trail li code { font-size: 11px; }
.b4-sum { display: flex; font-size: 12.5px; }
.b4-ans { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--text); }
.b4-pane { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 14px 0; min-width: 0; }
.b4-pane .rail-tabs { margin: 0; }
.b4-url { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--fill-1); color: var(--text-2); font-size: 12.5px; }
.b4-url .ic { color: var(--text-3); }
.b4-page { position: relative; flex: 1; border-radius: 10px; overflow: hidden; background: #f4f1ec; box-shadow: inset 0 0 0 1px var(--line); }
.b4-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #6b675f; font-size: 12.5px; transition: opacity 240ms; }
.b4-site { position: absolute; inset: 0; padding: 12px 14px; color: #1c1b19; transition: opacity 320ms var(--ease-out); }
.b4-nav { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #77726a; }
.b4-nav b { margin-right: auto; color: #1c1b19; font-weight: 600; }
.b4-nav .on { color: #1c1b19; }
.b4-h { margin: 12px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.b4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.b4-grid i { aspect-ratio: 4 / 3; border-radius: 4px; background: #d9d5cd var(--img) center / cover no-repeat; transition: box-shadow 200ms; }
.b4-grid i.broken { background: repeating-linear-gradient(135deg, #e8e4dd 0 6px, #efebe5 6px 12px); box-shadow: inset 0 0 0 1px #cfc9bf; }
.b4-grid i.lit { box-shadow: inset 0 0 0 1px #cfc9bf, 0 0 0 2px var(--red); }
.b4-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.b4-console { display: flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--md-panel); box-shadow: inset 0 0 0 1px var(--line); font: 11.5px/1 var(--mono); }
.b4-dim { color: var(--text-4); font-family: var(--font-sans, inherit); }
.b4-err { color: var(--red); }
.b4-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.b4-ok .ic { width: 12px; height: 12px; color: var(--green); }

/* Lantern's deploy card (features/deploy), in the Uplink section's Lantern window */
.d5-card { border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-pop); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.d5-head { display: flex; align-items: center; gap: 12px; }
.d5-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--fill-2); color: var(--text-2); flex: none; }
.d5-mark.ok { color: var(--green); }
.d5-titles { min-width: 0; flex: 1; }
.d5-title { font-weight: 500; font-size: 14px; }
.d5-sub { color: var(--text-3); font-size: 12.5px; }
.d5-route { display: inline-flex; align-items: center; gap: 5px; }
.d5-route .ic { width: 12px; height: 12px; color: var(--text-4); }
.d5-proto { margin-left: 4px; padding: 0 6px; border-radius: 5px; background: var(--fill-2); font-size: 11px; }
.d5-counts { display: flex; gap: 16px; color: var(--text-3); font-size: 12.5px; }
.d5-counts b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.d5-files { margin: 0; padding: 6px 0; list-style: none; border-radius: 10px; background: var(--md-panel); box-shadow: inset 0 0 0 1px var(--line); }
.d5-files li { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 12px; font-size: 12.5px; color: var(--text); }
.d5-files i { width: 10px; font-style: normal; font-family: var(--mono); }
.d5-files li[data-s='new'] i { color: var(--green); }
.d5-files li[data-s='changed'] i { color: var(--amber); }
.d5-files em { font-style: normal; color: var(--text-3); margin-right: -8px; }
.d5-files span { margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; }
.d5-acts { display: flex; gap: 8px; }
.d5-acts .mbtn { gap: 7px; }
.d5-acts .mbtn.ghost { background: transparent; box-shadow: none; color: var(--text-2); }
.d5-acts .mbtn .ic { width: 13px; height: 13px; }
.d5-prog { display: flex; flex-direction: column; gap: 8px; }
.d5-prog-line { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.d5-shimmer { background: linear-gradient(90deg, var(--text-3) 0%, var(--text) 40%, var(--text-3) 80%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.2s linear infinite; }
.d5-dim { color: var(--text-3); font-variant-numeric: tabular-nums; }
.d5-meter { width: 100%; height: 5px; }
.d5-meter .meter-fill { transition: width 520ms var(--ease-out); }
.d5-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.d5-checks li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.d5-checks .ic { width: 13px; height: 13px; color: var(--green); }

/* How it works: a native dialog, frosted ink. A strip shows the shared first step, then the two ways side by side. */
.howto {
  width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 32px 32px 26px; border: 0; border-radius: 24px; color: var(--text);
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -30px rgb(0 0 0 / 0.7);
}
.howto::backdrop { background: rgb(0 0 0 / 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.howto[open] { animation: howto-in 260ms cubic-bezier(.16,1,.3,1); }
@keyframes howto-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
/* The parts rise in one after another, once, each time it opens. */
@keyframes howto-rise { from { opacity: 0; transform: translateY(8px); } }
.howto[open] .howto-flow, .howto[open] .howto-way, .howto[open] .howto-foot { animation: howto-rise 420ms var(--ease-out) both; }
.howto[open] .howto-flow { animation-delay: 70ms; }
.howto[open] .howto-way:nth-child(1) { animation-delay: 140ms; }
.howto[open] .howto-way:nth-child(2) { animation-delay: 200ms; }
.howto[open] .howto-foot { animation-delay: 270ms; }
.howto-head { display: flex; align-items: flex-start; gap: 16px; }
.howto-title { margin: 0; flex: 1; font-size: 28px; line-height: 1.12; font-weight: 500; letter-spacing: -0.025em; }
.howto-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--text-2); background: var(--fill-2); transition: background-color var(--d-1), color var(--d-1), transform var(--d-1) var(--ease-out); }
.howto-x:hover { color: var(--text); background: var(--fill-3); }
.howto-x:active { transform: scale(0.94); }
.howto-lead { margin: 12px 0 22px; font-size: 15.5px; line-height: 1.5; color: var(--text-3); max-width: 38em; text-wrap: pretty; }

/* The shared first step: project folder, Uplink, server folder, joined by dotted lines. */
.howto-flow {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 12px; margin: 0 0 14px; padding: 16px 20px; border-radius: 18px;
  background: rgb(var(--ov) / 0.03); box-shadow: inset 0 0 0 1px var(--line);
}
.hf-node { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px 0 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text); background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.hf-mid { color: var(--bg); background: var(--text); box-shadow: none; }
.hf-link { height: 2px; background: radial-gradient(circle, rgb(var(--text-rgb) / 0.35) 1px, transparent 1.2px) 0 50% / 8px 2px repeat-x; }

.howto-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.howto-way { padding: 22px 22px 20px; border-radius: 18px; background: rgb(var(--ov) / 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.hw-head { display: flex; align-items: flex-start; gap: 13px; min-height: 66px; margin-bottom: 18px; }
.hw-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: var(--text); background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); }
.hw-ic .ic { width: 17px; height: 17px; }
.howto-way h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.howto-when { margin: 3px 0 0; font-size: 14px; line-height: 1.4; color: var(--text-3); }
/* The steps hang on a dotted line through their numbers. */
.howto-way ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.howto-way li { counter-increment: step; position: relative; padding: 2px 0 0 40px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.howto-way li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.howto-way li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 32px; bottom: -8px; width: 2px; background: radial-gradient(circle, rgb(var(--text-rgb) / 0.35) 1px, transparent 1.2px) 50% 0 / 2px 8px repeat-y; }
.howto-foot { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 13px 18px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: var(--text-3); background: rgb(var(--ov) / 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.hf-lock { flex: none; color: var(--text-2); }

@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .howto { padding: 24px 18px 18px; }
  .howto-title { font-size: 24px; }
  .howto-ways { grid-template-columns: 1fr; }
  .hw-head { min-height: 0; }
  .howto-flow { grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 16px; }
  .hf-link { width: 2px; height: 16px; background: radial-gradient(circle, rgb(var(--text-rgb) / 0.35) 1px, transparent 1.2px) 50% 0 / 2px 8px repeat-y; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .fly-stage { position: relative; height: auto; overflow: visible; padding: 56px 0 120px; }
  .fly-field { display: none; }
  .fly-cards { position: relative; inset: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
  .pc, .pc.land, .pc.sq { position: relative; left: auto; top: auto; width: auto; max-width: none; height: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; transform: none !important; }
}

/* Sections hidden for now (their class sets display). */
.sec[hidden] { display: none; }

/* Customize: six more things you can change, three across under the backdrop panel. */
.bd-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; list-style: none; }
.bd-more li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: start; padding: 20px 22px; border-radius: 16px; background: rgb(var(--ov) / 0.02); box-shadow: inset 0 0 0 1px var(--line); }
.bd-more strong { grid-column: 2; font-size: 16.5px; font-weight: 500; line-height: 1.35; color: var(--text); }
.bd-more li > span:last-child { grid-column: 2; font-size: 15px; line-height: 1.45; color: var(--text-3); }
/* The icon sits on a small tile with a dithered corner, like the mark's cells. */
.bd-ic { grid-row: span 2; position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; overflow: hidden; color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.bd-ic::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgb(var(--text-rgb) / 0.22) 0.9px, transparent 1.1px); background-size: 4px 4px; -webkit-mask-image: linear-gradient(135deg, transparent 45%, #000 100%); mask-image: linear-gradient(135deg, transparent 45%, #000 100%); }
.bd-ic .ic { position: relative; width: 20px; height: 20px; }
@media (max-width: 1000px) { .bd-more { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bd-more { grid-template-columns: 1fr; margin-top: 40px; } }

/* Compare: a short table above the download, Lantern's column lifted one step. */
.vs { min-height: 0; padding-bottom: 40px; }
.vs-head { margin-bottom: 40px; }
.vs-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.vs-scroll:focus-visible { outline: 2px solid var(--text-3); outline-offset: 4px; border-radius: var(--r-lg); }
.vs-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.4; }
.vs-table th, .vs-table td { padding: 18px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-2); }
.vs-table thead th { padding-top: 22px; font-size: 16px; font-weight: 500; color: var(--text-2); }
.vs-table tbody th { width: 30%; font-weight: 400; color: var(--text); }
.vs-table tbody td { color: var(--text-3); }
.vs-table tbody tr:last-child > * { border-bottom: 0; }
.vs-table .vs-us { background: var(--panel); color: var(--text); box-shadow: inset 1px 0 0 var(--line-2), inset -1px 0 0 var(--line-2); }
.vs-table thead .vs-us { border-radius: 16px 16px 0 0; box-shadow: inset 1px 0 0 var(--line-2), inset -1px 0 0 var(--line-2), inset 0 1px 0 var(--line-2); font-weight: 600; color: var(--text); }
.vs-table tbody tr:last-child .vs-us { border-radius: 0 0 16px 16px; box-shadow: inset 1px 0 0 var(--line-2), inset -1px 0 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
.vs-table thead .vs-us .mark { display: inline-block; vertical-align: -2px; margin-right: 8px; }
.vs-table strong { font-weight: 600; color: var(--text); }
.vs-yes { width: 18px; height: 18px; color: var(--text); }
.vs-table td:not(.vs-us) .vs-yes { color: var(--text-3); }
.vs-no { color: var(--text-4, var(--text-3)); }
.vs-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

/* The footer stays ink in the light theme too: it wears the dark theme's tokens. */
:root[data-theme='light'] .foot {
  color-scheme: dark;
  --bg: #070708;
  --sheet: #0c0c0e;
  --panel: #121214;
  --panel-2: #18181b;
  --panel-3: #1f1f23;
  --fill-1: rgb(255 255 255 / 0.035);
  --fill-2: rgb(255 255 255 / 0.06);
  --fill-3: rgb(255 255 255 / 0.09);
  --fill-4: rgb(255 255 255 / 0.125);
  --line: rgb(255 255 255 / 0.06);
  --line-2: rgb(255 255 255 / 0.09);
  --line-3: rgb(255 255 255 / 0.15);
  --ov: 255 255 255;
  --text-rgb: 242 241 238;
  --bg-rgb: 7 7 8;
  --sheet-rgb: 12 12 14;
  --cmp-fill: #08080a;
  --accent-hover: #fff;
  --accent-press: #e4e2dd;
  --md-panel: #101012;
  --pill-1: #1a1a1e;
  --mark-0: #e8ebee;
  --mark-1: #b1b5b9;
  --mark-2: #777b7f;
  --mark-3: #4e5255;
  --mark-4: #2f3133;
  --cta-bg: #38383c;
  --cta-fg: #f2f1ee;
  --cta-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  --text: #f2f1ee;
  --text-2: #d6d4ce;
  --text-3: #a6a49e;
  --text-4: #85837c;
  --text-cap: #7a7975;
  --text-inverse: #0a0a0b;
  --amber: oklch(0.84 0.135 82);
  --red: oklch(0.71 0.175 24);
  --green: oklch(0.8 0.15 150);
  --ember: oklch(0.76 0.165 48);
  --add-bg: oklch(0.8 0.15 150 / 0.1);
  --del-bg: oklch(0.71 0.175 24 / 0.1);
  --focus: rgb(242 241 238 / 0.55);
  --shadow-pop: 0 12px 32px -12px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(0 0 0 / 0.35);
  --shadow-app: 0 40px 120px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.06);
  --glass: rgb(14 14 16 / 0.72);
  --dither-50: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 0h1v1h-1zM2 0h1v1h-1zM1 1h1v1h-1zM3 1h1v1h-1zM0 2h1v1h-1zM2 2h1v1h-1zM1 3h1v1h-1zM3 3h1v1h-1z'/%3E%3C/svg%3E");
  --dither-25: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 0h1v1h-1zM2 0h1v1h-1zM0 2h1v1h-1zM2 2h1v1h-1z'/%3E%3C/svg%3E");
  --dither-fade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 0h1v1h-1zM1 0h1v1h-1zM2 0h1v1h-1zM3 0h1v1h-1zM4 0h1v1h-1zM5 0h1v1h-1zM6 0h1v1h-1zM7 0h1v1h-1zM8 0h1v1h-1zM9 0h1v1h-1zM10 0h1v1h-1zM12 0h1v1h-1zM14 0h1v1h-1zM16 0h1v1h-1zM18 0h1v1h-1zM20 0h1v1h-1zM0 1h1v1h-1zM1 1h1v1h-1zM3 1h1v1h-1zM4 1h1v1h-1zM5 1h1v1h-1zM7 1h1v1h-1zM9 1h1v1h-1zM11 1h1v1h-1zM13 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM5 2h1v1h-1zM6 2h1v1h-1zM7 2h1v1h-1zM8 2h1v1h-1zM10 2h1v1h-1zM12 2h1v1h-1zM14 2h1v1h-1zM16 2h1v1h-1zM18 2h1v1h-1zM0 3h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM9 3h1v1h-1zM11 3h1v1h-1zM15 3h1v1h-1z'/%3E%3C/svg%3E");
  --dither-fade-size: 48px 8px;

  --font: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --d-1: 90ms;
  --d-2: 120ms;
  --d-3: 200ms;
  --d-4: 340ms;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 18px;
  --wrap: 1240px;
  --gutter: 32px;
  --nav-h: 64px;
  --cursor-hand: image-set(url('../img/cursor-hand.svg') 1x, url('../img/cursor-hand@2x.svg') 2x) 8 1, pointer;
  background: var(--bg);
  color: var(--text);
}
