/* AutoBot em linguagem de leigo: topo, passos, avisos e blocos recolhíveis */

/* ---------- topo ---------- */
.ab-hero { display: grid; gap: 16px; margin-bottom: 22px; }
.ab-hero__main { display: flex; align-items: flex-start; gap: 16px; }
.ab-hero__icon {
  flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--theme-primary, #ef4036), #ff7a45); box-shadow: 0 14px 34px -14px rgba(239, 64, 54, .9);
}
.ab-hero__title { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: #fff; }
.ab-hero__sub { margin-top: 8px; max-width: 62ch; font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .55); }
.ab-hero__sub b { color: #fff; }

/* faixa que diz, em português simples, o que fazer / o que está acontecendo */
.ab-banner {
  --bt: #60a5fa; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bt) 16%, transparent), rgba(255, 255, 255, .02)); border: 1px solid color-mix(in srgb, var(--bt) 45%, transparent);
}
.ab-banner[data-tone="ok"] { --bt: #34d399; } .ab-banner[data-tone="warn"] { --bt: #fbbf24; } .ab-banner[data-tone="danger"] { --bt: #f87171; } .ab-banner[data-tone="live"] { --bt: #a78bfa; }
.ab-banner__icon { flex: none; color: var(--bt); }
.ab-banner__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ab-banner__text b { font-size: 14px; font-weight: 900; color: #fff; }
.ab-banner__text span { font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.ab-banner__cta {
  flex: none; padding: 9px 16px; border-radius: 10px; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: #05070b; background: var(--bt); transition: transform .2s;
}
.ab-banner__cta:hover { transform: translateY(-2px); }
.ab-banner__cta.hidden { display: none; }

/* como funciona + dicionário */
.ab-how { border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09); }
.ab-how > summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.ab-how > summary::-webkit-details-marker { display: none; }
.ab-how > summary small { font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .4); }
.ab-how[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ab-how__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.ab-how__card { position: relative; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .07); }
.ab-how__card span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 50%; font-size: 12px; font-weight: 900; color: #05070b; background: #fbbf24; }
.ab-how__card b { display: block; font-size: 13px; color: #fff; }
.ab-how__card p { margin-top: 4px; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .55); }
.ab-gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.ab-gloss div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .12); }
.ab-gloss dt { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #fde68a; }
.ab-gloss dd { margin-top: 4px; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .6); }
.ab-gloss dd b { color: #fff; }

/* ---------- passos ---------- */
.ab-step__head { display: flex; align-items: flex-start; gap: 12px; }
.ab-step__n {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--theme-primary, #ef4036), #ff7a45); box-shadow: 0 6px 16px -6px rgba(239, 64, 54, .9);
}
.ab-step__title { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.ab-step__text { margin-top: 3px; max-width: 70ch; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .55); }
.ab-step__text b { color: #fde68a; }
.ab-hint { font-style: normal; color: rgba(255, 255, 255, .38); }
.ab-explain { padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .65); background: rgba(103, 232, 249, .06); border: 1px solid rgba(103, 232, 249, .22); }
.ab-explain:empty { display: none; }
.ab-explain[data-tone="risk"] { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .35); }
.ab-explain b { color: #fff; }
.ab-mode-note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.ab-mode-note b { color: #fff; }

/* ---------- seções soltas (piloto, telegram) ---------- */
.ab-section { margin-bottom: 22px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); }
.ab-section__head { margin-bottom: 12px; }
.ab-section__title { margin-top: 4px; font-size: 16px; font-weight: 900; color: #fff; }
.ab-section__sub { margin-top: 4px; max-width: 70ch; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .55); }
.ab-section__sub b { color: #fff; }
.ab-tg__lead { margin-bottom: 8px; }

/* ---------- números técnicos recolhíveis ---------- */
.ab-details { width: 100%; margin-top: 6px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .07); }
.ab-details > summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ab-details > summary::-webkit-details-marker { display: none; }
.ab-details > summary small { font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .35); }
.ab-details[open] > summary { color: #fff; }
.ab-details > :not(summary) { margin-left: 14px; margin-right: 14px; }
.ab-details > :last-child { margin-bottom: 14px; }
.ab-details__lead { margin-bottom: 10px; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .55); }
.ab-details__lead b { color: #fff; }

@media (max-width: 860px) {
  .ab-how__grid { grid-template-columns: 1fr; }
  .ab-gloss { grid-template-columns: 1fr; }
  .ab-banner__cta { width: 100%; text-align: center; }
}

.ab-mode-note--warn { color: #fde68a; background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .4); }
.ab-mode-note.hidden { display: none; }
