/* Warpzone marketing site
   Palette mirrors the plugin's design system (Theme.h):
   background  #141414, surface #222, surfaceHi #2E2E2E
   primary     #B82030 (warpzone red), hot #D43040, accent #D04828
   text        #D8D4D0 / #909090 / #606060
*/

:root {
  --bg:        #141414;
  --surface:   #222222;
  --surface-2: #2e2e2e;
  --surface-3: #383838;
  --outline:   #505050;
  --outline-dim: #404040;
  --primary:   #b82030;
  --primary-dim: #801828;
  --hot:       #d43040;
  --hot-bright: #e84050;
  --vrc6:      #d04828;
  --text-1:    #d8d4d0;
  --text-2:    #909090;
  --text-3:    #606060;
  --mono:      "JetBrains Mono", "Menlo", ui-monospace, monospace;
  --sans:      -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-1); text-decoration: none; }
a:hover { color: var(--hot-bright); }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--vrc6);
}

/* ───────────── Top bar ───────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-logo {
  color: var(--hot);
  width: 26px;
  height: 15px;
  display: block;
  overflow: visible;
  animation: breathe 3.5s ease-in-out infinite;
}

/* SVG can't take text-shadow, so the glow is a drop-shadow filter */
@keyframes breathe {
  0%, 100% { opacity: 0.72; filter: drop-shadow(0 0 5px rgba(232,64,80,0.55)); }
  50%      { opacity: 1.0;  filter: drop-shadow(0 0 9px rgba(232,64,80,0.85)); }
}

@media (prefers-reduced-motion: reduce) {
  .cart-logo { animation: none; opacity: 1; }
}

.brand-name {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1rem;
  color: var(--text-1);
}

.brand-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--vrc6);
  border: 1px solid var(--vrc6);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.brand-name.small { font-size: 0.85rem; }
.brand-tag.small  { color: var(--text-3); border: none; padding: 0; }

nav {
  display: flex;
  gap: 1.8rem;
}

nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-2);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.2rem;
}

nav a:hover { color: var(--text-1); }

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--hot);
  transition: right 0.18s ease;
}

nav a:hover::after { right: 0; }

/* ───────────── Hero ───────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 4px);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

/* The accent phrase gets its own line so it stacks under the statement
   instead of breaking mid-phrase wherever the text happens to wrap. */
.hero h1 .accent { display: block; }

.accent {
  color: var(--hot);
  text-shadow: 0 0 30px rgba(216,48,64,0.35);
}

.lede {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36em;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.cta.primary {
  background: var(--primary);
  color: var(--text-1);
  border-color: var(--hot);
  box-shadow: 0 0 0 0 rgba(216,48,64,0);
}

.cta.primary:hover {
  background: var(--hot);
  color: var(--text-1);
  box-shadow: 0 0 24px -4px rgba(216,48,64,0.6);
  transform: translateY(-1px);
}

.cta.primary.big {
  padding: 1.1rem 2.4rem;
  font-size: 0.95rem;
}

.cta.ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--outline);
}

.cta.ghost:hover {
  border-color: var(--text-1);
  background: var(--surface);
  color: var(--text-1);
}

.meta-row {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.meta-row .dot { color: var(--outline); }

/* ───────────── Hero art / screenshot frames ───────────── */
.hero-art {
  position: relative;
}

/* Edge-to-edge: no borders, padding or forced aspect — the image IS the frame */
.screenshot-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed var(--outline);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.8rem;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.012) 12px,
    rgba(255,255,255,0.012) 24px
  );
}

.screenshot-placeholder small {
  font-size: 0.7rem;
  color: var(--text-3);
  opacity: 0.7;
}

/* Replace placeholder content with <img> for actual screenshots */
.screenshot-frame img,
.screenshot-placeholder img {
  display: block;
  width: 100%;
  height: auto;
}

/* ───────────── Features ───────────── */
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.features h2,
.screenshots h2 {
  font-family: var(--mono);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  letter-spacing: -0.005em;
  position: relative;
  padding-bottom: 1rem;
}

.features h2::after,
.screenshots h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--hot);
  box-shadow: 0 0 12px rgba(216,48,64,0.5);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline-dim);
  border-radius: 6px;
  padding: 1.6rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  border-color: var(--outline);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 1.4rem;
  color: var(--hot);
  margin-bottom: 0.8rem;
  font-family: var(--mono);
}

.card h3 {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  color: var(--text-1);
}

.card p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.card strong { color: var(--text-1); font-weight: 600; }

/* ───────────── Screenshots gallery ───────────── */
.screenshots {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--outline-dim);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.4rem;
}

.screenshot-grid figure {
  background: var(--surface);
  border: 1px solid var(--outline-dim);
  border-radius: 6px;
  overflow: hidden;
}

.screenshot-grid .screenshot-placeholder {
  border: none;
  border-radius: 0;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--outline-dim);
}

.screenshot-grid figcaption {
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-2);
  font-family: var(--sans);
}

/* ───────────── Buy section ───────────── */
.buy {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.8rem;
  border-top: 1px solid var(--outline-dim);
}

.buy-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
}

.buy-card:first-child {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(216,48,64,0.18), 0 30px 60px -30px rgba(216,48,64,0.4);
}

.buy-card:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--hot), transparent);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.price {
  font-family: var(--mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--hot);
}

.price-meta {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.includes {
  list-style: none;
  margin-bottom: 1.2rem;
}

.includes li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--outline-dim);
  position: relative;
  font-size: 0.95rem;
  color: var(--text-1);
}

.includes li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--hot);
}

.includes li:last-child { border-bottom: none; }

.source-card h3 {
  font-family: var(--mono);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.source-card p {
  color: var(--text-2);
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
}

.source-card a:not(.cta) {
  color: var(--hot);
}

.fineprint {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-3);
  font-style: italic;
}

/* ───────────── Footer ───────────── */
footer {
  border-top: 1px solid var(--outline-dim);
  background: var(--surface);
  padding: 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}

.footer-links a:hover { color: var(--hot); }

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  /* Hero keeps its copy-then-screenshot order; the 1.8rem gap is the same
     image/text spacing used by every stacked block below it. */
  .hero {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 3rem 1.5rem 2rem;
  }
  .buy {
    grid-template-columns: 1fr;
  }
  .topbar { padding: 0.8rem 1.2rem; }
  nav { gap: 1rem; }
  .features, .screenshots { padding: 3rem 1.5rem; }
}

@media (max-width: 600px) {
  nav a { font-size: 0.72rem; }
  .price { font-size: 2.5rem; }
  .features h2, .screenshots h2 { font-size: 1.7rem; }
}

/* Trademark disclaimer — small print in the footer */
.tm-disclaimer {
  width: 100%;
  margin-top: 0.8rem;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-2);  /* text-3 fails AA at this size on the footer */
  max-width: 90ch;
}

/* ═══════════════ Audio players ═══════════════ */
.section-lede {
  color: var(--text-2);
  font-size: 1rem;
  margin: -1.5rem 0 2rem;
  max-width: 44em;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.player {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "play label vol time" "play bar bar bar";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--outline-dim);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  user-select: none;
}
.player:hover { border-color: var(--outline); background: var(--surface-2); }
.player.playing { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(216,48,64,0.25); }

.player-play {
  grid-area: play;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-1);
  font-size: 0.85rem;
  border: 1px solid var(--hot);
  transition: background 0.15s ease;
}
.player:hover .player-play { background: var(--hot); }

.player-label {
  grid-area: label;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.player-label strong { font-family: var(--mono); font-size: 0.9rem; color: var(--text-1); }
.player-label em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-time {
  grid-area: time;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.player-bar {
  grid-area: bar;
  height: 4px;
  background: var(--outline-dim);
  border-radius: 2px;
  overflow: hidden;
}
.player-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--hot));
  transition: width 0.1s linear;
}

/* Big hero player */
.hero-player {
  margin: 2rem 0;
  max-width: 34rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--outline);
}
.hero-player .player-play { width: 52px; height: 52px; font-size: 1rem; }
.hero-player .player-label strong { font-size: 1rem; }

.sound { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem; border-top: 1px solid var(--outline-dim); }

/* ═══════════════ Two engines ═══════════════ */
.engines { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem; border-top: 1px solid var(--outline-dim); }
.engines h2, .sound h2, .faq h2 {
  font-family: var(--mono);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  letter-spacing: -0.005em;
  position: relative;
  padding-bottom: 1rem;
}
.engines h2::after, .sound h2::after, .faq h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 60px; height: 3px; background: var(--hot); box-shadow: 0 0 12px rgba(216,48,64,0.5);
}
.engine-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.engine-card {
  background: var(--surface);
  border: 1px solid var(--outline-dim);
  border-radius: 8px;
  overflow: hidden;
}
.engine-shot { border-bottom: 1px solid var(--outline-dim); background: var(--bg); }
.engine-shot img { width: 100%; height: auto; display: block; }
.engine-card h3 { font-family: var(--mono); font-size: 1.3rem; margin: 1.4rem 1.6rem 0.7rem; text-align: center; }
.engine-card p { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; margin: 0 1.6rem 1.6rem; }

/* ═══════════════ Feature-wide (screenshot + copy) ═══════════════ */
.card.feature-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.feature-shot { align-self: stretch; background: var(--bg); border-right: 1px solid var(--outline-dim); }
.feature-shot img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px; }
.feature-copy { padding: 1.8rem 2rem; }
.card.feature-wide:hover { transform: none; }

/* ═══════════════ FAQ ═══════════════ */
.faq { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; border-top: 1px solid var(--outline-dim); }
.faq-cat {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hot-bright);  /* contrast, same as .sound-cat */
  margin: 2.2rem 0 0.9rem;
}
.faq-cat:first-child { margin-top: 0; }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--outline-dim);
  border-radius: 6px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--text-1);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  color: var(--hot); font-size: 1.2rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--outline-dim); }
.faq details p { color: var(--text-2); font-size: 0.92rem; line-height: 1.6; padding: 1rem 1.3rem; margin: 0; }

/* ═══════════════ Buy extras ═══════════════ */
.buy-urgency {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--vrc6);
  margin: -0.6rem 0 1.4rem;
}
.made-by { margin-top: 1.4rem; font-size: 0.8rem; color: var(--text-3); font-style: italic; line-height: 1.5; }

/* ═══════════════ Trademark disclaimer ═══════════════ */
.tm-disclaimer {
  width: 100%;
  margin-top: 0.8rem;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-2);  /* text-3 fails AA at this size on the footer */
  max-width: 90ch;
}

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 900px) {
  .engine-split { grid-template-columns: 1fr; }
  .card.feature-wide { grid-template-columns: 1fr; }
  .feature-shot { border-right: none; border-bottom: 1px solid var(--outline-dim); }
  .sound, .engines, .faq { padding: 3rem 1.5rem; }
  .engines h2, .sound h2, .faq h2 { font-size: 1.7rem; }
}

/* ═══════════════ Small-screen ═══════════════ */
/* Grid/flex tracks must be allowed to shrink below their content min-width
   (the classic 1fr / flex min-width:auto overflow bug). */
.player { grid-template-columns: auto minmax(0, 1fr) auto auto; }
img { max-width: 100%; }

@media (max-width: 720px) {
  .player-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  html, body { overflow-x: clip; }
  .topbar { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .topbar nav { gap: 0.9rem; flex-wrap: wrap; }

  /* Flex-column hero; min-width:0 lets items shrink and text wrap. */
  .hero { display: flex; flex-direction: column; padding: 2rem 1.1rem; }
  .hero-inner, .hero-art { min-width: 0; width: 100%; max-width: 100%; }
  .hero-inner > * { max-width: 100%; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.6rem); line-height: 1.12; overflow-wrap: anywhere; }
  .hero .lede { font-size: 0.98rem; }
  .screenshot-frame, .screenshot-frame img { max-width: 100%; min-width: 0; }

  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .cta { text-align: center; }
  .player-label em { white-space: normal; }
}

/* ═══════════════ Glow-up: nav, showcase, balanced cards ═══════════════ */

/* Nav fix — anchored sections must clear the sticky top bar */
section[id] { scroll-margin-top: 84px; }

/* ── Sequencer showcase ── */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.4rem;
  align-items: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--outline-dim);
  border-radius: 10px;
  padding: 2.4rem;
  margin-bottom: 2.4rem;
}
.showcase-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 0.9rem;
}
.showcase-copy h3 { font-family: var(--mono); font-size: 1.5rem; line-height: 1.2; margin-bottom: 1rem; }
.showcase-copy p { color: var(--text-2); font-size: 0.98rem; line-height: 1.6; margin-bottom: 1.4rem; }
.showcase-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.2rem;
}
.showcase-points li {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-1);
  padding-left: 1.3rem;
  position: relative;
}
.showcase-points li::before { content: "▸"; position: absolute; left: 0; color: var(--hot); }
.showcase-shot {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7);
}
.showcase-shot img { display: block; width: 100%; height: auto; }

/* ── Stacked showcase (FX rack): copy above a full-width strip ── */
.showcase-stacked { grid-template-columns: 1fr; }
.showcase-stacked .showcase-copy { max-width: 720px; }

/* ── Balanced feature grid ── */
.features .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.features .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 0;
  overflow: hidden;
}
.card-art {
  background: var(--bg);
  border-bottom: 1px solid var(--outline-dim);
  padding: 0.9rem 1.1rem;
}
.card-art svg { display: block; width: 100%; height: auto; }
.card-art .ln     { stroke: var(--primary); fill: none; stroke-width: 2; }
.card-art .ln-hot { stroke: var(--hot); fill: none; stroke-width: 2; }
.card-art .ln2    { stroke: var(--outline); fill: none; stroke-width: 2; }
.card-art .dot    { fill: var(--hot); }
.card-art .key    { fill: var(--outline); }
.card-art .tile-hot { fill: rgba(216,48,64,0.16); stroke: var(--hot); stroke-width: 2; }
.card-art .txt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: var(--text-3);
}
.card-body { padding: 1.3rem 1.6rem 1.7rem; }
.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--hot);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  background: rgba(184,32,48,0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.features .card:hover .card-badge { background: rgba(216,48,64,0.18); border-color: var(--hot); }
.features .card h3 { font-family: var(--mono); font-size: 1.2rem; margin-bottom: 0.6rem; }
.features .card p { color: var(--text-2); font-size: 0.9rem; line-height: 1.55; margin: 0; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: 1.8rem; padding: 1.8rem; }
  .showcase-shot { order: -1; }
  .showcase-stacked .showcase-shot { order: 0; }
  .features .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .features .grid { grid-template-columns: 1fr; }
  .showcase-points { grid-template-columns: 1fr; }
  .showcase-copy h3 { font-size: 1.3rem; }
}

/* ─── Beta agreement gate ───────────────────────────────────────────── */
.beta-agree {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
}
.beta-agree input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.cta.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.legal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.legal-links a {
  font-size: 0.85rem;  /* opacity dilution failed AA contrast */
}

/* ─── Launch-notification signup ────────────────────────────────────── */
.notify-form { display: flex; flex-direction: column; gap: 0.75rem; margin: 0.2rem 0 0.4rem; }
/* Email + submit sit on one row so they read as a single signup control. */
.notify-row { display: flex; gap: 0.6rem; align-items: stretch; }
.notify-email {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.8rem 1rem;
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--outline-dim, #444);
  background: var(--surface-hi, #1b1b1b);
  color: inherit;
}
.notify-email::placeholder { color: var(--text-3, #888); }
.notify-email:focus { outline: 2px solid var(--primary, #b82030); outline-offset: 1px; }
.notify-row button {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.notify-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
  color: var(--text-2, #a8a8a8);
}
.notify-consent input { margin-top: 0.15rem; flex: 0 0 auto; }
@media (max-width: 620px) {
  .notify-row { flex-direction: column; }
  .notify-row button { width: 100%; }
}

/* ═══════════════ Accent animations ═══════════════ */
/* All motion is gated on prefers-reduced-motion: no-preference. The reveal
   classes are added by JS (see index.html) and removed once the animation
   finishes, so hover transitions and static styles stay untouched. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .reveal.in { opacity: 1; transform: none; }

  .reveal-group > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .reveal-group.in > * { opacity: 1; transform: none; }
  .reveal-group.in > *:nth-child(2) { transition-delay: 0.06s; }
  .reveal-group.in > *:nth-child(3) { transition-delay: 0.12s; }
  .reveal-group.in > *:nth-child(4) { transition-delay: 0.18s; }
  .reveal-group.in > *:nth-child(5) { transition-delay: 0.24s; }
  .reveal-group.in > *:nth-child(6) { transition-delay: 0.30s; }

  /* Section underline draws in with the heading */
  h2.reveal::after,
  .sound-head.reveal h2::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s;
  }
  h2.reveal.in::after,
  .sound-head.reveal.in h2::after { transform: scaleX(1); }

  /* A playing clip pulses a soft glow */
  .player.playing .player-play { animation: play-pulse 1.4s ease-in-out infinite; }
  @keyframes play-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(216, 48, 64, 0); }
    50%      { box-shadow: 0 0 0 5px rgba(216, 48, 64, 0.18); }
  }

  /* Hero accent breathes a gentle glow */
  .hero .accent { animation: accent-glow 4.5s ease-in-out infinite; }
  @keyframes accent-glow {
    0%, 100% { text-shadow: 0 0 30px rgba(216, 48, 64, 0.25); }
    50%      { text-shadow: 0 0 44px rgba(216, 48, 64, 0.50); }
  }
}

/* ═══════════════ Demo jams playlist + docked mini-player ═══════════════ */
.jams { margin-top: 3rem; }
.sound-cat {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hot-bright);  /* --hot is 3.8:1 on the bg; bright clears 4.5 */
  margin: -1.2rem 0 0.5rem;
}
.sound-cat + .section-lede,
.sound-cat + .jams-lede { margin-top: 0; }
.player-grid { margin-bottom: 0; }
.jams-lede { color: var(--text-2); font-size: 0.95rem; margin-bottom: 1.4rem; }

.jam-list {
  list-style: none;
  counter-reset: jam;
  border: 1px solid var(--outline-dim);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.jam-list li {
  counter-increment: jam;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.62rem 1.1rem;
  border-bottom: 1px solid var(--outline-dim);
  cursor: pointer;
  transition: background 0.15s ease;
}
.jam-list li:last-child { border-bottom: none; }
.jam-list li:hover { background: var(--surface-2); }
.jam-list li::before {
  content: counter(jam, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.jam-play { color: var(--hot); font-size: 0.7rem; width: 1.1em; }
.jam-name { font-family: var(--mono); font-size: 0.92rem; }
.jam-style { color: var(--text-2); font-size: 0.82rem; justify-self: end; text-align: right; }
.jam-len { font-family: var(--mono); font-size: 0.78rem; color: var(--text-2); }
.jam-list li.current { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--hot); }
.jam-list li.current .jam-name { color: var(--hot-bright); }

.jam-dock[hidden] { display: none; }
.jam-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(680px, calc(100vw - 24px));
  padding: 0.55rem 0.9rem;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--outline);
  border-radius: 10px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(216, 48, 64, 0.12);
}
.dock-btn {
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.35rem 0.4rem;
  line-height: 1;
}
.dock-btn:hover { color: var(--hot-bright); }
.dock-play { color: var(--hot); font-size: 1rem; }
.dock-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.dock-title {
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-bar {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  cursor: pointer;
}
.dock-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--hot);
}
.dock-time { font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); }
.dock-close { color: var(--text-3); }

@media (max-width: 620px) {
  .jam-list li { grid-template-columns: auto auto 1fr auto; }  /* style hidden */
  .jam-style { display: none; }
  .jam-dock { bottom: 8px; gap: 0.45rem; }
  .dock-time { display: none; }
}

/* ── Dock volume ── */
.dock-vol { display: flex; align-items: center; gap: 0.25rem; }
.dock-vol input[type="range"] {
  width: 72px;
  height: 22px;
  accent-color: var(--hot);
  cursor: pointer;
}
#dockMute { font-size: 0.8rem; }
@media (max-width: 620px) {
  .dock-vol input[type="range"] { width: 44px; }  /* narrower, not hidden: gain-based volume works on phones now */
}

/* ── Inline player volume (mirrors the dock control) ── */
.player-vol { grid-area: vol; display: flex; align-items: center; gap: 0.25rem; }
.player-vol button {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}
.player-vol input[type="range"] {
  width: 64px;
  height: 22px;
  accent-color: var(--hot);
  cursor: pointer;
}
@media (max-width: 620px) {
  .player-vol input[type="range"] { width: 44px; }
}

/* Extracted inline style attributes (CSP: no unsafe-inline) */
.x-c1 { position:absolute;width:0;height:0;border:0;visibility:hidden }

/* ═══ Mid-page signup band ═══ */
.signup-band {
  border-top: 1px solid var(--outline-dim);
  border-bottom: 1px solid var(--outline-dim);
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.band-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.band-copy h3 { font-family: var(--mono); font-size: 1.15rem; margin-bottom: 0.2rem; }
.band-copy p { color: var(--text-2); font-size: 0.92rem; }
.band-form { flex: 1; min-width: 300px; max-width: 520px; }
.band-form .notify-consent { margin-top: 0.5rem; }


/* ── SVG control icons (replace text glyphs/emoji) ── */
.player-play svg { width: 15px; height: 15px; display: block; }
.jam-play svg { width: 13px; height: 13px; display: block; }
.dock-btn svg { width: 16px; height: 16px; display: block; margin: 0 auto; }
.player-vol button svg { width: 16px; height: 16px; display: block; color: var(--text-2); }
.player-vol button:hover svg { color: var(--text-1); }


/* ── Touch QoL ── */
.player, .jam-list li, .dock-btn, .player-vol button, .cta { touch-action: manipulation; }

@media (max-width: 620px) {
  /* jam rows reach the 44px touch guideline */
  .jam-list li { padding: 0.8rem 1rem; }
}

@media (max-width: 480px) {
  /* the dock: drop the progress bar (time stays), tighten the shell,
     so transport + title + volume fit a phone without crushing */
  .dock-bar { display: none; }
  .jam-dock { gap: 0.4rem; padding: 0.5rem 0.6rem; }
  /* the sticky product nav wrapped to a tall two-row block; tighter type
     and gaps halve the height it steals from a phone viewport */
  .cart-nav nav, .topbar nav { gap: 0.35rem 0.7rem; }
  .topbar nav a { font-size: 0.68rem; }
}


/* ── Mobile nav: hamburger + dropdown ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--outline-dim);
  border-radius: 8px;
  color: var(--text-1);
  width: 44px;
  height: 40px;
  cursor: pointer;
  touch-action: manipulation;
}
.nav-toggle svg { width: 20px; height: 20px; display: block; margin: 0 auto; }
.nav-toggle[aria-expanded="true"] { border-color: var(--primary); color: var(--hot); }
@media (max-width: 640px) {
  .nav-toggle { display: block; margin-left: auto; }
  .topbar nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0 0.5rem;
    z-index: 70;
  }
  .topbar nav.open { display: flex; }
  .topbar nav a {
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .topbar nav a:last-child { border-bottom: 0; }
}


/* ── Label breadcrumb: product pages own their chrome; this is the way
     back to the hub. One product header, no second nav. ── */
.label-back {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--text-3, #8a8480);
  text-decoration: none;
  white-space: nowrap;
  padding-right: 0.95rem;
  margin-right: 0.95rem;
  border-right: 1px solid var(--outline-dim);
  align-self: center;
}
.label-back:hover { color: var(--text-1); }
@media (max-width: 480px) {
  .brand-tag { display: none; }   /* clears room for breadcrumb + hamburger */
  .label-back { padding-right: 0.7rem; margin-right: 0.7rem; }
}
