/* NiceTerminal's website: tokens, the page, the shared header and footer, decorations, and
   the Changelog, Privacy, Install guide and 404 pages. The home page's sections are in
   home.css. Values come from the Claude Design canvas (NiceTerminal Site.dc.html); its
   light-dark() pairs are tokens here, because Safari before 17.5 ignores light-dark().
   Nothing is inline in the pages (the server's CSP is default-src 'self'). */

:root {
  color-scheme: light dark;
  --page: #fef9f6;
  --ink: #2a221e;
  --text: #3e3631;
  --text-2: #564e49;
  --muted: #736a64;
  --faint: #938a84;
  --faint-2: #b8afa9;
  --line: #ece2dc;
  --line-2: #ece2dc;
  --line-3: #d9cfc8;
  --line-4: #e3d7cf;
  --clay: #c96b46;
  --accent: #b4502f;
  --accent-hover: #9a4a2a;
  --on-accent: #fff9f3;
  --link: #9a4a2a;
  --prompt: #a4502e;
  --slate: #416e8d;
  --ok: #3f7a4a;
  --surface: #fef9f6;
  --term-bg: #fcf7f5;
  --term-fg: #342c27;
  --chrome: #f5ede8;
  --chip: #f2e8df;
  --chip-2: #f2e8df;
  --oat: #efe3cf;
  --oat-2: #efe3cf;
  --sand: #e3d0b0;
  --hover-fill: #e6d6bd;
  --mark: rgba(218, 135, 87, .34);
  --glow-clay: rgba(218, 135, 87, .17);
  --glow-slate: rgba(65, 110, 141, .10);
  --glow-oat: rgba(239, 227, 207, .95);
  --dots: rgba(86, 78, 73, .17);
  --header-bg: rgba(254, 249, 246, .88);
  --hairline: rgba(42, 34, 30, .1);
  --hairline-2: rgba(42, 34, 30, .1);
  --folder: #7aa3c2;
  --folder-tab: #5d89aa;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --gutter: clamp(20px, 5cqw, 64px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #19120e;
    --ink: #fef9f6;
    --text: #d9cfc8;
    --text-2: #b8afa9;
    --muted: #938a84;
    --faint: #736a64;
    --faint-2: #564e49;
    --line: #2a221e;
    --line-2: #3e3631;
    --line-3: #3e3631;
    --line-4: #3e3631;
    --clay: #d3754f;
    --accent: #d3754f;
    --accent-hover: #da8757;
    --on-accent: #19120e;
    --link: #d3754f;
    --prompt: #d3754f;
    --slate: #8fb1c9;
    --ok: #8cc497;
    --surface: #2a221e;
    --term-bg: #1e1712;
    --term-fg: #e5e0dd;
    --chrome: #261d18;
    --chip: #3e3631;
    --chip-2: #2a221e;
    --oat: #3e3631;
    --oat-2: #2a221e;
    --sand: #5a4a3e;
    --hover-fill: #3e3631;
    --mark: rgba(211, 117, 79, .34);
    --glow-clay: rgba(211, 117, 79, .12);
    --glow-slate: rgba(143, 177, 201, .08);
    --glow-oat: rgba(239, 227, 207, .05);
    --dots: rgba(239, 227, 207, .08);
    --header-bg: rgba(25, 18, 14, .88);
    --hairline: rgba(254, 249, 246, .08);
    --hairline-2: rgba(254, 249, 246, .12);
    --folder: #5f8db0;
    --folder-tab: #4f7c9c;
  }
}

/* The page ---------------------------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 68px; }
body { margin: 0; background: var(--page); }
.page {
  container-type: inline-size;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--page);
  background-image: radial-gradient(circle, var(--dots) 1px, transparent 1.5px);
  background-size: 24px 24px;
  background-position: 12px 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
a:hover { color: var(--ink); }
code, kbd, samp { font-family: var(--mono); }
img, svg { max-width: 100%; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 30;
  padding: 10px 14px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1312px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }

/* The wordmark: "Nice" heavy, "Terminal" medium, tracking −0.5. */
.wordmark { letter-spacing: -0.5px; line-height: 1; }
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 500; }

/* The app icon (NT Icon concept "a"): the tile sits inside the icon's box like a macOS icon. */
.nt-icon { display: block; flex: none; width: var(--s, 30px); height: var(--s, 30px); padding: calc(var(--s, 30px) * .0977); box-sizing: border-box; }
.nt-icon img { display: block; width: 100%; height: 100%; border-radius: 22.37%; }
.nt-icon.s30 { --s: 30px; }
.nt-icon.s40 { --s: 40px; }
.nt-icon.s52 { --s: 52px; }
.nt-icon.s64 { --s: 64px; }
.nt-icon.s30 img, .nt-icon.s40 img { box-shadow: 0 .5px 1.5px rgba(0, 0, 0, .3); }
.nt-icon.s52 img, .nt-icon.s64 img { box-shadow: 0 .8px 2px rgba(0, 0, 0, .26); }

/* The terminal prompt over a heading ("❯ connect"). */
.prompt-label { font-family: var(--mono); font-size: 14px; color: var(--link); margin-bottom: 16px; }

/* The clay highlighter under a word of a heading. */
.mark {
  background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 94%, transparent 94%);
  padding: 0 .06em; margin: 0 -.06em; border-radius: .08em;
}

.badge {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; line-height: 1; padding: 6px 10px; border-radius: 999px;
  border: 1.5px solid var(--slate); color: var(--slate);
}

.btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-outline { background: none; border: 1px solid var(--line-3); color: var(--ink); }
.btn-outline:hover { background: none; border-color: var(--faint); color: var(--ink); }

/* A macOS window: title bar with the traffic lights, terminal text. */
.window {
  border-radius: 12px; overflow: hidden; background: var(--term-bg); border: 1px solid var(--line-3);
  color: var(--term-fg); box-shadow: 0 30px 70px -40px rgba(25, 18, 14, .5);
}
.window-bar {
  height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  border-bottom: 1px solid var(--line-2); background: var(--chrome);
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.term {
  padding: 22px; font-family: var(--mono); font-size: 14px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word;
}
.term p { margin: 0; }
.t-prompt { color: var(--prompt); }
.t-path { color: var(--slate); }
.t-dim { color: var(--muted); }
.t-ok { color: var(--ok); }
.cursor {
  display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; border-radius: 1px;
  background: #d3754f; animation: ntblink 1.1s steps(1) infinite;
}

@keyframes ntblink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes ntfloat { from { transform: translateY(-5px) rotate(-2deg); } to { transform: translateY(6px) rotate(3deg); } }
@keyframes ntripple { 0% { opacity: .9; transform: scale(.25); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes ntlive { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ntbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Header ------------------------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 1312px; margin: 0 auto; padding: 0 var(--gutter); height: 60px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.home-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.home-link:hover { color: var(--ink); }
.home-link .wordmark { font-size: 17px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-download, .menu-download {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600;
}
.nav a.nav-download, .nav a.nav-download:hover { color: var(--on-accent); }
.nav a.nav-download:hover, .menu-download:hover { background: var(--accent-hover); color: var(--on-accent); }
.narrow-bar { display: none; align-items: center; gap: 8px; }
.menu-download { height: 36px; font-size: 14px; }
.menu-button {
  width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; border: 0; background: transparent; cursor: pointer; padding: 0;
}
.menu-button span { width: 18px; height: 2px; border-radius: 1px; background: var(--ink); }
.menu {
  display: none; flex-direction: column; padding: 4px var(--gutter) 16px; border-top: 1px solid var(--line);
  font-size: 20px; font-weight: 600;
}
.menu a { padding: 12px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu a:last-child { border-bottom: 0; }

@container (max-width: 759.98px) {
  .nav { display: none; }
  .narrow-bar { display: flex; }
  .site-header[data-menu="open"] .menu { display: flex; }
}

/* Footer ------------------------------------------------------------------------------ */

.site-footer { padding-top: clamp(8px, 1cqw, 16px); }
.site-footer .wave { color: var(--line-3); }
.site-footer .wave svg { display: block; width: 100%; height: 16px; }
.site-footer .body { padding-top: clamp(48px, 6cqw, 72px); padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .row { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.footer-brand .wordmark { font-size: 22px; }
.footer-brand p { margin: 0; font-size: 15px; color: var(--text-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 36px; font-size: 15px; font-weight: 500; align-items: flex-start; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--link); }
.footer-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(40px, 5cqw, 64px); padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}

/* Decorations: soft glows and floating marks behind a section, full width of the page. ---- */

.deco {
  position: absolute; top: 0; bottom: 0; left: calc(50% - 50cqw); width: 100cqw; overflow: hidden;
  pointer-events: none; z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(80px, 12cqw, 180px), #000 calc(100% - clamp(80px, 12cqw, 180px)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(80px, 12cqw, 180px), #000 calc(100% - clamp(80px, 12cqw, 180px)), transparent 100%);
}
.glow {
  position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, var(--glow-clay)), transparent);
}
.glow.slate { --glow: var(--glow-slate); }
.glow.oat { --glow: var(--glow-oat); }
.float {
  position: absolute; color: var(--clay); opacity: .75;
  animation: ntfloat var(--dur, 8s) ease-in-out var(--delay, 0s) infinite alternate;
}
.float.slate { color: var(--slate); }
.float.dim { color: var(--faint-2); opacity: 1; }
.float.soft { opacity: .6; }
.float svg { display: block; width: 100%; height: auto; overflow: visible; transform: rotate(var(--rot, 0deg)); }
@container (max-width: 759.98px) { .float.wide { display: none; } }

/* Hero */
.deco-hero .g1 { left: 86%; top: 22%; width: clamp(360px, 52cqw, 780px); }
.deco-hero .g2 { left: 6%; top: 70%; width: clamp(280px, 36cqw, 560px); }
.deco-hero .f1 { top: clamp(18px, 4cqw, 64px); right: clamp(16px, 8cqw, 140px); width: clamp(24px, 3.6cqw, 52px); --dur: 7.7s; --delay: -1.3s; }
.deco-hero .f2 { top: clamp(70px, 10cqw, 150px); right: clamp(60px, 17cqw, 270px); width: clamp(14px, 2cqw, 30px); --dur: 9.4s; --delay: -2.6s; }
.deco-hero .f3 { top: clamp(100px, 14cqw, 210px); right: clamp(16px, 4cqw, 64px); width: clamp(36px, 6cqw, 90px); --dur: 7.1s; --delay: -3.9s; --rot: -10deg; }
/* Features */
.deco-connect .g1 { left: 14%; top: 46%; width: clamp(420px, 62cqw, 920px); }
.deco-connect .g2 { left: 92%; top: 82%; width: clamp(300px, 36cqw, 560px); }
.deco-connect .f1 { top: clamp(84px, 10cqw, 150px); right: clamp(16px, 6cqw, 110px); width: clamp(60px, 9cqw, 130px); --dur: 6.5s; --delay: -1.5s; }
.deco-connect .f2 { top: clamp(36px, 6cqw, 90px); right: clamp(24px, 18cqw, 280px); width: clamp(16px, 2.4cqw, 34px); --dur: 8.2s; --delay: -2.8s; }
.deco-connect .f3 { bottom: clamp(16px, 3cqw, 48px); left: clamp(8px, 3cqw, 48px); width: clamp(40px, 6cqw, 90px); --dur: 9.9s; --delay: -4.1s; }
/* Workspace */
.deco-work .g1 { left: 94%; top: 36%; width: clamp(320px, 44cqw, 680px); }
.deco-work .f1 { top: clamp(60px, 9cqw, 140px); right: clamp(24px, 10cqw, 180px); width: clamp(12px, 1.6cqw, 24px); --dur: 7.6s; --delay: -.4s; --rot: 8deg; }
.deco-work .f2 { top: clamp(110px, 13cqw, 210px); right: clamp(60px, 19cqw, 310px); width: clamp(36px, 5cqw, 72px); --dur: 9.3s; --delay: -1.7s; --rot: 6deg; }
.deco-work .f3 { bottom: clamp(24px, 4cqw, 64px); right: clamp(12px, 3cqw, 48px); width: clamp(16px, 2.2cqw, 30px); --dur: 7s; --delay: -3s; }
/* Sync */
.deco-sync .g1 { left: 50%; top: 58%; width: clamp(480px, 70cqw, 1100px); }
.deco-sync .f1 { top: clamp(60px, 8cqw, 130px); right: clamp(20px, 7cqw, 120px); width: clamp(44px, 6cqw, 90px); --dur: 8.7s; --delay: -4.3s; --rot: -24deg; }
.deco-sync .f2 { top: clamp(150px, 17cqw, 260px); right: clamp(90px, 17cqw, 260px); width: clamp(26px, 3.4cqw, 50px); --dur: 6.4s; --delay: -.6s; --rot: 12deg; }
.deco-sync .f3 { top: clamp(24px, 3cqw, 48px); left: clamp(10px, 3cqw, 48px); width: clamp(18px, 2.2cqw, 30px); --dur: 8.1s; --delay: -1.9s; }
.deco-sync .f4 { bottom: clamp(20px, 3cqw, 48px); right: clamp(12px, 4cqw, 64px); width: clamp(40px, 6cqw, 90px); --dur: 9.8s; --delay: -3.2s; }
/* nterm */
.deco-nterm .g1 { left: 8%; top: 50%; width: clamp(300px, 40cqw, 620px); }
.deco-nterm .f1 { top: clamp(24px, 4cqw, 60px); right: clamp(16px, 5cqw, 90px); width: clamp(34px, 4.6cqw, 66px); --dur: 7.5s; --delay: -4.5s; }
.deco-nterm .f2 { bottom: clamp(16px, 3cqw, 48px); left: clamp(12px, 5cqw, 90px); width: clamp(56px, 8cqw, 120px); --dur: 9.2s; --delay: -.8s; }
/* FAQ */
.deco-faq .g1 { left: 96%; top: 30%; width: clamp(300px, 40cqw, 600px); }
.deco-faq .f1 { top: clamp(72px, 9cqw, 130px); right: clamp(16px, 6cqw, 110px); width: clamp(34px, 5cqw, 72px); --dur: 6.9s; --delay: -2.1s; --rot: 10deg; }
.deco-faq .f2 { top: clamp(150px, 16cqw, 240px); right: clamp(80px, 14cqw, 220px); width: clamp(16px, 2cqw, 28px); --dur: 8.6s; --delay: -3.4s; }
/* Changelog, Privacy, Install, 404 */
.deco-changelog .g1 { left: 90%; top: 4%; width: clamp(360px, 46cqw, 700px); }
.deco-changelog .f1 { top: clamp(48px, 7cqw, 110px); right: clamp(16px, 8cqw, 140px); width: clamp(22px, 3.4cqw, 50px); --dur: 6.3s; --delay: -4.7s; }
.deco-changelog .f2 { top: clamp(130px, 14cqw, 220px); right: clamp(70px, 20cqw, 320px); width: clamp(14px, 2cqw, 28px); --dur: 8s; --delay: -1s; }
.deco-changelog .f3 { top: clamp(36px, 5cqw, 80px); right: clamp(90px, 28cqw, 440px); width: clamp(36px, 5cqw, 76px); --dur: 9.7s; --delay: -2.3s; }
.deco-privacy .g1 { left: 88%; top: 4%; width: clamp(340px, 44cqw, 660px); }
.deco-privacy .f1 { top: clamp(56px, 8cqw, 120px); right: clamp(16px, 10cqw, 180px); width: clamp(36px, 5.6cqw, 80px); --dur: 7.4s; --delay: -3.6s; --rot: 8deg; }
.deco-privacy .f2 { top: clamp(160px, 18cqw, 280px); right: clamp(70px, 24cqw, 380px); width: clamp(36px, 4.8cqw, 70px); --dur: 9.1s; --delay: -4.9s; --rot: -20deg; }
.deco-install .g1 { left: 88%; top: 4%; width: clamp(340px, 46cqw, 700px); }
.deco-install .f1 { top: clamp(56px, 8cqw, 120px); right: clamp(16px, 9cqw, 160px); width: clamp(44px, 7cqw, 100px); --dur: 6.8s; --delay: -1.2s; --rot: 6deg; }
.deco-install .f2 { top: clamp(150px, 16cqw, 250px); right: clamp(80px, 22cqw, 340px); width: clamp(16px, 2.2cqw, 30px); --dur: 8.5s; --delay: -2.5s; }
.deco-404 .g1 { left: 20%; top: 40%; width: clamp(360px, 50cqw, 760px); }
.deco-404 .g2 { left: 85%; top: 70%; width: clamp(300px, 40cqw, 600px); }
.deco-404 .f1 { top: clamp(24px, 4cqw, 64px); left: clamp(150px, 30cqw, 460px); width: clamp(34px, 5cqw, 76px); --dur: 6.2s; --delay: -3.8s; --rot: -12deg; }
.deco-404 .f2 { bottom: clamp(24px, 4cqw, 64px); left: clamp(12px, 4cqw, 64px); width: clamp(56px, 8cqw, 120px); --dur: 7.9s; --delay: -.1s; }
.deco-404 .f3 { top: clamp(30px, 5cqw, 80px); right: clamp(16px, 6cqw, 110px); width: clamp(18px, 2.6cqw, 36px); --dur: 9.6s; --delay: -1.4s; }

/* Pages other than home ------------------------------------------------------------------ */

.doc {
  position: relative; isolation: isolate; max-width: 1312px; margin: 0 auto; box-sizing: border-box;
  padding: clamp(56px, 8cqw, 120px) var(--gutter) clamp(80px, 10cqw, 144px);
}
.doc h1 {
  margin: 0; font-size: clamp(48px, 8cqw, 112px); line-height: .98; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); text-wrap: balance;
}
.doc .intro {
  margin: 20px 0 clamp(48px, 6cqw, 80px); max-width: 620px; font-size: clamp(18px, 1.6cqw, 21px);
  color: var(--text-2); text-wrap: pretty;
}

/* Changelog: each release is an <article class="release"> from scripts/website_tools.py. */
.release {
  display: flex; flex-wrap: wrap; gap: 20px clamp(40px, 6cqw, 96px); padding: 40px 0 48px;
  border-top: 1px solid var(--line-3);
}
.release-meta { flex: 0 1 280px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.release-meta h2 {
  margin: 0; font-family: var(--mono); font-size: clamp(32px, 3.4cqw, 44px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; color: var(--ink);
}
.release-meta time { font-size: 15px; color: var(--text-2); }
.release-body { flex: 1 1 460px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.release-body p { margin: 0; }
.release-lead { font-size: 20px; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.changes h3 {
  margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--link);
}
.changes ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.changes li { display: flex; gap: 14px; }
.changes .sym { font-family: var(--mono); color: var(--link); }
.changes strong { color: var(--ink); font-weight: 650; }
.changes code { font-size: 15px; }
.changes[data-kind="improved"] h3, .changes[data-kind="improved"] .sym { color: var(--slate); }
.changes[data-kind="fixed"] h3, .changes[data-kind="fixed"] .sym { color: var(--ok); }
.changes[data-kind="removed"] h3, .changes[data-kind="removed"] .sym { color: var(--muted); }

/* Privacy */
.policy { max-width: 680px; font-size: 18px; line-height: 1.65; color: var(--text); }
.policy .updated { margin: 16px 0 48px; font-size: 15px; color: var(--text-2); }
.policy h2 { margin: 0 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.policy p { margin: 0 0 16px; text-wrap: pretty; }
.policy p.last, .policy ul.last { margin-bottom: 40px; }
.policy ul { margin: 0 0 16px; padding-left: 1.2em; }
.policy li { margin-bottom: 6px; }
.policy p:last-child { margin-bottom: 0; }

/* Install guide */
.steps {
  margin: 0; padding: 0; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(48px, 5cqw, 72px) clamp(32px, 4cqw, 56px);
}
.step { display: flex; flex-direction: column; gap: 20px; }
.step .stage {
  aspect-ratio: 16 / 10; border-radius: 18px; background: var(--oat-2); display: flex; align-items: center;
  justify-content: center; padding: 24px; box-sizing: border-box; overflow: hidden;
}
.step .number { font-family: var(--mono); font-size: 13px; color: var(--link); }
.step h2 { margin: -8px 0 0; font-size: clamp(24px, 2.4cqw, 30px); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.step h2 code { font-weight: 600; }
.step p { margin: -8px 0 0; max-width: 520px; text-wrap: pretty; }
.step p code { font-size: 16px; }
.mini-window {
  width: min(100%, 340px); border-radius: 10px; overflow: hidden; background: var(--page);
  box-shadow: 0 20px 40px -20px rgba(25, 18, 14, .5), 0 0 0 1px var(--hairline);
}
.mini-window .titlebar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--line-2); }
.mini-window .lights { gap: 6px; }
.mini-window .lights i { width: 9px; height: 9px; }
.mini-window .title { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-2); margin-right: 40px; }
.dmg { display: flex; justify-content: space-around; align-items: flex-end; padding: 26px 16px 20px; position: relative; }
.dmg-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--ink); }
.dmg-item.ghost { opacity: .35; }
.folder { position: relative; width: 58px; height: 44px; margin-bottom: 6px; }
.folder::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 10px; border-radius: 4px 4px 0 0; background: var(--folder-tab); }
.folder::after { content: ""; position: absolute; left: 0; top: 6px; right: 0; bottom: 0; border-radius: 4px 6px 6px 6px; background: var(--folder); }
.folder.target::after { box-shadow: 0 0 0 3px var(--accent); }
.drag-arrow { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; color: var(--link); }
.drag-arrow span { width: 44px; border-top: 2px dashed currentColor; }
.alert {
  width: min(100%, 280px); border-radius: 14px; background: var(--surface); padding: 20px 18px 16px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  box-shadow: 0 24px 48px -20px rgba(25, 18, 14, .55), 0 0 0 1px var(--hairline-2);
}
.alert p { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.alert .buttons { display: flex; gap: 8px; width: 100%; margin-top: 4px; }
.alert .buttons span { flex: 1; padding: 6px 0; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--ink); }
.alert .buttons span.default { font-weight: 600; background: var(--accent); color: var(--on-accent); }
.cli-stage { width: min(100%, 340px); display: flex; flex-direction: column; gap: 12px; }
.settings-card {
  border-radius: 10px; overflow: hidden; background: var(--surface); font-size: 12px; color: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(25, 18, 14, .5), 0 0 0 1px var(--hairline-2);
}
.settings-card .crumbs { padding: 7px 12px; border-bottom: 1px solid var(--line-2); font-weight: 700; }
.settings-card .crumbs span { font-weight: 400; color: var(--text-2); }
.settings-card .row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.settings-card .row div { flex: 1; min-width: 0; }
.settings-card .row b { display: block; font-family: var(--mono); font-weight: 600; }
.settings-card .row small { display: block; font-size: 10px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-card .row em {
  font-style: normal; flex: none; padding: 4px 8px; border-radius: 6px; font-weight: 600;
  background: var(--accent); color: var(--on-accent);
}
.cli-stage .term {
  border-radius: 8px; padding: 10px 12px; background: var(--term-bg); color: var(--term-fg); font-size: 12px; line-height: 1.6;
  box-shadow: 0 0 0 1px var(--hairline);
}
.install-notes {
  display: flex; flex-wrap: wrap; gap: 24px 48px; margin-top: clamp(56px, 7cqw, 96px); padding-top: 28px;
  border-top: 1px solid var(--line-2);
}
.install-notes p { margin: 0; flex: 1 1 320px; text-wrap: pretty; }
.install-notes strong { color: var(--ink); }

/* 404 */
.lost { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6cqw, 96px); align-items: center; padding-top: clamp(56px, 9cqw, 136px); padding-bottom: clamp(80px, 10cqw, 160px); }
.lost .copy { flex: 1 1 400px; min-width: 0; }
.lost .code { font-size: clamp(112px, 20cqw, 280px); line-height: .85; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
.lost h1 { margin: clamp(20px, 3cqw, 36px) 0 12px; font-size: clamp(30px, 3.6cqw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.lost p { margin: 0 0 32px; font-size: 19px; color: var(--text-2); max-width: 460px; text-wrap: pretty; }
.lost .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lost .window { flex: 1 1 380px; min-width: 0; }

/* Motion ------------------------------------------------------------------------------- */

/* site.js marks the page when it may animate (JS on, motion allowed); without that mark
   nothing is hidden and nothing moves. */
.motion [data-reveal]:not(.revealed) { opacity: 0; transform: translateY(32px); }
.motion [data-reveal="scale"]:not(.revealed) { transform: scale(.94); }
.motion [data-reveal] {
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.16, .84, .24, 1);
}
.motion [data-reveal="scale"] { transition-duration: 1s, 1.4s; }

@media (prefers-reduced-motion: reduce) {
  .float, .cursor { animation: none; }
}
