/* SilenEar — Nordic Clinical-Luxury Design System */

:root {
  --bg: #0a0e14;
  --surface: #111820;
  --surface-hover: #161d28;
  --border: #1e2a3a;
  --text: #e8ecf1;
  --text-muted: #8899aa;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.12);
  --accent-glow: rgba(0, 212, 170, 0.25);
  --warm: #ff8c42;
  --danger: #ff4d6a;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;

  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.06) 0%, transparent 60%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

main, header, footer, nav, section {
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.1rem;
  color: var(--text);
}

p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 60ch;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--white); }

code, .mono { font-family: var(--font-mono); }

strong { color: var(--white); font-weight: 600; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  user-select: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--accent-dim);
}

.btn-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent-dim);
}

.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

/* Hero */
.hero {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero p.lead {
  font-size: 1.25rem;
  max-width: 56ch;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Section headings */
.section-eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

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

/* Frequency Tool */
.freq-tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.freq-tool::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.freq-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.freq-step.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-dots {
  display: flex;
  gap: 0.35rem;
}

.step-dot {
  width: 24px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

.step-dot.active { background: var(--accent); }
.step-dot.completed { background: var(--accent-dim); }

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.option-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  color: var(--text);
  font-family: var(--font-body);
}

.option-card:hover {
  border-color: var(--accent-dim);
  background: var(--surface-hover);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.option-card .option-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.option-card .option-title {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.option-card .option-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Frequency display */
.freq-display {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.freq-value {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-shadow: 0 0 32px var(--accent-glow);
}

.freq-unit {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}

/* Waveform */
.waveform {
  height: 70px;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}

.waveform svg {
  width: 100%;
  height: 100%;
  display: block;
}

.waveform .wave-path {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

/* Sliders */
.slider-group {
  margin-bottom: 1.5rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.slider-label .value {
  font-family: var(--font-mono);
  color: var(--accent);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Adjust buttons */
.adjust-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.adjust-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.adjust-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Presets */
.preset-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.preset-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.preset-btn.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

/* Play button */
.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 auto;
  font-size: 1.5rem;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: all 0.2s ease;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 32px var(--accent-glow);
}

.play-btn.playing {
  animation: playing-pulse 1.4s ease-in-out infinite;
}

@keyframes playing-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 20px transparent; }
}

/* Ear indicator */
.ear-indicator {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.ear-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.ear-dot .circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.ear-dot.active .circle {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.ear-dot.active {
  color: var(--accent);
}

/* Warning banner */
.warning-banner {
  background: rgba(255, 140, 66, 0.08);
  border: 1px solid rgba(255, 140, 66, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.15rem;
  color: var(--warm);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.warning-banner strong { color: var(--warm); }

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-style: italic;
}

/* Result page */
.result-big {
  text-align: center;
  padding: 2rem 0;
}

.result-big .freq-value {
  font-size: clamp(3.5rem, 12vw, 6rem);
  margin-bottom: 0.5rem;
}

.result-category {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1rem 0 1.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Content pages */
.content-prose {
  max-width: 720px;
  margin: 0 auto;
}

.content-prose h2 {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.content-prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2rem;
}

.content-prose h3 {
  margin-top: 2rem;
  color: var(--accent);
}

.content-prose ul, .content-prose ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text);
}

.content-prose li {
  margin-bottom: 0.4rem;
}

.content-prose .tldr {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
  color: var(--text);
}

.content-prose .tldr strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.citation {
  font-size: 0.78rem;
  color: var(--text-muted);
  vertical-align: super;
  font-family: var(--font-mono);
}

.citation a { color: var(--accent); }

.references {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

.references h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.references ol {
  margin-left: 1.2rem;
  color: var(--text-muted);
}

.references li {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

/* Comparison table */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.comp-table th, .comp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg);
}

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

.comp-table tbody tr:hover { background: var(--surface-hover); }

/* TFI */
.tfi-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.tfi-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

.tfi-question {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.tfi-question-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.tfi-question-text {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tfi-scale {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.tfi-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

.tfi-option {
  flex: 1;
  min-width: 36px;
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tfi-option:hover {
  border-color: var(--accent-dim);
  color: var(--text);
}

.tfi-option.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.tfi-result-score {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  text-align: center;
  margin: 1rem 0;
  text-shadow: 0 0 32px var(--accent-glow);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 32ch;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Notched sound therapy */
.therapy-tool {
  display: flex;
  flex-direction: column;
}

.therapy-banner {
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.therapy-timer {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.therapy-timer-value {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-shadow: 0 0 32px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}

.therapy-timer-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.therapy-spectrum {
  margin: 0.5rem 0 0.25rem;
  padding: 0.75rem 0.75rem 0.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.therapy-spectrum svg {
  width: 100%;
  height: 140px;
  display: block;
}

.therapy-spectrum .spectrum-path {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.therapy-spectrum .spectrum-bar {
  fill: var(--accent);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.therapy-spectrum:not(.playing) .spectrum-bar,
.therapy-spectrum svg:not(.playing) .spectrum-bar {
  opacity: 0.15;
}

.therapy-spectrum .spectrum-marker {
  stroke: var(--warm);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.8;
}

.therapy-spectrum .spectrum-marker-label {
  fill: var(--warm);
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.9;
}

.therapy-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.35rem 0.25rem 0;
  letter-spacing: 0.05em;
}

.therapy-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.therapy-control label {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.therapy-control input[type="number"],
.therapy-control select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease;
}

.therapy-control input[type="number"]:focus,
.therapy-control select:focus {
  border-color: var(--accent);
}

.therapy-control select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.therapy-help {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.therapy-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-hover);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
