/* Audixa public listening room */
:root {
  --room-ink: #0b0d0f;
  --room-paper: #f4f0e8;
  --room-paper-deep: #e9e3d8;
  --room-cyan: #49d7f2;
  --room-cyan-dark: #087f94;
  --room-amber: #ffb64d;
  --room-line: rgba(11, 13, 15, 0.16);
}

html, body, main { overflow-x: hidden; }
.listening-room { background: var(--room-paper); color: var(--room-ink); }
.sampler-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; position: relative; }
.sampler-hero { position: relative; min-height: 760px; padding: 128px 0 96px; background: var(--room-ink); color: #f9f7f2; overflow: hidden; }
.sampler-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 88%); }
.sampler-orbit { position: absolute; border: 1px solid rgba(73,215,242,.18); border-radius: 50%; pointer-events: none; }
.sampler-orbit::after { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--room-cyan); box-shadow: 0 0 24px rgba(73,215,242,.8); }
.sampler-orbit-one { width: 620px; height: 620px; right: -310px; top: -250px; }
.sampler-orbit-one::after { left: 76px; bottom: 90px; }
.sampler-orbit-two { width: 420px; height: 420px; left: -310px; bottom: -210px; }
.sampler-orbit-two::after { right: 35px; top: 90px; }
.sampler-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 78px; align-items: center; }
.sampler-intro { position: relative; z-index: 2; }
.sampler-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; color: #a9b0b5; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sampler-kicker span { width: 26px; height: 1px; background: var(--room-cyan); }
.sampler-intro h1, .shelf-heading h2, .explainer-heading h2, .sampler-final h2 { margin: 0; font-family: 'Satoshi', 'Inter', sans-serif; font-weight: 700; letter-spacing: -.055em; line-height: .95; }
.sampler-intro h1 { font-size: clamp(58px, 6.1vw, 88px); }
.sampler-intro h1 em, .shelf-heading h2 em, .explainer-heading h2 em, .sampler-final h2 em { color: var(--room-cyan); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.04em; }
.sampler-lede { max-width: 550px; margin: 30px 0 34px; color: #b9bec2; font-size: 17px; line-height: 1.7; }
.sampler-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.sampler-primary { min-height: 54px; padding: 0 24px; border: 0; border-radius: 3px; background: var(--room-cyan); color: var(--room-ink); display: inline-flex; align-items: center; justify-content: center; gap: 18px; font: 700 14px/1 'Inter', sans-serif; cursor: pointer; box-shadow: 0 10px 28px rgba(73,215,242,.13); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.sampler-primary svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sampler-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(73,215,242,.23); }
.sampler-primary:disabled { opacity: .58; cursor: wait; transform: none; }
.sampler-secondary { color: #f8f6f1; text-underline-offset: 5px; font-size: 14px; }
.sampler-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: #858d92; font-size: 11px; letter-spacing: .02em; }
.sampler-proof span { display: flex; align-items: center; gap: 6px; }
.sampler-proof svg { width: 14px; fill: none; stroke: var(--room-cyan); stroke-width: 2; }

.audio-deck { position: relative; z-index: 2; min-height: 528px; padding: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: linear-gradient(145deg, rgba(32,36,39,.96), rgba(14,16,18,.98)); box-shadow: 0 42px 100px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05); }
.audio-deck::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.045); border-radius: 9px; pointer-events: none; }
.deck-topline { display: flex; justify-content: space-between; align-items: center; color: #747c81; font: 700 10px/1 'Inter', sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.deck-signal { display: flex; align-items: center; gap: 8px; }
.deck-signal i { width: 7px; height: 7px; border-radius: 50%; background: #66dd9a; box-shadow: 0 0 10px rgba(102,221,154,.65); }
.deck-identity { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 16px; padding: 38px 0 26px; }
.deck-monogram, .voice-avatar { display: grid; place-items: center; border-radius: 50%; background: rgba(73,215,242,.12); color: var(--room-cyan); font: 700 24px/1 Georgia, serif; border: 1px solid rgba(73,215,242,.24); }
.deck-monogram { width: 60px; height: 60px; }
.deck-identity p { margin: 0 0 4px; color: #858d92; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.deck-identity h2 { margin: 0; color: #f8f6f1; font: 700 25px/1.1 'Satoshi', sans-serif; letter-spacing: -.03em; }
.model-pill { justify-self: end; border-radius: 999px; padding: 8px 11px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.model-pill.base { color: var(--room-cyan); background: rgba(73,215,242,.1); border: 1px solid rgba(73,215,242,.2); }
.model-pill.advanced { color: var(--room-amber); background: rgba(255,182,77,.1); border: 1px solid rgba(255,182,77,.2); }
.deck-waveform { height: 190px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 22px 14px; border: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.22); overflow: hidden; }
.deck-waveform span { width: 6px; min-height: 12%; height: var(--bar); border-radius: 8px; background: linear-gradient(to top, rgba(73,215,242,.35), var(--room-cyan)); opacity: .76; transform-origin: center; }
.audio-deck:has(.deck-play.playing) .deck-waveform span { animation: roomPulse 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--bar) * -8ms); }
@keyframes roomPulse { to { transform: scaleY(.65); opacity: 1; } }
.deck-progress-row { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 10px; padding: 16px 2px; color: #747c81; font: 600 10px/1 'Inter', sans-serif; }
.deck-progress-row input { width: 100%; height: 18px; margin: 0; accent-color: var(--room-cyan); cursor: pointer; }
.deck-controls { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; }
.deck-play, .voice-card-play { border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.deck-play { width: 54px; height: 54px; background: var(--room-cyan); color: var(--room-ink); }
.deck-play svg, .voice-card-play svg { width: 21px; height: 21px; fill: currentColor; stroke: currentColor; stroke-width: 2; }
.deck-play .pause-glyph, .voice-card-play .pause-glyph { display: none; fill: none; }
.deck-play.playing .play-glyph, .voice-card-play.playing .play-glyph { display: none; }
.deck-play.playing .pause-glyph, .voice-card-play.playing .pause-glyph { display: block; }
.deck-copy p { margin: 0 0 5px; color: #d9dcdd; font-size: 12px; line-height: 1.45; }
.deck-copy span { color: #747c81; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.deck-disclosure { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); color: #747c81; font-size: 10px; line-height: 1.5; display: flex; align-items: flex-start; gap: 7px; }
.deck-disclosure svg { width: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sampler-unavailable { position: relative; z-index: 2; padding: 54px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.sampler-unavailable span { color: var(--room-cyan); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.sampler-unavailable h2 { margin: 22px 0 12px; font: 700 34px/1.05 'Satoshi', sans-serif; }
.sampler-unavailable p { color: #a9b0b5; line-height: 1.7; }
.sampler-unavailable a { color: var(--room-cyan); }

.voice-shelf { padding: 110px 0 124px; background: var(--room-paper); }
.shelf-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 38px; border-bottom: 1px solid var(--room-line); }
.section-number { display: block; margin-bottom: 18px; color: var(--room-cyan-dark); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.shelf-heading h2, .explainer-heading h2 { font-size: clamp(42px, 5vw, 66px); }
.shelf-heading h2 em, .explainer-heading h2 em { color: var(--room-cyan-dark); }
.model-filters { display: flex; border: 1px solid rgba(11,13,15,.18); border-radius: 999px; padding: 4px; }
.model-filters button { min-height: 38px; padding: 0 17px; border: 0; border-radius: 999px; background: transparent; color: #606568; font-size: 12px; font-weight: 700; cursor: pointer; }
.model-filters button.active { background: var(--room-ink); color: white; }
.voice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.voice-card { min-width: 0; display: grid; grid-template-columns: 1fr 60px; min-height: 128px; align-items: stretch; border-bottom: 1px solid var(--room-line); position: relative; }
.voice-card:nth-child(odd) { border-right: 1px solid var(--room-line); }
.voice-card[hidden] { display: none; }
.voice-card::before { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.voice-card:hover::before, .voice-card.selected::before { opacity: .55; }
.voice-card-select { min-width: 0; display: grid; grid-template-columns: 28px 48px minmax(130px, 1fr) minmax(82px, auto) auto; align-items: center; gap: 14px; padding: 22px 16px 22px 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; position: relative; z-index: 1; }
.voice-card:nth-child(even) .voice-card-select { padding-left: 24px; }
.voice-card-number { color: #9a9b96; font: 700 9px/1 'Inter', sans-serif; letter-spacing: .08em; }
.voice-avatar { width: 48px; height: 48px; font-size: 18px; }
.voice-avatar.advanced { color: #a85c00; background: rgba(255,182,77,.17); border-color: rgba(168,92,0,.22); }
.voice-card-title { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.voice-card-title strong { color: var(--room-ink); font: 700 16px/1 'Satoshi', sans-serif; letter-spacing: -.02em; }
.voice-card-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #747875; font-size: 10px; }
.voice-card-use { color: #555b5c; font-size: 11px; }
.voice-model-dot { display: flex; align-items: center; gap: 6px; color: #646968; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.voice-model-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--room-cyan-dark); }
.voice-model-dot.advanced i { background: #c87305; }
.voice-card-play { position: relative; z-index: 1; align-self: center; width: 44px; height: 44px; background: transparent; color: var(--room-ink); border: 1px solid rgba(11,13,15,.22); transition: background .2s ease, color .2s ease; }
.voice-card-play:hover, .voice-card-play.playing { color: white; background: var(--room-ink); }

.sampler-explainer { padding: 110px 0; color: #f8f6f1; background: #16191b; }
.sampler-explainer .section-number { color: var(--room-cyan); }
.explainer-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.explainer-heading p { max-width: 430px; margin: 28px 0 0; color: #92999d; font-size: 15px; line-height: 1.75; }
.explainer-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.explainer-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.explainer-steps > li > span { color: var(--room-cyan); font: 700 10px/1 'Inter', sans-serif; letter-spacing: .12em; padding-top: 5px; }
.explainer-steps strong { font: 700 17px/1.2 'Satoshi', sans-serif; }
.explainer-steps p { margin: 8px 0 0; color: #92999d; font-size: 13px; line-height: 1.6; }

.sampler-final { padding: 76px 0; background: var(--room-cyan); }
.sampler-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.sampler-final span { display: block; margin-bottom: 14px; color: rgba(11,13,15,.56); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sampler-final h2 { font-size: clamp(40px, 4.7vw, 64px); }
.sampler-final h2 em { color: var(--room-ink); }
.sampler-primary.inverse { background: var(--room-ink); color: white; box-shadow: none; }

.sampler-primary:focus-visible, .sampler-secondary:focus-visible, .deck-play:focus-visible, .voice-card button:focus-visible, .model-filters button:focus-visible { outline: 3px solid var(--room-amber); outline-offset: 3px; }

@media (max-width: 980px) {
  .sampler-hero { padding-top: 110px; }
  .sampler-hero-grid { grid-template-columns: 1fr; gap: 58px; }
  .sampler-intro { max-width: 720px; }
  .audio-deck { max-width: 720px; width: 100%; }
  .voice-card-select { grid-template-columns: 24px 44px 1fr auto; }
  .voice-card-use { display: none; }
  .explainer-grid { gap: 58px; }
}

@media (max-width: 760px) {
  .sampler-shell { width: min(100% - 32px, 640px); }
  .sampler-hero { padding: 92px 0 72px; }
  .sampler-intro h1 { font-size: clamp(48px, 15vw, 68px); }
  .sampler-lede { font-size: 15px; }
  .sampler-proof { display: grid; gap: 10px; }
  .audio-deck { min-height: 0; padding: 20px; }
  .deck-identity { grid-template-columns: 50px 1fr; padding-top: 30px; }
  .deck-monogram { width: 50px; height: 50px; }
  .model-pill { grid-column: 1 / -1; justify-self: start; }
  .deck-waveform { height: 130px; gap: 4px; padding-inline: 8px; }
  .deck-waveform span { width: 4px; }
  .shelf-heading { align-items: flex-start; flex-direction: column; }
  .model-filters { width: 100%; }
  .model-filters button { flex: 1; padding-inline: 8px; }
  .voice-shelf, .sampler-explainer { padding: 80px 0; }
  .voice-grid { grid-template-columns: 1fr; }
  .voice-card:nth-child(odd) { border-right: 0; }
  .voice-card:nth-child(even) .voice-card-select { padding-left: 0; }
  .voice-card-select { padding-right: 10px; }
  .explainer-grid { grid-template-columns: 1fr; gap: 52px; }
  .sampler-final-inner { align-items: flex-start; flex-direction: column; }
  .sampler-final .sampler-primary { width: 100%; }
  .footer-links { max-width: 100%; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 420px) {
  .sampler-shell { width: calc(100% - 24px); }
  .sampler-actions { align-items: stretch; flex-direction: column; }
  .sampler-primary { width: 100%; }
  .sampler-secondary { text-align: center; padding: 8px; }
  .deck-controls { grid-template-columns: 48px 1fr; }
  .deck-play { width: 48px; height: 48px; }
  .voice-card { grid-template-columns: 1fr 50px; }
  .voice-card-select { grid-template-columns: 18px 42px 1fr; gap: 10px; }
  .voice-model-dot { display: none; }
  .voice-avatar { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .listening-room *, .listening-room *::before, .listening-room *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
