/* ═══════════════════════════════════════════════════════════════
   COMPARATIVO — "7 assinaturas… ou só o Atlas"
   Cupom da conta atual × card do Atlas. Quando a seção aparece
   (.reveal → .visible), o cupom é "impresso", cada linha é riscada
   e o recurso equivalente acende no card do Atlas.
   Usa os tokens --ax-* definidos em hero.css.
   ═══════════════════════════════════════════════════════════════ */

.ax-cmp {
  position: relative;
  isolation: isolate;
  padding: 110px 0;
  background: var(--ax-ink);
  color: var(--ax-text);
  overflow: hidden;
}
.ax-cmp::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(36% 46% at 78% 58%, rgba(26, 140, 255, 0.18), transparent 72%),
    radial-gradient(30% 40% at 18% 60%, rgba(217, 248, 74, 0.05), transparent 70%);
  pointer-events: none;
}

/* ── Cabeçalho centralizado (usado também em Planos) ───────────── */
.ax-cmp-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.ax-eyebrow {
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ax-indigo-2);
}
.ax-cmp-head h2 {
  margin: 14px 0 16px;
  font-family: var(--ax-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ax-text);
  text-transform: none;
}
.ax-cmp-head h2 em,
.ax-sw-head h2 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ax-lime), var(--ax-indigo-2));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.ax-cmp-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ax-muted);
}

/* ── Cabeçalho do comparativo: duas colunas, alinhado à esquerda ── */
.ax-sw-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 56px;
}
.ax-sw-head h2 {
  margin: 14px 0 0;
  font-family: var(--ax-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ax-text);
  text-transform: none;
}
.ax-sw-head p {
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid rgba(92, 184, 255, 0.35);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ax-muted);
}

/* ── Palco: cupom → seta → Atlas ───────────────────────────────── */
.ax-sw {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 0.92fr);
  align-items: center;
}

/* Cupom */
.ax-bill { position: relative; transform: rotate(-1.6deg); }
.ax-bill-paper {
  position: relative;
  padding: 26px 26px 30px;
  background: #f3f5fa;
  color: #1e2433;
  border-radius: 14px 14px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  /* Borda inferior serrilhada */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
}
.ax-bill-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1.5px dashed #c4cad8;
}
.ax-bill-top b { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.ax-bill-top span { font-size: 11px; color: #6b7386; }

.ax-bill-lines { list-style: none; margin: 0; padding: 0; }
.ax-bill-lines li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .4s ease;
  transition-delay: calc(0.15s + var(--i) * 0.12s);
}
.ax-bill-lines li + li { border-top: 1px dotted #d3d8e3; }
.ax-bill-lines .nm { display: flex; flex-direction: column; min-width: 0; font-weight: 600; color: #1e2433; }
.ax-bill-lines .nm small { font-size: 10.5px; font-weight: 400; color: #7b8396; }
.ax-bill-lines i { flex: 1; min-width: 12px; border-bottom: 1.5px dotted #b8bfce; transform: translateY(4px); }
.ax-bill-lines s { text-decoration: none; font-weight: 600; white-space: nowrap; color: #1e2433; }

/* Risco que atravessa a linha */
.ax-bill-lines li::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  border-radius: 2px;
  background: #e5484d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.65, 0, .35, 1);
  transition-delay: calc(1.7s + var(--i) * 0.18s);
}

.ax-tools { display: flex; gap: 3px; flex-shrink: 0; width: 49px; }
.ax-tools img,
.ax-tool-ph {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 2px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
  font-style: normal;
  font-size: 12px;
}

.ax-bill-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1.5px dashed #c4cad8;
  opacity: 0;
  transition: opacity .4s ease 1.25s;
}
.ax-bill-total span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7386; }
.ax-bill-total b { font-size: 22px; color: #c22f35; }

.ax-bill-stamp {
  position: absolute;
  right: 22px;
  bottom: 70px;
  padding: 10px 16px;
  border: 3px solid #1a8cff;
  border-radius: 10px;
  color: #1a8cff;
  font: 700 15px/1.1 var(--ax-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  background: rgba(243, 245, 250, 0.85);
  opacity: 0;
  transform: rotate(-12deg) scale(1.6);
  transition: opacity .2s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: 3.3s;
}

/* Seta */
.ax-sw-arrow {
  display: grid;
  place-items: center;
  color: var(--ax-lime);
}
.ax-sw-arrow svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(217, 248, 74, 0.1);
  border: 1px solid rgba(217, 248, 74, 0.35);
  box-sizing: content-box;
}

/* Card do Atlas */
.ax-one {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 28px;
  border-radius: 24px;
  border: 1.5px solid rgba(92, 184, 255, 0.5);
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(26, 140, 255, 0.25), transparent 70%),
    linear-gradient(165deg, rgba(18, 32, 66, 0.95), rgba(9, 11, 22, 0.95));
  box-shadow: 0 30px 80px rgba(11, 92, 184, 0.3);
}
.ax-one-top { display: flex; align-items: center; gap: 14px; }
.ax-one-top img {
  width: 48px; height: 48px;
  padding: 7px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3aa0ff, #0b5cb8);
}
.ax-one-top b { display: block; font: 600 22px/1.1 var(--ax-display); letter-spacing: -0.02em; color: var(--ax-text); }
.ax-one-top span { font-size: 13px; color: var(--ax-muted); }

.ax-one-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ax-one-feats li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(154, 157, 180, 0.25);
  color: rgba(154, 157, 180, 0.8);
  font-size: 13px;
  font-weight: 500;
  transition: color .35s ease, background .35s ease, border-color .35s ease;
  transition-delay: calc(1.85s + var(--i) * 0.18s);
}
.ax-one-feats li::before {
  content: '✓';
  font-size: 11px;
  font-weight: 700;
  opacity: 0.4;
  transition: opacity .35s ease;
  transition-delay: inherit;
}

.ax-one-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 18px;
  border-top: 1px solid rgba(92, 184, 255, 0.18);
}
.ax-one-price span { font-size: 13px; color: var(--ax-muted); }
.ax-one-price b {
  font: 600 48px/1 var(--ax-display);
  letter-spacing: -0.04em;
  color: var(--ax-text);
}
.ax-one-price b small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ax-muted); margin-left: 4px; }
.ax-one-price em { margin-top: 6px; font-style: normal; font-size: 13px; color: var(--ax-lime); }

.ax-cmp-note {
  margin: 40px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(154, 157, 180, 0.7);
}

/* ── Estado animado (.visible vem do scroll reveal) ────────────── */
.ax-sw.visible .ax-bill-lines li { opacity: 1; transform: none; }
.ax-sw.visible .ax-bill-lines li::after { transform: scaleX(1); }
.ax-sw.visible .ax-bill-lines li .nm,
.ax-sw.visible .ax-bill-lines li s,
.ax-sw.visible .ax-bill-lines li .ax-tools {
  opacity: 0.6;
  transition: opacity .35s ease;
  transition-delay: calc(1.8s + var(--i) * 0.18s);
}
.ax-sw.visible .ax-bill-total { opacity: 1; }
.ax-sw.visible .ax-bill-stamp { opacity: 1; transform: rotate(-12deg) scale(1); }
.ax-sw.visible .ax-one-feats li {
  color: var(--ax-text);
  background: rgba(217, 248, 74, 0.08);
  border-color: rgba(217, 248, 74, 0.4);
}
.ax-sw.visible .ax-one-feats li::before { opacity: 1; color: var(--ax-lime); }

/* ── Responsivo ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ax-sw-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
  .ax-sw { grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 520px; margin: 0 auto; }
  .ax-sw-arrow svg { transform: rotate(90deg); }
  .ax-bill { transform: rotate(-1deg); }
}
@media (max-width: 640px) {
  .ax-cmp { padding: 80px 0; }
  .ax-cmp .container { padding-left: 16px; padding-right: 16px; }
  .ax-sw-head p { font-size: 15px; }
  .ax-bill-paper { padding: 22px 16px 26px; }
  .ax-bill-lines li { font-size: 12px; gap: 8px; }
  .ax-tools { width: 44px; }
  .ax-tools img, .ax-tool-ph { width: 20px; height: 20px; }
  .ax-bill-stamp { right: 12px; font-size: 13px; }
  .ax-one { padding: 26px 20px; }
  .ax-one-feats li { font-size: 12px; padding: 6px 10px; }
  .ax-one-price b { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .ax-sw *, .ax-sw *::after, .ax-sw *::before { transition: none !important; }
}
