/* ==========================================================================
   Signal Room — Design System v3
   Light-first, section-aware, premium packages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Light Theme (Default)
   -------------------------------------------------------------------------- */
:root {
  --bg: #f5f2ec;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #ece8e0;
  --tape: #1a1612;
  --tape-dim: #6b6056;
  --brass: #b08430;
  --brass-bright: #956e25;
  --line: rgba(26, 22, 18, 0.09);
  --tape-red: #b5453a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);

  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1320px;
  --pad-side: 48px;
}

/* --------------------------------------------------------------------------
   Dark Theme (Toggle)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg: #0f0d0a;
  --bg-elevated: #171310;
  --bg-elevated-2: #1e1a16;
  --tape: #f3ede2;
  --tape-dim: #b8ac9a;
  --brass: #c99a52;
  --brass-bright: #e6b567;
  --line: rgba(243, 237, 226, 0.10);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

body {
  background: var(--bg);
  color: var(--tape);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brass-bright); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--tape);
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h1 em { font-style: italic; font-weight: 600; color: var(--brass); }
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
}
h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin-bottom: 6px;
}
p { color: var(--tape-dim); margin-bottom: 1em; line-height: 1.7; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--tape-dim);
  max-width: 640px;
  line-height: 1.75;
}

.mono-label, .eyebrow, .timestamp {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tape-dim);
  line-height: 1.4;
}
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--brass);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-side);
}

section { padding: 64px 0; }
@media (max-width: 860px) { section { padding: 40px 0; } }

.hero { padding-top: 120px; padding-bottom: 72px; }
@media (max-width: 860px) { .hero { padding-top: 96px; padding-bottom: 48px; } }

/* Grids */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .pkg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Section Intro — Centered with separator
   -------------------------------------------------------------------------- */
.section-intro {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-top: 32px;
}
.section-intro::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--brass);
  margin: 0 auto 20px auto;
  border-radius: 1px;
}
.section-intro .eyebrow { text-align: center; }
.section-intro .lede {
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
}
.section-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(245, 242, 236, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: background-color 0.3s ease;
}
[data-theme="dark"] .site-header { background: rgba(15, 13, 10, 0.9); }

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--tape);
  white-space: nowrap;
}
.brand .dot {
  width: 7px; height: 7px;
  background: var(--brass);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--tape-dim);
}
.nav-links a:hover { color: var(--tape); }
.nav-links a.active { color: var(--brass); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--tape-dim);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--brass); color: var(--brass); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--tape);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 860px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 20px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta { width: 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   On-air Strip
   -------------------------------------------------------------------------- */
.on-air-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 40px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.on-air-strip .blink {
  width: 6px; height: 6px;
  background: var(--tape-red);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.on-air-strip .mono-label { margin-bottom: 0; font-size: 9px; letter-spacing: 0.12em; }

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; box-shadow: 0 0 6px var(--tape-red); }
}

/* --------------------------------------------------------------------------
   Player Card
   -------------------------------------------------------------------------- */
.player-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.player-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.player-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--tape);
  margin-bottom: 2px;
  line-height: 1.3;
}
.player-subtitle { font-size: 12px; color: var(--tape-dim); }

.waveform-container {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}
.waveform-bar {
  flex: 1;
  background: var(--line);
  border-radius: 1px;
  min-width: 2px;
  transition: background-color 0.3s ease;
}
.waveform-bar.played { background: var(--brass); }

.scrub-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.scrub-line {
  flex: 1; height: 2px; background: var(--line); position: relative;
}
.scrub-line::after {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: 13%; background: var(--brass);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--tape);
  line-height: 1.1;
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Chapter Rows
   -------------------------------------------------------------------------- */
.chapter-row {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.chapter-row:last-child { border-bottom: 1px solid var(--line); }
.chapter-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass);
  min-width: 32px;
  padding-top: 2px;
  flex-shrink: 0;
}
.chapter-content h3 { font-size: 1rem; margin-bottom: 3px; }
.chapter-content p { font-size: 13px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Scroll Reveal
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Exhibit / Case Cards
   -------------------------------------------------------------------------- */
.exhibit-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.2s ease;
}
.exhibit-card:hover { box-shadow: var(--shadow-md); }
.exhibit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.exhibit-card h3 { font-size: 1.05rem; }
.exhibit-card > p { font-size: 14px; }
.exhibit-meta { margin-top: 16px; }
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.meta-row span:last-child {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Network Pills
   -------------------------------------------------------------------------- */
.network-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 12px;
  justify-content: center;
}
.pill {
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 12px;
  color: var(--tape-dim);
  background: var(--bg-elevated);
  transition: background-color 0.3s ease;
}

/* --------------------------------------------------------------------------
   Package Cards — Premium Design
   -------------------------------------------------------------------------- */
.pkg-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.pkg-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Featured / Flagship Card */
.pkg-card.feat {
  border-color: var(--brass);
  background: linear-gradient(170deg, rgba(176, 132, 48, 0.06) 0%, var(--bg-elevated) 50%);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--brass);
}
[data-theme="dark"] .pkg-card.feat {
  background: linear-gradient(170deg, rgba(201, 154, 82, 0.08) 0%, var(--bg-elevated) 50%);
}
.pkg-card.feat:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--brass);
}

.pkg-card h3 { font-size: 1.4rem; margin-bottom: 8px; }

.price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass);
  margin-bottom: 16px;
}
/* Big price for standalone featured cards */
.price-big {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--tape);
  margin-bottom: 4px;
  line-height: 1;
}
.price-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tape-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.pkg-features {
  margin-bottom: 20px;
  flex-grow: 1;
}
.pkg-features li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--tape-dim);
}
.pkg-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 11px;
}

.flagship-tag {
  position: absolute;
  top: 0; right: 0;
  background: var(--brass);
  color: #fff;
  padding: 4px 14px 4px 14px;
  border-radius: 0 var(--radius) 0 var(--radius);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
[data-theme="dark"] .flagship-tag { color: #0f0d0a; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brass);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brass-bright);
  transform: translateY(-1px);
  color: #fff;
}
[data-theme="dark"] .btn-primary { color: #0f0d0a; }
[data-theme="dark"] .btn-primary:hover { color: #0f0d0a; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--brass);
}
.btn-ghost:hover {
  background: rgba(176, 132, 48, 0.06);
  color: var(--brass-bright);
}
.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--tape-dim);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--tape);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.3s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6056' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.honeypot { display: none; }

.form-message {
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 13px;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(176, 132, 48, 0.08);
  border: 1px solid var(--brass);
  color: var(--brass);
}
.form-message.error {
  display: block;
  background: rgba(181, 69, 58, 0.08);
  border: 1px solid var(--tape-red);
  color: var(--tape-red);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--tape-dim); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 12px; color: var(--tape-dim); }
.footer-links a:hover { color: var(--tape); }

/* --------------------------------------------------------------------------
   Stack Grid (inside featured pricing card)
   -------------------------------------------------------------------------- */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 20px 0;
  background: var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stack-item {
  background: var(--bg-elevated);
  padding: 10px 14px;
  transition: background-color 0.3s ease;
}
.stack-item .mono-label { color: var(--brass); display: block; margin-bottom: 1px; }
.stack-item p { font-size: 12px; margin-bottom: 0; }
@media (max-width: 600px) { .stack-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Channel list (hero)
   -------------------------------------------------------------------------- */
.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 16px;
}
.channel-list li {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tape-dim);
}
.channel-list li::after { content: '\00B7'; margin: 0 6px; }
.channel-list li:last-child::after { content: ''; }

/* --------------------------------------------------------------------------
   Warning callout (admin)
   -------------------------------------------------------------------------- */
.warning-callout {
  background: rgba(176, 132, 48, 0.05);
  border-left: 3px solid var(--brass);
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 20px;
  color: var(--tape-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-quote {
  font-size: 14px;
  color: var(--tape);
  margin-bottom: 12px;
  line-height: 1.7;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Section helpers
   -------------------------------------------------------------------------- */
.cta-section {
  text-align: center;
  padding: 64px 0;
}
.cta-section .lede { margin: 8px auto 24px auto; }

.addon-header {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 14px;
  margin-top: 8px;
  color: var(--tape-dim);
}

/* Info card (contact sidebar, about sidebar) */
.info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.info-card h3 { font-size: 1rem; margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   Focus / a11y
   -------------------------------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Smooth theme transitions
   -------------------------------------------------------------------------- */
.site-header, .exhibit-card, .player-card, .pkg-card, .pill,
.info-card, .on-air-strip, .stack-item, .warning-callout {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
