/* ==========================================================================
   DRELVA AUDIO · NOCTURNE DESIGN SYSTEM
   Source of truth: DESIGN-SPEC.md
   ========================================================================== */

/* --- TOKENS --- */
:root {
  --bg: #0A0D0F;
  --base: #0E1214;
  --panel: #141A1D;
  --panel-2: #10151A;
  --line: #232C28;
  --edge: #2E3A33;
  --lime: #B7FF3B;
  --lime-hi: #D6FF7A;
  --lime-deep: #8FC93A;
  --glow: rgba(183, 255, 59, 0.35);
  --text: #E5E7EB;
  --dim: #8A938E;
  --faint: #5A635E;

  --font-brand: 'Michroma', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-window: 16px;
  --radius-card: 10px;
  --radius-input: 8px;
  --radius-pill: 999px;

  color-scheme: dark;
}

/* --- RESET & FOUNDATION --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.svg-defs-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Legacy Pages Forwarding Fallback */
.legacy-domain-message {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.legacy-domain-logo {
  width: min(300px, 70vw);
  margin: 0 auto 8px;
}

.legacy-domain-message p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-brand);
  font-size: clamp(20px, 4.5vw, 36px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legacy-domain-message a {
  color: var(--lime);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

img, svg {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

:focus-visible {
  outline: 1px dashed var(--lime) !important;
  outline-offset: 3px !important;
}

/* --- MASTER WINDOW CONTAINER (DESIGN-SPEC NOCTURNE) --- */
.drelva-viewport {
  width: 100%;
  padding: 24px 20px 40px;
  display: flex;
  justify-content: center;
}

.drelva-window {
  width: 100%;
  max-width: 1320px;
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--radius-window);
  padding: 24px;
  position: relative;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.98);
}

@media (max-width: 768px) {
  .drelva-viewport {
    padding: 8px 6px 20px;
  }
  .drelva-window {
    border-radius: 12px;
    padding: 16px 12px 20px;
  }
}

/* --- HEADER --- */
.drelva-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-monogram {
  height: 24px;
  width: 24px;
  filter: drop-shadow(0 0 8px var(--glow));
  flex-shrink: 0;
}

.brand-logotype {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-lettering {
  height: 13px;
  width: auto;
}

.brand-sub {
  font-family: var(--font-brand);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--lime);
  opacity: 0.9;
}

.header-status-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime);
}

.status-indicator-text {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--dim);
  padding: 6px 4px;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--lime);
}

.nav-sep {
  color: var(--faint);
  user-select: none;
}

@media (max-width: 820px) {
  .header-status-strip {
    display: none;
  }
}

@media (max-width: 560px) {
  .drelva-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .top-nav {
    margin-left: auto;
  }
}

/* 1 px Rule with Centred 14 px Vertical Tick */
.header-divider-wrap {
  position: relative;
  width: 100%;
  height: 14px;
  margin-bottom: 24px;
}

.header-divider {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--edge);
}

.header-tick {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 14px;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime);
}

/* --- HERO INSTRUMENT SECTION --- */
.drelva-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 12px 28px;
}

.hero-orb-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-orb-canvas {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, #08110c 0%, #040806 70%, #010302 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.95), 0 0 30px rgba(183, 255, 59, 0.12);
  display: block;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 400;
  letter-spacing: 0.38em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--text);
  text-indent: 0.38em;
}

.hero-tagline {
  color: var(--dim);
  font-size: 13px;
  max-width: 52ch;
  margin: 0 0 20px;
  line-height: 1.55;
}

/* OS Switcher Rail */
.os-filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.os-filter-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
  font-weight: 600;
  text-transform: uppercase;
}

.os-filter-group {
  display: inline-flex;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  padding: 2px;
  background: var(--panel-2);
}

.os-btn {
  padding: 5px 14px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: all 0.15s ease;
}

.os-btn:hover {
  color: var(--text);
}

.os-btn[aria-pressed="true"] {
  background: var(--lime);
  color: #0A0D0F;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(183, 255, 59, 0.35);
}

/* --- PRODUCT CATALOG GRID --- */
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 1040px) {
  .plugins-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Modular Product Card (DESIGN-SPEC NOCTURNE) */
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--edge);
}

.product-card.selected {
  border-color: var(--edge);
}

/* Card Header: Icon + "01" + Plugin Title + Version Pill */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 2px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.card-icon-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
}

.card-icon {
  width: 16px;
  height: 16px;
  stroke: var(--text);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.card-name {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.22em;
  margin: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-tag {
  border-radius: var(--radius-pill);
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.pill-tag.lime {
  color: var(--lime);
  border-color: rgba(183, 255, 59, 0.4);
}

/* Card Visual Row: Fixed Height Preview Screen + Knob Meter */
.card-visual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: #060907;
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 10px 12px;
}

@media (max-width: 440px) {
  .card-visual-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }
}

.card-screenshot-btn {
  display: block;
  width: 100%;
  cursor: zoom-in;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #020302;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  height: 136px;
}

.card-screenshot-btn:hover {
  border-color: var(--lime);
  box-shadow: 0 0 14px rgba(183, 255, 59, 0.18);
}

.card-screenshot-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.screenshot-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(10, 13, 15, 0.9);
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  pointer-events: none;
}

/* Knob Module Well (DESIGN-SPEC NOCTURNE) */
.knob-module-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  height: 136px;
  min-width: 108px;
}

.knob-module-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.knob-sync-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 4px var(--lime);
}

.knob-sync-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

/* Hardware Dial SVG (NOCTURNE SPEC: Size L 64px) */
.drelva-knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  flex-shrink: 0;
}

.knob-widget {
  position: relative;
  width: 64px;
  height: 64px;
}

.knob-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.knob-track {
  stroke: var(--line);
  stroke-width: 3px;
  fill: none;
  stroke-linecap: round;
}

.knob-arc {
  stroke-width: 3px;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--glow));
  transition: stroke 0.15s ease, filter 0.15s ease;
}

.knob-disc {
  stroke: var(--line);
  stroke-width: 1px;
}

.knob-pointer {
  stroke: var(--text);
  stroke-width: 2px;
  stroke-linecap: round;
}

.knob-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin-top: 3px;
  text-align: center;
}

.knob-val {
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.1;
  font-weight: 600;
}

.drelva-knob:hover .knob-arc {
  stroke: var(--lime-hi);
  filter: drop-shadow(0 0 6px var(--lime));
}

.drelva-knob:hover .knob-label {
  color: var(--text);
}

/* --- CARD CONTENT & TYPOGRAPHY --- */
.card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-kind-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-kind-badge {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--lime);
  background: rgba(183, 255, 59, 0.08);
  border: 1px solid rgba(183, 255, 59, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.card-kind {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.02em;
}

.card-blurb {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

/* Compact Feature Points */
.card-points {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-points li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  color: #c4c8cd;
  line-height: 1.45;
}

.card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--lime);
}

/* "What's new" Callout (.card-upd) */
.card-upd {
  background: radial-gradient(120% 120% at 0% 0%, rgba(183, 255, 59, 0.06), transparent 60%), var(--panel-2);
  border: 1px solid rgba(183, 255, 59, 0.28);
  border-radius: 8px;
  padding: 9px 12px;
  margin-top: 2px;
}

.upd-title {
  margin: 0 0 2px;
  font-family: var(--font-brand);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 6px;
}

.upd-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 5px var(--lime);
}

.upd-status {
  font-size: 11.5px;
  color: var(--dim);
  margin: 0 0 6px;
  line-height: 1.35;
}

.upd-group-title {
  margin: 6px 0 1px;
  font-family: var(--font-brand);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--lime-hi);
  text-transform: uppercase;
}

.upd-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.upd-list li {
  font-size: 11.5px;
  color: #b9bec4;
  padding: 1px 0 1px 12px;
  position: relative;
  line-height: 1.35;
}

.upd-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--dim);
}

/* Gallery for Pongo */
.card-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.gallery-btn {
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.gallery-btn img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gallery-btn:hover img {
  border-color: var(--lime);
  box-shadow: 0 0 10px rgba(183, 255, 59, 0.2);
}

.gallery-btn span {
  font-size: 10.5px;
  color: var(--dim);
  line-height: 1.25;
}

/* Versio Firmware Panel (.card-firmware) */
.card-firmware {
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--panel-2);
  margin-top: 4px;
}

.firmware-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.firmware-badge {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--lime);
  background: rgba(183, 255, 59, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.firmware-title {
  font-family: var(--font-brand);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text);
  margin: 0;
}

.firmware-text {
  font-size: 12.5px;
  color: var(--dim);
  margin: 0 0 8px;
  line-height: 1.45;
}

.firmware-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.firmware-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #090D10;
  border: 1px solid var(--edge);
  border-radius: var(--radius-input);
  flex: 1 1 calc(50% - 4px);
  min-width: 170px;
  transition: all 0.15s ease;
}

.firmware-btn:hover {
  border-color: var(--lime);
  box-shadow: 0 0 10px rgba(183, 255, 59, 0.2);
}

.firmware-btn .fw-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.firmware-btn .fw-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.firmware-btn b {
  font-size: 10.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firmware-btn small {
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firmware-note {
  font-size: 11.5px;
  color: var(--faint);
  margin: 8px 0 0;
  line-height: 1.35;
}

/* --- DOWNLOAD ACTION SYSTEM --- */
.download-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.empty-os-note {
  color: var(--dim);
  font-size: 12px;
  margin: 0;
  font-style: italic;
}

.primary-download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Primary Installer Button (DESIGN-SPEC NOCTURNE) */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-input);
  border: 1px solid var(--edge);
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
  min-width: 160px;
  flex: 1 1 calc(50% - 4px);
  position: relative;
}

.btn-main::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
}

.btn-main-badge {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime);
  background: rgba(183, 255, 59, 0.12);
  border: 1px solid rgba(183, 255, 59, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.btn-main-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.btn-main-title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-main-filename {
  color: var(--dim);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-main:hover {
  border-color: var(--lime);
  box-shadow: 0 0 14px var(--glow);
}

.btn-main:hover .btn-main-title {
  color: var(--lime-hi);
}

.btn-main.active {
  border-color: var(--lime);
  background: radial-gradient(120% 140% at 50% 50%, rgba(183, 255, 59, 0.12), transparent 70%), var(--panel-2);
  box-shadow: 0 0 16px rgba(183, 255, 59, 0.16);
}

/* Auxiliary Download Rail */
.aux-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  background: #090E11;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.aux-rail-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.aux-rail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.aux-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 2px;
}

.aux-link-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--edge);
}

.aux-link:hover {
  color: var(--lime);
}

.aux-link:hover .aux-link-dot {
  background: var(--lime);
  box-shadow: 0 0 4px var(--lime);
}

.aux-link-name {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Metadata Row */
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(35, 44, 40, 0.6);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-sep {
  color: var(--faint);
}

.meta-links a {
  color: var(--lime);
}

.meta-links a:hover {
  text-decoration: underline;
}

/* Collapsible Previous Versions */
details.old-versions {
  margin-top: 4px;
}

details.old-versions summary {
  cursor: pointer;
  color: var(--dim);
  font-family: var(--font-brand);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

details.old-versions summary:hover {
  color: var(--text);
}

.details-arrow {
  color: var(--lime);
  font-size: 11px;
  display: inline-block;
  transition: transform 0.15s ease;
}

details.old-versions[open] .details-arrow {
  transform: rotate(90deg);
}

.old-versions-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.old-rel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.old-tag {
  color: var(--dim);
  font-family: var(--font-sans);
  font-size: 11px;
}

.old-rel-files {
  display: inline-flex;
  gap: 8px;
}

.old-rel-files a {
  color: var(--text);
  font-size: 11px;
}

.old-rel-files a:hover {
  color: var(--lime);
}

/* 2px Bottom Progress Bar (NOCTURNE SPEC) */
.card-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.card-progress-fill {
  height: 100%;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime);
}

/* --- SYSTEM NOTICE BOX --- */
.system-notice-box {
  margin: 28px 0 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-badge {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--lime);
  background: rgba(183, 255, 59, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.notice-title {
  font-family: var(--font-brand);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.notice-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}

.notice-body p {
  margin: 0;
}

.notice-body a {
  color: var(--lime);
}

/* --- RACK FOOTER --- */
.drelva-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-brand);
  letter-spacing: 0.32em;
  color: var(--dim);
}

.footer-meta {
  color: var(--faint);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-right a {
  color: var(--dim);
}

.footer-right a:hover {
  color: var(--lime);
}

.footer-sep {
  user-select: none;
}

/* --- LIGHTBOX DIALOG --- */
dialog.lightbox-dialog {
  border: 1px solid var(--edge);
  background: #020302;
  padding: 14px;
  max-width: 95vw;
  max-height: 94vh;
  border-radius: 10px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.98);
  color: var(--text);
}

dialog.lightbox-dialog::backdrop {
  background: rgba(2, 4, 3, 0.92);
  backdrop-filter: blur(4px);
}

.lb-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lb-cap {
  font-size: 11.5px;
  color: var(--dim);
}

.lb-close-btn {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-brand);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lb-close-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.lb-frame img {
  display: block;
  max-width: calc(95vw - 28px);
  max-height: calc(94vh - 70px);
  width: auto;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--edge);
}

/* --- ACCESSIBILITY & PREFERS-REDUCED-MOTION --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   DRELVA preview: reference-led landing page
   -------------------------------------------------------------------------- */

.site-ref {
  width: min(100% - 64px, 1800px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 32px;
  color: #eef3f0;
}

.ref-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(213, 225, 222, 0.24);
}

.ref-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.ref-mark {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 10px rgba(183, 255, 59, 0.32));
}

.ref-word {
  width: 250px;
  height: auto;
}

.ref-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 68px);
  font-size: 16px;
  font-weight: 600;
}

.ref-nav button {
  font-size: inherit;
  font-weight: inherit;
}

.ref-nav a,
.ref-nav button {
  opacity: 0.84;
}

.ref-nav a:hover,
.ref-nav button:hover {
  color: var(--lime);
  opacity: 1;
}

.ref-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(720px, 1.45fr);
  gap: clamp(56px, 6vw, 110px);
  align-items: center;
  padding: 28px 8px 34px;
  border-bottom: 1px solid rgba(213, 225, 222, 0.16);
}

.ref-copy {
  min-width: 0;
}

.ref-kicker,
.ref-line,
.ref-panel-brand,
.ref-tabs,
.ref-section-head,
.ref-footer,
.ref-card-brand {
  font-family: var(--font-brand);
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

/* plugin names keep their own casing (Pongo, not PONGO) */
.ref-card-brand b {
  text-transform: none;
}

.ref-kicker {
  margin: 0 0 20px;
  color: #bac8c2;
  font-size: 12px;
}

.ref-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(64px, 5.6vw, 104px);
  line-height: 0.92;
  font-weight: 800;
}

.ref-copy h1 span {
  display: block;
}

.ref-lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: #edf2ef;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.43;
}

.ref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.ref-btn {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 30px;
  border: 1px solid rgba(218, 232, 228, 0.42);
  border-radius: 4px;
  color: #eef3f0;
  font-size: 18px;
  font-weight: 750;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.ref-btn:hover {
  transform: translateY(-1px);
  border-color: var(--lime);
}

.ref-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #071004;
}

.ref-primary:hover {
  background: #d7ff78;
  color: #071004;
}

.ref-line {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
  color: #b7c3bf;
  font-size: 10px;
}

.ref-line span {
  width: 34px;
  height: 1px;
  background: rgba(218, 232, 228, 0.42);
}

.ref-instrument {
  min-width: 0;
  position: relative;
  border: 1px solid rgba(218, 232, 228, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 35%), #090d0f;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.48);
  padding: clamp(16px, 1.4vw, 24px);
}

.ref-screws {
  position: absolute;
  inset: 8px 10px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.ref-screws span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(218, 232, 228, 0.42);
  border-radius: 50%;
  background: #0a0e10;
}

.ref-panel-top,
.ref-panel-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.ref-panel-top {
  padding: 10px 22px 18px;
}

.ref-panel-top strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.ref-panel-brand {
  color: #b9c5c1;
  font-size: 13px;
}

.ref-tabs {
  justify-self: end;
  color: #b9c5c1;
  font-size: 10px;
}

.ref-preset {
  min-width: 260px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border: 1px solid rgba(218, 232, 228, 0.18);
  border-radius: 4px;
}


.ref-preset span {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.ref-preset button {
  height: 38px;
  color: #eef3f0;
  font-weight: 800;
}

.ref-preset button:hover {
  color: var(--lime);
}

.ref-screen {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(218, 232, 228, 0.18);
  border-radius: 4px;
  background: #050707;
}

.ref-screen img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.ref-screen:hover img {
  transform: none;
  opacity: 1;
}

.ref-panel-bottom {
  padding: 18px 22px 4px;
}

.ref-panel-bottom small {
  display: block;
  color: #b9c5c1;
  font-size: 14px;
}

.ref-panel-bottom b {
  display: block;
  font-size: 26px;
  line-height: 1.08;
}

.ref-mini-bars {
  justify-self: end;
  height: 42px;
  display: flex;
  align-items: end;
  gap: 12px;
}

.ref-mini-bars span {
  width: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(183, 255, 59, 0.35);
  animation: refMeter 1.7s ease-in-out infinite;
}

.ref-mini-bars span:nth-child(1) { height: 24px; animation-delay: -0.1s; }
.ref-mini-bars span:nth-child(2) { height: 42px; animation-delay: -0.4s; }
.ref-mini-bars span:nth-child(3) { height: 28px; animation-delay: -0.7s; }
.ref-mini-bars span:nth-child(4) { height: 36px; animation-delay: -1s; }
.ref-mini-bars span:nth-child(5) { height: 18px; animation-delay: -1.3s; }

@keyframes refMeter {
  50% { transform: scaleY(0.38); opacity: 0.55; }
}

.ref-plugins {
  padding: 26px 8px 36px;
}

.ref-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.ref-section-head h2,
.ref-section-head p {
  margin: 0;
  font-size: 12px;
}

.ref-section-head p {
  color: #b9c5c1;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ref-card {
  min-height: 292px;
  border: 1px solid rgba(218, 232, 228, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%), rgba(10, 14, 16, 0.92);
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ref-card:hover,
.ref-card.active {
  transform: translateY(-3px);
  border-color: rgba(183, 255, 59, 0.62);
  background: rgba(16, 22, 24, 0.98);
}

.ref-card-shot {
  width: 100%;
  border: 1px solid rgba(218, 232, 228, 0.16);
  background: #050707;
  overflow: hidden;
}

.ref-card-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  opacity: 1;
}

.ref-card:hover .ref-card-shot img,
.ref-card.active .ref-card-shot img {
  transform: none;
  opacity: 1;
}

.ref-card-body {
  padding: 14px 4px 0;
}

.ref-card-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9c5c1;
  font-size: 7px;
}

.ref-card h3 {
  margin: 14px 0 0;
  font-size: 25px;
  line-height: 1;
}

.ref-card p {
  min-height: 46px;
  margin: 10px 0 18px;
  color: #c8d1ce;
  font-size: 16px;
  line-height: 1.38;
}

.ref-card a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--lime);
  font-weight: 750;
}

.ref-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(213, 225, 222, 0.24);
  color: #b9c5c1;
  font-size: 10px;
}

.ref-support,
.ref-lightbox {
  border: 1px solid rgba(218, 232, 228, 0.34);
  border-radius: 8px;
  background: #090d0f;
  color: #eef3f0;
  box-shadow: 0 32px 92px rgba(0, 0, 0, 0.78);
}

.ref-support::backdrop,
.ref-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.ref-support {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
}

.ref-support form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.ref-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ref-dialog-head h2 {
  margin: 0;
  font-size: 28px;
}

.ref-dialog-head button,
.ref-lightbox button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(218, 232, 228, 0.34);
  border-radius: 4px;
}

.ref-support p {
  margin: 0;
  color: #c8d1ce;
}

.ref-support a {
  color: var(--lime);
}

.ref-support label {
  display: grid;
  gap: 8px;
  color: #c8d1ce;
}

.ref-support input,
.ref-support textarea {
  width: 100%;
  border: 1px solid rgba(218, 232, 228, 0.26);
  border-radius: 4px;
  background: #121719;
  color: #eef3f0;
  padding: 12px 14px;
  resize: vertical;
}

.ref-lightbox {
  max-width: min(92vw, 1340px);
  padding: 14px;
}

.ref-lightbox button {
  display: block;
  margin: 0 0 12px auto;
}

.ref-lightbox img {
  max-height: 80vh;
  border: 1px solid rgba(218, 232, 228, 0.2);
}

.ref-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 50;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 18px;
  border-radius: 4px;
  background: var(--lime);
  color: #071004;
  font-weight: 800;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ref-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-page {
  width: min(100% - 64px, 1500px);
  margin: 0 auto;
  padding: 26px 0 42px;
}

.product-header,
.product-nav,
.product-actions,
.product-download {
  display: flex;
  align-items: center;
}

.product-header {
  min-height: 64px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(213, 225, 222, 0.24);
}

.product-nav {
  gap: 32px;
  font-family: Michroma, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-nav a,
.product-page .ref-footer a {
  color: #dbe4e0;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  gap: 54px;
  align-items: center;
  padding: 44px 0 38px;
  border-bottom: 1px solid rgba(213, 225, 222, 0.18);
}

.product-kicker {
  margin: 0 0 18px;
  color: #b9c5c1;
  font-family: Michroma, sans-serif;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.product-copy h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 136px);
  line-height: 0.9;
}

.product-copy p,
.product-band p {
  max-width: 640px;
  color: #d7dfdc;
  font-size: 18px;
  line-height: 1.5;
}

.product-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.product-shot,
.product-gallery button {
  border: 1px solid rgba(218, 232, 228, 0.22);
  border-radius: 4px;
  background: #050707;
  overflow: hidden;
}

.product-shot img,
.product-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-shot img {
  max-height: 520px;
}

.product-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 44px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(213, 225, 222, 0.16);
}

.product-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
}

.product-specs dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.product-specs dl div {
  border: 1px solid rgba(218, 232, 228, 0.18);
  background: rgba(255, 255, 255, 0.025);
  padding: 16px;
}

.product-specs dt {
  color: var(--lime);
  font-family: Michroma, sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-specs dd {
  margin: 10px 0 0;
  color: #e9efec;
  line-height: 1.45;
}

.product-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-points li {
  border-left: 2px solid var(--lime);
  background: rgba(183, 255, 59, 0.045);
  padding: 14px 16px;
  color: #e9efec;
  line-height: 1.45;
}

.product-footnote {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.product-gallery-card {
  display: grid;
  grid-template-rows: auto auto;
  align-self: start;
  border: 1px solid rgba(218, 232, 228, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

.product-gallery-card.wide {
  grid-column: 1 / -1;
}

.product-gallery-card button {
  width: 100%;
}

.product-gallery-caption {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(218, 232, 228, 0.12);
}

.product-gallery-caption strong {
  display: block;
  margin-bottom: 5px;
  color: #f1f6f3;
  font-size: 14px;
}

.product-gallery-caption span {
  display: block;
  color: #b9c5c1;
  font-size: 13px;
  line-height: 1.45;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
}

.product-feature-card {
  border: 1px solid rgba(218, 232, 228, 0.2);
  border-left: 2px solid var(--lime);
  background: rgba(183, 255, 59, 0.045);
  padding: 18px;
}

.product-feature-card h3 {
  margin: 0 0 12px;
  color: #f1f6f3;
  font-size: 16px;
  line-height: 1.2;
}

.product-feature-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #d7dfdc;
  line-height: 1.45;
}

.product-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-download {
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  border: 1px solid rgba(218, 232, 228, 0.24);
  border-radius: 4px;
  padding: 14px 16px;
  color: #edf4f0;
  background: rgba(255, 255, 255, 0.025);
}

.product-download.primary {
  border-color: rgba(183, 255, 59, 0.8);
  background: rgba(183, 255, 59, 0.08);
}

.product-download span {
  font-weight: 800;
}

.product-download small {
  color: #b9c5c1;
  text-align: right;
  overflow-wrap: anywhere;
}

.product-download:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
}

.product-lightbox img {
  width: auto;
  max-width: 100%;
}

@media (max-width: 1180px) {
  .site-ref {
    width: min(100% - 32px, 1800px);
  }

  .ref-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-ref {
    width: min(1800px, calc(100% - 28px));
    padding-top: 14px;
  }

  .ref-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 14px;
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .ref-word {
    width: 176px;
  }

  .ref-nav {
    width: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
  }

  .ref-nav a,
  .ref-nav button {
    text-align: left;
  }

  .ref-hero {
    padding: 26px 0 34px;
    gap: 30px;
    width: 100%;
    max-width: calc(100vw - 28px);
    overflow: hidden;
  }

  .ref-copy,
  .ref-instrument,
  .ref-plugins,
  .ref-footer {
    width: 100%;
    max-width: calc(100vw - 28px);
    overflow: hidden;
  }

  .ref-copy h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(40px, 12vw, 48px);
    overflow-wrap: normal;
  }

  .ref-lede {
    max-width: 340px;
    font-size: 18px;
  }

  .ref-actions {
    max-width: 340px;
    flex-direction: column;
  }

  .ref-btn {
    width: 100%;
  }

  .ref-line {
    letter-spacing: 0.28em;
  }

  .ref-panel-top,
  .ref-panel-bottom {
    grid-template-columns: 1fr;
    padding-inline: 8px;
  }

  .ref-tabs,
  .ref-mini-bars {
    justify-self: start;
  }

  .ref-preset {
    min-width: 0;
    width: 100%;
  }

  .ref-screen img {
    aspect-ratio: 16 / 10;
  }

  .ref-section-head,
  .ref-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ref-grid {
    grid-template-columns: 1fr;
  }

  .product-page {
    width: min(100% - 28px, 1500px);
    padding-top: 14px;
  }

  .product-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 14px;
  }

  .product-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .product-hero,
  .product-band {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-copy h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .product-specs dl,
  .product-points,
  .product-gallery,
  .product-downloads {
    grid-template-columns: 1fr;
  }

  .product-gallery-card.wide {
    grid-column: auto;
  }

  .product-feature-grid {
    grid-template-columns: 1fr;
  }

  .product-download {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-download small {
    text-align: left;
  }
}

/* DRELVA: clear product paths and practical installation guidance. */
.ref-screen img, .product-shot img, .product-gallery img, .ref-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  margin-inline: auto;
}
.ref-lightbox .screenshot-original { display: inline-block; margin-bottom: 14px; color: #B7FF3B; text-underline-offset: 4px; }
.ref-availability, .ref-card-status { color: var(--lime, #B7FF3B); font-size: 12px; line-height: 1.5; }
.ref-availability { max-width: 110px; text-align: right; }
.ref-card-status { display: block; margin: 12px 0; }
.ref-card-status.pending { color: #A9B2AD; }
.ref-card-body .ref-card-kind { color: #E5E7EB; margin-bottom: 8px; }
.ref-card-body .ref-card-outcome { color: #A9B2AD; line-height: 1.6; min-height: 5em; }
.ref-help { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; padding: 56px 0; border-top: 1px solid #2E3A33; scroll-margin-top: 24px; }
.ref-help h2 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -.025em; margin: 12px 0 20px; }
.ref-help p, .product-faq p, .product-help details p { color: #B5BDB8; font-size: 15px; line-height: 1.7; }
.ref-help a, .product-faq a, .product-help details a { color: #B7FF3B; text-underline-offset: 4px; }
.product-faq { min-width: 0; }
.product-faq details { border-bottom: 1px solid #2E3A33; }
.product-faq summary, .product-help summary { min-height: 48px; padding: 16px 0; cursor: pointer; color: #E5E7EB; line-height: 1.5; }
.product-faq details[open] summary, .product-help details[open] summary { color: #B7FF3B; }
.product-faq p { margin: 0 0 20px; }
.product-help code { overflow-wrap: anywhere; }
.site-ref :focus-visible, .product-page :focus-visible { outline: 2px solid #B7FF3B; outline-offset: 5px; }
.ref-card-shot, .ref-screen { cursor: zoom-in; }
.ref-card-shot { cursor: pointer; }
@media (max-width: 760px) {
  .ref-help { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .ref-card-body .ref-card-outcome { min-height: 0; }
  .ref-nav { flex-wrap: wrap; gap: 16px; }
  .ref-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .ref-availability { text-align: left; max-width: none; }
  .product-faq p, .product-help details p { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-ref *, .product-page * { animation: none !important; transition: none !important; }
}

.ref-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(213, 225, 222, 0.24);
  border-radius: 50%;
  color: #dbe4e0;
  transition: color 0.15s, border-color 0.15s;
}

.ref-ig:hover,
.ref-ig:focus-visible {
  color: #a8f57a;
  border-color: #a8f57a;
}

/* Hero stays still while browsing plugins: the screen keeps one frame size whatever the
   screenshot's proportions, and the copy column is pinned to the top of the hero. */
.ref-hero { align-items: start; }
.ref-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
}
.ref-screen img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.ref-panel-top { min-height: 88px; }
.ref-card { cursor: pointer; }

.ref-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
