/* Chamada Verificada: componentes próprios da página.
   Usa a base do Softphone (softphone.css: .sp-sec, .sp-wrap, .sp-kicker,
   .sp-h2, .sp-grad, .sp-phone, .sp-pipe, .sp-card, .sp-stat...) e acrescenta
   aqui só o que é desta página (prefixo cv-). Cores vêm dos tokens do site,
   então funciona no tema escuro e no claro. */

.cv-page {
  --cv-ok: 158 72% 46%;
  --cv-bad: 349 85% 60%;
  --cv-warn: 38 95% 58%;
  overflow-x: hidden;
}

:root[data-theme="light"] .cv-page {
  --cv-ok: 160 84% 30%;
  --cv-bad: 347 77% 46%;
  --cv-warn: 32 90% 40%;
}

@media (max-width: 639px) {
  .cv-page .sp-sec {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Seções fora da tela: animações em loop ficam paradas */
.cv-off *,
.cv-off *::before,
.cv-off *::after {
  animation-play-state: paused !important;
}

.cv-mini {
  color: hsl(var(--ink-muted));
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-top: 0.9rem;
  text-transform: uppercase;
}

/* ---------- Tela de chamada recebida (dentro do .sp-phone) ---------- */
.cv-call {
  align-items: center;
  background: radial-gradient(circle at 50% 22%, #2a4f9e, #0d1834 62%, #070c1d);
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: calc(var(--pw, 260px) * 0.05);
  padding: 16% 8% 0;
  text-align: center;
}

.cv-call.spam {
  background: radial-gradient(circle at 50% 22%, #4a2a3a, #1a1220 62%, #0b0910);
}

.cv-top {
  color: #aab8da;
  font-size: 0.95em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cv-av {
  aspect-ratio: 1;
  background: linear-gradient(140deg, #4b8dff, #7b5cf0);
  border-radius: 50%;
  box-shadow: 0 0 30px #4b8dff88;
  display: grid;
  font-size: 2.6em;
  font-weight: 700;
  margin-top: 14%;
  place-items: center;
  width: 34%;
}

.spam .cv-av {
  background: linear-gradient(140deg, #6a5560, #3a2e36);
  box-shadow: none;
  color: #bba;
}

.cv-name {
  font-size: 1.75em;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 9%;
}

.cv-num {
  color: #9fb0d3;
  font-size: 1.05em;
  margin-top: 3%;
}

.cv-badge {
  align-items: center;
  border-radius: 99px;
  display: inline-flex;
  font-size: 1em;
  font-weight: 700;
  gap: 0.4em;
  margin-top: 8%;
  padding: 0.55em 1em;
  white-space: nowrap;
}

.cv-badge svg {
  height: 1.2em;
  width: 1.2em;
}

.cv-badge.ok {
  background: #0f3a2e;
  border: 1px solid #4be3b088;
  box-shadow: 0 0 18px #4be3b055;
  color: #5ff0bd;
}

.cv-badge.spam {
  background: #3a1420;
  border: 1px solid #ff6f8888;
  color: #ff8da1;
}

.cv-btns {
  bottom: 12%;
  display: flex;
  justify-content: space-around;
  left: 0;
  position: absolute;
  right: 0;
}

.cv-btns i {
  border-radius: 50%;
  color: #fff;
  display: grid;
  height: 3.4em;
  place-items: center;
  width: 3.4em;
}

.cv-btns i svg {
  height: 55%;
  width: 55%;
}

.cv-btns .dec {
  background: #ff3b5c;
}

.cv-btns .acc {
  animation: cv-shake 1.2s infinite;
  background: #2fdb9c;
}

@keyframes cv-shake {
  0%, 50%, 100% { rotate: 0deg; }
  10% { rotate: -12deg; }
  20% { rotate: 12deg; }
  30% { rotate: -8deg; }
  40% { rotate: 8deg; }
}

/* ---------- Hero: celular, anéis e selo ---------- */
.cv-stage {
  align-items: center;
  display: flex;
  height: min(46vh, 440px);
  justify-content: center;
  margin: 2.5rem auto 0;
  max-width: 100%;
  /* Sem overflow: hidden: o palco cortava os anéis e a sombra do celular
     numa linha reta (retângulo visível). Os anéis agora somem antes de
     chegar à borda da seção. */
  overflow: visible;
  position: relative;
}

.cv-ring {
  animation: cv-ring 3s ease-out infinite;
  border: 1.5px solid hsl(var(--cv-ok));
  border-radius: 50%;
  height: min(36vh, 340px);
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(36vh, 340px);
}

.cv-ring.b { animation-delay: 1s; }
.cv-ring.c { animation-delay: 2s; }

@keyframes cv-ring {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.6); }
  70% { opacity: 0.12; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}

.cv-stage .sp-phone {
  --pw: min(19vh, 190px);
  z-index: 3;
}

.cv-seal {
  background: radial-gradient(circle, hsl(var(--surface-muted)), hsl(var(--surface)));
  border: 2px solid hsl(var(--cv-ok));
  border-radius: 50%;
  box-shadow: 0 0 30px hsl(var(--cv-ok) / 0.25);
  color: hsl(var(--ink-strong));
  display: grid;
  font-size: 9.5px;
  font-weight: 800;
  height: min(11vh, 104px);
  letter-spacing: 0.12em;
  place-content: center;
  position: absolute;
  right: calc(50% - min(26vh, 250px));
  rotate: -10deg;
  text-align: center;
  top: 16%;
  width: min(11vh, 104px);
  z-index: 5;
}

.cv-seal b {
  color: hsl(var(--cv-ok));
  display: block;
  font-size: 22px;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .cv-stage {
    height: 320px;
  }
  .cv-stage .sp-phone {
    --pw: 130px;
  }
  .cv-ring {
    height: 220px;
    width: 220px;
  }
  .cv-seal {
    height: 76px;
    right: calc(50% - 130px);
    width: 76px;
  }
  .cv-seal b {
    font-size: 17px;
  }
}

/* ---------- O desafio: chamadas recusadas ---------- */
.cv-rej {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 auto;
  max-width: 560px;
  width: 100%;
}

.cv-rj {
  align-items: center;
  border-radius: 14px;
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
}

.cv-rj > span:nth-child(2) {
  min-width: 0;
}

.cv-rj b {
  color: hsl(var(--ink-strong));
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.cv-rj small {
  color: hsl(var(--ink-muted));
  font-size: 0.78rem;
}

.cv-rj em {
  background: hsl(var(--cv-bad) / 0.12);
  border: 1px solid hsl(var(--cv-bad) / 0.4);
  border-radius: 99px;
  color: hsl(var(--cv-bad));
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-left: auto;
  padding: 0.3rem 0.6rem;
  text-align: center;
}

.cv-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}

.cv-impact span {
  background: hsl(var(--cv-bad) / 0.08);
  border: 1px solid hsl(var(--cv-bad) / 0.35);
  border-radius: 99px;
  color: hsl(var(--cv-bad));
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
}

@media (max-width: 480px) {
  .cv-rj em {
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    max-width: 6.5rem;
  }
}

/* ---------- A solução: assinatura da chamada ---------- */
.cv-sig {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
  width: 100%;
}

@media (min-width: 1000px) {
  .cv-sig {
    gap: 1.4rem;
    grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 0.8fr) auto auto;
  }
}

.cv-sip {
  background: #0b1224;
  border: 1px solid #2f4069;
  border-radius: 16px;
  color: #a9c4ef;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.75;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 1.1rem 1.25rem 2.6rem;
  position: relative;
}

.cv-sip b {
  color: #fff;
}

.cv-sip .cv-id {
  color: #5ff0bd;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}

.cv-sig.is-play .cv-id {
  animation: cv-type 2.2s 0.6s steps(40) forwards;
}

@keyframes cv-type {
  to { width: 100%; }
}

.cv-stamp {
  border: 2px solid #4be3b0;
  border-radius: 10px;
  bottom: 12px;
  color: #4be3b0;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0;
  padding: 0.45rem 0.7rem;
  position: absolute;
  right: 14px;
  rotate: -8deg;
}

.cv-sig.is-play .cv-stamp {
  animation: cv-stamp 0.5s 2.9s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}

@keyframes cv-stamp {
  from { opacity: 0; transform: scale(2.2); }
  to { opacity: 1; transform: scale(1); }
}

.cv-arr {
  color: hsl(var(--cv-ok));
  height: 40px;
  justify-self: center;
  width: 40px;
}

@media (max-width: 999px) {
  .cv-arr {
    rotate: 90deg;
  }
}

.cv-op {
  border-radius: 16px;
  padding: 1.1rem;
  text-align: center;
}

.cv-op small {
  color: hsl(var(--ink-muted));
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.cv-op b {
  color: hsl(var(--ink-strong));
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.cv-vchk {
  align-items: center;
  background: hsl(var(--cv-ok) / 0.12);
  border: 1px solid hsl(var(--cv-ok) / 0.4);
  border-radius: 99px;
  color: hsl(var(--cv-ok));
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.35rem;
  margin-top: 0.75rem;
  opacity: 0;
  padding: 0.4rem 0.7rem;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cv-sig.is-play .cv-vchk {
  opacity: 1;
  transform: none;
  transition-delay: 3.6s;
}

.cv-sig-phone {
  display: flex;
  justify-content: center;
}

.cv-sig-phone .sp-phone {
  --pw: 170px;
}

/* ---------- O que o cliente vê: dois celulares ---------- */
.cv-duo {
  align-items: flex-end;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  max-width: 100%;
}

.cv-duo figure {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
}

.cv-duo figcaption {
  color: hsl(var(--ink-muted));
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}

.cv-duo figcaption.ok {
  color: hsl(var(--cv-ok));
}

.cv-duo .cv-dim {
  filter: saturate(0.6);
  opacity: 0.6;
}

.cv-duo .cv-dim .sp-phone {
  --pw: 200px;
}

.cv-duo .cv-hl .sp-phone {
  --pw: 230px;
}

.cv-vs {
  align-self: center;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--cv-ok));
  border-radius: 50%;
  box-shadow: 0 0 22px hsl(var(--cv-ok) / 0.2);
  color: hsl(var(--ink-strong));
  display: grid;
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  height: 50px;
  margin-bottom: 34px;
  place-items: center;
  position: relative;
  width: 50px;
  z-index: 2;
}

@media (max-width: 640px) {
  .cv-duo {
    gap: 0.5rem;
  }
  .cv-duo .cv-dim .sp-phone {
    --pw: 132px;
  }
  .cv-duo .cv-hl .sp-phone {
    --pw: 150px;
  }
  .cv-vs {
    height: 38px;
    margin-bottom: 30px;
    width: 38px;
  }
  .cv-duo figcaption {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }
}

/* ---------- Como funciona: pipeline de 4 etapas ---------- */
@media (min-width: 900px) {
  .cv-pipe4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cv-pipe4 .sp-track {
    left: 12.5%;
    right: 12.5%;
  }
}

/* ---------- Benefícios / Para quem: 4 cartões ---------- */
.cv-grid4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
  text-align: left;
  width: 100%;
}

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

@media (min-width: 1000px) {
  .cv-grid4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cv-mk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.cv-mk span {
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--ink-strong) / 0.12);
  border-radius: 99px;
  color: hsl(var(--ink-secondary));
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.8rem;
}

/* ---------- Painel ---------- */
.cv-frame {
  border-radius: 22px;
  min-width: 0;
  padding: 1.1rem;
  width: 100%;
}

.cv-frame-head {
  align-items: center;
  border-bottom: 1px solid hsl(var(--ink-strong) / 0.1);
  color: hsl(var(--ink-muted));
  display: flex;
  font-size: 0.7rem;
  font-weight: 700;
  gap: 0.75rem;
  justify-content: space-between;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
  padding: 0.2rem 0.1rem 0.85rem;
}

.cv-live {
  color: hsl(var(--cv-ok));
  white-space: nowrap;
}

.cv-live::before {
  animation: cv-blink 1.4s infinite;
  content: "● ";
}

@keyframes cv-blink {
  50% { opacity: 0.25; }
}

.cv-vd {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cv-kpi,
.cv-bars,
.cv-rp {
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--ink-strong) / 0.1);
}

.cv-kpi {
  border-radius: 14px;
  min-width: 0;
  padding: 0.9rem;
}

.cv-kpi > span {
  color: hsl(var(--ink-muted));
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.cv-kpi b {
  color: hsl(var(--ink-strong));
  display: block;
  font-size: clamp(1.4rem, 2.1vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin-top: 0.35rem;
}

.cv-kpi small {
  color: hsl(var(--cv-ok));
  font-size: 0.68rem;
  font-weight: 600;
}

.cv-bars {
  align-items: flex-end;
  border-radius: 14px;
  display: flex;
  gap: 0.6rem;
  grid-column: 1 / -1;
  height: 150px;
  padding: 0.85rem 1rem 0.5rem;
}

.cv-bars > div {
  align-items: stretch;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}

.cv-bars i {
  background: linear-gradient(#3bedae, #2fae86);
  border-radius: 5px 5px 2px 2px;
  display: block;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--bd, 0s);
}

.cv-bars i.r {
  background: #f43455;
  border-radius: 2px;
}

.cv-vd.is-play .cv-bars i {
  transform: scaleY(1);
}

.cv-bars span {
  color: hsl(var(--ink-muted));
  font-size: 0.62rem;
  text-align: center;
}

.cv-rep {
  display: grid;
  gap: 0.6rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cv-rp {
  align-items: center;
  border-radius: 11px;
  color: hsl(var(--ink-secondary));
  display: flex;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  gap: 0.4rem;
  white-space: nowrap;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
}

.cv-rp em {
  border-radius: 99px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
}

.cv-rp em.g {
  background: hsl(var(--cv-ok) / 0.14);
  color: hsl(var(--cv-ok));
}

.cv-rp em.a {
  background: hsl(var(--cv-warn) / 0.16);
  color: hsl(var(--cv-warn));
}

@media (max-width: 640px) {
  .cv-vd {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cv-vd .cv-kpi:nth-child(3) {
    grid-column: 1 / -1;
  }
  .cv-rep {
    grid-template-columns: 1fr;
  }
  .cv-bars {
    gap: 0.35rem;
    padding: 0.75rem 0.6rem 0.4rem;
  }
}

/* ---------- Comparativo ---------- */
.cv-stack {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}


.cv-tbl-wrap {
  border-radius: 22px;
  overflow-x: auto;
  padding: 0.5rem 0.5rem 0.25rem;
  width: 100%;
}

.cv-cmp {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  min-width: 520px;
  width: 100%;
}

.cv-cmp th,
.cv-cmp td {
  border-bottom: 1px solid hsl(var(--ink-strong) / 0.08);
  padding: 0.9rem 1rem;
  text-align: left;
}

.cv-cmp tr:last-child td {
  border-bottom: 0;
}

.cv-cmp th {
  color: hsl(var(--ink-muted));
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cv-cmp td {
  color: hsl(var(--ink-secondary));
}

.cv-cmp th.us {
  background: hsl(var(--primary));
  border-radius: 12px 12px 0 0;
  color: #fff;
}

.cv-cmp td.us {
  background: hsl(var(--primary) / 0.09);
  color: hsl(var(--ink-strong));
  font-weight: 500;
}

.cv-cmp tr:last-child td.us {
  border-radius: 0 0 12px 12px;
}

.cv-cmp td.them {
  color: hsl(var(--ink-muted));
}

.cv-yes,
.cv-no {
  font-weight: 800;
  margin-right: 0.5rem;
}

.cv-yes { color: hsl(var(--cv-ok)); }
.cv-no { color: hsl(var(--cv-bad)); }

/* ---------- Encerramento ---------- */
.cv-end .sp-phone {
  --pw: 150px;
}

.cv-end-phone {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .cv-page *,
  .cv-page *::before,
  .cv-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .cv-sip .cv-id {
    width: 100%;
  }
  .cv-stamp,
  .cv-vchk {
    opacity: 1;
    transform: none;
  }
  .cv-bars i {
    transform: none;
  }
}
