/* Talent Room Plugin Shop — tokens (z design systemu, motyw paper) */
@font-face { font-family: Bangers; src: url('/assets/fonts/Bangers-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url('/assets/fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; src: url('/assets/fonts/barlow-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; src: url('/assets/fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Barlow; src: url('/assets/fonts/barlow-latin-ext-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: Barlow; src: url('/assets/fonts/barlow-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Barlow; src: url('/assets/fonts/barlow-latin-ext-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --paper: #f6e7c1;
  --paper-dark: #e8cf96;
  --panel: #fffdf4;
  --ink: #111111;
  --text: #111111;
  --text-muted: #5c5240;
  --panel-text-muted: #5c5240;
  --accent: #d8352a;
  --on-accent: #fffdf4;
  --accent-text: #b8261c;
  --highlight: #f5c331;
  --highlight-soft: #fbe9b0;
  --signal: #3b7dd8;
  --focus: #3b7dd8;
  --disabled: #9a9488;
  --halftone-accent: rgba(216, 53, 42, 0.45);
  --halftone-ink: rgba(17, 17, 17, 0.18);
  --product-shockchain: #d8352a;
  --product-rave-mixer: #1d1e22;
  --product-what-the-key: #8a52e0;
  --product-casino-synth: #0e7a4f;
  --on-product: #fffdf4;
  --tr-pink: #ff0587;
  --tr-violet: #7a62ac;
  --tr-blue: #0288c9;
  --tr-cyan: #00aedb;

  --font-display: Bangers, Impact, 'Arial Narrow', sans-serif;
  --font-body: Barlow, 'Segoe UI', system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --container-max: 1200px;

  --radius-control: 6px; --radius-bubble: 10px; --radius-panel: 12px; --radius-pill: 999px;

  --shadow-press: 1px 1px 0 #111111;
  --shadow-sm: 2px 2px 0 #111111;
  --shadow-md: 3px 3px 0 #111111;
  --shadow-lg: 4px 4px 0 #111111;
  --shadow-xl: 8px 8px 0 #111111;

  --stroke-thin: 2px; --stroke-control: 2.5px; --stroke: 3px; --stroke-burst: 5px; --stroke-wordmark: 6px; --stroke-title: 7px;

  --halftone-pitch: 8px; --halftone-pitch-fine: 6px; --halftone-dot: 2.6px;
}


/* Waveshock Plugin Shop — component styles. Every value comes from tokens.css (var(--…)).
   Comic / pop-art: thick ink outlines, hard offset shadows, flat colours, halftone, Bangers. */

/* ---------- base ---------- */
.ws-page {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
}
.ws-display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ws-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.ws-eyebrow {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}
:where(.ws-page) :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- comic title: yellow fill, ink outline behind, hard shadow ---------- */
.ws-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--highlight);
  -webkit-text-stroke: var(--stroke-title) var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
  margin: 0;
}
.ws-title--hero { font-size: clamp(56px, 9vw, 96px); line-height: 0.95; }
.ws-title--ink { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.ws-credit {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

/* ---------- halftone (comic::drawHalftone, approximated: dots fade instead of shrink) ---------- */
.ws-halftone {
  --ws-dot: var(--halftone-accent);
  background-image:
    radial-gradient(circle, var(--ws-dot) var(--halftone-dot), transparent calc(var(--halftone-dot) + 0.4px)),
    radial-gradient(circle, var(--ws-dot) var(--halftone-dot), transparent calc(var(--halftone-dot) + 0.4px));
  background-size: var(--halftone-pitch) var(--halftone-pitch);
  background-position: 0 0, calc(var(--halftone-pitch) / 2) calc(var(--halftone-pitch) / 2);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.08) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.08) 100%);
}
.ws-halftone--up {
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.08) 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.08) 100%);
}
.ws-halftone--ink { --ws-dot: var(--halftone-ink); background-size: var(--halftone-pitch-fine) var(--halftone-pitch-fine);
  background-position: 0 0, calc(var(--halftone-pitch-fine) / 2) calc(var(--halftone-pitch-fine) / 2); }

/* ---------- panel ---------- */
.ws-panel {
  background: var(--panel);
  color: var(--ink);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}
.ws-panel__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 var(--space-3);
}
.ws-panel--sunken { background: var(--paper-dark); }

/* ---------- button ---------- */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 6px 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  border: var(--stroke-control) solid var(--ink);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out, background-color 80ms ease-out;
}
.ws-btn:hover { background: var(--highlight-soft); transform: translate(-1px, -1px); box-shadow: var(--shadow-lg); }
.ws-btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-press); }
.ws-btn--primary, .ws-btn--primary:hover { background: var(--highlight); }
.ws-btn--buy, .ws-btn--buy:hover { background: var(--accent); color: var(--on-accent); }
.ws-btn--lg { min-height: 56px; padding: 8px 28px; font-size: 28px; border-width: var(--stroke); box-shadow: var(--shadow-lg); }
.ws-btn--sm { min-height: 36px; padding: 4px 14px; font-size: 18px; }
.ws-btn:disabled, .ws-btn[aria-disabled="true"] {
  background: var(--disabled);
  color: var(--ink);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.ws-btn__count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 16px;
  background: var(--accent);
  color: var(--on-accent);
  border: var(--stroke-thin) solid var(--ink);
  border-radius: var(--radius-pill);
}

/* ---------- tag ---------- */
.ws-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 10px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
  border: var(--stroke-thin) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.ws-tag--highlight { background: var(--highlight); }
.ws-tag--signal { background: var(--signal); }
.ws-tag--accent { background: var(--accent); color: var(--on-accent); }
.ws-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }

/* ---------- toggle (pill, text says the state) ---------- */
.ws-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 16px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
  border: var(--stroke-thin) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.ws-toggle:hover { background: var(--highlight-soft); }
.ws-toggle[aria-pressed="true"] { background: var(--highlight); }

/* ---------- tabs ---------- */
.ws-tabs { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ws-tab {
  min-width: 120px;
  min-height: 36px;
  padding: 4px 16px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
  border: var(--stroke-control) solid var(--ink);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.ws-tab:hover { background: var(--highlight-soft); }
.ws-tab[aria-selected="true"] { background: var(--highlight); }

/* ---------- select (ComboBox: white, radius 6, outline 2.5, shadow 3, black triangle) ---------- */
.ws-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 4px 40px 4px 12px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23111111'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  border: var(--stroke-control) solid var(--ink);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.ws-select:hover { background-color: var(--highlight-soft); }
.ws-field { display: inline-flex; flex-direction: column; gap: var(--space-1); }
.ws-field__label {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- language switch (FlagButton) ---------- */
.ws-lang { display: inline-flex; gap: var(--space-2); }
.ws-flag {
  display: block;
  width: 40px;
  height: 26px;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  border: var(--stroke-control) solid var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0.45;
}
.ws-flag svg { display: block; width: 100%; height: 100%; }
.ws-flag[aria-current="true"] { opacity: 1; outline: 3px solid var(--highlight); outline-offset: 2px; }
.ws-flag:hover { opacity: 1; }

/* ---------- speech bubble (tooltip): tail 12px, corners 10, outline 2.5 ---------- */
.ws-bubble {
  position: relative;
  display: inline-block;
  max-width: 320px;
  padding: var(--space-3);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
  border: var(--stroke-control) solid var(--ink);
  border-radius: var(--radius-bubble);
  box-shadow: var(--shadow-md);
}
.ws-bubble::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: var(--panel);
  border-right: var(--stroke-control) solid var(--ink);
  border-bottom: var(--stroke-control) solid var(--ink);
  transform: rotate(45deg);
}
.ws-bubble--body { font-family: var(--font-body); font-size: 16px; line-height: 24px; text-transform: none; letter-spacing: 0; }

/* ---------- burst (POW! sticker: 12 spikes, outline 3, red text outline 5) ---------- */
.ws-burst { position: relative; display: inline-grid; place-items: center; width: 160px; aspect-ratio: 1; }
.ws-burst svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ws-burst__shape { fill: var(--highlight); stroke: var(--ink); stroke-width: var(--stroke); stroke-linejoin: round; }
.ws-burst__text {
  position: relative;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  color: var(--accent);
  -webkit-text-stroke: var(--stroke-burst) var(--ink);
  paint-order: stroke fill;
  transform: rotate(-8deg);
}

/* ---------- title bar (plugin header: title, credit, TALENT ROOM, halftone) ---------- */
.ws-titlebar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4);
  overflow: hidden;
}
.ws-titlebar__dots { position: absolute; top: 0; right: 0; width: 45%; height: 64px; pointer-events: none; }
.ws-titlebar > :not(.ws-titlebar__dots) { position: relative; }
.ws-wordmark { display: block; height: 40px; width: auto; overflow: visible; }
.ws-wordmark text {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 0.01em;
  stroke: var(--ink);
  stroke-width: var(--stroke-wordmark);
  stroke-linejoin: round;
  paint-order: stroke fill;
}
.ws-wordmark .stop-pink { stop-color: var(--tr-pink); }
.ws-wordmark .stop-violet { stop-color: var(--tr-violet); }
.ws-wordmark .stop-blue { stop-color: var(--tr-blue); }
.ws-wordmark .stop-cyan { stop-color: var(--tr-cyan); }
.ws-wordmark .shadow { fill: var(--ink); }

/* ---------- nav bar ---------- */
.ws-nav { background: var(--paper); border-bottom: var(--stroke) solid var(--ink); }
.ws-nav__inner { display: flex; align-items: center; gap: var(--space-6); min-height: 72px; flex-wrap: wrap; padding-block: var(--space-2); }
/* shop logo lockup: TALENT ROOM wordmark + PLUGIN SHOP title, credit underneath */
.ws-nav__brand { text-decoration: none; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: var(--space-2); row-gap: 2px; }
.ws-nav__brand .ws-wordmark { height: 34px; }
.ws-nav__brand .ws-title { font-size: 34px; -webkit-text-stroke-width: 5px; text-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
.ws-nav__credit { grid-column: 1 / -1; font-size: 16px; letter-spacing: 0.04em; }
.ws-nav__links { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.ws-nav__links a {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: var(--stroke) solid transparent;
}
.ws-nav__links a:hover, .ws-nav__links a[aria-current="page"] { border-bottom-color: var(--highlight); }
.ws-nav__end { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); }

/* ---------- hero ---------- */
.ws-hero { position: relative; overflow: hidden; padding-block: var(--space-12); border-bottom: var(--stroke) solid var(--ink); }
.ws-hero__dots { position: absolute; top: 0; right: 0; width: 55%; height: 40%; pointer-events: none; }
.ws-hero__grid { position: relative; display: grid; gap: var(--space-8); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .ws-hero { padding-block: var(--space-24); }
  .ws-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.ws-hero__lead { font-size: 18px; line-height: 28px; max-width: 46ch; margin: var(--space-4) 0 var(--space-6); color: var(--text); }
.ws-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ws-hero__media { position: relative; }
.ws-hero__media .ws-burst { position: absolute; bottom: -44px; right: -20px; width: 128px; }
.ws-hero__media .ws-burst__text { font-size: 28px; }

/* ---------- screenshot frame ---------- */
.ws-shot {
  display: block;
  width: 100%;
  height: auto;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-lg);
  background: var(--panel);
}

/* ---------- product card ---------- */
.ws-product {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  color: var(--ink);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ws-product__media {
  position: relative;
  background: var(--product, var(--accent));
  border-bottom: var(--stroke) solid var(--ink);
  padding: var(--space-4);
}
.ws-product__media .ws-shot { box-shadow: var(--shadow-md); }
.ws-product__media .ws-tag { position: absolute; top: var(--space-3); left: var(--space-3); }
.ws-product__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); flex: 1; }
.ws-product__name { font-family: var(--font-display); font-size: 28px; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; margin: 0; }
.ws-product__credit { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--panel-text-muted); margin: 0; }
.ws-product__desc { margin: 0; color: var(--ink); }
.ws-product__foot { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.ws-products { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---------- price ---------- */
.ws-price { display: inline-flex; flex-direction: column; gap: 2px; }
.ws-price__row { display: inline-flex; align-items: baseline; gap: var(--space-2); }
.ws-price__now { font-family: var(--font-display); font-size: 26px; line-height: 1.1; letter-spacing: 0.02em; color: var(--ink); }
.ws-price__old {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--panel-text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.ws-price__note { font-size: 14px; line-height: 20px; color: var(--panel-text-muted); }

/* ---------- step list (HelpPanel: red headings, numbered steps) ---------- */
.ws-steps { list-style: none; counter-reset: ws-step; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.ws-steps > li { counter-increment: ws-step; display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: start; }
.ws-steps > li::before {
  content: counter(ws-step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  background: var(--highlight);
  border: var(--stroke-control) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.ws-steps h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 6px 0 var(--space-1);
}
.ws-steps p { margin: 0; }

/* ---------- FAQ item ---------- */
.ws-faq { background: var(--panel); color: var(--ink); border: var(--stroke) solid var(--ink); border-radius: var(--radius-panel); box-shadow: var(--shadow-md); }
.ws-faq + .ws-faq { margin-top: var(--space-4); }
.ws-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 26px;
  background: var(--panel);
  border: var(--stroke-control) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.ws-faq[open] summary::after { content: "–"; background: var(--highlight); }
.ws-faq summary:hover { background: var(--highlight-soft); border-radius: var(--radius-panel); }
.ws-faq__answer { padding: 0 var(--space-4) var(--space-4); }
.ws-faq__answer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .ws-btn { transition: none; }
  .ws-btn:hover, .ws-btn:active { transform: none; }
}

/* Talent Room Plugin Shop — strona: układ, okna wtyczek, gałki, ruch. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.defs { position: absolute; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; }
.skip:focus { left: 16px; background: var(--highlight); color: var(--ink); padding: 8px 14px; border: var(--stroke-control) solid var(--ink); border-radius: var(--radius-control); }

/* ---------- nav ---------- */
.ws-nav { position: sticky; top: 0; z-index: 50; }
.ws-nav__inner { gap: var(--space-4) var(--space-6); }
@media (max-width: 720px) {
  .ws-nav__brand .ws-wordmark { height: 26px; }
  .ws-nav__brand .ws-title { font-size: 26px; -webkit-text-stroke-width: 4px; }
  .ws-nav__credit { font-size: 14px; }
  .ws-nav__links { gap: var(--space-4); }
  .ws-nav__links a { font-size: 18px; }
  .ws-nav__end { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero { isolation: isolate; }
.hero__rays {
  position: absolute; inset: -40% -20% auto auto; width: 900px; height: 900px; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(245, 195, 49, 0.35) 0deg 9deg, transparent 9deg 18deg);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  animation: spin 60s linear infinite;
}
.hero__title { margin: 0; display: grid; gap: var(--space-2); justify-items: start; }
.hero__wm { height: clamp(40px, 6vw, 64px); }
.hero__copy > * + * { margin-top: var(--space-3); }
.hero__tiles { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.tile {
  position: relative; display: grid; gap: var(--space-1); align-content: start; justify-items: start;
  min-height: 170px; padding: var(--space-4);
  background: var(--product); color: var(--on-product); text-decoration: none;
  border: var(--stroke) solid var(--ink); border-radius: var(--radius-panel); box-shadow: var(--shadow-lg);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.tile:nth-child(odd) { transform: rotate(-1.5deg); }
.tile:nth-child(even) { transform: rotate(1.2deg) translateY(14px); }
.tile:hover { transform: translate(-3px, -3px) rotate(0deg); box-shadow: var(--shadow-xl); }
.tile__name { font-family: var(--font-display); font-size: 28px; line-height: 1; letter-spacing: 0.02em; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.tile__cat { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.tile .knob { position: absolute; right: 10px; bottom: 8px; }
.hero__boxer { position: absolute; left: 50%; top: 50%; width: 150px; transform: translate(-50%, -46%); pointer-events: none; z-index: 2; }
.hero__boxer img { display: block; width: 100%; filter: drop-shadow(4px 4px 0 var(--ink)); }
@media (max-width: 899px) { .hero__boxer { width: 110px; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--highlight); border-bottom: var(--stroke) solid var(--ink); }
.marquee__track { display: flex; gap: var(--space-6); width: max-content; padding: 10px 0; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.marquee__star { color: var(--accent) !important; -webkit-text-stroke: 2px var(--ink); }

/* ---------- plugin sections ---------- */
.plugins-intro { padding-top: var(--space-16); text-align: left; }
.plugin { padding-block: var(--space-12); border-bottom: var(--stroke) dashed rgba(17, 17, 17, 0.25); }
.plugin__grid { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 1000px) {
  .plugin { padding-block: var(--space-16); }
  .plugin__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .plugin--flip .plugin__media { order: 2; }
  .plugin__info { position: sticky; top: 110px; }
}
.plugin__title { font-size: clamp(44px, 6vw, 64px); }
.plugin__credit { margin-top: var(--space-2); }
.plugin__lead { font-size: 18px; line-height: 28px; margin: var(--space-4) 0; }
.plugin__tags { margin-bottom: var(--space-6); }
.plugin__h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: 0.02em; text-transform: uppercase; margin: 0 0 var(--space-3); }
.top10 { list-style: none; counter-reset: top; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.top10 li { counter-increment: top; display: grid; grid-template-columns: 34px 1fr; gap: var(--space-3); align-items: start; line-height: 22px; }
.top10 li::before {
  content: counter(top); display: grid; place-items: center; width: 30px; height: 30px; margin-top: -3px;
  font-family: var(--font-display); font-size: 18px; color: var(--on-product); background: var(--product);
  border: var(--stroke-thin) solid var(--ink); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.all-features { margin-top: var(--space-6); background: var(--panel); color: var(--ink); border: var(--stroke) solid var(--ink); border-radius: var(--radius-panel); box-shadow: var(--shadow-md); }
.all-features summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  font-family: var(--font-display); font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; cursor: pointer; list-style: none;
}
.all-features summary::-webkit-details-marker { display: none; }
.all-features summary::after {
  content: '+'; display: grid; place-items: center; width: 32px; height: 32px; flex: none; font-size: 26px;
  background: var(--panel); border: var(--stroke-control) solid var(--ink); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.all-features[open] summary::after { content: '–'; background: var(--highlight); }
.all-features [data-close-label], .all-features[open] [data-open-label] { display: none; }
.all-features[open] [data-close-label] { display: inline; }
.all-features summary:hover { background: var(--highlight-soft); border-radius: var(--radius-panel); }
.all-features__body { padding: 0 var(--space-4) var(--space-4); display: grid; gap: var(--space-4); }
.all-features[open] .all-features__body { animation: drop 260ms ease-out; }
.all-features__group h4 { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 var(--space-1); }
.all-features__group ul { margin: 0; padding-left: 20px; }
.all-features__group li + li { margin-top: 4px; }
.plugin__cta { margin-top: var(--space-6); }

/* ---------- real plugin windows (snapshot + SVG overlay) ---------- */
.pw-real { position: relative; width: 100%; border: var(--stroke) solid var(--ink); border-radius: var(--radius-panel); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; background: var(--ink); }
.pw-real img, .pw-real__ov { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pw-real__ov { display: none; }
.js .pw-real__ov { display: block; }
.still .pw-real__ov { display: none; }
.pw-real .cm { font-family: var(--font-display); letter-spacing: 0; }

/* ---------- knob ---------- */
.knobs { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: flex-start; }
.knob { display: inline-grid; justify-items: center; gap: 2px; width: 84px; touch-action: none; cursor: grab; user-select: none; }
.knob svg { width: 84px; height: 84px; overflow: visible; }
.knob--lg, .knob--lg svg { width: 112px; }
.knob--lg svg { height: 112px; }
.knob--tile { width: 64px; cursor: default; }
.knob--tile svg { width: 64px; height: 64px; }
.knob--tile .knob__label, .knob--tile .knob__val { display: none; }
.knob__track { fill: none; stroke: var(--paper-dark); stroke-width: 9; stroke-linecap: round; }
.knob__value { fill: none; stroke: var(--knob-accent, var(--accent)); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0 100; }
.knob__shadow { fill: var(--ink); }
.knob__body { fill: var(--panel); stroke: var(--ink); stroke-width: 3; }
.knob__ptr { transform-origin: 50px 50px; transform-box: view-box; }
.knob__ptr line { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.knob__ptr circle { fill: var(--ink); }
.knob__label { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.knob__val { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.03em; line-height: 1; padding: 2px 8px; background: var(--panel); color: var(--ink); border: var(--stroke-thin) solid var(--ink); border-radius: var(--radius-pill); min-width: 56px; text-align: center; }

/* ---------- mascots, bursts ---------- */
.mascot { position: relative; }
.mascot--boxer { width: 130px; flex: none; }
.mascot--boxer img { display: block; width: 100%; filter: drop-shadow(3px 3px 0 var(--ink)); }
.mascot__burst { position: absolute; width: 96px; top: -18px; right: -24px; opacity: 0; transform: scale(0.3) rotate(-20deg); transition: opacity 90ms ease-out, transform 160ms cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; z-index: 3; }
.mascot__burst .ws-burst__text { font-size: 24px; }
.mascot__burst.is-on { opacity: 1; transform: scale(1) rotate(0deg); }
.sprite { background-repeat: no-repeat; background-size: 400% 400%; }

/* ---------- install, faq, footer ---------- */
.info { padding-block: var(--space-16); }
.info__grid { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 900px) { .info__grid { grid-template-columns: 1fr 1fr; } }
.faq__title { margin-bottom: var(--space-4); }
.footer { background: var(--paper-dark); border-top: var(--stroke) solid var(--ink); padding-block: var(--space-8); }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.footer .ws-wordmark { height: 36px; }
.footer__note { margin: var(--space-2) 0 0; color: var(--text-muted); }

/* ---------- motion ---------- */
.pop { animation: pop-in 520ms cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
.hero__copy .pop:nth-child(2) { --d: 1; }
.hero__copy .pop:nth-child(3) { --d: 2; }
.hero__copy .pop:nth-child(4) { --d: 3; }
.hero__copy .pop:nth-child(5) { --d: 4; }
.hero__tiles .tile { animation-delay: calc(var(--d) * 110ms + 300ms); }
.reveal { opacity: 0; transform: translateY(40px) rotate(-1deg) scale(0.97); transition: opacity 500ms ease-out, transform 600ms cubic-bezier(.2, 1.3, .4, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.plugin--flip .reveal { transform: translateY(40px) rotate(1deg) scale(0.97); }
.plugin--flip .reveal.is-in { transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(0.85) rotate(-3deg); } }
@keyframes pop { 0% { transform: scale(0.7) rotate(-4deg); } 100% { transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: 0.4; } 96% { opacity: 1; } 98% { opacity: 0.6; } }

/* Still mode: user toggle or system reduced motion */
.still .hero__rays, .still .marquee__track, .still .rm__neon { animation: none; }
.still .pop { animation: none; }
.still .reveal { opacity: 1; transform: none; transition: none; }
.still .tile:nth-child(n) { transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
