/* plans.css — seção de planos (4 degraus + tabela recolhível) e modal de captura.
   Usado por: Home (#planos) e /diagnostico/planos/. Depende dos tokens --brand-*, --dur-*, --ease-out
   e das classes .card-cut, .btn, .badge (inline na Home, landing.css no diagnóstico).
   Carregar DEPOIS dessas folhas para sobrescrever o padding de .card-cut. */

body.no-scroll { overflow: hidden; }
#capture-elite[hidden] { display: none; }

/* === CAPTURE MODAL (lead form) ======================================== */
#capture-backdrop {
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}
#capture-backdrop.is-open { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
#capture-modal {
  opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(.98);
  visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
#capture-modal.is-open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.capture-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  transition: all var(--dur-2) var(--ease-out);
  outline: none;
  appearance: none;
}
.capture-input::placeholder { color: rgba(255,255,255,.45); }
.capture-input:hover  { border-color: rgba(255,255,255,.22); }
.capture-input:focus  { border-color: var(--brand-orange); box-shadow: 0 0 0 4px rgba(222,42,1,.18); }
select.capture-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
select.capture-input option { background: #1F1F1F; color: #fff; }
select.capture-input:invalid { color: rgba(255,255,255,.45); }
textarea.capture-textarea { resize: none; min-height: 76px; line-height: 1.4; }
.capture-legend { font-size: 14px; line-height: 1.4; font-weight: 600; color: rgba(255,255,255,.85); padding-top: 4px; }
.capture-radio {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  font-size: 14px; line-height: 1.35; transition: all var(--dur-2) var(--ease-out);
}
.capture-radio:hover { border-color: rgba(255,255,255,.22); }
.capture-radio input { flex-shrink: 0; margin-top: 2px; accent-color: var(--brand-orange); }
.capture-radio:has(input:checked) { border-color: var(--brand-orange); background: rgba(222,42,1,.12); }
.capture-radio:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(222,42,1,.18); }
/* honeypot: fora da tela, sem foco e sem leitura por leitor de tela */
.capture-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.plan-ico{margin-left:auto;flex:0 0 auto;width:40px;height:40px;border-radius:999px;display:grid;place-items:center;color:var(--brand-orange);border:1px solid rgba(0,0,0,.12);}
.card-cut--dark .plan-ico{border-color:rgba(255,255,255,.18);}
.plan-ico .line-ico{width:20px;height:20px;transition:transform .45s cubic-bezier(.34,1.56,.64,1);}
.card-cut:hover .plan-ico .line-ico{transform:rotate(-10deg) scale(1.08);}

/* === Seção de planos: 4 degraus + tabela recolhível ==================== */
/* Uma coluna no celular; 4 cards lado a lado a partir de 900px (nunca 2x2).
   Com subgrid, etiqueta, frase, preço, botão e aviso ficam na mesma altura nos 4 cards,
   mesmo quando a frase de um plano quebra em mais linhas. */
.plans-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.plans-card { display: flex; flex-direction: column; position: relative; padding: 24px; }
.plans-tag { font: 600 11px/1 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-orange); }
.plans-title { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.plans-name { font-size: 34px; line-height: 1; text-transform: uppercase; margin: 0; }
.plans-for { font-size: 14px; line-height: 1.45; color: var(--brand-stone); margin-top: 8px; }
.card-cut--dark .plans-for { color: rgba(255,255,255,.7); }
.plans-price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.plans-price b { font-size: 46px; line-height: 1; font-weight: 400; }
.plans-price small { font-size: 13px; color: var(--brand-stone); }
.card-cut--dark .plans-price small { color: rgba(255,255,255,.6); }
.plans-price .plans-aplic { font-size: 30px; }
.plans-btn { width: 100%; margin-top: 20px; white-space: normal; text-align: center; }
.plans-fine { font-size: 12px; line-height: 1.4; margin-top: 10px; opacity: .7; }
.plans-head {
  font: 700 12px/1.2 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase;
  margin: 20px 0 10px; padding-top: 16px; border-top: 1px solid var(--brand-fog);
}
.card-cut--dark .plans-head { border-color: rgba(255,255,255,.18); }
.plans-list { display: grid; gap: 9px; font-size: 14px; line-height: 1.4; }
.plans-list li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.plans-list li::before { content: ""; width: 8px; height: 8px; margin-top: 6px; background: var(--brand-orange); border-radius: 2px; }
.plans-seal { position: absolute; top: -12px; left: 24px; z-index: 1; }

@media (min-width: 900px) {
  .plans-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 14px; row-gap: 0; align-items: stretch; }
  .plans-card { padding: 18px; }
  .plans-name { font-size: 28px; }
  .plans-price b { font-size: 36px; }
  .plans-price .plans-aplic { font-size: 24px; }
  .plans-for, .plans-list { font-size: 13px; }
  .plans-btn { font-size: 11.5px; letter-spacing: .02em; padding-left: 8px; padding-right: 8px; }
  .plans-btn svg { display: none; }
  .plans-seal { left: 18px; }
}
@media (min-width: 1280px) {
  .plans-grid { column-gap: 20px; }
  .plans-card { padding: 24px; }
  .plans-name { font-size: 34px; }
  .plans-price b { font-size: 46px; }
  .plans-price .plans-aplic { font-size: 30px; }
  .plans-for, .plans-list { font-size: 14px; }
  .plans-btn { font-size: 14px; letter-spacing: .04em; padding-left: 14px; padding-right: 14px; }
  .plans-btn svg { display: block; }
  .plans-seal { left: 24px; }
}
/* alinhamento por linha entre os 4 cards: cada card herda as 6 linhas da grade */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .plans-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
  }
}
/* sem subgrid (navegador antigo): reserva a altura da frase mais longa */
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 900px) and (max-width: 1279px) { .plans-for { min-height: 74px; } }
  @media (min-width: 1280px) { .plans-for { min-height: 60px; } }
}

.plans-compare { margin-top: 36px; border: 1.5px solid var(--brand-ink); border-radius: 16px; background: #fff; overflow: hidden; }
.plans-compare summary { cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.plans-compare summary::-webkit-details-marker { display: none; }
.plans-compare summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand-orange); }
.plans-compare[open] summary::after { content: "–"; }
.plans-compare summary:focus-visible, .plans-scroll:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: -2px; }
.plans-scroll { overflow-x: auto; }
.plans-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; background: #fff; }
.plans-table th, .plans-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--brand-fog); }
.plans-table tbody th { font-weight: 600; position: sticky; left: 0; background: #fff; width: 190px; min-width: 150px; box-shadow: 1px 0 0 var(--brand-fog); }
.plans-table thead th { border-top: 0; vertical-align: bottom; }
.plans-table .plans-hl { background: #FFF4EE; }
.plans-th-nome { font-size: 26px; line-height: 1; text-transform: uppercase; display: block; }
.plans-th-preco { display: block; margin-top: 6px; font-size: 14px; color: var(--brand-stone); }
.plans-th-preco b { font-size: 22px; color: var(--brand-ink); }
.plans-yes { color: var(--brand-orange); font-weight: 700; }
.plans-no { color: var(--brand-ash); }
@media (max-width: 640px) {
  .plans-table th, .plans-table td { padding: 12px; }
  .plans-table tbody th { width: 128px; min-width: 128px; }
}
