/* ============================================
   Hearing Screener — "Clinical Warmth" Design
   Premium audiology clinic meets modern health tech
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --navy: #0a1e3d;
  --navy-mid: #14305e;
  --navy-light: #1e4a8a;
  --teal: #1a8a7d;
  --teal-light: #2bb5a4;
  --teal-glow: rgba(26, 138, 125, 0.15);
  --cream: #faf8f4;
  --cream-dark: #f0ece4;
  --warm-white: #fdfcfa;
  --text: #1a1a2e;
  --text-secondary: #5a5a72;
  --text-muted: #8e8ea0;
  --border: #e8e4dc;
  --border-light: #f0ece6;
  --green: #1a8a5c;
  --green-bg: #e8f5ee;
  --amber: #c4880c;
  --amber-bg: #fef3e0;
  --red: #c43b2e;
  --red-bg: #fde8e6;
  --shadow-sm: 0 1px 3px rgba(10,30,61,0.06);
  --shadow-md: 0 4px 20px rgba(10,30,61,0.08);
  --shadow-lg: 0 12px 40px rgba(10,30,61,0.12);
  --shadow-glow: 0 0 30px rgba(26,138,125,0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Step Layout
   ============================================ */

.step {
  display: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.step.active {
  display: flex;
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  animation: stepIn 0.5s var(--ease-out) forwards;
}

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

.step-content {
  width: 48%;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  background: var(--warm-white);
}

.step-image {
  width: 52%;
  position: relative;
  overflow: hidden;
}

/* Abstract right-panel backgrounds */
.step-image .panel-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Typography
   ============================================ */

h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.65;
}

h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* ============================================
   Back Button
   ============================================ */

.back-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  height: 44px;
  padding: 0 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s var(--ease-out);
  line-height: 1;
}

.back-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: scale(1.05);
}

/* ============================================
   Progress Counter
   ============================================ */

.progress-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 5px 12px;
  background: var(--teal-glow);
  border-radius: 100px;
  width: fit-content;
}

/* ============================================
   Radio Options
   ============================================ */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  min-height: 64px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-bottom: 3px solid rgba(30, 38, 52, 0.15);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  user-select: none;
  position: relative;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(30, 38, 52, 0.08);
}

.radio-option:hover {
  background: var(--teal-glow);
  border-color: var(--teal);
  transform: translateY(1px);
  border-bottom-width: 2px;
  box-shadow: 0 1px 4px rgba(30, 38, 52, 0.06);
}
.radio-option:active {
  transform: translateY(3px);
  border-bottom-width: 0;
}

.radio-option.selected {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(10, 30, 61, 0.08);
  transform: translateY(-1px);
}

.radio-circle {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-right: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out);
  position: relative;
}

.radio-option:hover .radio-circle {
  border-color: var(--teal);
}

.radio-option.selected .radio-circle {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}

.radio-circle::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s var(--ease-spring);
  transform: scale(0);
}

.radio-option.selected .radio-circle::after {
  background: white;
  transform: scale(1);
}

.radio-label {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Age range grid */
.radio-group.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.radio-group.grid .radio-option {
  justify-content: center;
  padding: 14px 12px;
}

.radio-group.grid .radio-circle {
  display: none;
}

.radio-group.grid .radio-label {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

/* Headphone options with icons */
.radio-option .option-icon {
  width: 28px;
  height: 28px;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.5;
  transition: all 0.25s;
}

.radio-option:hover .option-icon {
  opacity: 0.8;
}

.radio-option.selected .option-icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* ============================================
   CTA Buttons
   ============================================ */

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  max-width: 380px;
  min-height: 64px;
  padding: 20px 36px;
  background: var(--navy);
  color: white;
  border: none;
  border-bottom: 3px solid rgba(30, 38, 52, 0.18);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s var(--ease-out);
  margin: 28px auto 0;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(30, 38, 52, 0.15);
}
.btn-primary:hover {
  transform: translateY(1px);
  border-bottom-width: 2px;
  box-shadow: 0 2px 6px rgba(30, 38, 52, 0.12);
}
.btn-primary:active {
  transform: translateY(3px);
  border-bottom-width: 0;
  box-shadow: 0 0 3px rgba(30, 38, 52, 0.1);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  padding: 16px 36px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--ease-out);
  margin-top: 12px;
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--cream);
}

/* ============================================
   Headphone hint
   ============================================ */

.headphone-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  width: fit-content;
}

.headphone-hint svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

/* ============================================
   Calibration Steps
   ============================================ */

.calibration-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.cal-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.cal-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cal-step-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.cal-step-text strong {
  color: var(--text);
}

/* ============================================
   Setup Instructions
   ============================================ */

.setup-list {
  list-style: none;
  margin: 20px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setup-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s var(--ease-out);
}

.setup-list li:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.setup-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-glow);
  border-radius: 12px;
  color: var(--teal);
}

.setup-icon svg {
  width: 22px;
  height: 22px;
}

/* ============================================
   Tone Test
   ============================================ */

.tone-test-container {
  text-align: center;
  padding: 10px 0;
}

.tone-test-label {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.tone-test-ear {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 500;
}

.tone-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.tone-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
  transition: all 0.4s var(--ease-out);
}

.tone-progress-dot.completed {
  background-color: var(--teal);
  box-shadow: 0 0 8px rgba(26, 138, 125, 0.3);
}

.tone-progress-dot.active {
  background-color: var(--navy);
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(10, 30, 61, 0.12);
}

.ear-indicator {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.ear-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--cream);
  border: 2px solid var(--border);
  transition: all 0.35s var(--ease-out);
}

.ear-icon.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  box-shadow: var(--shadow-md), 0 0 0 6px rgba(10, 30, 61, 0.08);
  transform: scale(1.08);
}

.slider-container {
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 0 8px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 700;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(to right, var(--cream-dark) 0%, var(--navy) 100%);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  border: 5px solid white;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.volume-slider::-moz-range-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  border: 5px solid white;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.fine-adjust {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 4px;
}

.fine-adjust button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-size: 1.2rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
  font-family: var(--font-body);
}

.fine-adjust button:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
  transform: scale(1.08);
}

.tone-instruction {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.tone-instruction strong {
  color: var(--navy);
}

/* ============================================
   Lead Capture
   ============================================ */

.lead-form {
  max-width: 380px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  transition: all 0.25s var(--ease-out);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.form-group input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(196, 59, 46, 0.08);
}

.form-error {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

.skip-link {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 18px;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px;
}

.skip-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ============================================
   Results Page
   ============================================ */

#step-results .results-container {
  width: 100%;
  padding: 48px 64px;
  overflow-y: auto;
  height: 100%;
  background: var(--warm-white);
}

.result-header {
  text-align: center;
  margin-bottom: 48px;
}

.result-header h1 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.gauge-container {
  width: 300px;
  margin: 0 auto 28px;
}

.result-category {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.result-category.green { color: var(--green); }
.result-category.amber { color: var(--amber); }
.result-category.red { color: var(--red); }

.result-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Frequency Breakdown */
.frequency-breakdown {
  max-width: 560px;
  margin: 0 auto 48px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border-light);
}

.frequency-breakdown h3 {
  text-align: center;
  margin-bottom: 22px;
}

.freq-row {
  display: flex;
  align-items: center;
  padding: 11px 0;
}

.freq-row + .freq-row {
  border-top: 1px solid var(--border-light);
}

.freq-label {
  width: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.freq-bar-container {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 16px;
}

.freq-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1s var(--ease-out);
}

.freq-bar.normal { background: var(--green); }
.freq-bar.mild { background: var(--amber); }
.freq-bar.reduced { background: var(--red); }

.freq-status {
  width: 110px;
  font-size: 0.72rem;
  white-space: nowrap;
  text-align: right;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.freq-status.normal { color: var(--green); }
.freq-status.mild { color: var(--amber); }
.freq-status.reduced { color: var(--red); }

/* Product Cards */
.products-section {
  max-width: 720px;
  margin: 0 auto 48px;
}

.products-section h3 {
  text-align: center;
  margin-bottom: 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-image {
  width: 100%;
  height: 160px;
  background: linear-gradient(145deg, var(--cream) 0%, var(--cream-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, var(--teal-glow) 0%, transparent 60%);
}

.product-info {
  padding: 18px 20px;
}

.product-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}

.product-price {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.product-btn {
  display: block;
  width: 100%;
  padding: 11px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--ease-out);
}

.product-btn:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

/* Disclaimer */
.disclaimer {
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 22px 26px;
  background: var(--amber-bg);
  border: 1px solid #f0d68a;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.disclaimer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Retake */
.retake-btn {
  display: block;
  max-width: 280px;
  margin: 0 auto 48px;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--ease-out);
}

.retake-btn:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

/* ============================================
   Abstract Panel Visuals
   ============================================ */

/* Soundwave panel — used on welcome, headphones, setup */
.panel-soundwave {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1a3f6e 100%);
}

.panel-soundwave .wave-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.panel-soundwave .ring {
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 4s ease-in-out infinite;
}

.panel-soundwave .ring:nth-child(1) { width: 100px; height: 100px; animation-delay: 0s; }
.panel-soundwave .ring:nth-child(2) { width: 200px; height: 200px; animation-delay: 0.5s; }
.panel-soundwave .ring:nth-child(3) { width: 320px; height: 320px; animation-delay: 1s; }
.panel-soundwave .ring:nth-child(4) { width: 460px; height: 460px; animation-delay: 1.5s; }
.panel-soundwave .ring:nth-child(5) { width: 620px; height: 620px; animation-delay: 2s; }

@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.panel-soundwave .ear-glyph {
  position: relative;
  z-index: 2;
}

/* Warm lifestyle panels for questions */
.panel-warm {
  background: linear-gradient(145deg, #f7f0e8 0%, #ede4d8 40%, #e0d6c8 100%);
  position: relative;
}

.panel-warm::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(26, 138, 125, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.panel-teal {
  background: linear-gradient(145deg, #e8f4f2 0%, #d0ebe6 40%, #bee3dc 100%);
}

.panel-nature {
  background: linear-gradient(145deg, #eef5e8 0%, #dcebd0 40%, #cce3be 100%);
}

.panel-social {
  background: linear-gradient(145deg, #f0eaf5 0%, #e2d6ed 40%, #d4c4e2 100%);
}

/* Tone test active panel */
.panel-listening {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2847 100%);
  overflow: hidden;
}

.panel-listening .eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
}

.panel-listening .eq-bar {
  width: 8px;
  background: var(--teal-light);
  border-radius: 4px 4px 0 0;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
  opacity: 0.7;
}

.panel-listening .eq-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.panel-listening .eq-bar:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.panel-listening .eq-bar:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.panel-listening .eq-bar:nth-child(4) { height: 45%; animation-delay: 0.3s; }
.panel-listening .eq-bar:nth-child(5) { height: 90%; animation-delay: 0.15s; }
.panel-listening .eq-bar:nth-child(6) { height: 55%; animation-delay: 0.25s; }
.panel-listening .eq-bar:nth-child(7) { height: 70%; animation-delay: 0.05s; }
.panel-listening .eq-bar:nth-child(8) { height: 35%; animation-delay: 0.35s; }
.panel-listening .eq-bar:nth-child(9) { height: 50%; animation-delay: 0.2s; }
.panel-listening .eq-bar:nth-child(10) { height: 75%; animation-delay: 0.1s; }
.panel-listening .eq-bar:nth-child(11) { height: 40%; animation-delay: 0.3s; }
.panel-listening .eq-bar:nth-child(12) { height: 65%; animation-delay: 0.05s; }

@keyframes eqBounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.panel-listening .freq-display {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-size: 4rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Lead capture panel */
.panel-success {
  background: linear-gradient(145deg, #e8f5ee 0%, #d0ebe0 40%, #bee3d4 100%);
}

/* Scene illustrations (abstract, sophisticated) */
.scene-icon {
  width: 180px;
  height: 180px;
  position: relative;
  z-index: 2;
}

.scene-icon svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   Responsive
   ============================================ */

/* Overall test progress bar */
.test-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0,0,0,0.08);
  z-index: 200;
  pointer-events: none;
}
.test-progress-fill {
  height: 100%;
  background: var(--teal);
  width: 0%;
  transition: width 300ms ease-out;
}

@media (max-width: 1024px) {
  .step-content { width: 50%; padding: 36px 40px; }
  .step-image { width: 50%; }
  h1 { font-size: 1.8rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .radio-group.grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .step { flex-direction: column; }
  .step-content {
    width: 100%;
    padding: 24px 24px 32px;
    min-height: auto;
    justify-content: flex-start;
  }
  .step-image { display: none; }
  #step-welcome .step-image {
    display: block;
    width: 100%;
    height: 220px;
    order: -1;
  }
  #step-welcome .step-content {
    min-height: auto;
    padding-top: 24px;
  }
  #step-welcome { overflow-y: auto; }
  .radio-group.grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  #step-results .results-container { padding: 24px; }
  #step-results { flex-direction: column; }
}

@media (max-width: 480px) {
  .step-content { padding: 20px 18px 24px; }
  h1 { font-size: 1.5rem; }
  .radio-group.grid { grid-template-columns: repeat(2, 1fr); }
  .ear-indicator { gap: 16px; }
  .ear-icon { width: 46px; height: 46px; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
