/* planos.css — Página de preços */

/* Seção de cards — abaixo do hero, sem sobreposição */
.planos-pricing {
  position: relative;
  z-index: 10;
  scroll-margin-top: 6rem;
}

.hero-home + .planos-pricing {
  margin-top: 0;
}

/* Hero — abelha animada */
.hero-home--planos {
  overflow: hidden;
}

.hero-planos-bee-stage__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero-planos-bee__path-line {
  stroke: rgba(251, 191, 36, 0.4);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  animation: hero-planos-path-dash 1.5s linear infinite;
}

@keyframes hero-planos-path-dash {
  to { stroke-dashoffset: -28; }
}

.hero-planos-bee-stage {
  z-index: 1;
}

.hero-planos-bee-stage__ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
  animation: hero-planos-ring-pulse 4s ease-in-out infinite;
}

@keyframes hero-planos-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.03); opacity: 1; }
}

.hero-planos-bee-stage__inner {
  position: absolute;
  inset: 0;
}

.hero-planos-bee-stage__flyer {
  position: absolute;
  width: 5rem;
  height: 5rem;
  margin: -2.5rem 0 0 -2.5rem;
  animation: hero-planos-bee-stage-fly 10s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(245, 158, 11, 0.5));
}

@supports (offset-path: path("M 0 0")) {
  .hero-planos-bee-stage__flyer {
    offset-path: path("M 48 160 Q 100 48 160 88 T 272 112 Q 220 200 160 176 T 48 160");
    offset-rotate: auto;
    offset-anchor: center;
    left: auto;
    top: auto;
    margin: 0;
    animation: hero-planos-bee-offset 10s ease-in-out infinite;
  }
}

@keyframes hero-planos-bee-offset {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

@keyframes hero-planos-bee-stage-fly {
  0% { left: 15%; top: 68%; transform: rotate(-10deg); }
  25% { left: 42%; top: 28%; transform: rotate(6deg); }
  50% { left: 78%; top: 42%; transform: rotate(12deg); }
  75% { left: 55%; top: 72%; transform: rotate(-5deg); }
  100% { left: 15%; top: 68%; transform: rotate(-10deg); }
}

.hero-planos-bee-stage__pill {
  position: absolute;
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: hero-planos-pill-glow 10s ease-in-out infinite;
}

.hero-planos-bee-stage__pill--1 {
  left: 0;
  top: 58%;
  background: #dbeafe;
  color: #1d4ed8;
  animation-delay: 0s;
}

.hero-planos-bee-stage__pill--2 {
  left: 38%;
  top: 8%;
  background: #fef3c7;
  color: #b45309;
  animation-delay: -3.3s;
}

.hero-planos-bee-stage__pill--3 {
  right: 0;
  top: 38%;
  background: #d1fae5;
  color: #047857;
  animation-delay: -6.6s;
}

@keyframes hero-planos-pill-glow {
  0%, 30%, 100% { opacity: 0.55; transform: scale(0.95); }
  10%, 20% { opacity: 1; transform: scale(1.08); }
}

.hero-planos-bee-stage__caption {
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-planos-bee-stage__flyer {
    animation: none;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    offset-path: none;
  }

  .hero-planos-bee__path-line,
  .hero-planos-bee-stage__ring,
  .hero-planos-bee-stage__pill {
    animation: none;
  }

  .hero-planos-bee-stage__pill {
    opacity: 1;
  }
}

/* Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Guia em 3 passos */
.bee-plan-guide__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border-radius: 1rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  opacity: 0.65;
}

.bee-plan-guide__item.is-active {
  opacity: 1;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.25);
}

.bee-plan-guide__num {
  display: flex;
  height: 1.75rem;
  width: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #f1f5f9;
  font-size: 0.875rem;
  font-weight: 800;
  color: #64748b;
}

.bee-plan-guide__item.is-active .bee-plan-guide__num {
  background: #f59e0b;
  color: #0b132b;
}

.bee-plan-guide__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.bee-plan-guide__text {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #64748b;
}

/* Painel explicativo */
.bee-plan-panel {
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.1);
}

.bee-plan-panel__step {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
}

.bee-plan-panel__title {
  margin-top: 0.35rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}

.bee-plan-panel__desc {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #475569;
}

/* Barra de progresso da apresentação */
.bee-plan-progress__item {
  cursor: pointer;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
}

.bee-plan-progress__item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #2563eb;
}

.bee-plan-progress__item.is-active {
  border-color: rgba(245, 158, 11, 0.55);
  background: #fffbeb;
  color: #b45309;
}

/* Comparativo planos — tabela (desktop) + cards (mobile) */
.bee-plan-compare__title {
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.bee-plan-compare__cards {
  display: grid;
  gap: 0.75rem;
}

.bee-plan-compare-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.08);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.bee-plan-compare-card.is-col-active {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 28px -12px rgba(37, 99, 235, 0.18);
}

.bee-plan-compare-card[data-col-plan="essencial"].is-col-active {
  background: rgba(239, 246, 255, 0.65);
  border-color: rgba(37, 99, 235, 0.4);
}

.bee-plan-compare-card[data-col-plan="profissional"].is-col-active {
  background: rgba(255, 251, 235, 0.75);
  border-color: rgba(245, 158, 11, 0.45);
}

.bee-plan-compare-card[data-col-plan="corporativo"].is-col-active {
  background: rgba(236, 253, 245, 0.65);
  border-color: rgba(5, 150, 105, 0.35);
}

.bee-plan-compare-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.bee-plan-compare-card__name {
  font-size: 0.9375rem;
  font-weight: 800;
}

.bee-plan-compare-card[data-col-plan="essencial"] .bee-plan-compare-card__name {
  color: #2563eb;
}

.bee-plan-compare-card[data-col-plan="profissional"] .bee-plan-compare-card__name {
  color: #b45309;
}

.bee-plan-compare-card[data-col-plan="corporativo"] .bee-plan-compare-card__name {
  color: #047857;
}

.bee-plan-compare-card__price {
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.bee-plan-compare-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: #475569;
}

.bee-plan-compare-card__list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f8fafc;
}

.bee-plan-compare-card__list li:last-child {
  border-bottom: 0;
}

.bee-plan-compare-card__list strong {
  font-weight: 600;
  color: #0f172a;
}

@media (min-width: 640px) {
  .bee-plan-compare__cards {
    display: none;
  }
}

@media (max-width: 639px) {
  .bee-plan-compare__table-wrap {
    display: none;
  }
}

/* Tabela comparativa (desktop) */
.bee-plan-table {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.08);
  outline: 1px solid #e2e8f0;
}

.bee-plan-table [data-col-plan].is-col-active {
  background: rgba(255, 251, 235, 0.85);
}

.bee-plan-table [data-col-plan="essencial"].is-col-active {
  background: rgba(239, 246, 255, 0.9);
}

.bee-plan-table [data-col-plan="profissional"].is-col-active {
  background: rgba(255, 251, 235, 0.95);
}

.bee-plan-table [data-col-plan="corporativo"].is-col-active {
  background: rgba(236, 253, 245, 0.9);
}

/* Listas nas bolhas de chat */
.bee-chat__list {
  margin-top: 0.5rem;
  padding-left: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #334155;
}

.bee-chat__list li {
  position: relative;
  padding-left: 1rem;
}

.bee-chat__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #059669;
}

.bee-chat__list--compact li::before {
  content: '•';
  color: #2563eb;
}

.bee-chat__text--lead {
  font-weight: 600;
  color: #475569;
}

/* Jornada da abelha — planos */
.bee-journey--planos .bee-journey__stage--planos {
  min-height: 28rem;
  padding-top: 0.5rem;
}

@media (min-width: 640px) {
  .bee-journey--planos .bee-journey__stage--planos {
    min-height: 32rem;
  }
}

.bee-journey--planos .bee-journey__path-line--gold {
  stroke: rgba(245, 158, 11, 0.28);
}

.bee-journey--planos .bee-chat {
  animation-delay: calc(var(--chat-i, 0) * -2s);
}

.bee-journey--planos .bee-chat--in .bee-chat__bubble,
.bee-journey--planos .bee-chat--system .bee-chat__bubble,
.bee-journey--planos .bee-chat--out .bee-chat__bubble {
  animation-delay: calc(var(--chat-i, 0) * -2s);
}

.bee-chat__bubble--plan-essencial {
  border-color: rgba(37, 99, 235, 0.25);
}

.bee-chat__bubble--plan-pro {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(245, 158, 11, 0.35);
}

.bee-chat__bubble--plan-corp {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: rgba(5, 150, 105, 0.25);
}

/* Mini cards dos planos (sync com abelha) */
.bee-plan-previews {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  max-width: 18rem;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
}

@media (min-width: 640px) {
  .bee-plan-previews {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
}

.bee-plan-preview {
  position: relative;
  cursor: pointer;
  border-radius: 1rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  padding: 0.85rem 0.75rem;
  text-align: center;
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.1);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
  opacity: 0.55;
}

.bee-plan-preview:hover {
  opacity: 0.85;
  border-color: rgba(37, 99, 235, 0.3);
}

.bee-plan-preview.is-active {
  opacity: 1;
  transform: translateY(-6px) scale(1.04);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 16px 32px -12px rgba(37, 99, 235, 0.22);
  z-index: 1;
}

.bee-plan-preview--featured.is-active {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 20px 40px -12px rgba(245, 158, 11, 0.35);
}

.bee-journey--planos.is-plan-all .bee-plan-preview.is-active {
  transform: translateY(-4px) scale(1.02);
}

.bee-plan-preview__badge {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  display: inline-flex;
  translate: -50% 0;
  align-items: center;
  gap: 0.2rem;
  border-radius: 9999px;
  background: #f59e0b;
  padding: 0.1rem 0.45rem;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0b132b;
  white-space: nowrap;
}

.bee-plan-preview__tier {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.bee-plan-preview--featured .bee-plan-preview__tier {
  color: #b45309;
}

.bee-plan-preview__price {
  margin-top: 0.15rem;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .bee-plan-preview__price {
    font-size: 1.5rem;
  }
}

.bee-plan-preview__currency {
  font-size: 0.65em;
  font-weight: 600;
  color: #64748b;
}

.bee-plan-preview__cents {
  font-size: 0.55em;
  font-weight: 600;
  color: #64748b;
}

.bee-plan-preview__ideal {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.bee-plan-preview__facts {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.35rem;
  padding: 0;
  list-style: none;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #475569;
}

.bee-plan-preview__facts li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .bee-plan-preview__facts {
    font-size: 0.625rem;
  }
}

/* Destaque nos cards reais ao sincronizar com abelha */
.pricing-card.is-bee-highlight {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.35);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card--featured.is-bee-highlight {
  box-shadow: 0 28px 56px -12px rgba(245, 158, 11, 0.35);
  border-color: rgba(245, 158, 11, 0.6);
}

.pricing-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(37, 99, 235, 0.15);
}

.pricing-card--featured {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 40px -12px rgba(245, 158, 11, 0.2), 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.pricing-card--featured:hover {
  box-shadow: 0 28px 56px -12px rgba(245, 158, 11, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.pricing-price {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .bee-plan-preview {
    opacity: 1;
    cursor: default;
  }

  .bee-plan-preview.is-active {
    transform: none;
  }

  .bee-plan-progress__item {
    cursor: default;
  }

  .pricing-card.is-bee-highlight {
    transform: none;
  }

  .pricing-card:hover {
    transform: none;
  }
}
