/* =============================================================================
   MicroSelf — portal de apresentação e assinatura
   Paleta alinhada ao app Self Service Control (app/lib/core/theme/app_theme.dart)
   ========================================================================== */

:root {
  --bg: #f0f4f1;
  --surface: #ffffff;
  --surface-2: #e6ede7;
  --text: #1a1c1a;
  --muted: #535b53;
  --line: #d5ddd6;
  --primary: #3d8b2f;
  --lime: #a6e77f;
  --on-lime: #1b2a12;
  --grad-a: #e6e6a0;
  --grad-b: #b3dc8c;
  --on-header: #1a1c1a;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgb(20 40 20 / 6%), 0 8px 24px rgb(20 40 20 / 6%);

  --radius-card: 20px;
  --radius-field: 16px;
  --max: 1200px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111411;
    --surface: #1b1f1b;
    --surface-2: #232823;
    --text: #e3e6e2;
    --muted: #a9b0a8;
    --line: #2f362f;
    --primary: #9edb7e;
    --grad-a: #3a3c24;
    --grad-b: #2a3d22;
    --on-header: #e3e6e2;
    --danger: #f2b8b5;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111411;
  --surface: #1b1f1b;
  --surface-2: #232823;
  --text: #e3e6e2;
  --muted: #a9b0a8;
  --line: #2f362f;
  --primary: #9edb7e;
  --grad-a: #3a3c24;
  --grad-b: #2a3d22;
  --on-header: #e3e6e2;
  --danger: #f2b8b5;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .container { padding: 0 24px; } }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--lime); color: var(--on-lime); padding: 8px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(0.96); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--primary); font-weight: 800; }

.nav { display: none; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { min-height: 44px; padding: 0 18px; }
.header-actions .login-link { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.mobile-nav { display: none; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-nav.open { display: grid; gap: 4px; }
.mobile-nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 12px 16px; border-radius: 16px; }
.mobile-nav a:hover { background: var(--surface); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; }
  .header-actions .login-link { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 32px 0 64px; }
.hero-card {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: var(--on-header);
  border-radius: 32px;
  padding: 40px 24px;
  display: grid; gap: 40px; align-items: center;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero-card { grid-template-columns: 1.1fr 0.9fr; padding: 64px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .875rem; margin-bottom: 16px;
}
.hero p.lead { font-size: 1.15rem; max-width: 34em; margin: 16px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: var(--text); color: var(--bg); }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 18px; height: 18px; }

/* Mockup do app */
.device {
  justify-self: center; width: min(100%, 340px);
  background: var(--bg); color: var(--text);
  border-radius: 36px; padding: 14px;
  box-shadow: 0 30px 60px -20px rgb(20 40 20 / 40%);
  border: 6px solid var(--text);
}
.device-top { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); border-radius: 22px; padding: 16px; margin-bottom: 12px; }
.device-top small { display: block; color: var(--on-header); opacity: .8; font-weight: 600; }
.device-top strong { display: block; color: var(--on-header); font-size: 1.1rem; }
.device-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.kpi { background: var(--surface); border-radius: 14px; padding: 10px 12px; }
.kpi small { color: var(--muted); font-size: .72rem; opacity: 1; }
.kpi strong { color: var(--text); font-size: 1rem; }
.appt { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; }
.appt time { font-weight: 800; font-size: .85rem; min-width: 42px; }
.appt div { flex: 1; min-width: 0; }
.appt b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt span { display: block; color: var(--muted); font-size: .75rem; }
.tag { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--lime); color: var(--on-lime); white-space: nowrap; }
.tag.alt { background: var(--surface-2); color: var(--muted); }

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 8px; display: block; }

.card { background: var(--surface); border-radius: var(--radius-card); padding: 24px; }

.segments { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: var(--surface); border-radius: 999px; padding: 10px 18px; font-weight: 600; }

.grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.feature .icon {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: var(--on-header); margin-bottom: 16px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; }

/* Como funciona */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; left: 24px;
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  background: var(--lime); color: var(--on-lime); font-weight: 800;
}
.step p { color: var(--muted); margin: 0; }

/* Faixa dividida (parceiros) */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 24px; height: 24px; color: var(--primary); margin-top: 1px; }
.panel { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: var(--on-header); border-radius: 28px; padding: 24px; display: grid; gap: 12px; }
.panel .row { background: var(--surface); color: var(--text); border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.panel .row span { color: var(--muted); font-size: .9rem; }
.panel .row strong { white-space: nowrap; }

/* Em breve */
.soon { position: relative; }
.soon .badge { position: absolute; top: 20px; right: 20px; }
.badge { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* ---------- Planos ---------- */
.billing-toggle {
  display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; gap: 4px; margin-top: 8px;
}
.billing-toggle button {
  border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px;
}
.billing-toggle button[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }
.billing-toggle .save { font-size: .75rem; font-weight: 800; color: var(--primary); margin-left: 4px; }
.billing-toggle button[aria-pressed="true"] .save { color: var(--on-lime); }

.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 16px; position: relative; border: 2px solid transparent; }
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; left: 24px; background: var(--primary); color: var(--bg); font-weight: 800; font-size: .75rem; padding: 4px 12px; border-radius: 999px; }
.plan-desc { color: var(--muted); margin: 0; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price .cur { font-weight: 700; }
.price .val { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-weight: 600; }
.price-note { color: var(--muted); font-size: .875rem; margin: -12px 0 0; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: 2px; }
.plans-foot { text-align: center; color: var(--muted); margin-top: 24px; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--radius-card); padding: 0 24px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--primary); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- CTA final ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: var(--on-header);
  border-radius: 32px; padding: 48px 24px; text-align: center;
}
.cta-band p { max-width: 36em; margin: 8px auto 24px; font-size: 1.1rem; }
.cta-band .btn-primary { background: var(--text); color: var(--bg); }

/* ---------- Rodapé ---------- */
.site-footer { padding: 48px 0 32px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--text); margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* =============================================================================
   Assinatura (assinar.html)
   ========================================================================== */
.checkout { padding: 24px 0 64px; }
.checkout-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: 1fr 380px; gap: 32px; } }
.checkout h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.checkout .sub { color: var(--muted); margin-bottom: 24px; }

.progress { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.progress li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--muted); background: var(--surface); padding: 6px 14px 6px 6px; border-radius: 999px; }
.progress li span { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); font-size: .8rem; }
.progress li.active { color: var(--text); }
.progress li.active span { background: var(--lime); color: var(--on-lime); }

.form-card { background: var(--surface); border-radius: var(--radius-card); padding: 24px; margin-bottom: 16px; }
@media (min-width: 600px) { .form-card { padding: 32px; } }
.form-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
.fields { display: grid; gap: 16px; }
@media (min-width: 600px) { .fields.two { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }

.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; color: var(--text);
  background: var(--bg); border: 1.5px solid transparent; border-radius: var(--radius-field);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .82rem; font-weight: 600; margin-top: 6px; min-height: 0; }
.field .error:empty { display: none; }

.plan-picker { display: grid; gap: 12px; }
@media (min-width: 600px) { .plan-picker { grid-template-columns: repeat(3, 1fr); } }
.plan-option { position: relative; }
.plan-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plan-option label {
  display: block; height: 100%; padding: 16px; border-radius: 16px; background: var(--bg);
  border: 2px solid transparent; cursor: pointer;
}
.plan-option label b { display: block; }
.plan-option label span { color: var(--muted); font-size: .9rem; }
.plan-option input:checked + label { border-color: var(--primary); background: var(--surface); }
.plan-option input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }

.cycle { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; }
.radio-pill label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--bg); font-weight: 700; cursor: pointer; border: 2px solid transparent; }
.radio-pill input:checked + label { border-color: var(--primary); background: var(--surface); }
.radio-pill input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }

.pay-methods { display: grid; gap: 12px; }
@media (min-width: 600px) { .pay-methods { grid-template-columns: repeat(3, 1fr); } }
.pay-methods .plan-option label { display: flex; align-items: center; gap: 12px; }
.pay-methods svg { width: 28px; height: 28px; flex: none; color: var(--primary); }
.pay-detail { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--bg); color: var(--muted); font-size: .95rem; }
.pay-detail strong { color: var(--text); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); flex: none; }

.summary { position: sticky; top: 88px; }
.summary .card { padding: 24px; }
.summary h2 { font-size: 1.15rem; margin-bottom: 16px; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.summary .total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 1.15rem; }
.summary .secure { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .85rem; margin: 16px 0 0; }
.summary .secure svg { width: 18px; height: 18px; flex: none; }

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 16px; padding: 14px 16px; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--primary); margin-top: 2px; }

/* =============================================================================
   Página simples (obrigado, termos, privacidade)
   ========================================================================== */
.page { padding: 32px 0 64px; }
.page-card { background: var(--surface); border-radius: 28px; padding: 32px 24px; max-width: 820px; margin: 0 auto; }
@media (min-width: 600px) { .page-card { padding: 48px; } }
.page-card h2 { font-size: 1.25rem; margin-top: 32px; }
.page-card p, .page-card li { color: var(--muted); }
.page-card .updated { font-size: .9rem; }
.draft-banner { background: var(--surface-2); color: var(--text); border-radius: 16px; padding: 12px 16px; font-size: .9rem; margin-bottom: 24px; }

.success-icon { width: 72px; height: 72px; border-radius: 999px; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); margin: 0 auto 24px; }
.success-icon svg { width: 36px; height: 36px; }
.center { text-align: center; }
.next-steps { text-align: left; margin: 32px 0; }

/* Texto dos cartões de forma de pagamento: título normal, detalhe secundário */
.pay-methods label > span { color: var(--text); font-size: 1rem; }
.pay-methods label > span span { display: block; color: var(--muted); font-size: .85rem; }

/* =============================================================================
   Quem faz tudo sozinho + comando de voz
   ========================================================================== */
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.solo { display: flex; flex-direction: column; gap: 8px; }
.solo-before {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.solo-before::before { content: "✕"; color: var(--danger); font-weight: 800; }
.solo h3 { margin: 0; }
.solo p { color: var(--muted); margin: 0; }

.voice-card {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: var(--on-header);
  border-radius: 32px; padding: 40px 24px;
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 900px) { .voice-card { grid-template-columns: 1fr 1fr; padding: 64px; gap: 64px; } }
.voice-card h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin-top: 16px; }
.voice-lead { font-size: 1.15rem; margin: 16px 0 24px; }
.voice-card .checklist svg { color: var(--on-header); }
.badge-on-grad { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--on-header); }

.voice-demo {
  background: var(--bg); color: var(--text); border-radius: 28px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 30px 60px -24px rgb(20 40 20 / 45%);
}
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: .95rem; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--lime); color: var(--on-lime); border-bottom-right-radius: 6px; font-weight: 600; }
.bubble.bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.bubble-list { display: grid; gap: 4px; margin-top: 8px; font-size: .88rem; color: var(--muted); }
.bubble-list b { color: var(--text); font-weight: 700; margin-right: 4px; }

.mic-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.mic {
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
  background: var(--lime); color: var(--on-lime); position: relative;
}
.mic svg { width: 26px; height: 26px; }
.mic::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 70%, transparent);
  animation: mic-pulse 1.8s ease-out infinite;
}
.mic-label { font-weight: 700; color: var(--muted); font-size: .9rem; min-width: 64px; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 24px; min-width: 64px; justify-content: flex-end; }
.wave i { display: block; width: 4px; height: 8px; border-radius: 4px; background: var(--primary); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; }
.wave i:nth-child(3) { animation-delay: .3s; }
.wave i:nth-child(4) { animation-delay: .45s; }
.wave i:nth-child(5) { animation-delay: .6s; }

@keyframes mic-pulse { to { box-shadow: 0 0 0 16px transparent; } }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 22px; } }
@media (prefers-reduced-motion: reduce) {
  .mic::after, .wave i { animation: none; }
  .wave i { height: 14px; }
}
