/* ==========================================================================
   SOUNDSCAPE STUDIO — STANDALONE WEB TOOLS & COMPARISON SIPHON STYLES (v23.60)
   Circadian Low-Blue Dark Palette • 60fps Live FFT Telemetry • Mobile Safe-Area
   Copyright (c) 2026 Advenire Software, LLC. All Rights Reserved.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #07090e;
  --surface: rgba(14, 19, 29, 0.90);
  --surface-elevated: rgba(20, 27, 42, 0.94);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.14);
  --emerald: #10b981;
  --border: rgba(255, 255, 255, 0.09);
  --border-active: rgba(245, 158, 11, 0.52);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 50% 0%, rgba(24, 34, 54, 0.52) 0%, var(--bg) 62%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 20px calc(env(safe-area-inset-bottom, 16px) + 48px);
  max-width: 1040px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Top Site Header & Breadcrumb Nav */
.siphon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.siphon-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}

.siphon-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 16px var(--accent-dim);
}

.siphon-brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  line-height: 1.15;
}

.siphon-brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.siphon-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.siphon-nav a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all 0.18s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.siphon-nav a:hover {
  border-color: var(--border-active);
  color: var(--accent);
}

.siphon-nav a.nav-cta {
  background: var(--accent-dim);
  border-color: var(--border-active);
  color: var(--accent);
}

.siphon-nav a.nav-cta:hover {
  background: var(--accent);
  color: #07090e;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--cyan);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Hero & AI Citation Lead Block */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-active);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.ai-citation-lead {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 820px;
  margin-bottom: 24px;
  line-height: 1.65;
}

.ai-citation-lead strong {
  color: #ffffff;
}

/* Interactive Live Synthesizer Console Card ("The Napkin") */
.synth-console-card {
  background: var(--surface);
  border: 1.5px solid var(--border-active);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.68), 0 0 28px var(--accent-dim);
  margin-bottom: 22px;
}

.console-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.console-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #cbd5e1;
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

.status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.synth-console-card.is-playing .status-led {
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

/* 60fps Live FFT / Spectral Notch Canvas */
.telemetry-canvas-wrap {
  position: relative;
  width: 100%;
  height: 148px;
  background: #04070d;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}

.telemetry-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-overlay-tag {
  position: absolute;
  top: 9px;
  right: 12px;
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.78);
  background: rgba(4, 8, 16, 0.75);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}

/* Primary Play / Stop Button */
.primary-play-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn-synth-play {
  flex: 1 1 240px;
  min-height: 50px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #07090e;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.32);
  transition: transform 0.16s ease, background 0.2s ease;
  touch-action: manipulation;
}

.btn-synth-play:hover {
  transform: translateY(-1px);
}

.btn-synth-play.playing {
  background: rgba(239, 68, 68, 0.18);
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  color: #fecaca;
  box-shadow: none;
}

/* Step 1 Reference Tone Finder Box (Tinnitus Page) */
.tone-matcher-box {
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.30);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tone-matcher-info {
  flex: 1 1 260px;
}

.tone-matcher-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 2px;
}

.tone-matcher-desc {
  font-size: 11.5px;
  color: #cbd5e1;
}

.btn-tone-probe {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.52);
  color: var(--cyan);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  transition: all 0.18s ease;
}

.btn-tone-probe.active {
  background: var(--cyan);
  color: #040812;
}

/* Variant Selector Pills */
.tool-variants-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
}

.tool-variants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tool-variant-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease;
  touch-action: manipulation;
}

.tool-variant-pill:hover,
.tool-variant-pill.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* Tool Faders */
.tool-sliders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-slider-group {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 15px;
}

.tool-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.tool-slider-readout {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
  cursor: pointer;
  touch-action: pan-y;
}

/* "Bridge to the Pen" Handoff Card (IKEA Effect Multi-Stem Studio Launcher) */
.handoff-bridge-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.10) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.44);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.handoff-copy {
  flex: 1 1 380px;
}

.handoff-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 5px;
}

.handoff-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 5px;
  line-height: 1.3;
}

.handoff-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.handoff-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cyan);
  color: #040812;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  min-height: 48px;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.32);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.handoff-cta-btn:hover {
  transform: translateY(-1.5px);
  opacity: 0.95;
}

/* Directory Cards, Content Sections, Comparison Tables & FAQs */
.cards-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.dir-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dir-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.dir-card-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
}

.dir-card h2,
.dir-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.dir-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.dir-card-cta {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--cyan);
}

.content-section {
  margin-bottom: 34px;
}

.content-section h2 {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.content-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 16px 0 6px;
}

.content-section p,
.content-section li {
  font-size: 14.5px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.content-section ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

/* Responsive Comparison Table */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin: 16px 0 28px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.035);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-table th.highlight-col,
.compare-table td.highlight-col {
  background: rgba(245, 158, 11, 0.07);
  border-left: 1px solid rgba(245, 158, 11, 0.28);
  border-right: 1px solid rgba(245, 158, 11, 0.28);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.badge-yes {
  color: #34d399;
  font-weight: 800;
}

.badge-no {
  color: #f87171;
  font-weight: 700;
}

/* FAQ Details Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
}

.faq-item summary {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Jump Pills Row */
.jump-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.jump-pill {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
  transition: all 0.16s ease;
}

.jump-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Footer */
.siphon-footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.siphon-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.siphon-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.siphon-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .tool-sliders-grid,
  .cards-directory-grid {
    grid-template-columns: 1fr;
  }
  .synth-console-card {
    padding: 18px;
  }
  .handoff-bridge-card {
    padding: 18px;
  }
  .handoff-cta-btn {
    width: 100%;
  }
}
/* ==========================================================================
   v23.57 — Option 1: Forever-Free Tool Enforcement & 1-Tap Studio Preview Pills
   ========================================================================== */
.studio-preview-pills-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.studio-preview-pills-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.studio-preview-pills-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--cyan);
}

.studio-preview-pills-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.studio-preview-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  min-height: 40px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.34);
  transition: all 0.18s ease;
  touch-action: manipulation;
}

.studio-preview-pill:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--cyan);
  color: #ffffff;
  transform: translateY(-1px);
}

.studio-preview-pill-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.14);
  padding: 2px 7px;
  border-radius: 999px;
}
