@font-face {
  font-family: "Ioskeley Mono";
  src: url("/wavecrate/assets/IoskeleyMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --plugin-bg: #1a1a19;
  --plugin-surface: #20201f;
  --plugin-surface-2: #272624;
  --plugin-line: #4a4946;
  --plugin-line-soft: #343330;
  --plugin-text: #d8d4ce;
  --plugin-muted: #aaa69f;
  --plugin-accent: #df4d35;
  --plugin-accent-bright: #ef5a40;
  --plugin-ivory: #f1eee8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body:has(.catalog-page),
body:has(.product-page) {
  --bg: var(--plugin-bg);
  --surface: var(--plugin-surface);
  --surface-2: var(--plugin-surface-2);
  --line: var(--plugin-line);
  --line-soft: var(--plugin-line-soft);
  --text: var(--plugin-text);
  --muted: var(--plugin-muted);
  --accent: var(--plugin-accent);
  --accent-bright: var(--plugin-accent-bright);
  --ivory: var(--plugin-ivory);
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Ioskeley Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}

body:has(.catalog-page) a,
body:has(.product-page) a {
  color: inherit;
}

.catalog-page {
  width: min(1120px, calc(100vw - 96px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 54px 0 82px;
}

.product-page {
  width: min(1120px, calc(100vw - 96px));
  margin: 0 auto;
  padding: 54px 0 0;
}

.catalog-header {
  display: grid;
  gap: 12px;
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--plugin-line);
}

.eyebrow,
.muted {
  color: var(--plugin-muted);
}

.eyebrow {
  margin: 0;
  color: var(--plugin-accent-bright);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow a {
  text-decoration: none;
}

.eyebrow a:hover,
.eyebrow a:focus-visible {
  color: var(--plugin-ivory);
  outline: none;
}

.product-lockup {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--plugin-ivory);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.product-lockup a {
  color: inherit;
  text-decoration: none;
}

.product-lockup > span,
.product-lockup > strong {
  color: var(--plugin-accent-bright);
  font-weight: 400;
}

.product-lockup a:hover,
.product-lockup a:focus-visible {
  color: var(--plugin-accent-bright);
  outline: none;
}

.product-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: -54px 0 42px;
  padding: 10px 0;
  border-bottom: 0;
}

.product-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--plugin-line);
  box-shadow: 0 0 0 100vmax var(--plugin-line);
  clip-path: inset(0 -100vmax);
  content: "";
}

.product-download-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 26px;
  border: 1px solid var(--plugin-accent-bright);
  border-radius: 3px;
  color: #fff8f2;
  background: var(--plugin-accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-download-link > svg {
  font-size: 25px;
  line-height: 1;
}

.product-download-link:hover,
.product-download-link:focus-visible {
  color: var(--plugin-accent);
  background: #fff8f2;
  outline: none;
}

.product-download-link:active {
  transform: translateY(1px);
}

#download {
  scroll-margin-top: 24px;
}

h1 {
  margin: 0;
  color: var(--plugin-ivory);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .92;
}

h2 {
  margin: 0 0 14px;
  color: var(--plugin-accent-bright);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.catalog-kicker,
.product-description {
  max-width: 620px;
  margin: 4px 0 0;
  color: var(--plugin-muted);
  font-size: 13px;
  line-height: 1.6;
}

.catalog-page #catalog {
  display: grid;
  gap: 34px;
}

.catalog-page #catalog > section {
  border: 1px solid var(--plugin-line);
  background: color-mix(in srgb, var(--plugin-surface) 92%, transparent);
}

.catalog-page #catalog > section > .eyebrow {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--plugin-line);
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 82px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--plugin-line-soft);
  color: var(--plugin-text);
  text-decoration: none;
}

.product-row:last-child {
  border-bottom: 0;
}

.product-row span:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-row strong {
  color: var(--plugin-ivory);
  font-size: 17px;
  font-weight: 400;
}

.product-row small {
  color: var(--plugin-muted);
  font-size: 11px;
  line-height: 1.4;
}

.product-row > span:last-child {
  color: var(--plugin-accent-bright);
  font-size: 18px;
  transition: transform .18s ease, color .18s ease;
}

.product-row:hover,
.product-row:focus-visible {
  color: var(--plugin-ivory);
  background: var(--plugin-surface-2);
  outline: none;
}

.product-row:hover > span:last-child,
.product-row:focus-visible > span:last-child {
  color: var(--plugin-ivory);
  transform: translateX(4px);
}

.product-page > h1 {
  margin-top: 0;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: uppercase;
}

.product-shot {
  display: flex;
  justify-content: center;
  margin: 34px 0 42px;
}

.product-shot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.product-shot-empty {
  width: 100%;
}

.product-shot-placeholder {
  display: grid;
  place-items: center;
  width: min(912px, 100%);
  min-height: 260px;
  padding: 48px 24px;
  border: 1px dashed var(--plugin-line);
  color: var(--plugin-muted);
  background: var(--plugin-surface);
  text-align: center;
}

.product-shot-placeholder p {
  max-width: 420px;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.product-section {
  padding: 24px 0;
  border-top: 1px solid var(--plugin-line);
}

.product-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--plugin-text);
  font-size: 13px;
  line-height: 1.5;
}

.product-section li {
  position: relative;
  padding-left: 18px;
}

.product-section li::before {
  position: absolute;
  top: .65em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--plugin-accent-bright);
  content: "";
}

.product-section p {
  margin: 0;
  color: var(--plugin-text);
  font-size: 13px;
}

.download-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 25px 18px 18px;
  border: 1px solid var(--plugin-line);
  background: var(--plugin-surface);
}

.download-panel h2 {
  margin: 0;
}

.download-panel p {
  margin: 0;
  color: var(--plugin-muted);
  font-size: 12px;
  line-height: 1.5;
}

.download-form {
  display: grid;
  gap: 10px;
  max-width: 620px;
}

.download-form label {
  color: var(--plugin-muted);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.download-controls {
  display: flex;
  gap: 8px;
}

.download-controls input,
button,
.download-link {
  min-height: 42px;
  border: 1px solid var(--plugin-line);
  border-radius: 3px;
  color: var(--plugin-text);
  background: var(--plugin-surface-2);
  font: inherit;
}

.download-controls input {
  width: 150px;
  padding: 0 12px;
}

.download-controls input:focus-visible,
button:focus-visible,
.download-link:focus-visible {
  border-color: var(--plugin-accent-bright);
  outline: 1px solid var(--plugin-accent-bright);
  outline-offset: 2px;
}

button,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  text-decoration: none;
  cursor: pointer;
}

button {
  border-color: var(--plugin-accent);
  color: #fff;
  background: var(--plugin-accent);
}

button:hover,
button:focus-visible,
.download-link:hover,
.download-link:focus-visible {
  border-color: var(--plugin-accent-bright);
  color: #fff;
  background: var(--plugin-accent-bright);
}

#download-message {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-demo { position: relative; width: 100%; margin-top: 18px; padding: 24px 48px; display: grid; grid-template-columns: 180px minmax(0, 1fr); grid-template-rows: 108px 40px; gap: 22px; }
.chat-demo::before { position: absolute; left: 0; width: 100%; height: 1px; background: var(--line); content: ""; }
.chat-demo::before { top: 0; }
.section-kicker { color: var(--accent-bright); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; grid-row: 1 / 3; align-self: start; min-height: 42px; display: flex; gap: 8px; align-items: center; }
.chat-demo .chat-identity, .chat-demo .chat-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat-log { height: 108px; padding: 6px 10px 6px 6px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 6px; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.chat-log:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-track { background: transparent; }
.chat-log::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 999px; }
.chat-log .chat-message { width: max-content; max-width: 100%; min-height: 42px; margin: 0; display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: transparent; overflow: hidden; }
.chat-log .chat-message:hover { color: var(--ivory); border-color: #ef5a40b3; background: #ef5a4014; }
.chat-log .chat-message-body { min-width: 0; min-height: 40px; padding: 9px 13px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; border: 0; color: var(--text); background: transparent; font: inherit; font-size: 12px; line-height: 1.35; text-align: left; overflow-wrap: anywhere; cursor: default; outline: none; }
.chat-log .chat-message-body:hover { border: 0; color: var(--text); background: transparent; }
.chat-log strong { color: var(--accent-bright); font-weight: 400; }
.chat-log span { min-width: 0; color: var(--muted); }
.chat-demo form { grid-column: 2; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.chat-demo label { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.chat-demo input, .chat-demo button { min-height: 40px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.chat-demo input { padding: 0 14px; }
.chat-demo button { padding: 0 22px; cursor: pointer; }
.chat-demo button:hover { border-color: var(--accent); }
.chat-demo label { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
footer { min-height: 44px; padding: 0 28px; display: flex; gap: 18px; align-items: center; color: var(--muted); text-transform: uppercase; font-size: 10px; border-top: 1px solid var(--line-soft); }
footer strong { margin-left: auto; font-weight: 400; }

@media (max-width: 720px) {
  .catalog-page {
    width: min(calc(100vw - 40px), 1120px);
    padding-top: 34px;
  }

  .product-page {
    width: min(calc(100% - 40px), 1120px);
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .product-lockup {
    gap: 8px;
    font-size: 10px;
  }

  .product-header {
    margin-top: -34px;
    margin-bottom: 34px;
  }

  .product-download-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: 10px;
  }

  .product-shot {
    margin-top: 28px;
  }

}

@media (max-width: 520px) {
  .catalog-page {
    width: calc(100vw - 28px);
  }

  .product-page {
    width: calc(100% - 28px);
  }

  .catalog-page {
    padding-bottom: 52px;
  }

  .catalog-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }

  .product-row {
    min-height: 72px;
    padding: 14px;
  }

  .download-controls {
    flex-direction: column;
  }

  .download-controls input,
  .download-controls button {
    width: 100%;
  }

}

@media (max-width: 650px) {
  .chat-demo {
    padding: 28px 14px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 132px auto;
  }

  .chat-demo .section-kicker {
    grid-row: 1;
  }

  .chat-log {
    height: 132px;
    padding: 8px 10px 8px 8px;
    grid-column: 1;
    scroll-padding-block: 8px;
  }

  .chat-demo form {
    grid-column: 1;
    grid-template-columns: 1fr auto;
  }

  .chat-demo form label {
    grid-column: 1 / -1;
  }

  footer { padding: 14px; flex-wrap: wrap; gap: 10px; }
  footer strong { width: 100%; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .product-row > span:last-child {
    transition: none;
  }
}

/* Keep Pump's support gate aligned with the Wavecrate release chooser. */
.download-form.donation-gate {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 0;
  max-width: none;
  margin-top: 0;
  border: 1px solid var(--plugin-line);
  background: var(--plugin-surface);
}

.download-form .donation-intro {
  padding: 26px;
  border-right: 1px solid var(--plugin-line);
}

.download-form .micro-label {
  color: var(--plugin-accent-bright);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.download-form .donation-intro h3 {
  margin: 12px 0 10px;
  color: var(--plugin-ivory);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.download-form .donation-intro p {
  max-width: 460px;
  color: var(--plugin-muted);
  font-size: 12px;
  line-height: 1.6;
}

.download-form .donation-controls {
  min-width: 0;
  padding: 20px 22px;
}

.download-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.download-form legend {
  margin-bottom: 10px;
  color: var(--plugin-muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--plugin-line);
}

.donation-options button,
.custom-option {
  min-height: 68px;
  padding: 10px 12px;
  display: grid;
  grid-template-rows: 20px 24px;
  align-content: center;
  gap: 5px;
  color: var(--plugin-muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--plugin-line);
  text-align: left;
  cursor: pointer;
}

.donation-options > :last-child {
  border-right: 0;
}

.donation-options button:hover,
.donation-options button:focus-visible,
.custom-option:hover,
.custom-option:focus-within {
  color: var(--plugin-text);
  background: var(--plugin-surface-2);
  outline: none;
}

.donation-options button.is-selected,
.custom-option.is-selected {
  color: var(--plugin-text);
  background: var(--plugin-surface-2);
  box-shadow: inset 0 -2px var(--plugin-accent-bright);
}

.donation-options strong {
  color: var(--plugin-ivory);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.donation-options span {
  font-size: 9px;
  line-height: 12px;
  text-transform: uppercase;
}

.custom-option {
  cursor: text;
}

.custom-pill-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.custom-pill-input b {
  color: var(--plugin-accent-bright);
  font-weight: 400;
}

.custom-pill-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--plugin-text);
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 10px;
}

.donation-action {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.donation-action p {
  color: var(--plugin-muted);
  font-size: 10px;
}

.donation-action-controls {
  min-width: 230px;
  margin-left: auto;
}

.donation-action-controls button {
  width: 100%;
}

.donation-action-controls button:disabled {
  color: var(--plugin-muted);
  background: transparent;
  border-color: var(--plugin-line);
  cursor: not-allowed;
  opacity: .65;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.platform-download-tabs {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.platform-download-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-download-tab {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--plugin-line);
  border-radius: 999px;
  color: var(--plugin-muted);
  background: transparent;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.platform-download-tab:hover,
.platform-download-tab:focus-visible {
  border-color: var(--plugin-accent-bright);
  color: var(--plugin-ivory);
  background: var(--plugin-surface-2);
  outline: 1px solid var(--plugin-accent-bright);
  outline-offset: 2px;
}

.platform-download-tab.is-selected,
.platform-download-tab[aria-selected="true"] {
  border-color: var(--plugin-accent);
  color: var(--plugin-ivory);
  background: var(--plugin-surface-2);
  box-shadow: inset 0 -2px var(--plugin-accent-bright);
}

@media (max-width: 900px) {
  .download-form.donation-gate {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-form .donation-intro {
    border-right: 0;
    border-bottom: 1px solid var(--plugin-line);
  }
}

@media (max-width: 520px) {
  .donation-options {
    grid-template-columns: 1fr 1fr;
  }

  .donation-options > :nth-child(2n) {
    border-right: 0;
  }

  .donation-options > :nth-child(-n + 4) {
    border-bottom: 1px solid var(--plugin-line);
  }

  .donation-options .custom-option {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .donation-action {
    align-items: stretch;
    flex-direction: column;
  }

  .donation-action-controls {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .platform-download-tab {
    flex: 1 1 120px;
  }
}
