/* WebScaly — slate and mint. One stylesheet for every page. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #101820;
  --surface: #17232d;
  --surface-2: #1c2b36;
  --surface-3: #243541;
  --line: #2b3b47;
  --text: #e5edf4;
  --text-2: #c2d0d9;
  --muted: #9aafbd;
  --mint: #79dfbd;
  --mint-ink: #0c1a16;
  --mint-hover: #92e8cb;
  --radius: 10px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --step-display: clamp(2.6rem, 1.35rem + 3.9vw, 4.6rem);
  --step-h2: clamp(1.9rem, 1.35rem + 1.9vw, 3rem);
  --step-h3: 1.25rem;
  --step-body: 1.0625rem;
  --step-small: 0.875rem;
  --section: clamp(88px, 7vw + 40px, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-body)/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; color: var(--text); }
p { margin: 0; text-wrap: pretty; }
li, dd { text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--mint); color: var(--mint-ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--surface-3) var(--bg); }
.tab { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--mint); color: var(--mint-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ——— Buttons and links ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--mint); color: var(--mint-ink); }
.btn-primary:hover { background: var(--mint-hover); }
.btn-quiet { color: var(--text); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.9375rem; border-radius: 8px; gap: 8px; }
.btn-sm svg { width: 16px; height: 16px; }
/* Icon-only GitHub link beside each Add to Chrome button: same height, square, quiet. */
.btn-icon { width: 48px; padding: 0; color: var(--text-2); border: 1px solid var(--line); }
.btn-icon svg { width: 20px; height: 20px; }
.btn-icon:hover { color: var(--text); border-color: var(--muted); background: var(--surface); }
.btn-icon.btn-sm { width: 38px; }
.btn-icon.btn-sm svg { width: 18px; height: 18px; }
.btn-quiet svg { color: var(--text-2); }
.btn-meta { font-weight: 400; color: var(--muted); margin-left: 2px; }
/* Support (Ko-fi): a slate secondary button in WebScaly's colours, the cup in mint. Never a second
   mint fill beside Add to Chrome. */
.btn-support { color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.btn-support svg { color: var(--mint); }
.btn-support:hover { background: var(--surface-2); border-color: var(--muted); }
.cta { display: flex; align-items: center; gap: 10px; }
.textlink { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; text-decoration: none; padding: 12px 2px; border-bottom: 1px solid var(--line); transition: border-color .2s var(--ease); }
.textlink:hover { border-color: var(--mint); }
.textlink svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.textlink:hover svg { transform: translateY(2px); }
.textlink.right:hover svg { transform: translateX(3px); }

/* ——— Header ——— */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-head { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); } }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 0.9375rem; }
.nav a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.head-cta { display: flex; align-items: center; gap: 8px; }
.menu { display: none; }
.site-head .wrap { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.9375rem; color: var(--text-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; flex: none; }
.menu[open] summary { border-color: var(--muted); color: var(--text); }
.menu ul { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 2px); padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.55); }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--text-2); }
.menu a svg { width: 16px; height: 16px; flex: none; }
.menu li.sep a svg { color: var(--mint); }
.menu li.sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.menu a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.menu a:hover { background: var(--surface-2); color: var(--text); }
/* The Support button keeps only its cup when the header gets tight. */
@media (max-width: 1100px) {
  .head-cta .btn-support { width: 38px; padding: 0; }
  .head-cta .btn-support span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .site-head .wrap { gap: 10px; }
}
@media (max-width: 520px) {
  .menu summary { width: 40px; padding: 0; justify-content: center; }
  .menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 480px) { .head-cta .btn-support { display: none; } }
@media (max-width: 420px) { .site-head .btn-primary.btn-sm { padding: 0 12px; } .head-cta .btn-icon { display: none; } }
/* The smallest phones: the header button drops its Chrome mark so the brand keeps its name. */
@media (max-width: 380px) { .site-head .btn-primary.btn-sm svg { display: none; } }

/* ——— Hero: three plates ——— */
.hero { padding-top: clamp(48px, 6vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: var(--step-display); line-height: 1.02; letter-spacing: -0.035em; max-width: 11ch; }
.hero .lead { margin-top: 28px; font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 34ch; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.plates { position: relative; aspect-ratio: 1.42; width: 100%; }
.plate { position: absolute; width: 64%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid transparent; box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.75); transition: transform .5s var(--ease); }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate.off { left: 0; top: 48.8%; z-index: 1; }
.plate.split { left: 18%; top: 24.4%; z-index: 2; }
.plate.on { left: 36%; top: 0; z-index: 3; border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint), 0 34px 70px -26px rgb(0 0 0 / 0.8); }
.plate.split { --split: 52%; }
/* Pointing at a plate brings it to the front, so each step can be seen whole. */
.plates .plate:hover { z-index: 4; transform: translateY(-6px); }
.plate.split .enh { clip-path: inset(0 0 0 var(--split)); }
.plate.split .rule { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: var(--mint); box-shadow: 0 0 0 1px rgb(16 24 32 / 0.35); }
.plate figcaption { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 7px; background: rgb(16 24 32 / 0.88); font-size: 0.8125rem; line-height: 1.2; color: var(--text-2); white-space: nowrap; }
.plate figcaption b { color: var(--text); font-weight: 600; }
.plate.on figcaption b { color: var(--mint); }

@property --split { syntax: "<percentage>"; inherits: true; initial-value: 52%; }
@media (prefers-reduced-motion: no-preference) {
  .plate { animation: plate-rise 0.9s var(--ease) both; }
  .plate.off { animation-delay: 0.05s; }
  .plate.split { animation: plate-rise 0.9s var(--ease) 0.2s both, sweep 1.6s var(--ease) 1s both; }
  .plate.on { animation-delay: 0.35s; }
  @keyframes plate-rise { from { translate: 0 36px; clip-path: inset(100% 0 0 0 round var(--radius)); } to { translate: 0 0; clip-path: inset(0 0 0 0 round var(--radius)); } }
  @keyframes sweep { 0% { --split: 52%; } 40% { --split: 34%; } 100% { --split: 52%; } }
}

/* The credit sits in the empty corner right of the Off plate and under the Compare plate. */
.plates-credit { position: absolute; right: 0; bottom: 0; max-width: 34%; text-align: right; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .plates { max-width: 640px; margin-top: 8px; }
}
@media (max-width: 520px) {
  .plates { aspect-ratio: 1.2; }
  .plate { width: 76%; }
  .plate.split { left: 12%; } .plate.on { left: 24%; }
  .plates { margin-bottom: 28px; }
  .plates-credit { top: calc(100% + 10px); bottom: auto; left: 0; max-width: none; text-align: left; }
  .plate figcaption { font-size: 0.75rem; padding: 5px 8px; left: 7px; bottom: 7px; }
  .plate figcaption span { display: none; }
  .actions .cta { width: 100%; }
  .actions .cta .btn-primary { flex: 1; }
}

/* ——— Sections ——— */
.section { padding-top: var(--section); }
/* Jumping to a section lands on its heading, not on the empty space above it. */
.section[id] { scroll-margin-top: calc(88px - var(--section)); }
/* The first section under a page title starts closer to it. */
.section.first { padding-top: clamp(48px, 5vw, 80px); }
.section.first[id] { scroll-margin-top: calc(88px - clamp(48px, 5vw, 80px)); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2, .h2 { font-size: var(--step-h2); line-height: 1.08; letter-spacing: -0.03em; }
.section-head p { color: var(--text-2); max-width: 58ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Compare */
.scenes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.scenes button {
  appearance: none; font: inherit; font-size: 0.9375rem; cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 40px; padding: 8px 14px;
  color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.scenes button span { color: var(--muted); font-size: 0.8125rem; }
.scenes button:hover { border-color: var(--muted); color: var(--text); }
.scenes button[aria-pressed="true"] { background: var(--surface-2); border-color: var(--mint); color: var(--text); }
.scenes button[aria-pressed="true"] span { color: var(--mint); }
/* Small screens: one row of three equal choices, the engine under each kind of video. */
@media (max-width: 640px) {
  .scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .scenes button { flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 6px; border-radius: var(--radius); font-size: 0.875rem; line-height: 1.25; text-align: center; }
  .scenes button span { font-size: 0.75rem; }
}

.compare { --pos: 50%; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
/* The whole 1080p frame, fit to the stage as a player shows it: 1:1 at 1.5x density, about 1.33x at most on 2x screens
   (as in a 1280-pixel-wide player), downscaled elsewhere. On phones the stage is 4:3 and --view slides the frame so
   the scene's subject stays in the middle. */
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--view, 50% 50%); pointer-events: none; }
.compare .enh { clip-path: inset(0 0 0 var(--pos)); }
.compare .rule { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--mint); pointer-events: none; }
/* The grip sits low, so it never covers the faces each scene is centred on. */
.compare .grip { position: absolute; bottom: 18px; left: var(--pos); width: 48px; height: 30px; margin-left: -24px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; pointer-events: none; box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.6); transition: transform .2s var(--ease); }
.compare .grip svg { width: 22px; height: 22px; }
.compare:hover .grip, .compare.dragging .grip { transform: scale(1.08); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 3px; }
.compare .side { position: absolute; top: 14px; padding: 6px 10px; border-radius: 7px; background: rgb(16 24 32 / 0.86); font-size: 0.8125rem; font-weight: 500; line-height: 1.2; pointer-events: none; transition: opacity .2s var(--ease); }
.compare .side.l { left: 14px; color: var(--text-2); }
.compare .side.r { right: 14px; color: var(--mint); }
.compare .side.r small { color: var(--text-2); font-weight: 400; font-size: inherit; }
.compare-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.compare-meta b { color: var(--text); font-weight: 500; }
@media (max-width: 640px) { .compare { aspect-ratio: 4 / 3; } .compare .side { top: 10px; font-size: 0.75rem; } .compare .side.l { left: 10px; } .compare .side.r { right: 10px; } .compare .side.r small { display: none; } }

/* Engines: a ruled spec table, not cards */
/* No rule above the column labels: the hairline under them opens the table. */
.spec { border-top: 0; }
.spec-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr); gap: 12px 32px; padding-block: 26px; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec-row h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.spec-row .for { color: var(--text); font-weight: 500; }
.spec-row p { color: var(--text-2); }
.spec-head { padding-block: 0 12px; font-size: 0.8125rem; color: var(--muted); }
.spec-note { margin-top: 22px; color: var(--muted); font-size: var(--step-small); max-width: 62ch; }
@media (max-width: 860px) {
  .spec-head { display: none; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; padding-block: 22px; }
}

/* Home: the three engines in brief, ruled columns */
.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.engines li { padding: 26px clamp(20px, 2vw, 32px) 4px 0; }
.engines li + li { padding-left: clamp(20px, 2vw, 32px); border-left: 1px solid var(--line); }
.engines h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.engines .for { margin-top: 4px; color: var(--text); font-weight: 500; }
.engines p + p { margin-top: 10px; color: var(--text-2); }
.more { margin-top: 28px; }
@media (max-width: 860px) {
  .engines { grid-template-columns: 1fr; }
  .engines li, .engines li + li { padding: 22px 0; border-left: 0; }
  .engines li + li { border-top: 1px solid var(--line); }
}
/* Home: the privacy promise, one statement and a way to the details */
.pledge { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 4vw, 64px); align-items: end; padding-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.pledge h2 { font-size: var(--step-h2); line-height: 1.08; letter-spacing: -0.03em; max-width: 16ch; }
.pledge p { color: var(--text-2); max-width: 46ch; margin-bottom: 14px; }
@media (max-width: 860px) { .pledge { grid-template-columns: 1fr; } }

/* Home: the popup tour. The real 0.7.0 popup in three states, screenshots never redrawn, over a dimmed frame of
   the same video. A pointer clicks what a visitor would click; the popup grows and shrinks as the real one does.
   --pw is the popup's width; every position on it is a fraction of that width, so nothing drifts while it resizes. */
.tour { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "side stage"; column-gap: clamp(32px, 4vw, 64px); }
/* The steps and the pause button stay in view beside the tall stage. */
.tour-side { grid-area: side; position: sticky; top: 112px; align-self: start; }
.tour-steps button { appearance: none; font: inherit; color: var(--text-2); text-align: left; cursor: pointer; position: relative; width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px 18px; padding: 24px 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.tour-steps li:last-child button { border-bottom: 1px solid var(--line); }
.tour-steps .n { grid-row: 1 / span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; color: var(--muted); font-variant-numeric: tabular-nums; transition: border-color .2s var(--ease), color .2s var(--ease); }
.tour-steps .t { align-self: center; font-size: var(--step-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--text-2); transition: color .2s var(--ease); }
.tour-steps .s { display: none; }
.tour-steps .d { grid-column: 2; color: var(--muted); transition: color .2s var(--ease); }
.tour-steps button:hover .t, .tour-steps [aria-pressed="true"] .t { color: var(--text); }
.tour-steps button:hover .n { border-color: var(--muted); color: var(--text-2); }
.tour-steps [aria-pressed="true"] .d { color: var(--text-2); }
.tour-steps [aria-pressed="true"] .n { border-color: var(--mint); color: var(--mint); }
/* The active step's rule turns mint; while the tour plays, it fills over that step's time. */
.tour-steps .bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--mint); transform-origin: 0 50%; scale: 0 1; }
.tour-steps [aria-pressed="true"] .bar { scale: 1 1; }
.tour-foot { padding-top: 22px; }
.tour-toggle { appearance: none; font: inherit; font-size: var(--step-small); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px 0 13px; color: var(--text-2); background: none; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s var(--ease), color .2s var(--ease); }
.tour-toggle:hover { border-color: var(--muted); color: var(--text); }
.tour-toggle svg { width: 14px; height: 14px; flex: none; }
.tour-toggle .i-play, .tour[data-paused] .tour-toggle .i-pause { display: none; }
.tour[data-paused] .tour-toggle .i-play { display: block; }

.tour-stage { grid-area: stage; --pw: 340px; }
.tour-view { position: relative; height: calc(var(--pw) * 2.1139 + 64px); overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
/* The page behind the popup: the same episode, dimmed and out of focus, so the popup reads as the one sharp layer. */
.tour-view::before { content: ""; position: absolute; inset: -16px; background: image-set(url("../img/compare/anime4k-pepper-enh-1280.webp") 1x, url("../img/compare/anime4k-pepper-enh-1920.webp") 2x) 30% 50% / cover no-repeat; filter: blur(5px); }
.tour-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(16 24 32 / 0.45), rgb(16 24 32 / 0.82) 58%); }
.tour-stage figcaption { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.tour-note { display: none; }
.tour-popup { position: absolute; z-index: 1; top: 32px; right: clamp(20px, 7%, 64px); width: var(--pw); height: calc(var(--pw) * 1.4944); }
.tour[data-step="1"] .tour-popup { height: calc(var(--pw) * 1.35); }
.tour[data-step="2"] .tour-popup { height: calc(var(--pw) * 2.1139); }
.tour-screen { position: absolute; inset: 0; overflow: hidden; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 1px rgb(229 237 244 / 0.1), 0 34px 64px -26px rgb(0 0 0 / 0.9); }
/* The new state fades in over the old one, which leaves only once it is covered. */
.tour-screen img { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; transition: opacity 0s .18s; }
.tour[data-step="0"] [data-shot="0"], .tour[data-step="1"] [data-shot="1"], .tour[data-step="2"] [data-shot="2"] { z-index: 1; opacity: 1; transition: opacity .18s ease-out; }
.tour-pointer { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; translate: calc(var(--pw) * var(--cx, -0.32)) calc(var(--pw) * var(--cy, 0.86)); }
.tour-pointer svg { margin: -1.5px 0 0 -1.5px; filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.55)); transform-origin: 2px 2px; }
.tour-ring { position: absolute; z-index: 2; pointer-events: none; opacity: 0; left: calc(var(--pw) * var(--rx, 0.6972)); top: calc(var(--pw) * var(--ry, 0.6583)); width: calc(var(--pw) * var(--rw, 0.1583)); height: calc(var(--pw) * var(--rh, 0.0778)); border-radius: 8px; box-shadow: 0 0 0 2px var(--mint), 0 0 0 7px rgb(121 223 189 / 0.22); }
/* Targets, measured on the 720-pixel screenshots: Switch in the suggestion, then Custom under the presets. */
.tour[data-cursor="switch"] .tour-pointer { --cx: 0.786; --cy: 0.708; }
.tour[data-cursor="custom"] .tour-pointer { --cx: 0.853; --cy: 0.944; }
.tour[data-cursor="custom"] .tour-ring { --rx: 0.7306; --ry: 0.8944; --rw: 0.2222; --rh: 0.0806; }
@media (prefers-reduced-motion: no-preference) {
  .tour-popup { transition: height .55s var(--ease); }
  .tour-pointer { transition: translate .9s var(--ease), opacity .3s var(--ease); }
  .tour[data-playing] .tour-pointer { opacity: 1; }
  .tour[data-playing] .tour-steps [aria-pressed="true"] .bar { animation: tour-fill var(--dur, 3s) linear both; }
  .tour.click .tour-ring { animation: tour-ring .65s var(--ease); }
  .tour.click .tour-pointer svg { animation: tour-tap .3s var(--ease); }
  @keyframes tour-fill { from { scale: 0 1; } }
  @keyframes tour-ring { 0% { opacity: 0; scale: 1.2; } 35% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; } }
  @keyframes tour-tap { 50% { scale: 0.84; } }
}
/* Small screens: three short choices above the popup, and the step's sentence under it. */
@media (max-width: 860px) {
  .tour { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps" "stage" "foot"; }
  .tour-side { display: contents; }
  .tour-foot { grid-area: foot; }
  .tour-steps { grid-area: steps; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  .tour-steps button, .tour-steps li:last-child button { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
  .tour-steps .n { width: 26px; height: 26px; font-size: 0.8125rem; }
  .tour-steps .t, .tour-steps .d { display: none; }
  .tour-steps .s { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1.25; color: var(--text-2); }
  .tour-steps [aria-pressed="true"] { background: var(--surface-2); border-color: color-mix(in srgb, var(--mint) 55%, var(--line)); }
  .tour-steps [aria-pressed="true"] .s { color: var(--text); }
  .tour-steps .bar { top: auto; bottom: 7px; left: 14px; right: 14px; border-radius: 2px; }
  .tour-stage { --pw: min(340px, 100cqi - 40px); }
  .tour-view { height: calc(var(--pw) * 2.1139 + 40px); }
  .tour-popup { top: 20px; left: 0; right: 0; margin-inline: auto; }
  .tour-note { display: block; margin-top: 14px; color: var(--text-2); }
  .tour-stage figcaption { margin-top: 8px; }
  .tour-foot { padding-top: 16px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: step; }
.steps li { padding: 28px clamp(0px, 2vw, 32px) 4px 0; counter-increment: step; }
.steps li + li { padding-left: clamp(20px, 2vw, 32px); border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 20px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--step-h3); letter-spacing: -0.015em; margin-bottom: 8px; }
.steps p { color: var(--text-2); }
kbd { font: 500 0.875em/1 "Inter", system-ui, sans-serif; padding: 3px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--text); white-space: nowrap; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); }
.handles li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.handles li:last-child { border-bottom: 1px solid var(--line); }
.handles b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.list-title { font-size: 0.9375rem; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.perm { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.perm th, .perm td { text-align: left; vertical-align: top; padding: 16px 0; border-top: 1px solid var(--line); }
.perm tr:last-child td, .perm tr:last-child th { border-bottom: 1px solid var(--line); }
.perm th { padding-right: 24px; white-space: nowrap; font-weight: 500; }
.perm code { font: 500 0.875rem/1.4 ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; color: var(--text); }
.perm td { color: var(--text-2); }
.privacy-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.privacy-foot p { color: var(--muted); font-size: var(--step-small); }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } .perm th { white-space: normal; } }

/* Privacy page: the full policy below the summary */
.policy { margin-top: var(--section); border-top: 1px solid var(--line); }
.policy .prose > h2:first-child { font-size: var(--step-h2); line-height: 1.08; letter-spacing: -0.03em; }
.prose .updated { color: var(--muted); font-size: var(--step-small); }

/* Feature list: two ruled columns */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); }
.features div { padding: 24px 0; border-top: 1px solid var(--line); }
.features dt { font-weight: 600; margin-bottom: 6px; }
.features dd { color: var(--text-2); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* Features: screenshots of the real interface. Each comes into focus as it scrolls in, the way WebScaly
   sharpens a picture; without scroll-driven animation, or with reduced motion, it is simply there. */
.shot img { width: 100%; height: auto; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 32px 64px -32px rgb(0 0 0 / 0.85); }
.shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.shot.wide { margin-bottom: clamp(36px, 4vw, 56px); }
.shot.popup { width: 100%; max-width: 360px; }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .shot img { animation: focus-in linear both; animation-timeline: view(); animation-range: entry 0% entry 360px; }
    @keyframes focus-in { from { filter: blur(12px) saturate(0.7); opacity: 0.4; } }
  }
}
.feature-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px clamp(32px, 4vw, 64px); align-items: start; }
.feature-copy h2 { font-size: var(--step-h2); line-height: 1.08; letter-spacing: -0.03em; }
.feature-copy > p { margin-top: 20px; color: var(--text-2); max-width: 46ch; }
.features.single { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
.start-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px clamp(32px, 4vw, 64px); align-items: start; }
.start-grid .shot { justify-self: center; }
/* Steps as a vertical list, the number beside each step. */
.steps.stacked { grid-template-columns: minmax(0, 1fr); }
.steps.stacked li, .steps.stacked li + li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 18px; padding: 24px 0; border-left: 0; }
.steps.stacked li + li { border-top: 1px solid var(--line); }
.steps.stacked li:last-child { border-bottom: 1px solid var(--line); }
.steps.stacked li::before { grid-row: 1 / span 2; margin: 0; }
.steps.stacked h3 { align-self: center; margin-bottom: 4px; }
.steps.stacked p { grid-column: 2; }
@media (max-width: 860px) {
  .feature-split, .start-grid { grid-template-columns: minmax(0, 1fr); }
  .start-grid .shot { justify-self: start; }
}

/* Limits */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); }
.limits li { position: relative; padding: 16px 0 16px 26px; border-top: 1px solid var(--line); color: var(--text-2); }
.limits li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 10px; height: 2px; background: var(--muted); }
.limits b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }

/* Close */
.close { padding-block: var(--section); }
.close-panel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.close-panel img { width: clamp(72px, 8vw, 112px); height: auto; }
.close-panel h2 { font-size: var(--step-h2); line-height: 1.08; letter-spacing: -0.03em; }
.close-panel p { margin-top: 10px; color: var(--text-2); }
@media (max-width: 860px) { .close-panel { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .close-panel .cta { width: 100%; } .close-panel .cta .btn-primary { flex: 1; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: var(--step-small); color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.site-foot h2 { font-size: 0.8125rem; font-weight: 500; color: var(--text-2); margin-bottom: 12px; }
.site-foot li + li { margin-top: 8px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.site-foot .brand { margin-bottom: 14px; color: var(--text); }
.site-foot .made { color: var(--text-2); }
.foot-brand .btn-support { margin-top: 18px; }
.credits { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.6; max-width: 66ch; }
.credits p + p { margin-top: 8px; }
.credits a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ——— Reading pages (privacy policy, changelog, legal copies) ——— */
.doc-head { padding-block: clamp(48px, 6vw, 96px) clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; }
.doc-head p { margin-top: 16px; color: var(--text-2); max-width: 62ch; font-size: 1.125rem; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(36px, 4vw, 56px) var(--section); }
.doc-layout.single { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 92px; align-self: start; font-size: var(--step-small); }
.toc p { color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); border-color: var(--muted); }
.toc a[aria-current="true"] { color: var(--mint); border-color: var(--mint); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.prose { max-width: 62ch; color: var(--text-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.4em; font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.02em; scroll-margin-top: 92px; }
.prose h3 { margin-top: 2em; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); }
.prose a:hover { color: var(--mint); }
.prose ul { padding-left: 0; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li + li { margin-top: 0.55em; }
.prose ul > li::before { content: ""; position: absolute; left: 3px; top: 0.78em; width: 8px; height: 2px; background: var(--muted); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose code { font: 0.9em/1.4 ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.prose.wide { max-width: 88ch; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.table-scroll:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; }
.prose pre { overflow-x: auto; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 0.875rem; line-height: 1.55; }
.prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.prose .doc-source { margin-top: 2.4em; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--step-small); color: var(--muted); }
.prose .doc-source code { font-size: 0.875em; }
.license p:first-child { color: var(--text); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 18px 12px 0; border-top: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 500; }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.prose blockquote { margin-left: 0; padding-left: 18px; border-left: 1px solid var(--line); }

/* Changelog: each release as its own ruled block */
.release { padding-block: 36px; border-top: 1px solid var(--line); }
.release:first-child { padding-top: 0; border-top: 0; }
.release > h2 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.release > h2 .v { font-size: 1.75rem; letter-spacing: -0.025em; }
.release > h2 .d { font-size: 0.9375rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.release.latest > h2 .v::after { content: "Latest"; margin-left: 12px; vertical-align: 0.35em; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0; color: var(--text-2); }

/* ——— Download ——— */
.download { padding-block: clamp(36px, 4vw, 56px) var(--section); }
.dl-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.dl-option { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dl-option.store { border-color: color-mix(in srgb, var(--mint) 55%, var(--line)); }
.dl-option h2 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.025em; }
.dl-option > p { color: var(--text-2); max-width: 46ch; }
.dl-option .cta { margin-top: 6px; }
.dl-tag { font-size: 0.8125rem; color: var(--muted); }
.dl-option.store .dl-tag { color: var(--mint); font-weight: 500; }
.fine { font-size: var(--step-small); color: var(--muted); max-width: 62ch; }
.dl-option .fine { margin-top: auto; padding-top: 8px; }
.install { counter-reset: n; display: grid; gap: 10px; padding: 16px 0; border-block: 1px solid var(--line); color: var(--text-2); font-size: 0.9375rem; }
.install li { position: relative; padding-left: 34px; counter-increment: n; }
.install li::before { content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: 0.75rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.install b { color: var(--text); font-weight: 600; }
.download code, .fine code { font: 0.875em/1.4 ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.dl-section { margin-top: clamp(56px, 6vw, 96px); }
.dl-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 18px; }
.dl-section-head h2 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.025em; }
.dl-section-head p { color: var(--text-2); font-size: 0.9375rem; }
.dl-section-head a { color: var(--text); }
.verify { margin-top: 18px; }
.verify dl { margin-top: 10px; display: grid; gap: 6px; font-size: var(--step-small); }
.verify dl div { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.verify dt { min-width: 9.5em; color: var(--muted); }
.verify code { white-space: nowrap; overflow-wrap: normal; }
.files { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.files th, .files td { text-align: left; vertical-align: top; padding: 16px 24px 16px 0; border-top: 1px solid var(--line); }
.files tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.files thead th { padding-block: 0 10px; border-top: 0; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.files tbody th { font-weight: 500; }
.files tbody th a { color: var(--text); }
.files tbody th span { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: var(--step-small); }
.files td { color: var(--text-2); }
.files td a { color: var(--text-2); }
.files td a:hover, .files tbody th a:hover { color: var(--mint); }
.files .size { white-space: nowrap; color: var(--muted); }
.files .hash { width: 44%; }
.files .hash code { display: block; font: 0.8125rem/1.5 ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; color: var(--text-2); background: none; border: 0; padding: 0; word-break: break-all; }
.files .none { color: var(--muted); }
.files.older td:nth-child(2) { white-space: nowrap; }
.files .extra { white-space: nowrap; }
.files .extra .none { color: var(--muted); }
.files th:last-child, .files td:last-child { padding-right: 0; }
.support-band { margin-top: clamp(56px, 6vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 14px; }
.support-band h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.support-band p { margin-top: 6px; color: var(--text-2); max-width: 56ch; }
@media (max-width: 860px) { .dl-options { grid-template-columns: 1fr; } }
/* Phones: each file becomes a block, name first, then size and checksum. */
@media (max-width: 640px) {
  .files:not(.older) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .files:not(.older) tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
  .files:not(.older) tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .files:not(.older) tbody tr > * { padding: 0; border: 0; }
  .files:not(.older) .hash { grid-column: 1 / -1; width: auto; margin-top: 8px; }
  .files:not(.older) .hash:has(.none) { display: none; }
  .files.older thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .files.older tr { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
  .files.older tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .files.older tbody tr > * { padding: 0; border: 0; }
  .files.older td:nth-child(2) { text-align: right; color: var(--muted); }
  .files.older td:nth-child(n+3) { grid-column: 1 / -1; }
  .files.older .extra:has(.none) { display: none; }
  .support-band .btn { width: 100%; }
}

@media (forced-colors: active) {
  .btn-primary, .plate.split .rule, .compare .rule, .compare .grip { forced-color-adjust: none; }
  .plate, .compare, .close-panel, .dl-option, .support-band, .tour-view, .tour-screen { border: 1px solid CanvasText; }
  .tour-ring, .tour-steps .bar { forced-color-adjust: none; }
}
@media print {
  .site-head, .site-foot, .toc, .skip { display: none; }
  body { background: #fff; color: #000; }
  .prose, .prose strong, .prose h2, .prose h3 { color: #000; }
}
