/* ============================================================
   VOICE TYPE TEST — style.css
   Design system: dark navy + purple + gold
   ============================================================ */

:root {
  --bg:          #080812;
  --bg-card:     #12122a;
  --bg-dark:     #0a0a1e;
  --purple:      #7c3aed;
  --purple-light:#a78bfa;
  --gold:        #f59e0b;
  --gold-light:  #fcd34d;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --border:      rgba(124,58,237,0.25);
  --success:     #10b981;
  --danger:      #ef4444;

  --font-sans:   'Inter', system-ui, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  24px;

  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --glow:   0 0 40px rgba(124,58,237,0.3);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; font-family: var(--font-sans); font-weight: 600; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; }
p  { color: var(--text-muted); }

/* ── Buttons ── */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all .25s; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.6);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple-light); }
.btn-primary:disabled, .btn-secondary:disabled {
  opacity: .4; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,8,18,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1120px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.4rem; }
.logo-text { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.logo-accent { color: var(--gold); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 22px; border-radius: 50px;
  background: var(--purple); color: #fff;
  font-weight: 600; font-size: .9rem; border: none; cursor: pointer;
  transition: background .2s;
}
.nav-cta:hover { background: #5b21b6; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: 160px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,.25) 0%, transparent 70%),
              var(--bg);
  text-align: center; overflow: hidden;
}
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 18px; border-radius: 50px;
  background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.4);
  color: var(--purple-light); font-size: .85rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
}
.hero-title { margin-bottom: 18px; }
.hero-subtitle {
  font-size: 1.15rem; max-width: 560px; margin: 0 auto 32px;
  color: var(--text-muted); line-height: 1.7;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-bottom: 36px;
}
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--gold); font-family: var(--font-sans); }
.stat-label  { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; height: 60px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.dark-section { background: var(--bg-dark); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; max-width: 620px; margin: 0 auto 48px; font-size: 1.05rem; }

/* ── Info grid ── */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px;
}
.info-card {
  background: var(--bg-card); border-radius: var(--r-md);
  padding: 28px; border: 1px solid var(--border);
  transition: border-color .25s, transform .25s;
}
.info-card:hover { border-color: var(--purple); transform: translateY(-4px); }
.info-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 { margin-bottom: 8px; font-size: 1.05rem; color: var(--text); }
.info-card p { font-size: .92rem; }

/* ============================================================
   TEST SECTION
   ============================================================ */
.test-section { background: var(--bg-dark); }
.test-tabs {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 36px; flex-wrap: wrap;
}
.tab-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 36px; border-radius: var(--r-md);
  background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--text-muted); font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all .2s; min-width: 200px;
}
.tab-btn span { font-size: 1.5rem; }
.tab-btn small { font-size: .75rem; font-weight: 400; color: var(--text-muted); }
.tab-btn.active, .tab-btn:hover {
  border-color: var(--purple); color: var(--text);
  background: rgba(124,58,237,.15);
}
.tab-btn.active small { color: var(--gold); }

.test-panel {
  background: var(--bg-card); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 40px;
  display: none;
}
.test-panel.active { display: block; }

/* ── Mic test ── */
.mic-step { text-align: center; }
.mic-icon-large { font-size: 4rem; margin-bottom: 16px; }
.mic-step h3 { font-family: var(--font-sans); font-size: 1.4rem; margin-bottom: 12px; }
.mic-step p { max-width: 500px; margin: 0 auto 20px; }

.mic-tips {
  list-style: none; display: inline-flex; flex-direction: column;
  gap: 8px; margin: 0 auto 28px; text-align: left;
}
.mic-tips li { color: var(--text-muted); font-size: .9rem; }
.mic-tips li::before { content: '✓ '; color: var(--success); font-weight: 700; }

.step-indicator {
  display: inline-block; padding: 4px 16px; border-radius: 50px;
  background: rgba(124,58,237,.2); color: var(--purple-light);
  font-size: .8rem; font-weight: 600; margin-bottom: 16px;
}
.highlight-low { color: #60a5fa; }
.highlight-high { color: #f87171; }

/* Pitch display */
.pitch-display {
  background: var(--bg); border-radius: var(--r-md);
  padding: 28px; margin: 24px auto; max-width: 420px;
  border: 1px solid var(--border);
}
.pitch-meter {
  height: 8px; background: rgba(255,255,255,.1);
  border-radius: 4px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.pitch-needle {
  height: 100%; width: 4px;
  background: linear-gradient(to right, var(--purple), var(--gold));
  border-radius: 4px; position: absolute; left: 50%;
  transition: left .1s;
  box-shadow: 0 0 8px var(--purple);
}
.detected-note {
  font-size: 3rem; font-weight: 800; color: var(--text);
  font-family: var(--font-sans); margin-bottom: 4px;
}
.detected-freq { font-size: .85rem; color: var(--text-muted); }

.stability-bar {
  height: 6px; background: rgba(255,255,255,.1);
  border-radius: 3px; margin: 16px auto; max-width: 340px;
  overflow: hidden;
}
.stability-fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: var(--success);
  transition: width .1s;
}
.stability-label { font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; }

/* ── Quiz ── */
.quiz-progress { margin-bottom: 28px; }
.progress-bar {
  height: 6px; background: rgba(255,255,255,.1);
  border-radius: 3px; margin-bottom: 8px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(to right, var(--purple), var(--gold));
  border-radius: 3px; transition: width .4s;
}
.progress-text { font-size: .85rem; color: var(--text-muted); }
.quiz-question h3 { margin-bottom: 10px; font-family: var(--font-sans); }
.quiz-hint { font-size: .9rem; color: var(--text-muted); margin-bottom: 20px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.quiz-option {
  padding: 14px 20px; border-radius: var(--r-sm);
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text); text-align: left; cursor: pointer;
  transition: all .2s; font-size: .95rem;
}
.quiz-option:hover { border-color: var(--purple); background: rgba(124,58,237,.1); }
.quiz-option.selected { border-color: var(--purple); background: rgba(124,58,237,.2); color: var(--purple-light); }
.voice-weight-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-option strong { display: block; margin-bottom: 4px; }
.quiz-option small { color: var(--text-muted); font-size: .82rem; display: block; font-weight: 400; }
.option-icon { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.quiz-question.hidden { display: none; }
.quiz-nav { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }

/* Note slider */
.note-slider-container { margin-bottom: 20px; }
.note-slider {
  -webkit-appearance: none; width: 100%; height: 8px;
  border-radius: 4px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--purple), var(--gold));
  margin-bottom: 12px;
}
.note-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px var(--purple); cursor: pointer;
}
.note-display {
  font-size: 2.5rem; font-weight: 800; color: var(--gold);
  text-align: center; margin-bottom: 8px; font-family: var(--font-sans);
}
.note-range-labels {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--text-muted);
}

/* ============================================================
   RESULTS
   ============================================================ */
.results-section {
  background: var(--bg-card); border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 48px 40px; margin-top: 32px;
  animation: fadeInUp .5s ease;
}
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.results-header { text-align: center; margin-bottom: 40px; }
.results-badge {
  display: inline-block; padding: 6px 20px; border-radius: 50px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.4);
  color: var(--gold); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.results-type { font-size: 2.6rem; margin-bottom: 12px; color: var(--text); }
.results-description { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

.results-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
  margin-bottom: 36px;
}
.result-card {
  background: var(--bg); border-radius: var(--r-md);
  padding: 24px; border: 1px solid var(--border);
}
.result-card h4 { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; font-family: var(--font-sans); }
.range-display { font-size: 1.4rem; font-weight: 700; color: var(--purple-light); margin-bottom: 12px; }
.range-bar-container { margin-top: 8px; }
.range-bar-full { height: 10px; background: rgba(255,255,255,.08); border-radius: 5px; margin-bottom: 6px; position: relative; }
.range-bar-your { height: 100%; background: linear-gradient(to right, var(--purple), var(--gold)); border-radius: 5px; }
.range-bar-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted); }
.tessitura-display { font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.famous-list, .songs-list { display: flex; flex-direction: column; gap: 6px; }
.singer-tag, .song-tag {
  background: rgba(124,58,237,.15); border-radius: var(--r-sm);
  padding: 6px 12px; font-size: .9rem; color: var(--text);
  border-left: 3px solid var(--purple);
}
.results-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.result-card--full { grid-column: 1 / -1; }
.mic-error-msg { display: block; margin-top: 12px; padding: 12px 16px; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); border-radius: var(--r-sm); color: #fca5a5; font-size: .9rem; line-height: 1.5; }
.footer-legal { margin-top: 8px; font-size: .82rem; color: var(--text-muted); }
.footer-legal a { color: var(--text-muted); text-decoration: underline; }
.footer-legal a:hover { color: var(--purple-light); }

/* ============================================================
   VOICE TYPES SECTION
   ============================================================ */
.voice-category { margin-bottom: 52px; }
.category-title {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 18px; border-radius: 4px; display: inline-block;
  margin-bottom: 20px;
}
.category-title.female { background: rgba(244,114,182,.15); color: #f472b6; border-left: 3px solid #f472b6; }
.category-title.male   { background: rgba(96,165,250,.15);  color: #60a5fa;  border-left: 3px solid #60a5fa; }

.voice-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px;
}
.voice-card {
  background: var(--bg-card); border-radius: var(--r-md);
  padding: 22px; border: 1px solid var(--border);
  transition: border-color .25s, transform .25s;
}
.voice-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.voice-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.voice-card-header h4 { font-size: 1.05rem; color: var(--text); }
.voice-type-badge {
  padding: 3px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.voice-type-badge.soprano     { background: rgba(244,114,182,.2); color: #f472b6; }
.voice-type-badge.mezzo       { background: rgba(167,139,250,.2); color: #a78bfa; }
.voice-type-badge.contralto   { background: rgba(139,92,246,.2);  color: #8b5cf6; }
.voice-type-badge.countertenor{ background: rgba(56,189,248,.2);  color: #38bdf8; }
.voice-type-badge.tenor       { background: rgba(96,165,250,.2);  color: #60a5fa; }
.voice-type-badge.baritone    { background: rgba(52,211,153,.2);  color: #34d399; }
.voice-type-badge.bass-baritone{background: rgba(251,191,36,.2);  color: #fbbf24; }
.voice-type-badge.bass        { background: rgba(251,146,60,.2);  color: #fb923c; }

.voice-range-tag {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  background: rgba(245,158,11,.1); color: var(--gold-light);
  font-size: .8rem; font-weight: 600; margin-bottom: 10px;
}
.voice-card p { font-size: .92rem; margin-bottom: 12px; }
.voice-examples { font-size: .83rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 10px; }
.voice-examples strong { color: var(--purple-light); }

/* ============================================================
   FACH TABLE
   ============================================================ */
.fach-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.fach-text h3 { margin: 24px 0 8px; font-family: var(--font-sans); font-size: 1.1rem; color: var(--text); }
.fach-text h3:first-child { margin-top: 0; }
.fach-text p { margin-bottom: 12px; font-size: .95rem; }
.fach-list { padding-left: 0; }
.fach-list li { color: var(--text-muted); padding: 4px 0; font-size: .93rem; }
.fach-list li::before { content: '→ '; color: var(--purple-light); font-weight: 700; }
.fach-table-wrapper { overflow-x: auto; }
.fach-table {
  width: 100%; border-collapse: collapse; font-size: .88rem;
}
.fach-table th {
  background: rgba(124,58,237,.2); color: var(--purple-light);
  padding: 10px 14px; text-align: left;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
}
.fach-table td { padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--text-muted); }
.fach-table tr:hover td { background: rgba(124,58,237,.08); color: var(--text); }
.soprano-row td:first-child  { color: #f472b6; font-weight: 600; }
.mezzo-row td:first-child     { color: #a78bfa; font-weight: 600; }
.contralto-row td:first-child { color: #8b5cf6; font-weight: 600; }
.counter-row td:first-child   { color: #38bdf8; font-weight: 600; }
.tenor-row td:first-child     { color: #60a5fa; font-weight: 600; }
.baritone-row td:first-child  { color: #34d399; font-weight: 600; }
.bass-bar-row td:first-child  { color: #fbbf24; font-weight: 600; }
.bass-row td:first-child      { color: #fb923c; font-weight: 600; }

/* ============================================================
   FAMOUS SINGERS
   ============================================================ */
.singers-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px;
}
.singer-tab {
  padding: 8px 20px; border-radius: 50px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.singer-tab.active, .singer-tab:hover {
  background: rgba(124,58,237,.2); border-color: var(--purple); color: var(--text);
}
.singers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.singer-card {
  background: var(--bg-card); border-radius: var(--r-md);
  padding: 20px; border: 1px solid var(--border); text-align: center;
  transition: border-color .2s, transform .2s;
}
.singer-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.singer-emoji { font-size: 2.2rem; margin-bottom: 8px; }
.singer-name { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.singer-subtype { font-size: .8rem; color: var(--purple-light); margin-bottom: 4px; }
.singer-range { font-size: .78rem; color: var(--text-muted); }

/* ============================================================
   TRAINING
   ============================================================ */
.training-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.training-card {
  background: var(--bg-card); border-radius: var(--r-md);
  padding: 28px; border: 1px solid var(--border);
  transition: border-color .25s;
}
.training-card:hover { border-color: var(--purple); }
.training-icon { font-size: 2rem; margin-bottom: 12px; }
.training-card h3 { margin-bottom: 8px; font-size: 1.05rem; color: var(--text); }
.training-card p  { font-size: .93rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-container { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; text-align: left; padding: 20px 0;
  background: none; border: none; color: var(--text);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--purple-light); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 20px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: .94rem; line-height: 1.75; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark); border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; max-width: 260px; }
.footer-links h4 { color: var(--text); font-family: var(--font-sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-links li a:hover { color: var(--purple-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: .85rem; }
.footer-disclaimer { color: var(--text-muted) !important; margin-top: 6px; font-size: .8rem !important; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Skip to main content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* Focus-visible on all interactive elements */
:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Remove default outline only when focus-visible is supported */
:focus:not(:focus-visible) { outline: none; }

/* Ensure buttons and links have minimum touch target */
.nav-links a,
.nav-cta,
.tab-btn,
.btn-primary,
.btn-secondary {
  min-height: 44px;
}
.nav-links li { display: flex; align-items: center; }

/* ── Hamburger button ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.nav-open .hamburger-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .hamburger-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown keyboard open state */
.nav-dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .fach-content { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }

  /* Show hamburger, hide inline nav */
  .hamburger-btn { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8,8,18,.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px 20px;
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(124,58,237,.12);
    color: var(--text);
  }
  /* Mobile dropdowns — show inline */
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    background: rgba(124,58,237,.08);
    border: none;
    border-radius: var(--r-sm);
    box-shadow: none;
    padding: 4px 0 4px 16px;
    margin-top: 4px;
    display: none;
  }
  .nav-dropdown.dropdown-open .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu { display: block; }
  .nav-dropdown > a::after { float: right; }
}

@media (max-width: 640px) {
  .hero { padding: 120px 0 60px; }
  .test-panel { padding: 24px 18px; }
  .voice-weight-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .singers-tabs { gap: 6px; }
  .singer-tab { padding: 7px 14px; font-size: .82rem; }
  .results-section { padding: 28px 18px; }
  .fach-table { font-size: .8rem; }
}

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