/* parkerswow — tokens and components
   Layout concept: one 1200px column on near-black. The chrome is monochrome; colour lives only in
   the category tiles, the green "yours, download it" action and the product covers. */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  /* Neutrals: near-black with a faint cool bias, soft white text */
  --bg: #09090B;
  --surface-1: #101013;
  --surface-2: #16161A;
  --surface-3: #1E1E23;
  --line: #232329;
  --line-strong: #383840;
  --text: #EDEDEA;
  --text-2: #A9A9B0;
  --text-3: #8B8B94;
  --paper: #F2F2EE;   /* light button fill */
  --ink: #0B0B0D;     /* text on light fills */

  /* The one semantic accent: "this is yours, download it" */
  --go-a: #7CEBB9;
  --go-b: #34CF98;
  --go: #62E2AA;
  --go-ink: #04140D;
  --go-tint: rgba(98, 226, 170, 0.09);
  --go-line: rgba(98, 226, 170, 0.34);
  --danger: #FF8E80;

  /* Category gradients: one per category, used for its tile and filter chip only */
  --cat-plugin-a: #9AA2FF;      --cat-plugin-b: #5A5FE0;       /* periwinkle */
  --cat-transitions-a: #F8962A; --cat-transitions-b: #D94A0A;  /* orange to amber */
  --cat-sfx-a: #FF6BB0;         --cat-sfx-b: #C92FBE;          /* pink to magenta */
  --cat-project-a: #33B5F2;     --cat-project-b: #1F6BF0;      /* cyan to blue */
  --cat-tutorial-a: #FF7A5C;    --cat-tutorial-b: #DE3438;     /* coral to red */

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --fs-display: clamp(2.5rem, 4.6vw + 1.1rem, 4.5rem);
  --fs-h2: clamp(1.75rem, 2vw + 1.1rem, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Spacing, 4px base */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  /* Radius */
  --r-sm: 0.625rem; --r-md: 0.875rem; --r-lg: 1.25rem; --r-xl: 1.75rem; --r-pill: 999px;

  /* Elevation */
  --e-edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --e-raised: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px -14px rgba(0, 0, 0, 0.8);
  --e-float: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.4);

  /* Glass: only for things that float above content */
  --glass-fill: rgba(20, 20, 24, 0.72);
  --glass-solid: #16161A;
  --glass-line: rgba(255, 255, 255, 0.11);
  --glass-blur: blur(22px) saturate(160%);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 140ms;
  --t-med: 320ms;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 75rem;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 6.5rem; /* room for the review control */
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
[hidden] { display: none !important; }
.hero__top { position: relative; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
.icon { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible, .seg label:focus-within { border-radius: var(--r-pill); }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--r-pill);
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: calc(0.75rem + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * 1.5rem); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 48rem) { .wrap { padding-left: max(1.5rem, env(safe-area-inset-left, 0px)); padding-right: max(1.5rem, env(safe-area-inset-right, 0px)); } }

.section { padding-block: var(--s-8); }
@media (min-width: 60rem) { .section { padding-block: var(--s-9); } }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-6); }
.section__head h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; line-height: 1.08; }
.section__head p { color: var(--text-2); max-width: 34rem; }

.label { font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-small); }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.085) 1px, transparent 0);
  background-size: 1.5rem 1.5rem;
}

/* Auth-state visibility. The real site renders one state on the server; the review control swaps them here. */
html:not([data-auth="out"]) .only-out,
html:not([data-auth="free"]) .only-free,
html:not([data-auth="member"]) .only-member,
html[data-auth="out"] .only-in,
html[data-auth="member"] .not-member { display: none !important; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.5rem 1.125rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font: 500 0.9375rem/1.2 var(--font-sans); letter-spacing: -0.005em; text-align: center; text-decoration: none;
  cursor: pointer; user-select: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #FFFFFF; }
.btn--dark { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); box-shadow: var(--e-edge); }
.btn--dark:hover { background: var(--surface-3); border-color: #4A4A54; }
.btn--go { background: linear-gradient(180deg, var(--go-a), var(--go-b)); color: var(--go-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px -12px rgba(52, 207, 152, 0.7); }
.btn--go:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 28px -10px rgba(52, 207, 152, 0.85); filter: brightness(1.05); }
.btn--go-tonal { background: var(--go-tint); color: var(--go); border-color: var(--go-line); }
.btn--go-tonal:hover { background: rgba(98, 226, 170, 0.17); border-color: rgba(98, 226, 170, 0.55); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--lg { min-height: 3.25rem; padding-inline: 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--icon { width: 2.75rem; padding: 0; flex: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }
.btn .spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: text-decoration-color var(--t-fast); }
.link:hover { text-decoration-color: var(--text); }

/* ---------- 4. Category tile (the dock language) ---------- */
.tile {
  --size: 2.75rem; --a: #3A3A42; --b: #26262C;
  position: relative; flex: none; display: grid; place-items: center;
  width: var(--size); height: var(--size); border-radius: calc(var(--size) * 0.29);
  background: linear-gradient(165deg, var(--a), var(--b)); color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 6px 14px -8px var(--b);
  transition: transform var(--t-med) var(--ease);
}
.tile svg { width: 54%; height: 54%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28)); }
.tile svg .solid { fill: currentColor; }
.tile--plugin { --a: var(--cat-plugin-a); --b: var(--cat-plugin-b); }
.tile--transitions { --a: var(--cat-transitions-a); --b: var(--cat-transitions-b); }
.tile--sfx { --a: var(--cat-sfx-a); --b: var(--cat-sfx-b); }
.tile--project { --a: var(--cat-project-a); --b: var(--cat-project-b); }
.tile--tutorial { --a: var(--cat-tutorial-a); --b: var(--cat-tutorial-b); }
.tile--go { --a: var(--go-a); --b: var(--go-b); color: var(--go-ink); }
.tile--go svg { filter: none; }
.tile--all { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.tile--xs { --size: 1.25rem; }
.tile--sm { --size: 1.75rem; }
.tile--lg { --size: 4rem; }
.tile--xl { --size: 5.5rem; }

/* Tooltip for icon-only controls. The accessible name comes from aria-label. */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 0.625rem); translate: -50% 0.25rem;
  padding: 0.375rem 0.625rem; border-radius: 0.5rem; background: var(--surface-3); border: 1px solid var(--line-strong);
  color: var(--text); font: 500 0.8125rem/1.2 var(--font-sans); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity var(--t-fast) var(--ease), translate var(--t-fast) var(--ease); z-index: 5;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; translate: -50% 0; }

/* ---------- 5. Filter chips in a tray ---------- */
.tray {
  display: inline-flex; gap: 0.25rem; padding: 0.375rem; max-width: 100%;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: var(--e-edge);
  overflow-x: auto; scrollbar-width: none;
}
.tray::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem; flex: none;
  min-height: 2.75rem; padding: 0.375rem 0.875rem 0.375rem 0.5rem;
  background: transparent; border: 1px solid transparent; border-radius: 0.9375rem;
  color: var(--text-2); font: 500 0.9375rem/1.2 var(--font-sans); cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip:hover .tile { transform: scale(1.1); }
.chip[aria-pressed="true"] { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); box-shadow: var(--e-edge); }
.chip .count { font: 500 0.75rem/1 var(--font-mono); color: var(--text-3); }

/* ---------- 6. Access badge: always icon + label, never colour alone ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  min-height: 1.75rem; padding: 0.25rem 0.625rem 0.25rem 0.5rem;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  color: var(--text); font: 500 var(--fs-label)/1.2 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}
.badge .icon { width: 0.875rem; height: 0.875rem; stroke-width: 2; }
.badge--go { background: var(--go-tint); border-color: var(--go-line); color: var(--go); }
.badge--quiet { color: var(--text-2); }
.flag {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.1875rem 0.5rem;
  border: 1px dashed #55555F; border-radius: 0.375rem; color: var(--text-2);
  font: 500 0.6875rem/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- 7. Navigation (glass) ---------- */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--e-float);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--glass-solid); } }
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (forced-colors: active) { .glass { background: Canvas; border-color: CanvasText; } }

.nav { position: fixed; z-index: 50; top: calc(0.75rem + env(safe-area-inset-top, 0px)); left: 0; right: 0; pointer-events: none; }
.nav__bar { pointer-events: auto; display: flex; align-items: center; gap: var(--s-2); min-height: 3.75rem; padding: 0.5rem 0.5rem 0.5rem 1.25rem; border-radius: 1.875rem; }
.brand { font: 500 1.0625rem/1 var(--font-sans); letter-spacing: -0.02em; text-decoration: none; padding: 0.875rem 0; margin-right: var(--s-4); }
.nav__links { display: none; align-items: center; gap: 0.125rem; margin-right: auto; }
.nav__links a, .nav__sheet a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.875rem; border-radius: var(--r-pill); color: var(--text-2); font-size: 0.9375rem; font-weight: 450; text-decoration: none; transition: color var(--t-fast), background-color var(--t-fast); }
.nav__links a:hover, .nav__sheet a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__links a[aria-current="page"], .nav__sheet a[aria-current="page"] { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav__toggle { display: inline-flex; }
.nav__sheet { pointer-events: auto; margin-top: 0.5rem; padding: 0.5rem; border-radius: 1.5rem; display: grid; gap: 0.125rem; }
.nav__sheet a { min-height: 3rem; font-size: 1rem; }
.account { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.875rem 0 0.375rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.account__avatar { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-strong); font: 500 0.75rem/1 var(--font-mono); }
.account .account__name { display: none; }
.account { padding-right: 0.375rem; }
.nav__signout { display: none; }
@media (min-width: 54rem) {
  .account { padding-right: 0.875rem; }
  .nav__signout { display: inline-flex; }
  .nav__sheet a[data-auth-set] { display: none; }
  .nav__links { display: flex; }
  .nav__toggle, .nav__sheet { display: none !important; }
  .account .account__name { display: inline; }
}
@media (max-width: 26rem) { .nav__actions .btn .long { display: none; } }

/* ---------- 8. Hero ---------- */
.hero { position: relative; padding-top: 8.5rem; padding-bottom: var(--s-7); overflow: hidden; }
.hero__grid { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: radial-gradient(120% 80% at 30% 0%, #000 10%, transparent 72%); mask-image: radial-gradient(120% 80% at 30% 0%, #000 10%, transparent 72%); }
.hero__copy { position: relative; z-index: 1; max-width: 43rem; display: grid; gap: var(--s-5); }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.04em; }
.hero h1 .dim { color: var(--text-3); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 60rem) { .hero { padding-top: 11rem; padding-bottom: var(--s-8); } }

/* Covers drifting behind the hero: decorative, dimmed, paused for reduced motion */
.drift { margin-top: var(--s-6); overflow: hidden; opacity: 0.6; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.drift__col { display: flex; width: max-content; animation: drift-x 60s linear infinite; }
.drift__col--b { display: none; }
.drift__set { display: flex; gap: 0.75rem; padding-right: 0.75rem; }
.drift img { width: 6.5rem; height: 6.5rem; border-radius: 1rem; object-fit: cover; }
@keyframes drift-x { to { transform: translateX(-50%); } }
@keyframes drift-up { to { transform: translateY(-50%); } }
@keyframes drift-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (min-width: 60rem) {
  .drift {
    position: absolute; top: -11rem; bottom: -2rem; right: 0; width: min(37%, 27rem); margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; opacity: 0.5;
    -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 30%, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, transparent 4%, #000 30%, #000 70%, transparent 98%);
  }
  .drift__col { display: block; width: auto; animation: drift-up 80s linear infinite; }
  .drift__col--b { display: block; animation-name: drift-down; animation-duration: 95s; }
  .drift__set { flex-direction: column; gap: 1rem; padding: 0 0 1rem; }
  .drift img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 1.25rem; }
}

/* Three facts a first-time visitor needs */
.offer { display: grid; gap: var(--s-3); margin-top: var(--s-7); position: relative; z-index: 1; }
.offer__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4); padding: var(--s-4); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e-edge); text-decoration: none; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.offer__item:hover { border-color: var(--line-strong); background: var(--surface-2); }
.offer__item:hover .tile { transform: scale(1.08); }
.offer__item:hover .offer__go { transform: translateX(3px); color: var(--text); }
.offer__item strong { display: block; font-weight: 500; letter-spacing: -0.01em; }
.offer__item span.muted { font-size: var(--fs-small); }
.offer__go { color: var(--text-3); transition: transform var(--t-fast) var(--ease), color var(--t-fast); }
@media (min-width: 56rem) { .offer { grid-template-columns: repeat(3, 1fr); } }

/* Signed-in headers: no marketing, straight to the point */
.welcome { padding-top: 7.5rem; padding-bottom: var(--s-6); position: relative; }
.welcome h1 { font-size: var(--fs-h2); letter-spacing: -0.028em; line-height: 1.08; }
.welcome__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.status { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--go); font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.status--off { color: var(--text-2); }
.notice { display: grid; gap: var(--s-5); padding: var(--s-5); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--e-edge); }
.notice h1, .notice h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; line-height: 1.1; }
.notice p { color: var(--text-2); max-width: 40rem; }
@media (min-width: 48rem) { .notice { padding: var(--s-7); } }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 9. Library row and download state ---------- */
.rows { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--e-edge); overflow: hidden; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--s-4); padding: 0.75rem var(--s-4); transition: background-color var(--t-fast); }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--surface-2); }
.row__thumb { width: 3rem; height: 3rem; border-radius: 0.75rem; object-fit: cover; }
.row__thumb.tile { --size: 3rem; }
.row__name { display: block; font-weight: 500; letter-spacing: -0.01em; }
.row__name a { text-decoration: none; }
.row__name a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.row__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-top: 0.125rem; }
.row__state { grid-column: 2 / -1; display: none; align-items: center; gap: 0.75rem; font-size: var(--fs-small); color: var(--text-2); padding-bottom: 0.25rem; }
.row[data-dl]:not([data-dl="idle"]) .row__state { display: flex; }
.row__state .bar { flex: 1 1 6rem; max-width: 14rem; }
@media (min-width: 40rem) { .row { padding: 0.875rem var(--s-5); } }
@media (max-width: 26rem) { .row .btn .long { display: none; } .row .btn { width: 2.75rem; padding: 0; } }

.bar { height: 0.25rem; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--go-b), var(--go-a)); transition: width 500ms var(--ease); }
[data-dl="checking"] .bar > span { width: 28%; }
[data-dl="preparing"] .bar > span { width: 82%; }
[data-dl="started"] .bar > span { width: 100%; }
[data-dl="error"] .bar > span { width: 100%; background: var(--danger); }
[data-dl="started"] .dl-msg { color: var(--go); }
[data-dl="error"] .dl-msg { color: var(--danger); }

/* ---------- 10. Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.75rem), 1fr)); gap: var(--s-3); }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: var(--s-4); } }
@media (min-width: 70rem) { .grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e-edge); overflow: hidden; transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.card:hover { border-color: var(--line-strong); }
.card:focus-within { border-color: #6A6A76; }
.card__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card:hover .card__media .tile { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: var(--s-3); flex: 1; }
.card__cat { display: flex; align-items: center; gap: 0.5rem; }
.card__title { font-size: 1rem; line-height: 1.25; letter-spacing: -0.012em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.card__desc { color: var(--text-2); font-size: var(--fs-small); line-height: 1.4; }
.card__foot { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: auto; padding-top: 0.5rem; }
@media (min-width: 40rem) { .card__body { padding: var(--s-4); } .card__title { font-size: 1.0625rem; } }
.empty { grid-column: 1 / -1; display: grid; justify-items: start; gap: var(--s-3); padding: var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--text-2); }
.empty strong { color: var(--text); font-weight: 500; }
.filterbar { margin-bottom: var(--s-5); display: flex; }

/* ---------- 11. About paragraph: words brighten while scrolling ---------- */
.lit { font-size: clamp(1.375rem, 2.2vw + 0.9rem, 2.375rem); line-height: 1.22; letter-spacing: -0.028em; font-weight: 500; max-width: 56rem; color: var(--text); }
.lit .w { color: var(--text-3); transition: color 400ms var(--ease); }
.lit .w.on { color: var(--text); }

/* ---------- 12. Membership ---------- */
.member { display: grid; gap: var(--s-5); }
.panel { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--e-edge); padding: var(--s-5); }
.panel h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; line-height: 1.08; }
.panel > * + * { margin-top: var(--s-5); }
.ticks { display: grid; gap: var(--s-3); }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.ticks .icon { margin-top: 0.2rem; color: var(--text-2); }
.ticks strong { font-weight: 500; }
.flow { display: grid; gap: 0; position: relative; }
.flow__node { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: center; padding: var(--s-4); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--e-edge); }
.flow__node b { font-weight: 500; display: block; letter-spacing: -0.01em; }
.flow__node small { color: var(--text-2); font-size: var(--fs-small); }
.flow__link { height: 1.75rem; margin-left: 2.375rem; border-left: 1px dashed #55555F; }
.flow__n { font: 500 0.75rem/1 var(--font-mono); color: var(--text-3); }
@media (min-width: 60rem) { .member { grid-template-columns: 1.15fr 1fr; align-items: stretch; } .panel { padding: var(--s-7); } }

/* ---------- 13. Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; padding-top: 7rem; font-size: var(--fs-small); color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.product { display: grid; gap: var(--s-6); padding-block: var(--s-4) var(--s-8); }
.product__media { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface-1); align-self: start; }
.product__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product__slot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.875rem var(--s-4); border-top: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-small); }
.product__info { display: grid; gap: var(--s-5); align-content: start; min-width: 0; }
.product__info h1 { font-size: clamp(2.125rem, 3vw + 1.2rem, 3.5rem); line-height: 1.03; letter-spacing: -0.038em; }
.product__lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 32rem; }
.product__cat { display: flex; align-items: center; gap: 0.625rem; }
@media (min-width: 58rem) { .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); } }

.access { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e-raised); padding: var(--s-5); display: grid; gap: var(--s-4); align-content: start; }
.access__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.price { font-size: 2rem; line-height: 1; letter-spacing: -0.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.access__or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; color: var(--text-3); }
.access__or::before, .access__or::after { content: ""; height: 1px; background: var(--line); }
.access__note { color: var(--text-2); font-size: var(--fs-small); }
.access__state { display: none; align-items: center; gap: 0.75rem; font-size: var(--fs-small); color: var(--text-2); }
.access[data-dl]:not([data-dl="idle"]) .access__state { display: flex; }
.access__state .bar { flex: 1; }
.who { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-small); color: var(--text-2); }
.who .icon { color: var(--text-2); }

.specs { border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(6.5rem, 0.4fr) 1fr; gap: var(--s-4); padding: 0.75rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.specs dt { font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.specs dd { font-size: 0.9375rem; }

/* ---------- 14. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-7); color: var(--text-2); font-size: var(--fs-small); }
.footer__in { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-8); justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); margin-left: -0.5rem; }
.footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; padding-inline: 0.5rem; text-decoration: none; color: var(--text-2); }
.footer a:hover { color: var(--text); }

/* ---------- 15. Review control and toast (review tools, not part of the site) ---------- */
.review { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; padding-left: var(--gutter); padding-right: var(--gutter-r); pointer-events: none; }
.review__in { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 0.75rem; padding: 0.375rem 0.375rem 0.375rem 1rem; border-radius: 1.5rem; max-width: 100%; }
.review fieldset { border: 0; margin: 0; padding: 0; display: contents; }
.review legend { float: left; padding: 0; }
.seg { display: flex; gap: 0.125rem; }
@media (max-width: 30rem) { .review__in { padding: 0.375rem; } .seg label { padding: 0 0.625rem; font-size: 0.8125rem; } }
.seg label { position: relative; display: inline-flex; align-items: center; white-space: nowrap; min-height: 2.75rem; padding: 0 0.875rem; border-radius: var(--r-pill); color: var(--text-2); font-size: 0.875rem; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: background-color var(--t-fast), color var(--t-fast); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:hover { color: var(--text); }
.seg label:has(input:checked) { background: var(--paper); color: var(--ink); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); translate: -50% 0.5rem; width: max-content; max-width: min(34rem, calc(100vw - 2rem)); padding: 0.75rem 1rem; border-radius: 1rem; font-size: var(--fs-small); opacity: 0; pointer-events: none; transition: opacity var(--t-med) var(--ease), translate var(--t-med) var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }
.toast b { font-weight: 500; }

/* ---------- 16. Reveal ---------- */
/* Scroll-driven and CSS-only: browsers without support simply show the content, nothing can get stuck hidden. */
@keyframes reveal { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .drift__col { animation: none !important; }
  .lit .w { color: var(--text); }
}

/* ---------- 17. System page ---------- */
.sys { padding-top: 8rem; }
.sys h1 { font-size: var(--fs-display); letter-spacing: -0.04em; line-height: 1.02; }
.sys__intro { display: grid; gap: var(--s-5); max-width: 46rem; }
.sys__intro p { color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; }
.sys section { padding-block: var(--s-7); border-top: 1px solid var(--line); margin-top: var(--s-7); }
.sys section > h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; margin-bottom: var(--s-2); }
.sys section > p { color: var(--text-2); max-width: 44rem; margin-bottom: var(--s-6); }
.sys h3 { font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); margin: var(--s-6) 0 var(--s-3); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--s-3); }
.swatch { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface-1); }
.swatch i { display: block; height: 4rem; border-bottom: 1px solid var(--line); }
.swatch div { padding: 0.625rem 0.75rem; display: grid; gap: 0.125rem; }
.swatch b { font-weight: 500; font-size: var(--fs-small); }
.swatch code, .sys code { font: 400 0.75rem/1.4 var(--font-mono); color: var(--text-2); }
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); padding: var(--s-5); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.demo--col { flex-direction: column; align-items: stretch; }
.demo--glass { background: linear-gradient(120deg, #1b1038, #0c2a2a 45%, #3a1420); min-height: 9rem; justify-content: center; }
.typeset { display: grid; gap: var(--s-4); }
.typeset > div { display: grid; gap: 0.25rem; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.scale { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-4); }
.scale div { display: grid; gap: 0.5rem; justify-items: start; }
.scale i { display: block; background: var(--surface-3); border: 1px solid var(--line-strong); }
.two { display: grid; gap: var(--s-4); }
@media (min-width: 56rem) { .two { grid-template-columns: 1fr 1fr; } }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 34rem; }
.table th, .table td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.table td { color: var(--text-2); }
.table td:first-child { color: var(--text); font-weight: 500; }

/* ---------- 18. Display role and type variants ----------
   Variant 1 is the default token set at the top of this file.
   Variants 2 and 3 only swap fonts and the few metrics that depend on them; layout and components are unchanged.
   Production ships one variant, so only that pairing gets loaded. */
:root {
  --font-display: var(--font-sans);
  --display-weight: 500; --display-stretch: 100%; --display-case: none;
  --display-tracking: -0.04em; --display-lh: 1.02;
  --h2-tracking: -0.028em; --h2-lh: 1.08;
  --fs-product: clamp(2.125rem, 3vw + 1.2rem, 3.5rem);
  --brand-size: 1.0625rem; --brand-tracking: -0.02em;
  --price-size: 2rem;
  --mono-stretch: 100%; --label-tracking: 0.07em;
}
html[data-variant="2"] {
  /* Wide: the extended face from the covers' product names, at a calmer weight */
  --font-sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --display-weight: 600; --display-stretch: 125%;
  --display-tracking: -0.03em; --display-lh: 1.05;
  --h2-tracking: -0.022em; --h2-lh: 1.12;
  --fs-display: clamp(2rem, 3.3vw + 1rem, 3.625rem);
  --fs-h2: clamp(1.5rem, 1.4vw + 1rem, 2.125rem);
  --fs-product: clamp(1.75rem, 2.1vw + 1.1rem, 2.75rem);
  --brand-size: 1rem; --brand-tracking: -0.015em;
  --price-size: 1.75rem;
  --fs-label: 0.6875rem; --mono-stretch: 85%; --label-tracking: 0.05em;
}
html[data-variant="3"] {
  /* Condensed: the tall uppercase face from "HYPE EDIT" and "LIGHT SWIPE TRANSITIONS" */
  --font-sans: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --display-weight: 700; --display-case: uppercase;
  --display-tracking: 0.004em; --display-lh: 0.92;
  --h2-tracking: 0.008em; --h2-lh: 0.96;
  --fs-display: clamp(3.125rem, 6.2vw + 1.2rem, 6.75rem);
  --fs-h2: clamp(2.25rem, 2.6vw + 1.4rem, 3.5rem);
  --fs-product: clamp(2.75rem, 4vw + 1.5rem, 4.75rem);
  --brand-size: 1.5rem; --brand-tracking: 0.01em;
  --price-size: 2.75rem;
}

.hero h1, .sys h1, .product__info h1, .t-display,
.section__head h2, .welcome h1, .notice h1, .notice h2, .panel h2, .sys section > h2, .t-h2,
.brand, .price {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-stretch: var(--display-stretch); text-transform: var(--display-case);
}
.hero h1, .sys h1, .product__info h1, .t-display { letter-spacing: var(--display-tracking); line-height: var(--display-lh); }
.t-display { font-size: var(--fs-display); }
.product__info h1 { font-size: var(--fs-product); }
.section__head h2, .welcome h1, .notice h1, .notice h2, .panel h2, .sys section > h2, .t-h2 { letter-spacing: var(--h2-tracking); line-height: var(--h2-lh); }
.t-h2 { font-size: var(--fs-h2); }
.brand { font-size: var(--brand-size); letter-spacing: var(--brand-tracking); line-height: 1; }
.price { font-size: var(--price-size); letter-spacing: var(--h2-tracking); }

.label, .badge, .flag, .status, .specs dt, .chip .count, .table th, .sys h3, .flow__n, .account__avatar, .mono, .swatch code, .sys code { font-stretch: var(--mono-stretch); }
.label, .specs dt, .table th, .sys h3 { letter-spacing: var(--label-tracking); }

html[data-variant="2"] .only-v1, html[data-variant="3"] .only-v1,
html:not([data-variant="2"]) .only-v2,
html:not([data-variant="3"]) .only-v3 { display: none !important; }

/* Review control with two groups: auth state and type variant */
.review__in { padding: 0.375rem; gap: 0.25rem 1.25rem; }
.review__group { display: flex; align-items: center; gap: 0.5rem; }
.review__group > .label { padding-left: 0.75rem; white-space: nowrap; }
@media (max-width: 40rem) {
  body { padding-bottom: 9rem; }
  .review__group > .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
  .toast { bottom: calc(8.25rem + env(safe-area-inset-bottom, 0px)); }
}
.seg { flex-wrap: wrap; justify-content: center; }
@media (max-width: 23rem) {
  .seg label { padding: 0 0.4375rem; font-size: 0.75rem; }
  .nav__bar { padding-left: 1rem; }
  .brand { margin-right: var(--s-2); }
  html[data-variant="3"] { --brand-size: 1.25rem; }
}
