/* ==========================================================================
   SEÇÃO "PLANOS" (Preço Vidrificado)
   Estrutura, medidas e interações conforme a especificação.
   Adaptações para a identidade do site:
   - azul/ciano trocados pelos roxos da marca (#4c059e / #260041);
   - navy trocado por preto #0f0f0f; texto em branco #e2e2e2;
   - Plus Jakarta Sans trocada pelas fontes do hero: Inter (texto) e
     TWK Everett Black Italic (marca d'água e preços);
   - a imagem de fundo continua vindo do link fornecido; como ela é azul,
     recebe um hue-rotate em uma camada própria (::before) para virar roxa.
   ========================================================================== */

.pricing-section {
  --pricing-bg-image: url('https://res.cloudinary.com/dalwymbky/image/upload/v1789396066/fundo_glmerm.png');
  --pricing-bg-hue: 25deg; /* calibrado no print real: 70deg deixava magenta (~310°); alvo roxo da marca (~268°) */

  --color-bg: #0f0f0f; /* mantém o tom atual: a imagem de fundo já escurece para ~#050505 */
  --color-card-bg: rgba(20, 12, 30, 0.45);
  --color-card-border: rgba(226, 226, 226, 0.12);
  --color-card-border-hover: rgba(226, 226, 226, 0.24);
  --color-glow-pro: rgba(76, 5, 158, 0.95);
  --color-glow-pro-hover: #7a2ee0;
  --color-glow-pro-shadow: rgba(76, 5, 158, 0.55);
  --color-text-primary: var(--branco);
  --color-text-secondary: rgba(226, 226, 226, 0.68);
  --color-text-muted: rgba(226, 226, 226, 0.5);
  --color-button-bg: var(--branco);
  --color-button-bg-hover: #f2f2f2;
  --color-button-text: var(--preto);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-card: 28px;
  --radius-pill: 9999px;

  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px 50px;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  isolation: isolate;
}

/* Fundo: imagem do link, cover/center, recolorida para a paleta */
.pricing-section::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--pricing-bg-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  filter: hue-rotate(var(--pricing-bg-hue)) saturate(1.1);
  pointer-events: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Marca d'água */
.pricing-watermark {
  position: absolute;
  z-index: 1;
  top: 4%;
  left: 50%;
  color: rgba(76, 5, 158, 0.45);
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 15vw, 12.5rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 80px rgba(76, 5, 158, 0.35);
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

/* Grade */
.pricing-grid {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  max-width: 1160px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 28px;
  margin: 40px auto 30px;
}

/* Card */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 30px 32px;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  background: var(--color-card-bg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  border-color: var(--color-card-border-hover);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), inset 0 1px 1.5px rgba(255, 255, 255, 0.32);
  transform: translateY(-6px);
}

/* Destaque (Pro) */
.pricing-card--featured {
  border: 1.5px solid var(--color-glow-pro);
  box-shadow:
    0 0 35px var(--color-glow-pro-shadow),
    0 25px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 25px rgba(76, 5, 158, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.pricing-card--featured:hover {
  border-color: var(--color-glow-pro-hover);
  box-shadow:
    0 0 50px rgba(76, 5, 158, 0.75),
    0 35px 70px rgba(0, 0, 0, 0.7),
    inset 0 0 30px rgba(76, 5, 158, 0.32),
    inset 0 1px 2.5px rgba(255, 255, 255, 0.5);
}

/* Cabeçalho do plano */
.plan-header { margin-bottom: 26px; }

.plan-tier {
  margin: 0 0 4px;
  color: rgba(226, 226, 226, 0.85);
  font-size: 1.15rem;
  font-weight: 500;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 0 0 18px;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.price-currency { font-size: 2rem; }

.price-period {
  color: rgba(226, 226, 226, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.plan-description {
  min-height: 38px;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.825rem;
  line-height: 1.45;
}

/* Benefícios */
.feature-list {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 15px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(226, 226, 226, 0.88);
  font-size: 0.825rem;
  line-height: 1.35;
}

.check-icon {
  display: flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--branco);
  transition: var(--transition-smooth);
}

.check-icon svg { width: 12px; height: 10px; }

.feature-list li:hover .check-icon {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.22);
}

.pricing-card--featured .check-icon {
  border-color: rgba(76, 5, 158, 0.75);
  background: rgba(76, 5, 158, 0.45);
  color: var(--branco);
}

.pricing-card--featured .feature-list li:hover .check-icon {
  border-color: rgba(122, 46, 224, 0.9);
  background: rgba(76, 5, 158, 0.7);
}

/* Botão */
.btn-choose {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-button-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  color: var(--color-button-text);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-choose:hover {
  background: var(--color-button-bg-hover);
  box-shadow: 0 6px 20px rgba(226, 226, 226, 0.35);
  transform: translateY(-2px);
}

.btn-choose:active { transform: translateY(0); }

.btn-choose:focus-visible {
  outline: 2px solid var(--branco);
  outline-offset: 3px;
}

/* Tablet: 769px a 1024px */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .pricing-watermark { font-size: clamp(4.5rem, 12vw, 8.5rem); }
}

/* Mobile: até 768px */
@media (max-width: 768px) {
  .pricing-section {
    justify-content: flex-start;
    padding: 80px 16px 40px;
  }

  .pricing-watermark {
    top: 2%;
    font-size: clamp(3.8rem, 14vw, 6rem);
  }

  .pricing-grid {
    max-width: 420px;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 15px;
  }
}

/* Telas muito estreitas: redução mínima para não estourar */
@media (max-width: 340px) {
  .pricing-card { padding: 32px 22px 28px; }
  .plan-price { font-size: 2.4rem; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .pricing-card,
  .btn-choose,
  .check-icon { transition: none; }

  .pricing-card:hover,
  .btn-choose:hover { transform: none; }
}

/* ==========================================================================
   Conteúdo real dos planos do Octávio: rótulo, selo "Mais popular",
   seta no botão, formas de pagamento e observação.
   ========================================================================== */
.pricing-eyebrow {
  position: relative;
  z-index: 3;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--roxo-claro);
  box-shadow: 0 6px 20px rgba(76, 5, 158, 0.55);
  color: var(--branco);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.btn-choose { gap: 10px; }
.btn-arrow { flex-shrink: 0; transition: transform 0.3s ease; }
.btn-choose:hover .btn-arrow { transform: translateX(3px); }

.pricing-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-methods li {
  padding: 6px 16px;
  border: 1px solid rgba(76, 5, 158, 0.75);
  border-radius: var(--radius-pill);
  background: rgba(38, 0, 65, 0.45);
  color: var(--color-text-primary);
  font-size: 0.8rem;
  font-weight: 500;
}

.pricing-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn-arrow { transition: none; }
  .btn-choose:hover .btn-arrow { transform: none; }
}

/* Rótulo sobre a marca d'água: branco cheio para manter a leitura */
.pricing-eyebrow {
  color: var(--color-text-primary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* "Planos" sai de trás dos cards: vira título no fluxo, acima da grade,
   ainda com o tratamento de marca d'água (Everett, roxo translúcido, brilho). */
.pricing-watermark {
  position: relative;
  top: auto;
  left: auto;
  margin: 8px 0 0;
  color: rgba(76, 5, 158, 0.75);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.95;
  transform: none;
}

.pricing-watermark + .pricing-grid { margin-top: 28px; }

@media (max-width: 1024px) {
  .pricing-watermark { font-size: clamp(3.8rem, 11vw, 7rem); }
}

@media (max-width: 768px) {
  .pricing-watermark {
    top: auto;
    font-size: clamp(3.4rem, 15vw, 5.5rem);
  }
  .pricing-watermark + .pricing-grid { margin-top: 20px; }
}

/* Formas de pagamento e observação logo abaixo de "Planos", antes dos cards */
.pricing-watermark + .pricing-footer { margin-top: 18px; }
.pricing-footer + .pricing-grid { margin-top: 36px; }

@media (max-width: 768px) {
  .pricing-watermark + .pricing-footer { margin-top: 14px; }
  .pricing-footer + .pricing-grid { margin-top: 28px; }
}

/* Fundo preto: "Planos" em roxo claro de destaque e botão do plano em destaque roxo */
.pricing-watermark {
  color: var(--roxo-destaque);
  text-shadow: 0 0 60px rgba(76, 5, 158, 0.45);
}

.pricing-card--featured .btn-choose {
  background: var(--roxo-claro);
  color: var(--branco);
}

.pricing-card--featured .btn-choose:hover { background: var(--roxo-escuro); }

/* Fundo dos planos mais discreto: brilho do detalhe reduzido */
.pricing-section::before {
  filter: hue-rotate(var(--pricing-bg-hue)) saturate(1.05) brightness(0.7);
  opacity: 0.65;
}

/* ==========================================================================
   Consultoria (abaixo dos planos): mesmo card, grade de 2 colunas
   ========================================================================== */
.consult-block {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.consult-eyebrow { margin-top: 0; }

.consult-title {
  margin: 6px 0 0;
  color: var(--roxo-destaque);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-grid.consult-grid {
  max-width: 760px;
  grid-template-columns: repeat(2, 1fr);
  margin: 32px auto 20px;
}

@media (max-width: 768px) {
  .pricing-grid.consult-grid {
    max-width: 420px;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
}
