/* Campanha Agosto Premiado — enriquecido: flores flutuantes, sparkles,
   sombras coloridas, texturas sutis. So paleta oficial (tokens.css). */

/* KEYFRAMES ------------------------------------------------------- */
@keyframes ap-floaty {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 3deg)); }
}
@keyframes ap-drift {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  15%  { opacity: 0.6; }
  50%  { transform: translate(30px, -60px) rotate(180deg); opacity: 0.9; }
  85%  { opacity: 0.5; }
  100% { transform: translate(0, -120px) rotate(360deg); opacity: 0; }
}
@keyframes ap-twinkle {
  0%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0.6; }
  50%      { transform: scale(1.15) rotate(15deg); opacity: 1; }
}
@keyframes ap-shine-sweep {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  60%  { transform: translateX(200%) skewX(-20deg); }
  100% { transform: translateX(200%) skewX(-20deg); }
}
@keyframes ap-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(101, 74, 186, 0.55); }
  70%  { box-shadow: 0 0 0 22px rgba(101, 74, 186, 0); }
  100% { box-shadow: 0 0 0 0 rgba(101, 74, 186, 0); }
}
@keyframes ap-wave-flow {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(1.15); }
}
@keyframes ap-eyebrow-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}
@keyframes ap-badge-bob {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-6deg) translateY(-6px); }
}

/* HERO ------------------------------------------------------------- */
.ap-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 120px;
  background:
    radial-gradient(ellipse 600px 400px at 15% 10%, rgba(197, 175, 247, 0.30), transparent 60%),
    radial-gradient(ellipse 600px 500px at 85% 90%, rgba(140, 101, 230, 0.20), transparent 60%),
    linear-gradient(135deg, #F7F4FF 0%, #EFE9FF 100%);
}

/* Textura de ruido sutil pra dar profundidade */
.ap-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.29  0 0 0 0 0.73  0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* Blobs radiais coloridos */
.ap-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: ap-floaty 10s ease-in-out infinite;
}
.ap-blob-a {
  width: 340px; height: 340px;
  background: rgba(197, 175, 247, 0.60);
  top: -100px; left: -80px;
  --rot: 0deg;
}
.ap-blob-b {
  width: 440px; height: 440px;
  background: rgba(140, 101, 230, 0.40);
  bottom: -140px; right: -120px;
  animation-delay: 3s;
  --rot: 0deg;
}
.ap-blob-c {
  width: 260px; height: 260px;
  background: rgba(179, 214, 137, 0.28);
  top: 40%; left: 55%;
  filter: blur(70px);
  animation-delay: 5s;
  --rot: 0deg;
}

/* Flores lavanda flutuantes */
.ap-flor {
  position: absolute;
  pointer-events: none;
  width: 110px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(101, 74, 186, 0.22));
  animation: ap-floaty 9s ease-in-out infinite;
}
.ap-flor-1 { top: 60px;  left: 3%;  --rot: -14deg; width: 130px; animation-delay: 0s; opacity: 0.55; }
.ap-flor-2 { bottom: 120px; right: 4%; --rot: 18deg;  width: 110px; animation-delay: 1.5s; opacity: 0.50; }
.ap-flor-3 { top: 35%;   left: 8%;  --rot: 30deg;  width: 72px;  animation-delay: 3s;   opacity: 0.42; }
.ap-flor-4 { top: 12%;   right: 12%; --rot: -22deg; width: 82px;  animation-delay: 4.5s; opacity: 0.38; }
.ap-flor-tab { position: absolute; top: 30px; left: 4%; width: 84px; --rot: 24deg; opacity: 0.30; animation-delay: 2s; }

/* Confetti / particulas de fundo */
.ap-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.ap-conf {
  position: absolute;
  animation: ap-drift linear infinite;
}
.ap-conf-circle {
  border-radius: 50%;
}
.ap-conf-square {
  border-radius: 3px;
  transform: rotate(45deg);
}
.ap-conf-flower {
  background: radial-gradient(circle at 30% 30%, #C5AFF7, transparent 70%);
  border-radius: 50%;
  filter: blur(1px);
}
.ap-conf-h0 { background: #C5AFF7; }
.ap-conf-h1 { background: #8C65E6; }
.ap-conf-h2 { background: #B3D689; }
.ap-conf-flower.ap-conf-h0 { background: radial-gradient(circle at 30% 30%, #C5AFF7, transparent 70%); }
.ap-conf-flower.ap-conf-h1 { background: radial-gradient(circle at 30% 30%, #8C65E6, transparent 70%); }
.ap-conf-flower.ap-conf-h2 { background: radial-gradient(circle at 30% 30%, #B3D689, transparent 70%); }

/* Ribbon canto superior */
.ap-ribbon {
  position: absolute;
  top: 26px;
  right: -46px;
  z-index: 5;
  background: linear-gradient(135deg, var(--lav-deep), var(--lav));
  color: var(--paper);
  padding: 12px 60px;
  transform: rotate(35deg);
  box-shadow: 0 14px 30px rgba(101, 74, 186, 0.35);
  text-align: center;
  font-family: var(--font-display);
}
.ap-ribbon-txt {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}
.ap-ribbon-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.9;
  font-family: var(--font-sans);
}

.ap-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, 'Bodoni Moda', serif;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lav-deep);
  font-weight: 700;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: 0 6px 20px rgba(101, 74, 186, 0.10);
  border: 1px solid rgba(101, 74, 186, 0.10);
}
.ap-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lav-deep);
  animation: ap-eyebrow-dot 1.6s ease-in-out infinite;
}

/* Titulo com sparkles */
.ap-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.02em;
  position: relative;
}
.ap-title-a,
.ap-title-b {
  display: block;
  font-size: clamp(60px, 12vw, 128px);
  position: relative;
}
.ap-title-a {
  color: var(--lav-deep);
  text-shadow:
    0 4px 24px rgba(101, 74, 186, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.6);
}
.ap-title-b {
  color: var(--lav);
  background: linear-gradient(135deg, #8C65E6 20%, #C5AFF7 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 30px rgba(140, 101, 230, 0.25);
}
.ap-title-sparkle {
  position: absolute;
  color: var(--lav);
  animation: ap-twinkle 2.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(140, 101, 230, 0.40));
}
.ap-title-sparkle-a { top: -6px; right: -8%; }
.ap-title-sparkle-b { top: -14px; left: -6%; animation-delay: 0.6s; }
.ap-title-sparkle-c { bottom: 4px; right: -10%; animation-delay: 1.2s; }

.ap-title-c {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 24px;
  background: linear-gradient(135deg, var(--lav-deep), var(--lav));
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow:
    0 16px 40px rgba(101, 74, 186, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Passos ------------------------------------------------------ */
.ap-passos {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin: 48px 0 40px;
  flex-wrap: wrap;
}
.ap-passo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow:
    0 14px 30px rgba(27, 20, 64, 0.10),
    0 2px 4px rgba(101, 74, 186, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
  border: 1px solid rgba(101, 74, 186, 0.10);
  transition: transform 250ms;
}
.ap-passo:hover { transform: translateY(-2px); }
.ap-passo-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lav-mist), var(--lav-fog));
  color: var(--lav-deep);
  flex-shrink: 0;
}
.ap-passo-highlight {
  background: linear-gradient(135deg, var(--lav-deep), var(--lav));
  color: var(--paper);
  border-color: transparent;
  box-shadow:
    0 18px 44px rgba(101, 74, 186, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.ap-passo-highlight .ap-passo-icon {
  background: rgba(255, 255, 255, 0.22);
  color: var(--paper);
}
.ap-passo-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  animation: ap-pulse-ring 2s ease-out infinite;
}
/* Conectores entre passos: 3 pontinhos */
.ap-passo-conn {
  display: inline-flex;
  gap: 5px;
}
.ap-passo-conn span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(101, 74, 186, 0.35);
  animation: ap-eyebrow-dot 2s ease-in-out infinite;
}
.ap-passo-conn span:nth-child(2) { animation-delay: 0.2s; background: rgba(101, 74, 186, 0.55); }
.ap-passo-conn span:nth-child(3) { animation-delay: 0.4s; background: rgba(101, 74, 186, 0.75); }

/* Cartão pré-pago (visual premium) ---------------------------- */
.ap-cartao-orbit {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  padding: 12px 0;
}
.ap-cartao-sparkle {
  position: absolute;
  color: var(--lav);
  filter: drop-shadow(0 4px 12px rgba(140, 101, 230, 0.45));
  animation: ap-twinkle 2.6s ease-in-out infinite;
  z-index: 5;
}
.ap-cs-1 { top: 8px; left: 4%; }
.ap-cs-2 { top: 50%; right: -4%; animation-delay: 0.8s; }
.ap-cs-3 { bottom: -8px; left: 18%; animation-delay: 1.4s; }

.ap-cartao {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}
.ap-cartao-a {
  background: var(--paper);
  padding: 28px 32px;
  border-radius: 24px 8px 24px 24px;
  text-align: center;
  box-shadow:
    0 30px 60px rgba(27, 20, 64, 0.16),
    0 10px 20px rgba(101, 74, 186, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(101, 74, 186, 0.08);
  overflow: hidden;
}
.ap-cartao-a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(197, 175, 247, 0.10) 100%);
  pointer-events: none;
}
.ap-cartao-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lav-deep);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.ap-cartao-valor {
  font-family: var(--font-display);
  font-size: 54px;
  color: var(--lav-deep);
  line-height: 1;
  margin: 10px 0 8px;
  font-weight: 400;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #654ABA, #8C65E6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 20px rgba(101, 74, 186, 0.20);
}
.ap-cartao-valor-cifra {
  font-size: 26px;
  vertical-align: super;
  margin-right: 4px;
  -webkit-background-clip: text;
  background-clip: text;
}
.ap-cartao-sub {
  font-size: 14px;
  color: var(--graphite);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.ap-cartao-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--lav);
  font-size: 16px;
  position: relative;
  z-index: 1;
  padding-top: 12px;
  border-top: 1px dashed rgba(101, 74, 186, 0.20);
}

/* Face B: o cartao pre-pago em si */
.ap-cartao-b {
  background:
    linear-gradient(135deg, var(--lav-deep) 0%, var(--lav) 60%, #A38EE8 100%);
  color: var(--paper);
  padding: 26px 24px;
  border-radius: 8px 24px 24px 24px;
  margin-left: -18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 30px 60px rgba(101, 74, 186, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.ap-cartao-shine {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: ap-shine-sweep 4s ease-in-out infinite;
  pointer-events: none;
}
.ap-cartao-b::after {
  /* Textura holográfica sutil de estrelas */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 2px);
  background-size: 60px 60px, 80px 80px, 100px 100px;
  pointer-events: none;
  opacity: 0.7;
}
.ap-cartao-chip {
  width: 44px;
  height: 32px;
  border-radius: 5px;
  background: linear-gradient(135deg, #F9E4A4 0%, #E6C878 40%, #C6A455 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}
.ap-cartao-chip-grid {
  position: absolute;
  inset: 4px;
  background:
    linear-gradient(#a8895a 1px, transparent 1px) 0 0 / 100% 6px,
    linear-gradient(90deg, #a8895a 1px, transparent 1px) 0 0 / 6px 100%;
  opacity: 0.5;
  border-radius: 2px;
}
.ap-cartao-brand-line {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
}
.ap-cartao-brand {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}
.ap-cartao-marca {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 4px;
}
.ap-cartao-wave {
  display: flex;
  gap: 3px;
  align-items: center;
}
.ap-cartao-wave span {
  display: block;
  width: 12px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-left: none;
  border-radius: 0 20px 20px 0;
}
.ap-cartao-wave span:nth-child(1) { width: 6px; height: 8px; }
.ap-cartao-wave span:nth-child(2) { width: 10px; height: 12px; }
.ap-cartao-numero {
  position: relative;
  z-index: 1;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-top: 14px;
  text-align: right;
}

/* CTA line ---------------------------------------------------- */
.ap-cta-line {
  margin: 44px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ap-cta-btn {
  font-size: 16px;
  padding: 17px 40px;
  box-shadow:
    0 20px 40px rgba(101, 74, 186, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
}
.ap-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 26px 50px rgba(101, 74, 186, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.ap-cta-note {
  font-size: 12px;
  color: var(--graphite);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ap-cta-note-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #E5484D;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.15);
  animation: ap-eyebrow-dot 1.6s ease-in-out infinite;
}

/* WAVE DIVIDER --------------------------------------------------- */
.ap-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 2;
}
.ap-wave-flip { transform: rotate(180deg); top: -1px; bottom: auto; }
.ap-wave svg { display: block; }

/* PILARES -------------------------------------------------------- */
.ap-pilares-wrap {
  background: var(--paper);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.ap-dots-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(101, 74, 186, 0.10) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  opacity: 0.7;
}
.ap-pilares {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ap-pilar {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--paper) 0%, var(--lav-fog) 100%);
  border-radius: 20px;
  border: 1px solid rgba(101, 74, 186, 0.10);
  box-shadow:
    0 20px 44px rgba(27, 20, 64, 0.08),
    0 4px 12px rgba(101, 74, 186, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  transition: transform 260ms, box-shadow 260ms;
}
.ap-pilar:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 60px rgba(27, 20, 64, 0.10),
    0 8px 20px rgba(101, 74, 186, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.ap-pilar-corner {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lav-soft) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.ap-pilar-badge {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lav-deep), var(--lav));
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 26px rgba(101, 74, 186, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.ap-pilar-titulo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
}
.ap-pilar-txt {
  font-size: 14px;
  color: var(--graphite);
  line-height: 1.55;
}
.ap-pilar-hero {
  background: linear-gradient(135deg, #FBFAFF 0%, var(--lav-mist) 100%);
  border-color: rgba(101, 74, 186, 0.22);
}
.ap-pilar-selo {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(127, 179, 92, 0.40);
  animation: ap-badge-bob 3s ease-in-out infinite;
  transform: rotate(-6deg);
}

/* TABELA --------------------------------------------------------- */
.ap-tabela-wrap {
  padding: 100px 0 90px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--lav-fog) 100%);
  position: relative;
  overflow: hidden;
}
.ap-tabela-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.ap-tabela-blob-a {
  width: 280px; height: 280px;
  background: rgba(197, 175, 247, 0.35);
  top: 10%; right: -60px;
}
.ap-tabela-blob-b {
  width: 220px; height: 220px;
  background: rgba(179, 214, 137, 0.20);
  bottom: 8%; left: -40px;
}

.ap-tabela-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 660px;
  margin: 0 auto 44px;
}
.ap-tabela-titulo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
  margin: 14px 0 14px;
  line-height: 1.15;
}
.ap-tabela-titulo em {
  color: var(--lav-deep);
  font-style: italic;
  position: relative;
}
.ap-tabela-titulo em::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: -3px; height: 8px;
  background: linear-gradient(90deg, transparent, rgba(197, 175, 247, 0.55), transparent);
  border-radius: 4px;
  z-index: -1;
}
.ap-tabela-lede {
  font-size: 16px;
  color: var(--graphite);
  line-height: 1.55;
  margin: 0;
}

.ap-tabela {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(27, 20, 64, 0.14),
    0 10px 20px rgba(101, 74, 186, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(101, 74, 186, 0.10);
}
.ap-tabela-linha {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid rgba(239, 233, 255, 0.85);
  transition: background 200ms;
}
.ap-tabela-linha:not(.ap-tabela-cab):hover {
  background: linear-gradient(90deg, transparent, rgba(239, 233, 255, 0.55), transparent);
}
.ap-tabela-linha:last-child { border-bottom: none; }
.ap-tabela-cab {
  background: linear-gradient(135deg, var(--lav-deep), var(--lav));
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 18px 26px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}
.ap-tabela-cab .ap-tabela-col-c {
  position: relative;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 14px;
  border-radius: 999px;
  text-align: center;
  justify-self: end;
  width: 100%;
  max-width: 200px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ap-x2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(127, 179, 92, 0.40);
}
.ap-tabela-col {
  font-size: 15px;
  color: var(--ink);
}
.ap-tabela-col-a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.ap-tabela-predio {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lav-mist), var(--lav-fog));
  color: var(--lav-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(101, 74, 186, 0.08);
}
.ap-tabela-col-b {
  color: var(--graphite);
  font-weight: 600;
}
.ap-tabela-col-c {
  color: var(--lav-deep);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.ap-tabela-linha-top .ap-tabela-col-c {
  position: relative;
  padding-right: 40px;
}
.ap-tabela-linha-top .ap-tabela-col-c::after {
  content: '★';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sage-deep);
  font-size: 14px;
}
.ap-arrow {
  color: var(--lav);
  font-weight: 700;
  margin-right: 4px;
  display: inline-block;
  transition: transform 200ms;
}
.ap-tabela-linha:hover .ap-arrow { transform: translateX(4px); }

.ap-tabela-obs {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 13px;
  color: var(--graphite);
  margin-top: 32px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  border: 1px solid rgba(101, 74, 186, 0.08);
}

/* FORM anchor ------------------------------------------------- */
.ap-form-anchor {
  scroll-margin-top: 24px;
}

/* RESPONSIVE ------------------------------------------------------ */
@media (max-width: 900px) {
  .ap-hero { padding: 60px 0 100px; }
  .ap-title-a, .ap-title-b { font-size: clamp(52px, 14vw, 80px); }
  .ap-passos { gap: 10px; margin: 36px 0 28px; }
  .ap-passo { padding: 10px 16px; font-size: 14px; }
  .ap-passo-icon { width: 34px; height: 34px; }
  .ap-passo-conn { display: none; }

  .ap-cartao-orbit { padding: 0; }
  .ap-cartao {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
  .ap-cartao-a { border-radius: 22px 22px 6px 22px; padding: 24px 24px; }
  .ap-cartao-b { border-radius: 22px 6px 22px 22px; margin-left: 0; margin-top: -14px; padding: 22px 22px; min-height: 200px; }
  .ap-cartao-valor { font-size: 44px; }
  .ap-cs-2 { right: 4%; }

  .ap-ribbon { top: 20px; right: -50px; padding: 10px 55px; }
  .ap-ribbon-txt { font-size: 16px; }

  .ap-pilares-wrap { padding: 60px 0; }
  .ap-pilares { grid-template-columns: 1fr; gap: 16px; }

  .ap-tabela-wrap { padding: 70px 0 60px; }
  .ap-tabela-cab { display: none; }
  .ap-tabela-linha {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 20px;
  }
  .ap-tabela-col-b,
  .ap-tabela-col-c {
    padding-left: 46px;
    font-size: 15px;
  }
  .ap-tabela-col-b::before,
  .ap-tabela-col-c::before {
    content: attr(data-label) ":  ";
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-right: 6px;
  }
  .ap-tabela-col-c { font-size: 18px; }
  .ap-tabela-linha-top .ap-tabela-col-c { padding-right: 46px; }
  .ap-tabela-linha-top .ap-tabela-col-c::after { right: 14px; }

  .ap-flor-3, .ap-flor-4 { display: none; }
}

/* Reduz movimento pra quem prefere */
@media (prefers-reduced-motion: reduce) {
  .ap-blob, .ap-flor, .ap-conf,
  .ap-passo-pulse, .ap-cartao-shine,
  .ap-cta-note-dot, .ap-eyebrow-dot,
  .ap-title-sparkle, .ap-cartao-sparkle,
  .ap-pilar-selo, .ap-passo-conn span {
    animation: none !important;
  }
}
