/* SnagThis landing · Direction C · Playable demo
   Tokens copied from apps/desktop/src/globals.css; accents from packages/contracts/src/accents.js. */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jersey 15"; src: url("fonts/jersey15-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --color-background: hsl(215 22% 3.5%);
  --color-background-raised: hsl(215 22% 8%);
  --color-background-hover: hsl(215 22% 10.5%);
  --color-background-active: hsl(215 22% 13.5%);
  --color-surface-chrome: hsl(215 22% 4%);
  --color-surface-row-hover: hsl(215 22% 11.5%);
  --color-foreground: hsl(20 20% 93%);
  --color-foreground-muted: hsl(20 6% 64%);
  --color-foreground-subtle: hsl(20 5% 55%);
  --color-border: hsl(215 15% 18%);
  --color-border-subtle: hsl(215 14% 13.5%);
  --color-status-completed: hsl(145 62% 52%);
  --color-segment-pending: hsl(215 14% 24%);
  --color-segment-downloading: #f4c38a;
  --color-segment-completed: #80bfa6;
  /* Accent (orange default); main.js swaps these for the chosen accent. */
  --color-primary: hsl(18 96% 40%);
  --color-primary-strong: hsl(18 96% 36%);
  --color-primary-hover: hsl(20 96% 52%);
  --color-primary-muted: hsl(16 58% 16%);
  --color-ring: hsl(18 96% 44%);
  --accent-logo: #fa5d0e;
  --accent-bevel-face: #fa5d0e;
  --accent-bevel-light: #ffb238;
  --accent-bevel-dark: #bd3f00;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-pixel: "Jersey 15", "Inter", monospace;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Mono", monospace;
  --pixel-dots: url("img/pixel-dots.svg"); /* A file, not a data: URI, so the CSP can stay img-src 'self'. */
  --pixel-scan: repeating-linear-gradient(0deg, transparent 0 2px, #ffffff07 2px 3px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--color-background); overscroll-behavior: none; }
body { margin: 0; min-height: 100%; overscroll-behavior: none; background: var(--color-background); color: var(--color-foreground); font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
kbd { font: 500 .82em/1 var(--font-sans); padding: 2px 6px; border-radius: 5px; background: var(--color-background-active); border: 1px solid var(--color-border); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--color-primary-hover); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--color-primary); color: #fff; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.accent-text { color: var(--color-primary-hover); }
.pixel-label { font: 400 20px/1 var(--font-pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary-hover); }
/* Pixel-grid chrome from PixelChrome.css: a 4px dot grid and 1-in-3 scanlines. */
.chrome { background-color: var(--color-surface-chrome); background-image: var(--pixel-dots), var(--pixel-scan); }
.chrome-accent { background-color: var(--color-surface-chrome); background-image: linear-gradient(90deg, color-mix(in srgb, var(--color-primary-hover) 7%, transparent), transparent 35%), var(--pixel-dots), var(--pixel-scan); }

/* ── Logo (inline pixel paths, accent-aware) ───────────────── */
.logo-svg { width: 120px; height: 22px; overflow: visible; }
.lg-snag { fill: #fff; }
.lg-this { fill: var(--accent-logo); }
.px-face { fill: var(--accent-bevel-face); }
.px-light { fill: var(--accent-bevel-light); }
.px-dark { fill: var(--accent-bevel-dark); }
.px-glyph { fill: #0c0e11; }
.lg-cursor { fill: var(--accent-logo); opacity: 0; }
.lg-press { transform-box: fill-box; transform-origin: 50% 100%; }
.logo-finish { position: relative; display: block; width: 120px; height: 22px; }
.logo-finish::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent 40%, rgb(255 244 230 / .65) 50%, transparent 60%) 100% 0 / 250% 100%;
  -webkit-mask: url("img/snagthis-logo-title.svg") center / contain no-repeat; mask: url("img/snagthis-logo-title.svg") center / contain no-repeat; }
.logo-finish.shining::after { animation: brand-shine 900ms steps(30, end) both; }
@keyframes brand-shine { 0% { background-position: 100% 0; opacity: 1; } 100% { background-position: 0 0; opacity: 1; } }
.logo-finish.small { transform: scale(1); }

/* The pixel bevel button (PixelButton.css) and its press. */
.px-btn { overflow: visible; }
.px-btn.pressing { animation: px-press 520ms cubic-bezier(.3, .7, .3, 1); transform-origin: 50% 100%; }
.px-btn.pressing .px-light { animation: px-to-dark 520ms steps(1); }
.px-btn.pressing .px-dark { animation: px-to-light 520ms steps(1); }
@keyframes px-press { 0% { transform: none; } 28% { transform: translateY(6%) scale(.9); } 55% { transform: translateY(4%) scale(.94); } 78% { transform: translateY(-3%) scale(1.03); } 100% { transform: none; } }
@keyframes px-to-dark { 0%, 70% { fill: var(--accent-bevel-dark); } 71%, 100% { fill: var(--accent-bevel-light); } }
@keyframes px-to-light { 0%, 70% { fill: var(--accent-bevel-light); } 71%, 100% { fill: var(--accent-bevel-dark); } }

/* ── Header ─────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid; border-image: linear-gradient(90deg, var(--color-primary-hover), color-mix(in srgb, var(--color-primary-hover) 25%, transparent) 45%, var(--color-border-subtle) 80%) 1; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: block; padding: 4px; margin: -4px; border-radius: 6px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 6px 10px; border-radius: 6px; color: var(--color-foreground-muted); font-size: 14px; text-decoration: none; transition: color 160ms, background-color 160ms; }
.site-nav a:hover { color: var(--color-foreground); background: rgb(255 255 255 / .06); }
@media (max-width: 760px) { .site-nav a:not(.nav-gh) { display: none; } }

/* ── Buttons ────────────────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 559px) { .hero .cta-row { flex-direction: column; } .hero .btn { width: 100%; } }
.cta-row.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 9px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 160ms, border-color 160ms, color 160ms, transform 120ms; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 8px 24px -10px var(--color-primary-hover); }
.btn-primary:hover { background: var(--color-primary-strong); }
.btn-secondary { background: var(--color-background-raised); color: var(--color-foreground); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-background-active); }
.btn-secondary.is-os { border-color: color-mix(in srgb, var(--color-primary-hover) 70%, var(--color-border)); background: color-mix(in srgb, var(--color-primary-muted) 55%, var(--color-background-raised)); }
.btn-secondary.is-other-os { height: 46px; opacity: .8; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { cursor: default; opacity: .75; box-shadow: none; }
.btn-primary[aria-disabled="true"]:hover { background: var(--color-primary); }
.btn-secondary[aria-disabled="true"]:hover { background: var(--color-background-raised); }
.btn[aria-disabled="true"]:active { transform: none; }
.soon { font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; background: rgb(255 255 255 / .18); }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--color-foreground); border: 1px solid var(--color-border); background: var(--color-background-raised); }
.btn-ghost:hover { background: var(--color-background-active); }
.btn-ghost .icon { width: 15px; height: 15px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-primary-hover) 16%, transparent), transparent 70%); transition: background 500ms; }
.hero-grid { display: grid; gap: 36px; }
.kicker { font-size: 13px; font-weight: 550; color: var(--color-foreground-muted); letter-spacing: .01em; margin-bottom: 14px; }
.kicker.pixel-label { font: 400 20px/1 var(--font-pixel); color: var(--color-primary-hover); letter-spacing: .06em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(40px, 10.5vw, 64px); letter-spacing: -.035em; line-height: 1.02; margin-bottom: 18px; }
.lede { font-size: 18px; color: var(--color-foreground-muted); max-width: 30em; margin-bottom: 26px; }
.lede-try { color: var(--color-foreground); font-weight: 550; }
.os-note { margin-top: 10px; font-size: 13px; color: var(--color-foreground-subtle); }
.os-note a { color: var(--color-foreground-muted); text-decoration: underline; text-underline-offset: 2px; }
.os-note a:hover { color: var(--color-foreground); }
.fine { margin-top: 16px; font-size: 13px; color: var(--color-foreground-subtle); max-width: 34em; }
@media (min-width: 1080px) {
  .hero { padding: 44px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .hero-copy { padding-top: 64px; }
  .hero h1 { font-size: 60px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; max-width: 330px; }
}

/* ── Demo ───────────────────────────────────────────────────── */
.demo { min-width: 0; }
.demo-label { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; min-height: 22px; }
.demo-hint { font-size: 14px; color: var(--color-foreground-muted); }
.browser { position: relative; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-background-raised); box-shadow: 0 30px 80px -30px #000, 0 0 0 1px #000 inset; overflow: visible; }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px 0 14px; border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--color-border-subtle); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #33363c; }
.address { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--color-background); color: var(--color-foreground-muted); font-size: 13px; white-space: nowrap; overflow: hidden; }
.address .icon { width: 13px; height: 13px; }
.ext-button { position: relative; display: grid; place-items: center; width: 34px; height: 30px; border-radius: 7px; transition: background-color 160ms; }
.ext-button:hover, .ext-button[aria-expanded="true"] { background: rgb(255 255 255 / .08); }
.ext-button .px-btn { width: 18px; height: 18px; }
.ext-badge { position: absolute; right: 1px; bottom: 1px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 4px; background: var(--color-primary); color: #fff; font: 700 9.5px/14px var(--font-sans); text-align: center; }
.ext-button.nudge::after { content: ""; position: absolute; inset: -3px; border-radius: 9px; border: 2px solid var(--color-primary-hover); animation: nudge 1.6s ease-out infinite; }
@keyframes nudge { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }

.page { position: relative; padding: 16px; min-height: 300px; }
.page-site { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--color-foreground-subtle); margin-bottom: 12px; }
.page-site b { color: var(--color-foreground); font-weight: 650; margin-right: auto; }
.player { position: relative; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player-bar { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .25); }
.player-bar i { display: block; width: 38%; height: 100%; border-radius: inherit; background: #fff; }
.page-meta { display: grid; gap: 4px; padding: 12px 2px 4px; font-size: 13px; color: var(--color-foreground-subtle); }
.page-meta b { color: var(--color-foreground); font-size: 15px; }
.page-meta i { display: block; height: 8px; width: 80%; border-radius: 4px; background: var(--color-background-active); margin-top: 6px; }
.page-meta i.short { width: 52%; margin-top: 2px; }

/* The popup: same layout rules as apps/extension/src/input.css, scaled to fit. */
.popup { position: relative; margin-top: 14px; border-radius: 10px; overflow: visible; background: var(--color-background-raised); border: 1px solid var(--color-border); box-shadow: 0 24px 60px -12px rgb(0 0 0 / .8), 0 2px 0 rgb(255 255 255 / .03) inset; font-size: 13px; line-height: 1.45; transform-origin: calc(100% - 22px) 0; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.popup[data-closed] { opacity: 0; transform: translateY(-6px) scale(.97); pointer-events: none; visibility: hidden; transition: opacity 140ms, transform 140ms, visibility 0s 140ms; }
.popup::before { content: ""; position: absolute; top: -6px; right: 17px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--color-surface-chrome); border-left: 1px solid var(--color-border); border-top: 1px solid var(--color-border); display: none; }
.popup-header { display: flex; align-items: center; gap: 18px; height: 46px; padding: 10px 14px; border-radius: 10px 10px 0 0; border-bottom: 1px solid; border-image: linear-gradient(90deg, var(--color-primary-hover), color-mix(in srgb, var(--color-primary-hover) 25%, transparent) 45%, var(--color-border-subtle) 80%) 1; }
.logo-mini .logo-svg { width: 120px; height: 22px; }
.page-count { margin-left: auto; font-size: 11.5px; color: var(--color-foreground-muted); white-space: nowrap; }
.row { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; column-gap: 12px; align-items: stretch; padding-right: 14px; min-height: 96px; }
.thumb { position: relative; overflow: hidden; background: var(--color-background-hover); }
.thumb .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .ghost { filter: grayscale(1) brightness(.4); opacity: 0; }
.thumb .live { --p: 100%; clip-path: inset(0 calc(100% - var(--p)) 0 0); transition: clip-path 300ms linear; }
.thumb .edge { position: absolute; top: 0; bottom: 0; left: var(--p, 0); width: 2px; margin-left: -1px; background: var(--color-primary-hover); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--color-primary-hover) 75%, transparent); opacity: 0; transition: left 300ms linear, opacity 200ms; }
.duration { position: absolute; right: 4px; bottom: 4px; border-radius: 3px; background: rgb(0 0 0 / .72); padding: 0 4px; font: 500 10.5px/16px var(--font-mono); color: #f1ece9; }
.popup[data-state="downloading"] .thumb .ghost, .popup[data-state="downloading"] .thumb .edge { opacity: 1; }
.row-body { position: relative; align-self: center; min-width: 0; padding: 12px 0; }
.row-title { font-size: 13.5px; font-weight: 570; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.row-status { margin-top: 3px; font-size: 12px; line-height: 24px; min-height: 24px; color: var(--color-foreground-muted); white-space: nowrap; }
.status-ready { display: flex; align-items: center; gap: 6px; }
.status-live { display: none; }
.popup:not([data-state="ready"]) .status-ready { display: none; }
.popup:not([data-state="ready"]) .status-live { display: flex; align-items: center; gap: 5px; max-width: calc(100% - 78px); overflow: hidden; }
.popup[data-state="saved"] .status-live { max-width: none; }
.popup[data-state="saved"] .status-live { color: var(--color-status-completed); }
.status-live .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.quality-button { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 6px 0 3px; border-radius: 6px; background: var(--color-background-active); color: var(--color-foreground); font-size: 12px; font-weight: 550; transition: background-color 120ms, box-shadow 200ms; }
.quality-button:hover, .quality-button[aria-expanded="true"] { background: color-mix(in srgb, var(--color-background-active), var(--color-foreground) 9%); }
.quality-button .chev { width: 11px; height: 11px; color: var(--color-primary-hover); stroke-width: 2.4; transition: transform 160ms; }
.quality-button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tier { padding: 0 4px; border-radius: 4px; background: #dfe3ea; color: #15181d; font-size: 10px; font-weight: 750; line-height: 16px; }
.tier:empty { display: none; }
.popup.hint-quality .quality-button { box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary-hover) 55%, transparent); }
.snag-button { align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 8px; background: var(--color-primary); color: #fff; font-size: 13px; font-weight: 600; transition: background-color 160ms, color 160ms, transform 120ms; }
.snag-button:hover { background: var(--color-primary-strong); }
.snag-button:active { transform: scale(.96); }
.snag-button .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.popup.hint-snag .snag-button { animation: snag-hint 1.8s ease-in-out infinite; }
@keyframes snag-hint { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary-hover) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.popup[data-state="downloading"] .snag-button, .popup[data-state="saved"] .snag-button { background: transparent; color: var(--color-foreground-muted); border: 1px solid var(--color-border); }
.popup[data-state="downloading"] .snag-button:hover { color: var(--color-foreground); background: var(--color-background-active); }
.popup[data-state="saved"] .snag-button { color: var(--color-foreground); }

/* Speed trace (speed-trace.js): fills free room at the right of the body, a glowing head dot. */
.trace { position: absolute; right: 0; top: 26px; width: 72px; height: 30px; overflow: visible; opacity: 0; transition: opacity 400ms ease-out; pointer-events: none;
  --trace-line: color-mix(in oklab, var(--color-primary-hover) 78%, white); --trace-fill: var(--color-primary-hover); --trace-dot: color-mix(in oklab, var(--color-primary-hover) 25%, white);
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .08), #000 36px); mask-image: linear-gradient(90deg, rgb(0 0 0 / .08), #000 36px); }
.popup[data-state="downloading"] .trace.ready { opacity: 1; }
.popup[data-state="saved"] .trace { --trace-line: var(--color-segment-completed); --trace-fill: var(--color-segment-completed); opacity: 1; animation: fade-out 420ms ease-out 700ms forwards; }
.popup[data-state="saved"] .trace-dot { display: none; }
.trace-top { stop-color: var(--trace-fill); stop-opacity: .7; }
.trace-bottom { stop-color: var(--trace-fill); stop-opacity: 0; }
.trace-line { fill: none; stroke: var(--trace-line); stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 0 2.5px color-mix(in srgb, var(--trace-line) 60%, transparent)); }
.trace-dot { fill: var(--trace-dot); filter: drop-shadow(0 0 3px var(--trace-fill)); }
@keyframes fade-out { to { opacity: 0; } }

/* Segmented progress (desktop .progress-pieces): mint done, amber working cell, one spark per finished cell. */
.pieces { display: none; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; height: 8px; margin-top: 9px; }
.popup:not([data-state="ready"]) .pieces { display: grid; }
.piece { position: relative; border-radius: 2px; background: #292f37; border: 1px solid #333a44; transition: background 180ms, border-color 180ms; }
.piece.done { background: var(--color-segment-completed); border-color: #91cbb4; }
.piece.current { background: #30291f; border-color: #d0a471; }
.piece.current::after { content: ""; position: absolute; inset: 0; right: calc((1 - var(--fill, .2)) * 100%); border-radius: 1px; background: var(--color-segment-downloading); animation: piece-working 1.9s ease-in-out infinite; }
.piece.spark { z-index: 1; animation: piece-spark 520ms ease-out; }
@keyframes piece-working { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes piece-spark { 0% { background: #fff; border-color: #fff; box-shadow: 0 0 14px 5px hsl(36 100% 70% / .9); } 100% { box-shadow: 0 0 0 7px transparent; } }
.popup[data-state="saved"] .pieces { animation: fade-out 500ms ease-out 900ms forwards; }

.popup-footer { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-top: 1px solid var(--color-border-subtle); border-radius: 0 0 10px 10px; color: var(--color-foreground-muted); font-size: 12.5px; }
.popup-footer .icon { width: 15px; height: 15px; }
.foot-item { display: inline-flex; align-items: center; gap: 7px; }
.spacer { flex: 1; }
.count-badge { background: var(--color-primary); color: #fff; font-size: 10px; font-weight: 650; border-radius: 8px; line-height: 15px; padding: 0 5px; }

/* Quality menu */
.menu { position: absolute; z-index: 20; top: calc(100% - 22px); left: 124px; width: 240px; padding: 4px; border-radius: 9px; background: var(--color-background-hover); border: 1px solid var(--color-border); box-shadow: 0 16px 40px rgb(0 0 0 / .6); font-size: 12.5px; transform-origin: 20% 0; animation: menu-in 140ms var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu-title { padding: 5px 8px 2px; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--color-foreground-subtle); }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 5px 8px; border-radius: 6px; text-align: left; }
.menu-item:hover, .menu-item:focus-visible { background: var(--color-background-active); outline: none; }
.menu-item:focus-visible { box-shadow: 0 0 0 2px var(--color-primary-hover) inset; }
.menu-item .check { width: 13px; height: 13px; visibility: hidden; color: var(--color-primary-hover); stroke-width: 2.4; }
.menu-item[aria-checked="true"] .check { visibility: visible; }
.menu-value { margin-left: auto; font-size: 11.5px; color: var(--color-foreground-muted); }
.menu hr { border: 0; border-top: 1px solid var(--color-border); margin: 4px 0; }

/* Saved shelf and the mascot (PixelMascot.css, hard steps). */
.shelf { position: relative; margin-top: 18px; padding: 14px 92px 16px 16px; border-radius: 12px; border: 1px solid var(--color-border-subtle); background: color-mix(in srgb, var(--color-background-raised) 60%, var(--color-background)); }
.shelf-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.shelf-note { font-size: 12.5px; color: var(--color-foreground-subtle); }
.shelf-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shelf-card { min-width: 0; font-size: 12px; line-height: 1.35; }
.shelf-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--color-background-hover); margin-bottom: 6px; }
.shelf-card span { display: block; font-weight: 570; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-card small { display: block; font-size: 11.5px; color: var(--color-foreground-subtle); }
.slot-empty { display: block; aspect-ratio: 16 / 9; border-radius: 6px;
  background: linear-gradient(90deg, var(--color-border) 50%, transparent 0) 0 0 / 8px 2px repeat-x, linear-gradient(90deg, var(--color-border) 50%, transparent 0) 0 100% / 8px 2px repeat-x,
    linear-gradient(0deg, var(--color-border) 50%, transparent 0) 0 0 / 2px 8px repeat-y, linear-gradient(0deg, var(--color-border) 50%, transparent 0) 100% 0 / 2px 8px repeat-y; }
.slot.filled .slot-empty { display: none; }
.slot.filled img { box-shadow: 0 0 0 2px var(--color-primary-hover); animation: land-glow 1.4s ease-out 200ms forwards; }
@keyframes land-glow { to { box-shadow: 0 0 0 2px transparent; } }
.new-tag { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 3px; background: var(--color-primary); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 14px; vertical-align: 1px; }
.flyer { position: fixed; z-index: 40; pointer-events: none; border-radius: 6px; object-fit: cover; box-shadow: 0 12px 30px rgb(0 0 0 / .6); }
.mascot { position: absolute; right: 22px; bottom: 26px; width: 48px; }
.mascot .px-btn { width: 48px; height: 48px; }
.mascot-bob { animation: bob 2.4s steps(1) infinite; }
.mascot[data-mood="busy"] .mascot-bob { animation-duration: .5s; }
@keyframes bob { 0%, 49% { transform: none; } 50%, 100% { transform: translateY(-4px); } }
.mascot-floor { position: absolute; left: 50%; bottom: -10px; width: 32px; height: 4px; margin-left: -16px; background: #000; opacity: .55; box-shadow: 4px 0 0 #000, -4px 0 0 #000; }
.plus-one { position: absolute; left: 50%; top: -6px; width: 21px; height: 15px; margin-left: -10px; color: var(--color-status-completed); opacity: 0; }
.mascot.cheer .plus-one { animation: plus-one 1.2s steps(8) forwards; }
@keyframes plus-one { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }

.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--color-foreground-subtle); flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 5px; border-radius: 999px; border: 1px solid var(--color-border-subtle); transition: color 200ms, border-color 200ms, background-color 200ms; }
.steps b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 400 15px/1 var(--font-pixel); background: var(--color-background-active); color: var(--color-foreground-muted); }
.steps li.current { color: var(--color-foreground); border-color: color-mix(in srgb, var(--color-primary-hover) 60%, transparent); }
.steps li.current b { background: var(--color-primary); color: #fff; }
.steps li.done { color: var(--color-foreground-muted); }
.steps li.done b { background: var(--color-segment-completed); color: #0c0e11; }

.accent-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border-subtle); }
.accent-row-label { font-size: 13.5px; color: var(--color-foreground-muted); max-width: 30em; }
.accent-picker { display: flex; gap: 8px; }
.swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px rgb(255 255 255 / .12) inset; transition: transform 160ms var(--ease-out); }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--sw); }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; left: 50%; top: 46%; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: translate(-50%, -50%) rotate(-45deg); }
.swatch:focus-visible { outline-offset: 5px; border-radius: 50%; }

@media (min-width: 720px) {
  .page { padding: 16px 16px 18px; min-height: 380px; }
  .player { width: 64%; }
  .page-meta { width: 64%; }
  .popup { position: absolute; top: 6px; right: 12px; width: min(480px, 70%); margin: 0; }
  .popup::before { display: block; }
}
@media (max-width: 719px) {
  .popup { transform-origin: 50% 0; }
  .shelf { padding-right: 16px; padding-bottom: 76px; }
  .mascot { right: auto; left: 50%; margin-left: -24px; bottom: 22px; }
}
@media (max-width: 460px) {
  .row { grid-template-columns: 88px minmax(0, 1fr) auto; column-gap: 10px; padding-right: 10px; }
  .snag-button { padding: 0 10px; }
  .popup:not([data-state="ready"]) .snag-button { width: 32px; padding: 0; justify-content: center; }
  .popup:not([data-state="ready"]) .snag-button span { display: none; }
  .trace { width: 50px; }
  .popup:not([data-state="ready"]) .status-live { max-width: calc(100% - 54px); }
  .menu { left: 8px; right: 8px; width: auto; }
  .address { font-size: 12px; }
  .popup-header { gap: 10px; }
  .page { padding: 12px; }
  .browser-bar .lights { display: none; }
  .accent-row { flex-direction: column; align-items: flex-start; }
}

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 72px 0; border-top: 1px solid var(--color-border-subtle); }
.section h2 { font-size: clamp(28px, 5vw, 40px); max-width: 22em; margin-bottom: 32px; }
.section-lede { font-size: 17px; color: var(--color-foreground-muted); max-width: 32em; margin: -16px 0 20px; }
.text-link { color: var(--color-primary-hover); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how li { position: relative; padding: 22px 22px 24px; border-radius: 12px; background: var(--color-background-raised); border: 1px solid var(--color-border-subtle); }
.how-num { display: block; font: 400 34px/1 var(--font-pixel); color: var(--color-primary-hover); margin-bottom: 14px; }
.how h3 { font-size: 18px; margin-bottom: 6px; }
.how p { color: var(--color-foreground-muted); font-size: 15px; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }

/* Features: two small product recordings, then a scannable list with pixel icons. */
.feature-duo { display: grid; gap: 16px; }
.feature { margin: 0; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--color-background-raised); border: 1px solid var(--color-border-subtle); }
.feature figcaption { padding: 16px 20px 20px; }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { color: var(--color-foreground-muted); font-size: 14.5px; }
@media (min-width: 820px) { .feature-duo { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* Product recordings (scripts/capture-site-media.cjs). The clip is the bare UI; the stage, rounded frame,
   shadow and the accent glow that follows the pointer are all drawn here. */
.shot { --gx: 30%; --gy: 0%; --rx: 0deg; --ry: 0deg; position: relative; flex: 1; display: grid; place-items: center; padding: clamp(14px, 3vw, 26px);
  border-bottom: 1px solid var(--color-border-subtle); overflow: hidden; isolation: isolate; perspective: 1400px;
  background: radial-gradient(70% 80% at var(--gx) var(--gy), color-mix(in srgb, var(--color-primary-hover) 20%, transparent), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, color-mix(in srgb, var(--color-primary-hover) 7%, transparent), transparent 70%), linear-gradient(160deg, #13161b, #090b0e); }
.shot::before { content: ""; position: absolute; inset: -24px 0; z-index: -1; background-image: var(--pixel-dots); opacity: .5; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.clip-frame { position: relative; width: 100%; border-radius: 8px; overflow: hidden; background: var(--color-background);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .09), 0 24px 56px -22px rgb(0 0 0 / .9), 0 6px 18px rgb(0 0 0 / .4), 0 0 50px -20px color-mix(in srgb, var(--color-primary-hover) 45%, transparent);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 500ms var(--ease-out), box-shadow 500ms; will-change: transform; }
.clip { display: block; width: 100%; height: auto; background: var(--color-background); }
/* A sheen that tracks the pointer over the frame. */
.clip-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 400ms;
  background: radial-gradient(40% 50% at var(--gx) var(--gy), rgb(255 255 255 / .07), transparent 70%); }
.shot.tilting .clip-frame { transition: transform 120ms linear, box-shadow 500ms; }
.shot.tilting .clip-frame::after { opacity: 1; }
.clip-toggle { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff;
  background: rgb(10 12 15 / .72); border: 1px solid rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 200ms, background-color 160ms; }
.clip-toggle .icon { width: 14px; height: 14px; }
.clip-toggle .icon-play { display: none; }
.clip-toggle[data-paused] .icon-play { display: block; }
.clip-toggle[data-paused] .icon-pause { display: none; }
.clip-toggle:hover { background: var(--color-primary); }
.shot:hover .clip-toggle, .clip-toggle:focus-visible, .clip-toggle[data-paused] { opacity: 1; }
@media (hover: none) { .clip-toggle { opacity: .85; } }

.feature-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0 32px; }
.feature-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--color-border-subtle); }
.feature-item h3 { font-size: 15.5px; letter-spacing: -.01em; margin: 1px 0 3px; }
.feature-item p { font-size: 14px; line-height: 1.5; color: var(--color-foreground-muted); }
@media (min-width: 620px) { .feature-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }
/* A pixel tile built like the logo's bevel button: light top-left, dark bottom-right. */
.px-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: color-mix(in srgb, var(--color-primary-muted) 70%, var(--color-background-raised));
  box-shadow: inset 2px 2px 0 color-mix(in srgb, var(--accent-bevel-light) 28%, transparent), inset -2px -2px 0 rgb(0 0 0 / .45), 0 0 0 1px color-mix(in srgb, var(--color-primary-hover) 22%, var(--color-border-subtle)); }
.px-icon { width: 24px; height: 24px; }
.ic-a { fill: var(--accent-bevel-light); }
.ic-b { fill: var(--accent-bevel-face); }
.ic-c { fill: var(--color-foreground-muted); }
.ic-o { fill: #fa5d0e; } .ic-k { fill: #3b7bff; } .ic-v { fill: #8b5cf6; } .ic-m { fill: #1fbf8a; }

/* How it works: ten progress pieces per step (desktop .progress-pieces). Shown full without motion. */
.how-pieces { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; height: 7px; margin-top: 18px; }
.how-pieces i { position: relative; border-radius: 2px; background: #292f37; border: 1px solid #333a44; }
.how-pieces i::after { content: ""; position: absolute; inset: -1px; border-radius: 2px; background: var(--color-segment-completed); box-shadow: inset 0 0 0 1px #91cbb4; }

/* ── Scroll motion ───────────────────────────────────────────
   Everything below applies only once main.js adds .motion to <html> (JavaScript on, IntersectionObserver
   available, motion allowed). Without it every element is simply visible. Only transform and opacity move. */

/* Rise-in reveals. */
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--delay, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .how li:nth-child(2), .motion .compare .plan:nth-child(2), .motion .privacy-points li:nth-child(2) { --delay: 90ms; }
.motion .how li:nth-child(3), .motion .privacy-points li:nth-child(3) { --delay: 180ms; }
.motion .privacy-points li:nth-child(4) { --delay: 270ms; }
.motion .feature-duo .feature:nth-child(2) { --delay: 110ms; }
.motion .feature-item { --delay: calc(var(--n, 0) * 70ms); transform: translateY(14px); }
.motion .section h2.reveal, .motion .closing h2.reveal { --delay: 140ms; }

/* Pixel kickers type in like the logo: letters appear one by one behind a block cursor. */
.type { position: relative; }
.type-ch { position: relative; }
.motion .typing .type-ch { opacity: 0; }
.motion .typing.in .type-ch { animation: type-on 1ms linear forwards; animation-delay: calc(var(--i) * 42ms + 60ms); }
.type-ch::after { content: ""; position: absolute; left: 100%; top: .08em; width: .5em; height: .8em; margin-left: .06em; background: var(--accent-logo); opacity: 0; pointer-events: none; }
.motion .typing.in .type-ch::after { animation: type-cursor 42ms steps(1); animation-delay: calc(var(--i) * 42ms + 60ms); }
.motion .typing.in .type-ch:last-child::after { animation: type-cursor-end 1000ms steps(1); animation-delay: calc(var(--i) * 42ms + 60ms); }
@keyframes type-on { to { opacity: 1; } }
@keyframes type-cursor { 0%, 100% { opacity: 1; } }
@keyframes type-cursor-end { 0%, 30% { opacity: 1; } 31%, 55% { opacity: 0; } 56%, 99% { opacity: 1; } 100% { opacity: 0; } }

/* How it works: thirty pieces fill across the three steps, one working amber cell at a time. */
.motion .how-pieces i::after { opacity: 0; }
.motion .how-pieces i::before { content: ""; position: absolute; inset: -1px; border-radius: 2px; background: var(--color-segment-downloading); opacity: 0; }
.motion .how li.in .how-pieces i::before { animation: piece-work 100ms steps(1) forwards; animation-delay: calc(var(--step-delay, 0ms) + var(--p) * 65ms + 380ms); }
.motion .how li.in .how-pieces i::after { animation: piece-done 240ms var(--ease-out) forwards; animation-delay: calc(var(--step-delay, 0ms) + var(--p) * 65ms + 470ms); }
.motion .how li.in .how-pieces i:last-child { animation: piece-pop 360ms steps(3) both; animation-delay: calc(var(--step-delay, 0ms) + 9 * 65ms + 520ms); }
@keyframes piece-work { 0% { opacity: 1; } 99% { opacity: 1; } 100% { opacity: 0; } }
@keyframes piece-done { from { opacity: 0; transform: scaleY(1.9); } to { opacity: 1; transform: none; } }
@keyframes piece-pop { 0% { transform: none; } 33% { transform: scale(1.35, 1.8); } 66% { transform: scale(1.12, 1.3); } 100% { transform: none; } }
@media (min-width: 760px) {
  .motion .how li:nth-child(2) { --step-delay: 650ms; }
  .motion .how li:nth-child(3) { --step-delay: 1300ms; }
}

/* Feature list: each pixel tile presses in after its row appears. */
.motion .feature-item .px-tile { transform: scale(.4); opacity: 0; }
.motion .feature-item.in .px-tile { animation: tile-pop 420ms steps(4, end) forwards; animation-delay: calc(var(--delay) + 160ms); }
@keyframes tile-pop { 0% { transform: scale(.4); opacity: 1; } 50% { transform: scale(1.15); opacity: 1; } 75% { transform: translateY(2px) scale(.94); opacity: 1; } 100% { transform: none; opacity: 1; } }

/* Comparison: pixel checks pop in one by one. */
.motion .plan .checks li::before { transform: scale(0); }
.motion .plan.in .checks li::before { animation: check-pop 300ms steps(3, end) forwards; animation-delay: calc(var(--delay, 0ms) + 300ms + var(--c, 0) * 90ms); }
.motion .checks li:nth-child(2) { --c: 1; } .motion .checks li:nth-child(3) { --c: 2; } .motion .checks li:nth-child(4) { --c: 3; } .motion .checks li:nth-child(5) { --c: 4; }
@keyframes check-pop { 0% { transform: scale(0); } 34% { transform: scale(1.5); } 67% { transform: scale(.85); } 100% { transform: none; } }

/* Closing: the mascot drops in and presses, then the button does the same press. */
.motion .closing .closing-mascot { opacity: 0; transform: translateY(-48px); }
.motion .closing.in .closing-mascot { animation: mascot-drop 640ms steps(8, end) forwards 120ms; }
@keyframes mascot-drop { 0% { opacity: 1; transform: translateY(-48px); } 55% { opacity: 1; transform: none; } 75% { opacity: 1; transform: translateY(-10px); } 100% { opacity: 1; transform: none; } }
.closing .btn-primary { position: relative; }
.closing .btn-primary::after { content: ""; position: absolute; inset: -2px; border-radius: 11px; border: 2px solid var(--color-primary-hover); opacity: 0; pointer-events: none; }
.motion .closing.in .btn-primary { animation: cta-press 560ms cubic-bezier(.3, .7, .3, 1) 1150ms; }
.motion .closing.in .btn-primary::after { animation: cta-ring 900ms ease-out 1250ms; }
@keyframes cta-press { 0% { transform: none; } 30% { transform: translateY(3px) scale(.95); } 70% { transform: translateY(-1px) scale(1.02); } 100% { transform: none; } }
@keyframes cta-ring { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.18, 1.5); } }

/* Reading progress: pixel pieces along the header's bottom edge (the content width), one amber working cell,
   and the mascot hopping piece to piece. Scroll-driven where supported; main.js sets --read and --ri otherwise. */
.read-bar { display: none; }
.motion .read-bar { --gutter: calc((100% - min(100% - 40px, var(--wrap))) / 2); display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: -1px; height: 3px; pointer-events: none; container-type: inline-size; }
.read-track { position: absolute; inset: 0; overflow: hidden; background: rgb(255 255 255 / .07);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(100% / 48 - 2px), transparent 0 calc(100% / 48)); mask-image: repeating-linear-gradient(90deg, #000 0 calc(100% / 48 - 2px), transparent 0 calc(100% / 48)); }
.read-fill { position: absolute; inset: 0; background: var(--color-segment-completed); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }
.read-head { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% / 48); background: var(--color-segment-downloading); transform: translateX(calc(var(--read, 0) * 100cqw)); }
.read-rider { position: absolute; left: calc(100% / 96 - 7px); bottom: 5px; width: 14px; height: 14px; transform: translateX(calc(var(--ri, 0) * 100cqw / 48)); }
.read-rider .px-btn { width: 14px; height: 14px; }
.read-rider.running .rider-bob { animation: bob .36s steps(1) infinite; }
@supports (animation-timeline: scroll()) {
  .motion .read-fill, .motion .read-head, .motion .read-rider { animation-duration: auto; animation-fill-mode: both; animation-timeline: scroll(root); animation-timing-function: steps(48, end); }
  .motion .read-fill { animation-name: read-fill; }
  .motion .read-head { animation-name: read-head; }
  .motion .read-rider { animation-name: read-ride; animation-timing-function: steps(48, jump-none); }
  @keyframes read-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes read-head { from { transform: translateX(0); } to { transform: translateX(100cqw); } }
  @keyframes read-ride { from { transform: translateX(0); } to { transform: translateX(calc(100cqw * 47 / 48)); } }
}

/* Depth: product frames drift against the scroll, the dot grid behind them the other way. */
@supports (animation-timeline: view()) {
  .motion .clip-frame { animation: depth-front linear both; animation-timeline: view(); }
  .motion .shot::before { animation: depth-back linear both; animation-timeline: view(); }
  @keyframes depth-front { from { translate: 0 22px; } to { translate: 0 -22px; } }
  @keyframes depth-back { from { translate: 0 -18px; } to { translate: 0 18px; } }
}

.compare { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 26px; border-radius: 14px; background: var(--color-background-raised); border: 1px solid var(--color-border-subtle); }
.plan-plus { border-color: color-mix(in srgb, var(--color-primary-hover) 45%, var(--color-border)); background: linear-gradient(160deg, color-mix(in srgb, var(--color-primary-muted) 55%, transparent), transparent 55%), var(--color-background-raised); }
.plan h3 { font-size: 20px; }
.plan-sub { color: var(--color-foreground-muted); font-size: 14.5px; margin: 4px 0 18px; }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; }
/* A pixel check, drawn with box-shadow cells (2px each). */
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 2px; height: 2px; transform-origin: 7px 5px; box-shadow: 12px 0px var(--color-segment-completed), 10px 2px var(--color-segment-completed), 12px 2px var(--color-segment-completed), 0px 4px var(--color-segment-completed), 8px 4px var(--color-segment-completed), 10px 4px var(--color-segment-completed), 0px 6px var(--color-segment-completed), 2px 6px var(--color-segment-completed), 6px 6px var(--color-segment-completed), 8px 6px var(--color-segment-completed), 2px 8px var(--color-segment-completed), 4px 8px var(--color-segment-completed), 6px 8px var(--color-segment-completed); }
.plan-plus .checks li:first-child { color: var(--color-foreground-muted); }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }

.privacy { display: grid; gap: 32px; }
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-points li { padding: 18px 20px; border-radius: 12px; background: var(--color-background-raised); border: 1px solid var(--color-border-subtle); }
.privacy-points b { display: block; font-size: 16px; margin-bottom: 2px; }
.privacy-points span { color: var(--color-foreground-muted); font-size: 14.5px; }
@media (min-width: 900px) { .privacy { grid-template-columns: 1fr 1.1fr; align-items: start; } .privacy-points { grid-template-columns: 1fr 1fr; } }

.faq-wrap { display: grid; gap: 8px; }
.faq details { border-bottom: 1px solid var(--color-border-subtle); }
.faq details:first-child { border-top: 1px solid var(--color-border-subtle); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-size: 16.5px; font-weight: 570; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; flex: none; border: solid var(--color-primary-hover); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 2px 20px; color: var(--color-foreground-muted); font-size: 15px; max-width: 40em; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 2fr; gap: 40px; } }

.closing { padding: 80px 0 88px; border-top: 1px solid var(--color-border-subtle); text-align: center; background: radial-gradient(600px 260px at 50% 100%, color-mix(in srgb, var(--color-primary-hover) 12%, transparent), transparent); }
.closing-mascot { position: relative; width: 64px; margin: 0 auto 30px; cursor: pointer; }
.closing-mascot .px-btn { width: 64px; height: 64px; animation: bob 2.4s steps(1) infinite; }
.closing-mascot .mascot-floor { bottom: -12px; width: 40px; margin-left: -20px; }
.closing h2 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 26px; }

.site-footer { border-top: 1px solid var(--color-border-subtle); padding: 28px 0 36px; }
.footer-inner { display: grid; gap: 18px; align-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.footer-nav a { color: var(--color-foreground-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--color-foreground); text-decoration: underline; text-underline-offset: 3px; }
.credit { font-size: 12.5px; color: var(--color-foreground-subtle); grid-column: 1 / -1; }
.credit a { color: inherit; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: auto 1fr; } .footer-nav { justify-content: flex-end; } }

/* Accent change: colours glide rather than snap. */
html.accent-shift * { transition: background-color 360ms ease, border-color 360ms ease, color 360ms ease, fill 360ms ease, box-shadow 360ms ease !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .plus-one { display: none; }
  .clip-frame { transform: none !important; }
  .clip-toggle { opacity: 1; }
}

/* ── Document pages (privacy, help, 404) ───────────────────── */
.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; }
.site-nav a[aria-current="page"] { color: var(--color-foreground); background: rgb(255 255 255 / .06); }
.footer-nav a[aria-current="page"] { color: var(--color-foreground); }
.doc-hero { position: relative; padding: 56px 0 40px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--color-border-subtle); }
.doc-hero::before { content: ""; position: absolute; inset: -60% -10% auto 40%; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-primary-hover) 13%, transparent), transparent 70%); }
.doc-hero h1, .notfound h1 { font-size: clamp(36px, 8vw, 54px); letter-spacing: -.035em; line-height: 1.04; margin-bottom: 16px; }
.doc-lede { font-size: 18px; color: var(--color-foreground-muted); max-width: 36em; }
.doc-meta { margin-top: 18px; font-size: 13.5px; font-weight: 550; color: var(--color-foreground-subtle); }
.doc-layout { display: grid; gap: 32px; padding: 40px 0 88px; }
.doc-layout > * { min-width: 0; }
.doc-toc { font-size: 14px; }
.doc-toc-title { font: 400 18px/1 var(--font-pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--color-foreground-subtle); margin-bottom: 10px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.doc-toc a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--color-foreground-muted); text-decoration: none; background: var(--color-background-raised); border: 1px solid var(--color-border-subtle); transition: color 160ms, background-color 160ms; }
.doc-toc a:hover { color: var(--color-foreground); background: var(--color-background-hover); }
@media (min-width: 980px) {
  .doc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; }
  .doc-toc { position: sticky; top: 84px; }
  .doc-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--color-border-subtle); }
  .doc-toc a { background: none; border: 0; border-radius: 0 6px 6px 0; margin-left: -1px; border-left: 2px solid transparent; padding: 5px 12px; }
  .doc-toc a:hover { border-left-color: var(--color-primary-hover); background: rgb(255 255 255 / .04); }
}

.prose { max-width: 720px; font-size: 16px; line-height: 1.7; }
.prose section { scroll-margin-top: 80px; }
.prose section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--color-border-subtle); }
.prose h2 { font-size: clamp(24px, 4vw, 30px); margin-bottom: 16px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; letter-spacing: -.01em; }
.prose p, .prose ul, .prose ol, .prose .table-scroll { margin: 0 0 14px; }
.prose p, .prose li { color: color-mix(in srgb, var(--color-foreground) 82%, var(--color-foreground-muted)); }
.prose b, .prose strong { color: var(--color-foreground); font-weight: 620; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose ul > li::marker { color: var(--color-primary-hover); }
.prose a:not(.btn) { color: var(--color-primary-hover); font-weight: 550; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--color-primary-hover) 45%, transparent); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose code { font: 500 .86em/1 var(--font-mono); padding: 2px 5px; border-radius: 5px; background: var(--color-background-active); border: 1px solid var(--color-border-subtle); color: var(--color-foreground); overflow-wrap: anywhere; }
.prose .checks { padding: 0; }
.prose .checks li { color: var(--color-foreground); }

.doc-points { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.doc-points li { margin: 0 !important; padding: 16px 18px; border-radius: 12px; background: var(--color-background-raised); border: 1px solid var(--color-border-subtle); font-size: 15px; }
.doc-points b { display: block; font-size: 16px; margin-bottom: 2px; }
@media (min-width: 640px) { .doc-points { grid-template-columns: 1fr 1fr; } }

.callout, .doc-note { padding: 16px 18px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--color-primary-hover) 40%, var(--color-border)); background: linear-gradient(160deg, color-mix(in srgb, var(--color-primary-muted) 60%, transparent), transparent 70%), var(--color-background-raised); }
.prose .callout { color: var(--color-foreground); font-weight: 520; }
.doc-note { margin-top: 20px !important; font-size: 15px; }

.doc-card { margin-top: 14px; padding: 20px 22px 8px; border-radius: 12px; background: var(--color-background-raised); border: 1px solid var(--color-border-subtle); scroll-margin-top: 80px; }
.doc-card h3 { margin-top: 0; }
.doc-card:target { border-color: color-mix(in srgb, var(--color-primary-hover) 60%, var(--color-border)); }

.doc-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.doc-steps li { counter-increment: step; position: relative; padding-left: 40px; min-height: 28px; }
.doc-steps li + li { margin-top: 10px; }
.doc-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; font: 400 18px/1 var(--font-pixel); color: #fff; background: var(--color-primary); }

.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 12px; border: 1px solid var(--color-border-subtle); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; background: var(--color-background-raised); }
.doc-table th, .doc-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border-subtle); }
.doc-table tbody tr:last-child > * { border-bottom: 0; }
.doc-table thead th { font-weight: 620; color: var(--color-foreground); background: var(--color-surface-chrome); }
.doc-table tbody th { font-weight: 550; color: var(--color-foreground); width: 40%; }
.doc-table td { color: var(--color-foreground-muted); }
.doc-table .yes { color: var(--color-segment-completed); font-weight: 600; }
.doc-table .no { color: var(--color-foreground-subtle); }

.notfound { padding: 96px 0 112px; text-align: center; background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--color-primary-hover) 12%, transparent), transparent); }
.notfound-inner { display: grid; justify-items: center; }
.notfound .doc-lede { margin: 0 auto 28px; }
.doc-page { min-height: 100vh; display: flex; flex-direction: column; }
.doc-page > main { flex: 1; }
@media (max-width: 519px) { .doc-table { font-size: 13.5px; } .doc-table th, .doc-table td { padding: 10px; } .doc-table tbody th { width: 36%; } }
