/* Página /api-oficial: complementa base.css, landing.css, landing-experience.css e meta-demo.css. */

.site-nav-links a[aria-current='page'] {
  background: var(--brand-100);
  color: var(--brand);
}

.footer-links a[aria-current='page'] {
  color: #fff;
}

.ao-section {
  position: relative;
}

/* ---------- Topo ---------- */
.ao-hero .hero-title {
  font-size: clamp(2.1rem, 3.2vw + 1rem, 3rem);
  line-height: 1.12;
}

.ao-accent {
  color: #d1ff52;
}

.ao-hero .hero-visual {
  width: 100%;
}

@media (min-width: 1120px) {
  .ao-hero .hero-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .ao-hero .hero-title {
    font-size: 2.85rem;
  }
}

@media (max-width: 600px) {
  .ao-hero .hero-title {
    font-size: 2.1rem;
  }
}

/* ---------- Navegação da página ---------- */
.ao-jump {
  position: relative;
  z-index: 3;
  background: #fff;
}

.ao-jump-list {
  display: flex;
  gap: 8px;
  padding: 14px 2px 10px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.ao-jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.ao-jump-list a:hover {
  border-color: var(--brand-300);
  color: var(--brand);
}

@media (min-width: 1100px) {
  .ao-jump-list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---------- Vantagens ---------- */
.ao-pillars {
  display: grid;
  gap: 16px;
  list-style: none;
}

@media (min-width: 900px) {
  .ao-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.ao-pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.ao-pillar .check-list {
  gap: 10px;
  color: var(--text-2);
  font-size: 15px;
}

.ao-pillar-note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- Bloco texto + demonstração ---------- */
.ao-split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .ao-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.ao-split-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.ao-split-copy .check-list {
  gap: 10px;
  color: var(--text);
  font-size: 15px;
}

.ao-split-visual {
  min-width: 0;
}

/* ---------- Templates ---------- */
.ao-cats {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  list-style: none;
}

@media (min-width: 820px) {
  .ao-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.ao-cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.ao-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ao-cat-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
}

.ao-cat-icon.is-marketing {
  background: #fff1d9;
  color: #7f4f0a;
}

.ao-cat-icon.is-utility {
  background: #e0f2fe;
  color: #0b5f8a;
}

.ao-cat-icon.is-auth {
  background: #efe7ff;
  color: #5b34a6;
}

.ao-cat p {
  color: var(--text-2);
  font-size: 15px;
}

.ao-cat .ao-cat-example {
  padding: 10px 12px;
  border-left: 3px solid var(--brand-300);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 14px;
}

.ao-cat .ao-cat-price {
  margin-top: auto;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.ao-cat-price [data-rate] {
  color: var(--brand);
  font-size: 17px;
  font-weight: 700;
}

.ao-cat-price abbr {
  text-decoration: none;
  cursor: help;
}

.ao-footnote {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- Relatório (fundo escuro) ---------- */
.ao-report {
  padding-block: 130px;
}

.ao-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ao-status.is-queued {
  background: #eef2f7;
  color: #475569;
}

.ao-status.is-sent {
  background: #e8eefc;
  color: #234085;
}

.ao-status.is-delivered {
  background: #e0f2fe;
  color: #0b5f8a;
}

.ao-status.is-read {
  background: #dbeafe;
  color: #1d4ed8;
}

.ao-status.is-replied {
  background: #dcfce7;
  color: #166534;
}

.ao-status.is-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.ao-flow {
  display: grid;
  gap: 12px;
  list-style: none;
}

@media (min-width: 640px) {
  .ao-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ao-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
}

.ao-flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  background: #ffffff08;
}

.ao-flow-step p {
  color: #c4d2e9;
  font-size: 14px;
  line-height: 1.55;
}

@media (min-width: 1024px) {
  .ao-flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -14px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #d1ff52;
    border-right: 2px solid #d1ff52;
    transform: rotate(45deg);
  }
}

.ao-flow-fail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  color: #c4d2e9;
  font-size: 15px;
  text-align: center;
}

.ao-errors {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--ink);
}

@media (min-width: 768px) {
  .ao-errors {
    padding: 32px;
  }
}

.ao-errors-wrap {
  margin-top: 16px;
}

.ao-errors-table {
  width: 100%;
  font-size: 15px;
}

.ao-errors-table th,
.ao-errors-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.ao-errors-table thead th {
  padding-top: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.ao-errors-table tbody tr:last-child > * {
  border-bottom: 0;
}

.ao-errors-table td {
  color: var(--text-2);
}

.ao-errors-table code {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--danger-ink);
  font-weight: 600;
  word-break: normal;
}

@media (max-width: 720px) {
  .ao-errors-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ao-errors-table,
  .ao-errors-table tbody,
  .ao-errors-table tr,
  .ao-errors-table th,
  .ao-errors-table td {
    display: block;
    width: 100%;
  }

  .ao-errors-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .ao-errors-table tbody tr:last-child {
    border-bottom: 0;
  }

  .ao-errors-table th,
  .ao-errors-table td {
    padding: 4px 0;
    border: 0;
  }

  .ao-errors-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
  }
}

/* ---------- Relatório ao vivo (animação) ---------- */
.ao-live {
  position: relative;
  margin-bottom: 40px;
}

.ao-live-card {
  padding: 22px;
  border: 1px solid #ffffff24;
  border-radius: 22px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(63, 112, 215, 0.22), transparent 70%),
    linear-gradient(180deg, #ffffff0d, #ffffff05);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
  color: #fff;
}

@media (min-width: 768px) {
  .ao-live-card {
    padding: 28px 32px;
  }
}

.ao-live-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ao-live-title b {
  display: block;
  font-size: 17px;
}

.ao-live-title small {
  display: block;
  margin-top: 2px;
  color: #a9b8d3;
  font-size: 13px;
}

.ao-live-title code {
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: #ffffff14;
  color: #d8e2f3;
  font-size: 12px;
}

.ao-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: #3f70d733;
  color: #cfe0ff;
  font-size: 12.5px;
  font-weight: 700;
}

.ao-live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fb0ff;
  box-shadow: 0 0 0 0 #7fb0ff99;
  animation: ao-live-pulse 1.4s ease-out infinite;
}

.ao-live-badge.is-done {
  background: #d1ff5226;
  color: #e6ff9e;
}

.ao-live-badge.is-done i {
  background: #d1ff52;
  animation: none;
}

.ao-live-progress {
  height: 6px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff14;
}

.ao-live-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3f70d7, #2bb673 70%, #d1ff52);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.ao-live-progress-text {
  margin-top: 8px;
  color: #a9b8d3;
  font-size: 13px;
}

.ao-live-progress-text b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Trilho: horizontal no desktop, vertical no celular */
.ao-track {
  --gap: 72px;
  --token-x: max(150px, 46%);
  position: relative;
  height: calc(var(--gap) * 5 + 84px);
  margin-top: 22px;
  overflow-x: clip;
}

.ao-track-line {
  position: absolute;
  top: 7px;
  bottom: calc(var(--gap) + 92px);
  left: 7px;
  width: 2px;
  overflow: hidden;
  background: #ffffff1f;
}

.ao-track-line span {
  position: absolute;
  inset: -40px 0 0;
  background: repeating-linear-gradient(180deg, #d1ff52 0 8px, transparent 8px 20px);
  opacity: 0.55;
}

.ao-station {
  position: absolute;
  top: calc(var(--i, 0) * var(--gap));
  left: 0;
  display: grid;
  grid-template-columns: 16px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  transition: opacity 0.25s;
}

.ao-station[data-station='1'] {
  --i: 1;
}
.ao-station[data-station='2'] {
  --i: 2;
}
.ao-station[data-station='3'] {
  --i: 3;
}
.ao-station[data-station='4'] {
  --i: 4;
}

.ao-station-dot {
  grid-row: 1 / 3;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff59;
  border-radius: 50%;
  background: #0d1a35;
  transition:
    border-color 0.25s,
    background-color 0.25s;
}

.ao-station-name {
  color: #a9b8d3;
  font-size: 12.5px;
  font-weight: 600;
}

.ao-station b {
  color: #fff;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.ao-station.is-ping .ao-station-dot {
  animation: ao-dot-ping 0.9s ease-out;
}

.ao-track[data-focus]:not([data-focus='']) .ao-station:not(.is-focus) {
  opacity: 0.35;
}

.ao-station.is-focus .ao-station-dot {
  border-color: #d1ff52;
}

.ao-fail-lane {
  position: absolute;
  top: calc(var(--gap) * 5);
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ao-fail-lane b {
  color: #fca5a5;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.ao-fail-lane.is-ping .ao-status {
  animation: ao-shake 0.45s ease-in-out;
}

.ao-token {
  --p: 0;
  position: absolute;
  top: calc(var(--p) * var(--gap) - 4px);
  left: var(--token-x);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  background: #fff;
  color: #17243b;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.85);
  transition:
    top 0.75s cubic-bezier(0.22, 0.7, 0.2, 1),
    left 0.75s cubic-bezier(0.22, 0.7, 0.2, 1),
    opacity 0.4s,
    transform 0.4s,
    background-color 0.3s,
    color 0.3s;
}

.ao-token.is-in {
  opacity: 1;
  transform: none;
}

.ao-token.is-final {
  box-shadow:
    0 0 0 3px #d1ff5240,
    0 10px 24px -12px rgba(0, 0, 0, 0.8);
}

.ao-token.is-out {
  opacity: 0;
  transform: scale(0.9) translateY(-6px);
}

.ao-token-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef2f7;
  color: #64748b;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.ao-token[data-status='sent'] .ao-token-icon {
  background: #e8eefc;
  color: #234085;
}
.ao-token[data-status='delivered'] .ao-token-icon {
  background: #e0f2fe;
  color: #64748b;
}
.ao-token[data-status='read'] .ao-token-icon {
  background: #dbeafe;
  color: #1d8cf8;
}
.ao-token[data-status='replied'] .ao-token-icon {
  background: #dcfce7;
  color: #15803d;
}

.ao-token.is-failed {
  top: calc(var(--gap) * 5 + 40px);
  left: 0;
  background: #fee2e2;
  color: #991b1b;
  animation: ao-shake 0.45s 0.6s ease-in-out;
}

.ao-token.is-failed .ao-token-icon {
  background: #fecaca;
  color: #b91c1c;
}

.ao-token-code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #b91c1c;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

@media (min-width: 900px) {
  .ao-track {
    --col: 20%;
    height: 168px;
    margin-top: 26px;
  }

  .ao-track-line {
    top: 7px;
    bottom: auto;
    left: 10%;
    right: 10%;
    width: auto;
    height: 2px;
  }

  .ao-track-line span {
    inset: 0 -40px 0 0;
    background: repeating-linear-gradient(90deg, #d1ff52 0 8px, transparent 8px 20px);
  }

  .ao-station {
    top: 0;
    left: calc(10% + var(--i, 0) * var(--col));
    grid-template-columns: auto;
    justify-items: center;
    row-gap: 4px;
    transform: translateX(-50%);
  }

  .ao-station-dot {
    grid-row: auto;
  }

  .ao-token {
    top: 86px;
    left: calc(10% + var(--p) * var(--col));
    transform: translateX(-50%) scale(0.85);
  }

  .ao-token.is-in {
    transform: translateX(-50%);
  }

  .ao-token.is-out {
    transform: translateX(-50%) translateY(-8px) scale(0.9);
  }

  .ao-token.is-failed {
    top: 134px;
    left: calc(10% + var(--p) * var(--col));
  }

  .ao-fail-lane {
    top: 136px;
    left: 0;
  }

  .ao-track-line span {
    animation: ao-flow-x 1.2s linear infinite;
  }
}

@media (max-width: 899px) {
  .ao-track-line span {
    animation: ao-flow-y 1.2s linear infinite;
  }
}

@media (max-width: 380px) {
  .ao-track {
    --token-x: 62%;
  }
  .ao-token {
    padding: 5px;
  }
  .ao-token-phone,
  .ao-token-code {
    display: none;
  }
}

/* Registro de eventos */
.ao-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ffffff1a;
  color: #a9b8d3;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ao-log-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  color: #e6ff9e;
  text-transform: none;
  letter-spacing: 0;
}

.ao-log-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1ff52;
  animation: ao-live-pulse 1.4s ease-out infinite;
}

.ao-log {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 214px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.ao-log-item {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-areas:
    'time phone status'
    'detail detail detail';
  align-items: center;
  justify-content: start;
  gap: 4px 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #ffffff0a;
  font-size: 13px;
  animation: ao-log-in 0.5s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.ao-log-item time {
  grid-area: time;
  color: #8496b5;
  font-variant-numeric: tabular-nums;
}

.ao-log-phone {
  grid-area: phone;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.ao-log-item .ao-status {
  grid-area: status;
  padding: 1px 9px;
  font-size: 11.5px;
}

.ao-log-detail {
  grid-area: detail;
  color: #c4d2e9;
}

.ao-log-detail b {
  color: #e6ff9e;
  font-weight: 600;
}

.ao-log-item.is-failed {
  background: #b91c1c1f;
}

.ao-log-code {
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 5px;
  background: #fecaca;
  color: #991b1b;
  font-weight: 700;
}

@media (min-width: 720px) {
  .ao-log {
    min-height: 196px;
  }
  .ao-log-item {
    grid-template-columns: 70px 128px 92px 1fr;
    grid-template-areas: 'time phone status detail';
  }
  .ao-log-item .ao-status {
    justify-self: start;
  }
}

.ao-live-toggle {
  display: inline-flex;
  align-items: center;
  margin: 12px 0 0 auto;
  padding: 7px 14px;
  border: 1px solid #ffffff33;
  border-radius: 999px;
  background: transparent;
  color: #dbe5f5;
  font-size: 13px;
  font-weight: 600;
}

.ao-live {
  display: flex;
  flex-direction: column;
}

.ao-live-toggle:hover {
  background: #ffffff14;
}

.ao-live-toggle:focus-visible {
  outline: 2px solid #d1ff52;
  outline-offset: 2px;
}

.ao-live.is-paused .ao-track-line span,
.ao-live.is-paused .ao-live-badge i,
.ao-live.is-paused .ao-log-live i {
  animation-play-state: paused;
}

/* Cards das etapas e tabela de erros acompanham a animação */
.ao-flow-step {
  transition:
    border-color 0.3s,
    background-color 0.3s,
    transform 0.3s;
}

.ao-flow-step.is-ping {
  animation: ao-card-ping 0.9s ease-out;
}

.ao-flow-step:hover,
.ao-flow-step.is-focus {
  border-color: #d1ff5280;
  background: #ffffff10;
  transform: translateY(-3px);
}

.ao-flow-fail.is-ping .ao-status {
  animation: ao-shake 0.45s ease-in-out;
}

.ao-errors-table tbody tr {
  transition: background-color 0.4s;
}

.ao-errors-table tbody tr.is-hit {
  animation: ao-row-hit 1.8s ease-out;
}

@keyframes ao-live-pulse {
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes ao-dot-ping {
  0%,
  30% {
    border-color: #d1ff52;
    background: #d1ff52;
    box-shadow: 0 0 0 0 #d1ff52aa;
  }
  100% {
    box-shadow: 0 0 0 12px transparent;
  }
}

@keyframes ao-card-ping {
  0% {
    border-color: #d1ff52;
    box-shadow: 0 0 0 0 #d1ff5255;
  }
  100% {
    border-color: #ffffff1f;
    box-shadow: 0 0 0 12px transparent;
  }
}

@keyframes ao-shake {
  20%,
  60% {
    translate: -3px 0;
  }
  40%,
  80% {
    translate: 3px 0;
  }
}

@keyframes ao-row-hit {
  0%,
  35% {
    background: #fee2e2;
  }
  100% {
    background: transparent;
  }
}

@keyframes ao-log-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes ao-flow-x {
  to {
    transform: translateX(20px);
  }
}

@keyframes ao-flow-y {
  to {
    transform: translateY(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ao-track-line span,
  .ao-live-badge i,
  .ao-log-live i,
  .ao-log-item {
    animation: none;
  }
  .ao-live-toggle {
    display: none;
  }
}

/* ---------- Custos e simulador ---------- */
.ao-billing {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1024px) {
  .ao-billing {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.ao-billing-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.ao-rules-list {
  display: grid;
  gap: 18px;
  margin-top: 6px;
  list-style: none;
}

.ao-rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ao-rules-list .h3 {
  font-size: 16px;
}

.ao-rules-list p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 15px;
}

.ao-rules-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand);
}

.ao-rules-icon.is-free {
  background: #dcfce7;
  color: #166534;
}

.ao-billing-plan {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  color: var(--text-2);
  font-size: 14px;
}

.ao-billing-plan a {
  font-weight: 600;
}

.ao-sim {
  min-width: 0;
}

.ao-sim-card {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 28px 60px -34px #23408566;
}

@media (min-width: 768px) {
  .ao-sim-card {
    padding: 30px;
  }
}

.ao-sim-head p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
}

.ao-sim-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ao-sim-presets-label {
  color: var(--text-2);
  font-size: 13px;
}

.ao-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  transition:
    border-color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.ao-chip:hover {
  border-color: var(--brand-300);
}

.ao-chip[aria-pressed='true'] {
  border-color: var(--brand);
  background: var(--brand-100);
  color: var(--brand);
}

.ao-chip:focus-visible {
  outline: 3px solid #6e9af2;
  outline-offset: 2px;
}

.ao-sim-fields {
  display: grid;
  gap: 14px;
}

@media (min-width: 560px) {
  .ao-sim-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ao-sim-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ao-sim-field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.ao-sim-field .field-hint {
  color: var(--text-2);
}

.ao-sim-result {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
}

.ao-sim-lines {
  display: grid;
  gap: 6px;
  margin: 0;
}

.ao-sim-lines div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  font-size: 13.5px;
}

.ao-sim-lines dt {
  color: var(--text-2);
}

.ao-sim-lines dd {
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ao-sim-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--brand-200);
}

.ao-sim-total span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.ao-sim-total output {
  color: var(--brand);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ao-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  color: #713f12;
  font-size: 14px;
  line-height: 1.5;
}

.ao-notice [data-icon] {
  margin-top: 1px;
  color: var(--warning-ink);
}

.ao-notice a {
  color: #713f12;
  font-weight: 600;
}

/* ---------- Qualidade ---------- */
.ao-levels {
  display: grid;
  gap: 12px;
  list-style: none;
}

.ao-levels li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ao-levels p {
  color: var(--text-2);
  font-size: 15px;
}

.ao-level {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-width: 78px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.ao-level::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.ao-level.is-high {
  background: #dcfce7;
  color: #166534;
}

.ao-level.is-medium {
  background: #fef3c7;
  color: #7f4f0a;
}

.ao-level.is-low {
  background: #fee2e2;
  color: #b91c1c;
}

.ao-quality-grid {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

@media (min-width: 900px) {
  .ao-quality-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.ao-quality-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
}

.ao-quality-box p {
  color: var(--text-2);
  font-size: 15px;
}

.ao-dot-list {
  display: grid;
  gap: 8px;
  list-style: none;
  color: var(--text-2);
  font-size: 15px;
}

.ao-dot-list li {
  position: relative;
  padding-left: 18px;
}

.ao-dot-list li::before {
  content: '';
  position: absolute;
  top: 0.6em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.ao-dot-list.is-danger li::before {
  background: var(--danger);
}

/* ---------- Regras ---------- */
.ao-rules {
  display: grid;
  gap: 16px;
  list-style: none;
}

@media (min-width: 640px) {
  .ao-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ao-rules {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.ao-rule {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.ao-rule p {
  color: var(--text-2);
  font-size: 15px;
}

.ao-rule-cta {
  border-color: var(--brand-200);
  background: var(--brand-50);
}

.ao-rule-cta .btn {
  align-self: flex-start;
  margin-top: auto;
}

.ao-rule-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand);
}

/* ---------- Comparativo ---------- */
.ao-compare {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
}

.ao-compare-table {
  width: 100%;
  font-size: 15px;
}

.ao-compare-table th,
.ao-compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.ao-compare-table thead th {
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.ao-compare-table thead th.is-meta {
  background: var(--brand);
  color: #fff;
}

.ao-compare-table tbody th {
  width: 24%;
  color: var(--ink);
  font-weight: 600;
}

.ao-compare-table td {
  color: var(--text-2);
}

.ao-compare-table td.is-meta {
  background: #f5f8ff;
  color: var(--ink);
}

.ao-compare-table tbody tr:last-child > * {
  border-bottom: 0;
}

.ao-compare-col {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ao-compare-note {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 760px) {
  .ao-compare {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .ao-compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ao-compare-table,
  .ao-compare-table tbody,
  .ao-compare-table tr,
  .ao-compare-table th,
  .ao-compare-table td {
    display: block;
    width: 100%;
  }

  .ao-compare-table tbody {
    display: grid;
    gap: 12px;
  }

  .ao-compare-table tr {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
  }

  .ao-compare-table tbody th {
    width: 100%;
    padding: 0 0 10px;
    border: 0;
    font-size: 16px;
  }

  .ao-compare-table td {
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
  }

  .ao-compare-table td + td {
    margin-top: 8px;
  }

  .ao-compare-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .ao-compare-table td.is-meta::before {
    color: var(--brand);
  }

  .ao-compare-table tbody tr:last-child > * {
    border-bottom: 0;
  }
}

/* ---------- Como conectar ---------- */
@media (min-width: 1024px) {
  .ao-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  .ao-steps .step {
    padding: 24px;
  }
}

.ao-steps-note {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
}
