/* Audionex - Diagnóstico Auditivo | estilos (escopo .adx) */
.adx, .adx * { box-sizing: border-box; }
.adx {
  --brand: #3f8e9b;
  --brand-dark: #26565e;
  --orange: #e88a2e;
  --bg: #fbfefe;
  --fg: #1f2f33;
  --muted: #6b7c80;
  --card: #ffffff;
  --border: #e2e9ea;
  --gradient-brand: linear-gradient(135deg, #3f8e9b, #2b6570);
  --gradient-soft: linear-gradient(180deg, #eef7f8, #fbfefe);
  --shadow-brand: 0 20px 50px -20px rgba(45, 110, 120, 0.45);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--gradient-soft);
  min-height: 100vh;
}
.adx img { max-width: 100%; height: auto; display: block; }
.adx p { margin: 0; }

/* Header */
.adx-header { border-bottom: 1px solid var(--border); background: rgba(255,255,255,.8); backdrop-filter: blur(8px); }
.adx-header-in { max-width: 780px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.adx-logo { display: flex; align-items: center; gap: 8px; }
.adx-logo-mark { width: 36px; height: 36px; border-radius: 999px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.adx-logo-text { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: var(--brand-dark); }
.adx-header-tag { font-size: .72rem; font-weight: 500; color: var(--muted); }

/* Layout */
.adx-main { max-width: 700px; margin: 0 auto; padding: 40px 20px; }
@media (min-width: 640px) { .adx-main { padding: 64px 20px; } }
.adx-footer { max-width: 700px; margin: 0 auto; padding: 32px 20px; text-align: center; font-size: .72rem; color: var(--muted); }
.adx-hidden { display: none !important; }

/* Progresso */
.adx-progress-wrap { margin-bottom: 32px; }
.adx-progress-top { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.adx-progress-bar { height: 8px; width: 100%; border-radius: 999px; background: #eaf0f1; overflow: hidden; }
.adx-progress-fill { height: 100%; width: 0%; border-radius: 999px; background: var(--gradient-brand); transition: width .5s ease; }

/* Intro */
.adx-center { text-align: center; }
.adx-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(63,142,155,.3); background: rgba(63,142,155,.06); border-radius: 999px; padding: 6px 16px; font-size: .72rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 24px; }
.adx-h1 { font-size: 2rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--brand-dark); margin: 0; }
@media (min-width: 640px) { .adx-h1 { font-size: 2.6rem; } }
.adx-h1 span { color: var(--brand); }
.adx-lead { max-width: 34rem; margin: 20px auto 0; font-size: 1rem; color: var(--muted); }
@media (min-width: 640px) { .adx-lead { font-size: 1.1rem; } }
.adx-sub { margin-top: 12px; font-size: .85rem; font-weight: 500; color: rgba(31,47,51,.8); }

/* Botões CTA */
.adx-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 460px; margin-top: 32px;
  padding: 18px 32px; border: 0; border-radius: 999px; cursor: pointer;
  background-image: var(--gradient-brand); color: #fff !important;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow-brand);
  animation: adx-pulse 2s cubic-bezier(.4,0,.6,1) infinite;
  transition: transform .2s ease;
}
.adx-cta:hover { transform: scale(1.02); color: #fff !important; }
@media (min-width: 640px) { .adx-cta { font-size: 1.1rem; } }
@keyframes adx-pulse { 0%,100% { opacity: 1; } 50% { opacity: .75; } }

/* Selos */
.adx-badges { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 12px; font-size: .85rem; color: var(--muted); }
@media (min-width: 640px) { .adx-badges { grid-template-columns: repeat(3, 1fr); } }
.adx-badges > div { border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 12px 16px; }

/* Quiz */
.adx-h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.3; color: var(--brand-dark); margin: 0; }
@media (min-width: 640px) { .adx-h2 { font-size: 1.7rem; } }
.adx-options { margin-top: 24px; display: grid; gap: 12px; }
.adx-option { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  border: 2px solid var(--border); background: var(--card); color: var(--fg);
  border-radius: 16px; padding: 16px 20px; font-size: 1rem; font-weight: 500; font-family: inherit;
  transition: all .2s ease; }
.adx-option:hover { border-color: var(--brand); background: rgba(63,142,155,.05); box-shadow: 0 8px 20px -12px rgba(0,0,0,.3); }
.adx-option .adx-radio { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 999px; border: 2px solid rgba(63,142,155,.5); display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.adx-option .adx-dot { width: 10px; height: 10px; border-radius: 999px; background: transparent; }
.adx-option:hover .adx-radio { border-color: var(--brand); background: var(--brand); }
.adx-option:hover .adx-dot { background: #fff; }
.adx-option.is-selected { border-color: var(--brand); background: rgba(63,142,155,.12); color: var(--brand-dark); transform: scale(1.01); box-shadow: 0 8px 20px -12px rgba(0,0,0,.35); }
.adx-option.is-selected .adx-radio { border-color: var(--brand); background: var(--brand); }
.adx-option.is-selected .adx-dot { background: #fff; }

/* Processando */
.adx-spinner { width: 80px; height: 80px; margin: 0 auto 32px; border-radius: 999px; border: 4px solid rgba(63,142,155,.2); border-top-color: var(--brand); animation: adx-spin 1s linear infinite; }
@keyframes adx-spin { to { transform: rotate(360deg); } }
.adx-steps { max-width: 460px; margin: 32px auto 0; display: grid; gap: 12px; text-align: left; }
.adx-step { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 12px 16px; opacity: .4; transition: opacity .4s ease; }
.adx-step.is-done { opacity: 1; }
.adx-step .adx-check { width: 24px; height: 24px; border-radius: 999px; background: #eaf0f1; color: transparent; display: flex; align-items: center; justify-content: center; font-size: .7rem; }
.adx-step.is-done .adx-check { background: var(--brand); color: #fff; }
.adx-step span:last-child { font-size: .85rem; font-weight: 500; }

/* Resultado */
.adx-result-card { border: 2px solid rgba(232,138,46,.4); background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-brand); }
@media (min-width: 640px) { .adx-result-card { padding: 32px; } }
.adx-alert { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: rgba(232,138,46,.15); color: var(--orange); padding: 4px 12px; font-size: .72rem; font-weight: 700; }
.adx-result-card h2 { margin: 12px 0 0; font-size: 1.4rem; font-weight: 800; line-height: 1.2; color: var(--brand-dark); }
@media (min-width: 640px) { .adx-result-card h2 { font-size: 1.7rem; } }
.adx-result-card p { margin-top: 16px; color: var(--muted); font-size: 1rem; }
.adx-result-card p.adx-strong { margin-top: 12px; font-size: .85rem; font-weight: 500; color: rgba(31,47,51,.8); }

.adx-product { margin-top: 32px; border: 1px solid var(--border); border-radius: 24px; padding: 24px; overflow: hidden; background: linear-gradient(135deg, rgba(63,142,155,.06), var(--bg)); }
@media (min-width: 640px) { .adx-product { padding: 32px; } }
.adx-product-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 640px) { .adx-product-grid { grid-template-columns: 1fr 1fr; } }
.adx-product h3 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--brand-dark); }
@media (min-width: 640px) { .adx-product h3 { font-size: 1.4rem; } }
.adx-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: .85rem; }
.adx-list li { display: flex; gap: 8px; }
.adx-product img { max-height: 320px; width: auto; margin: 0 auto; filter: drop-shadow(0 25px 25px rgba(0,0,0,.15)); }

.adx-final { margin-top: 32px; text-align: center; }
.adx-final > p { font-size: 1.1rem; font-weight: 600; color: var(--brand-dark); }
.adx-triggers { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 12px; font-size: .85rem; }
@media (min-width: 640px) { .adx-triggers { grid-template-columns: repeat(2, 1fr); } }
.adx-triggers > div { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 12px 16px; color: rgba(31,47,51,.8); }
