/* ============================================================
   planos.css — estilos exclusivos da página de Planos
   Carregado DEPOIS de components.css.
   ============================================================ */

/* ============ HERO DA PÁGINA DE PLANOS ============ */
.p-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.p-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  z-index: 2;
}
.p-hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, var(--accent-soft, rgba(28,128,250,0.18)) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
}
.t-eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 10px var(--accent-glow, rgba(28,128,250,0.6));
}
.p-hero-headline {
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 1100px;
}
.p-hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.p-hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--fg-2);
  max-width: 620px;
  line-height: 1.5;
}

/* ============ PILLARS ============ */
.p-pillars {
  padding: 96px 0 40px;
  background: var(--bg);
}
.p-pillars-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.p-pillars-head h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.p-pillars-head em {
  font-style: normal;
  color: var(--accent);
}
.p-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.p-pillar {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}
.p-pillar:hover {
  border-color: color-mix(in oklch, var(--accent) 30%, var(--border));
  transform: translateY(-2px);
}
.p-pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.p-pillar-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.p-pillar-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.p-pillar-icon svg {
  width: 100%;
  height: 100%;
}
.p-pillar-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--fg);
}
.p-pillar-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-2);
}

/* ============ CARDS HEAD ============ */
.p-cards-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.p-cards-title {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--fg);
}
.p-cards-title em {
  font-style: normal;
  color: var(--accent);
}
.p-cards-sub {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 520px;
}

/* ============ CARDS ============ */
.p-cards {
  padding: 24px 0 96px;
  background: var(--bg);
}
.p-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.p-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}
.p-card:hover {
  border-color: color-mix(in oklch, var(--accent) 28%, var(--border));
  transform: translateY(-2px);
}
.p-card.is-featured {
  background: linear-gradient(180deg,
    color-mix(in oklch, var(--accent) 14%, var(--surface)) 0%,
    var(--surface) 50%);
  border-color: color-mix(in oklch, var(--accent) 55%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--accent) 30%, transparent) inset,
    0 30px 60px -24px color-mix(in oklch, var(--accent) 40%, transparent);
  transform: translateY(-8px);
}
.p-card.is-custom {
  background:
    radial-gradient(ellipse at top right, color-mix(in oklch, var(--accent) 8%, transparent) 0%, transparent 65%),
    var(--surface);
}
.p-card-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-fg, #fff);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 8px 24px color-mix(in oklch, var(--accent) 45%, transparent);
}
.p-card-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 7px 14px 7px 8px;
  background: color-mix(in oklch, var(--fg) 6%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.p-card.is-featured .p-card-badge {
  background: color-mix(in oklch, var(--accent) 16%, transparent);
  border-color: color-mix(in oklch, var(--accent) 45%, transparent);
}
.p-card-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.p-card.is-featured .p-card-badge-icon {
  background: var(--accent);
  color: var(--accent-fg, #fff);
}
.p-card-badge-icon svg {
  width: 13px;
  height: 13px;
}
.p-card-badge-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.p-card-tagline {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
  min-height: 2.6em;
}
.p-card-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--border);
}
.p-card-price-prefix {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.p-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
}
.p-card-price-sym {
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.p-card-price-val {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}
.p-card.is-featured .p-card-price-val,
.p-card.is-featured .p-card-price-sym {
  color: var(--accent);
}
.p-card-price-per {
  font-size: 14px;
  color: var(--fg-muted);
  margin-left: 6px;
  font-weight: 400;
}
.p-card-price-alt {
  font-size: 10.5px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.p-card-feat-head {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.p-card-feat-head strong {
  color: var(--fg);
  font-weight: 500;
}
.p-card-feat {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.p-card-feat li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-2);
}
.p-card-feat li.is-hi {
  color: var(--fg);
  font-weight: 500;
}
.p-card-check {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.p-card-note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  font-style: italic;
}
.p-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.p-card-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.p-card-cta.is-featured {
  background: var(--accent);
  color: var(--accent-fg, #fff);
  box-shadow: 0 10px 24px -8px color-mix(in oklch, var(--accent) 50%, transparent);
}
.p-card-cta.is-custom {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.p-card-cta.is-custom:hover {
  background: var(--surface);
  border-color: var(--fg-muted);
}

/* trial line */
.p-trial-line {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.p-trial-line p {
  font-size: 14px;
  color: var(--fg-2);
}
.p-trial-line strong {
  color: var(--fg);
  font-weight: 500;
}
.p-trial-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-glow, rgba(28,128,250,0.6));
  animation: p-trial-pulse 2.4s ease-in-out infinite;
}
@keyframes p-trial-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ============ TABELA COMPARATIVA ============ */
.p-table {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.p-table-head {
  max-width: 620px;
  margin-bottom: 48px;
}
.p-table-head h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.p-table-sub {
  margin-top: 12px;
  color: var(--fg-2);
  font-size: 16px;
}
.p-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.p-table-grid {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.p-table-grid thead th {
  background: color-mix(in oklch, var(--surface) 85%, var(--border));
  padding: 20px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 14px;
  color: var(--fg);
  position: sticky;
  top: 0;
}
.p-table-corner {
  width: 200px;
}
.p-table-col {
  position: relative;
}
.p-table-col-name {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.p-table-col.is-featured {
  background: color-mix(in oklch, var(--accent) 10%, var(--surface)) !important;
  color: var(--accent);
}
.p-table-pop {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 400;
}
.p-table-grid tbody tr {
  border-bottom: 1px solid var(--border);
}
.p-table-grid tbody tr:last-child {
  border-bottom: none;
}
.p-table-grid tbody tr.is-hi {
  background: color-mix(in oklch, var(--accent) 4%, transparent);
}
.p-table-row-label {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  font-weight: 400;
  background: color-mix(in oklch, var(--surface) 92%, var(--border));
}
.p-table-grid td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--fg);
  border-left: 1px solid var(--border);
}
.p-table-grid td.is-featured {
  background: color-mix(in oklch, var(--accent) 5%, transparent);
}
.p-table-check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 15%, transparent);
  color: var(--accent);
}
.p-table-dash {
  color: var(--fg-muted);
}
.p-table-val-hi {
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
}
.p-table-scroll-hint {
  display: none;
  text-align: center;
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 12px;
  letter-spacing: 0.08em;
}

/* ============ FAQ ============ */
.p-faq {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.p-faq .link-inline {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
}
.p-faq .link-inline:hover {
  text-decoration-color: var(--accent);
}

/* ============ CLOSE (CTA final) ============ */
.p-close {
  position: relative;
  padding: 120px 0 140px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.p-close-inner {
  position: relative;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.p-close-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-soft, rgba(28,128,250,0.22)) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.p-close-headline {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 960px;
}
.p-close-headline em {
  font-style: normal;
  color: var(--accent);
}
.p-close-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-2);
  max-width: 640px;
  line-height: 1.55;
  margin-top: 4px;
}
.p-close-cta {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.p-close-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.p-close-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--fg-muted);
}
.p-close-wordmark {
  position: absolute;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.1em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(100px, 14vw, 220px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in oklch, var(--fg) 8%, transparent);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}

/* ============ TABLET (≤1200px): 4 cards → 2 colunas ============ */
@media (max-width: 1200px) and (min-width: 901px) {
  .p-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .p-card.is-featured {
    transform: translateY(-3px);
  }
  .p-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ MOBILE (≤900px) ============ */
@media (max-width: 900px) {
  .p-hero { padding: 120px 0 56px; }
  .p-pillars { padding: 56px 0 24px; }
  .p-pillars-head { margin-bottom: 32px; }
  .p-pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .p-pillar { padding: 20px; }

  .p-cards { padding: 24px 0 72px; }
  .p-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .p-card {
    padding: 28px 24px;
    transform: none !important;
  }
  .p-card.is-featured {
    transform: none !important;
  }
  .p-card-price-val {
    font-size: 44px;
  }

  .p-cards-head { margin-bottom: 32px; }

  .p-trial-line {
    flex-direction: column;
    border-radius: 20px;
    padding: 20px;
    gap: 10px;
    text-align: center;
  }

  .p-table { padding: 56px 0; }
  .p-table-head { margin-bottom: 24px; }
  .p-table-scroll-hint { display: block; }

  /* tabela full-bleed no mobile: rompe do container e ganha scroll horizontal */
  .p-table > .container {
    padding-left: 0;
    padding-right: 0;
  }
  .p-table-head {
    padding-left: 20px;
    padding-right: 20px;
  }
  .p-table-wrap {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    /* fade nas bordas pra indicar scroll */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
  .p-table-grid {
    min-width: 640px;
  }
  .p-table-grid thead th,
  .p-table-grid td,
  .p-table-row-label {
    padding: 12px 14px;
    font-size: 13px;
  }
  .p-table-corner {
    width: 140px;
  }
  .p-table-col-name {
    font-size: 14px;
  }
  .p-table-scroll-hint {
    padding: 0 20px;
  }

  .p-faq { padding: 56px 0; }

  .p-close { padding: 72px 0 96px; }
  .p-close-cta { flex-direction: column; width: 100%; }
  .p-close-cta .btn { width: 100%; justify-content: center; }
  .p-close-meta .sep { display: none; }
  .p-close-wordmark { font-size: clamp(72px, 22vw, 140px); bottom: 2%; }
}
