/* =========================================================
   CARÊNCIA ZERO — TOUR DE APRESENTAÇÃO DO PROJETO
   Arquivo isolado: não altera o layout original do site.
   ========================================================= */

:root {
  --cz-tour-navy: #062f5c;
  --cz-tour-blue: #2679ed;
  --cz-tour-cyan: #6fc7ff;
  --cz-tour-green: #14a968;
  --cz-tour-text: #0b2e55;
  --cz-tour-muted: #617c96;
  --cz-tour-border: rgba(14, 72, 128, .15);
  --cz-tour-shadow: 0 28px 80px rgba(2, 24, 50, .28);
}

.cz-tour-launcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 7px 16px 7px 8px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #073d74, #2679ed);
  box-shadow: 0 16px 42px rgba(5, 57, 113, .28);
  font: inherit;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.cz-tour-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(5, 57, 113, .36);
}

.cz-tour-launcher__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #073864;
  background: white;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .13);
}

.cz-tour-launcher__icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cz-tour-launcher__copy {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}

.cz-tour-launcher__copy strong { font-size: 13px; }
.cz-tour-launcher__copy small { color: rgba(255, 255, 255, .78); font-size: 10px; }

.cz-tour-welcome[hidden],
.cz-tour-root[hidden] { display: none !important; }

.cz-tour-welcome {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 21, 44, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: czTourFade .32s ease both;
}

.cz-tour-welcome__card {
  width: min(620px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 30px;
  color: var(--cz-tour-text);
  background:
    radial-gradient(circle at 90% 5%, rgba(65, 160, 255, .18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.99), rgba(242,248,253,.98));
  box-shadow: var(--cz-tour-shadow);
  animation: czTourCardIn .42s cubic-bezier(.22,1,.36,1) both;
}

.cz-tour-welcome__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.cz-tour-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(38, 121, 237, .18);
  border-radius: 999px;
  color: #1767cf;
  background: rgba(38, 121, 237, .08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cz-tour-demo-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2679ed;
  box-shadow: 0 0 0 5px rgba(38,121,237,.12);
}

.cz-tour-icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cz-tour-border);
  border-radius: 50%;
  color: var(--cz-tour-text);
  background: rgba(255,255,255,.76);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.cz-tour-welcome h2 {
  max-width: 520px;
  margin: 0;
  color: var(--cz-tour-navy);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.cz-tour-welcome__lead {
  margin: 18px 0 0;
  color: var(--cz-tour-muted);
  font-size: 16px;
  line-height: 1.7;
}

.cz-tour-funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 26px 0;
}

.cz-tour-funnel span {
  position: relative;
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 10px 8px;
  border: 1px solid var(--cz-tour-border);
  border-radius: 14px;
  color: var(--cz-tour-text);
  background: rgba(255,255,255,.76);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.cz-tour-funnel span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -10px;
  z-index: 2;
  color: #2679ed;
  font-size: 15px;
}

.cz-tour-welcome__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.cz-tour-welcome__meta span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #496985;
  background: #edf5fb;
  font-size: 11px;
  font-weight: 700;
}

.cz-tour-welcome__actions,
.cz-tour-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cz-tour-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.cz-tour-button:hover { transform: translateY(-2px); }
.cz-tour-button--primary {
  color: white;
  background: linear-gradient(135deg, #0a559f, #2679ed);
  box-shadow: 0 14px 30px rgba(26, 103, 202, .24);
}
.cz-tour-button--secondary {
  color: var(--cz-tour-text);
  border-color: var(--cz-tour-border);
  background: white;
}
.cz-tour-button--ghost {
  min-height: 42px;
  color: #54708a;
  border-color: transparent;
  background: transparent;
}

.cz-tour-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}

.cz-tour-spotlight {
  position: fixed;
  z-index: 12001;
  border: 2px solid rgba(111, 199, 255, .98);
  border-radius: 20px;
  background: rgba(255, 255, 255, .02);
  box-shadow:
    0 0 0 9999px rgba(1, 17, 37, .74),
    0 0 0 6px rgba(38, 121, 237, .18),
    0 18px 55px rgba(0, 65, 135, .32);
  pointer-events: none;
  transition: top .28s cubic-bezier(.22,1,.36,1), left .28s cubic-bezier(.22,1,.36,1), width .28s cubic-bezier(.22,1,.36,1), height .28s cubic-bezier(.22,1,.36,1), border-radius .28s ease;
}

.cz-tour-spotlight::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: inherit;
  animation: czTourSpotPulse 2s ease-in-out infinite;
}

.cz-tour-card {
  position: fixed;
  z-index: 12002;
  width: min(410px, calc(100vw - 28px));
  max-height: calc(100svh - 24px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  color: var(--cz-tour-text);
  background:
    radial-gradient(circle at 100% 0, rgba(91, 177, 255, .15), transparent 34%),
    rgba(255,255,255,.985);
  box-shadow: var(--cz-tour-shadow);
  pointer-events: auto;
  transition: top .26s cubic-bezier(.22,1,.36,1), left .26s cubic-bezier(.22,1,.36,1);
}

.cz-tour-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cz-tour-card__step {
  color: #2679ed;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cz-tour-card h2 {
  margin: 15px 0 0;
  color: var(--cz-tour-navy);
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.cz-tour-card__description {
  margin: 12px 0 0;
  color: var(--cz-tour-muted);
  font-size: 14px;
  line-height: 1.62;
}

.cz-tour-card__list {
  display: grid;
  gap: 8px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.cz-tour-card__list li {
  position: relative;
  padding-left: 19px;
  color: #345470;
  font-size: 12px;
  line-height: 1.5;
}

.cz-tour-card__list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #19b878, #2d7eef);
  box-shadow: 0 0 0 4px rgba(45,126,239,.09);
}

.cz-tour-progress {
  height: 5px;
  margin: 20px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7f0f7;
}

.cz-tour-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #19ac76, #2679ed);
  transition: width .3s ease;
}

.cz-tour-card__actions { justify-content: space-between; }
.cz-tour-card__nav { display: flex; gap: 8px; }
.cz-tour-card__nav .cz-tour-button { min-height: 42px; padding: 0 14px; }

.cz-tour-status {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 13000;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  border-radius: 999px;
  color: white;
  background: #07365f;
  box-shadow: 0 16px 40px rgba(0,0,0,.24);
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.cz-tour-status.is-visible { opacity: 1; transform: translate(-50%, 0); }

body.cz-tour-active .cz-tour-launcher { opacity: 0; pointer-events: none; }
body.cz-tour-active .whatsapp-widget { opacity: .16; pointer-events: none; transition: opacity .2s ease; }
body.cz-tour-welcome-open { overflow: hidden; }

@keyframes czTourFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes czTourCardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes czTourSpotPulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: .8; transform: scale(1.015); } }

@media (max-width: 899px) {
  .cz-tour-launcher {
    left: 12px;
    bottom: 82px;
    min-height: 48px;
    padding: 5px 13px 5px 6px;
  }
  .cz-tour-launcher__icon { width: 36px; height: 36px; }
  .cz-tour-launcher__copy small { display: none; }

  .cz-tour-welcome { padding: 10px; align-items: end; }
  .cz-tour-welcome__card {
    width: 100%;
    max-height: calc(100svh - 20px);
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 25px;
  }
  .cz-tour-funnel { grid-template-columns: repeat(2, 1fr); }
  .cz-tour-funnel span:nth-child(2)::after { display: none; }
  .cz-tour-welcome__actions { align-items: stretch; flex-direction: column; }
  .cz-tour-welcome__actions .cz-tour-button { width: 100%; }

  .cz-tour-card {
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(48svh, 440px);
    padding: 18px;
    border-radius: 22px;
  }
  .cz-tour-card h2 { font-size: 23px; }
  .cz-tour-card__description { font-size: 13px; }
  .cz-tour-card__list { gap: 5px; margin-top: 12px; }
  .cz-tour-card__list li { font-size: 11px; }
  .cz-tour-progress { margin: 15px 0 13px; }
  .cz-tour-button--ghost { display: none; }
  .cz-tour-card__nav { flex: 1; }
  .cz-tour-card__nav .cz-tour-button { flex: 1; }
}

@media (max-width: 430px) {
  .cz-tour-card__list li:nth-child(n+3) { display: none; }
  .cz-tour-card { max-height: 43svh; }
  .cz-tour-welcome__lead { font-size: 14px; }
  .cz-tour-welcome h2 { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .cz-tour-welcome,
  .cz-tour-welcome__card,
  .cz-tour-spotlight,
  .cz-tour-card,
  .cz-tour-progress span,
  .cz-tour-spotlight::after { animation: none !important; transition: none !important; }
}
