/* =====================================================================
   EdgeWarden — página de preços (componentes novos desta página)
   ===================================================================== */

/* ---------- Cabeçalho dos planos + seletor de cobrança ---------- */
.plans-head { align-items: end; }
.plans-head h2 { font-size: var(--fs-xl); }
.plans-head .plans-cur { margin-top: 10px; font-size: var(--fs-sm); color: var(--text-3); } /* linha "preços em BRL" (en/es) */
.billing { display: grid; justify-items: start; gap: 10px; }
.billing[hidden] { display: none; }
@media (min-width: 861px) { .billing { justify-items: end; text-align: right; } }
.billing__label { font-size: var(--fs-xs); color: var(--text-3); }
.billing .billing__hint { margin: 0; font-size: var(--fs-xs); color: var(--text-3); max-width: 40ch; }
.billing-toggle button:focus-visible { outline: 2px solid var(--in); outline-offset: 2px; }

/* ---------- Cartões ---------- */
.price-card__alt--pill { display: inline-flex; align-self: flex-start; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(60,198,228,.3); background: rgba(60,198,228,.07); color: #9be6f5; min-height: 0; }
.price-card[data-mode="anual"] [data-alt] { color: var(--ok); }
.price-card__inherit { margin: 0 0 4px; font-size: var(--fs-xs); color: var(--text-3); }
.price-card .ticks strong { color: var(--text-1); font-weight: 600; }
.price-card .ticks .tag-new { margin-left: 4px; vertical-align: 1px; }
.price-card__limits span { line-height: 1.35; }
.price-card__limits .fn-ref { margin-left: -8px; }
.fn-ref { margin-left: 2px; color: var(--warn); font-weight: 600; }
.fn-ref:hover { color: #ffe08a; }
.price__amount { transition: opacity .25s var(--ease-out); }
.price-card.is-swapping .price__amount { opacity: .25; }
@media (max-width: 1000px) { .price-card { padding: 28px 22px; } }

/* ---------- Faixa "em todos os planos" (Managed Objects, portal, API) ---------- */
.plans-all { margin: 28px 0 0; align-items: start; }
.plans-all p { margin: 0; }

/* ---------- Letras miúdas ---------- */
.fine { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px 48px; margin-top: 40px; align-items: start; }
.fine .note { margin: 0; }
.fine__list li { color: var(--text-3); margin: 0 0 10px; }
.fine__list li:target { color: var(--text-1); }
@media (max-width: 860px) { .fine { grid-template-columns: 1fr; } }
.portal-line { display: flex; align-items: center; gap: 12px; max-width: none; margin: 28px 0 0; padding: 16px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--text-2); font-size: var(--fs-sm); }
.portal-line svg { width: 20px; height: 20px; color: var(--in); flex: none; }

/* ---------- Teste antes de contratar: 3 passos + licença demo (mockup) ---------- */
.trial { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .trial { grid-template-columns: 1fr; } }
.trial__steps { margin: 0; padding: 0; list-style: none; }
.trial__steps .step:last-child { padding-bottom: 8px; }
.trial__steps .step p { margin: 0; font-size: var(--fs-base); max-width: 58ch; }
.trial__flow .btn-row { margin-top: 24px; padding-left: 78px; }
@media (max-width: 640px) { .trial__flow .btn-row { padding-left: 0; } }
.trial__lic { margin-top: 6px; }
.lic { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: #0f1724; padding: 20px; font-size: 13px; color: #aeb9ca; box-shadow: 0 40px 100px -50px rgba(61,214,140,.45); }
.lic__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.lic__title { display: inline-flex; align-items: center; gap: 9px; color: #e8edf5; font-weight: 600; font-size: 15px; }
.lic__title svg { width: 18px; height: 18px; color: var(--ok); }
.lic__key { padding: 10px 12px; border: 1px solid #223045; border-radius: 9px; background: #0b111c; color: #9be6f5; font-size: 13px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lic__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.lic__grid > div { border: 1px solid #223045; border-radius: 9px; padding: 10px 12px; background: #151f2e; }
.lic__grid dt { color: #8f9db2; font-size: 11.5px; }
.lic__grid dd { margin: 2px 0 0; color: #e8edf5; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lic__tag { padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 600; color: var(--ok); border: 1px solid rgba(61,214,140,.35); background: rgba(61,214,140,.08); }
.lic__time { margin: 4px 0 14px; }
.lic__time-h { display: flex; justify-content: space-between; font-size: 12px; color: #8f9db2; }
.lic__bar { height: 8px; border-radius: 99px; background: #1b2839; overflow: hidden; margin-top: 6px; }
.lic__bar span { display: block; height: 100%; width: 71.4%; border-radius: 99px; background: linear-gradient(90deg, var(--ok), var(--in)); }
.lic__feat-h { display: block; font-size: 12px; color: #8f9db2; margin-bottom: 8px; }
.lic__feat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lic__feat li { padding: 3px 9px; border-radius: 6px; border: 1px solid #223045; background: #151f2e; color: #cfd8e6; font-size: 12px; }
.lic__feat li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.lic__foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid #223045; color: #5f6c81; font-size: 11px; }

/* ---------- Tabela de comparação ---------- */
.compare table { table-layout: fixed; min-width: 0; }
.compare .compare__feat { width: 46%; }
.compare thead th { vertical-align: middle; }
.compare thead th:not(:first-child), .compare td { text-align: center; }
.compare .table-group td { text-align: left; }
.compare tbody th { font-weight: 400; color: var(--text-2); }
.compare tbody th .tag-new { margin-left: 6px; vertical-align: 1px; }
.compare td { color: var(--text-1); }
.compare td.yes { color: var(--ok); }
.compare th, .compare td { padding-block: 11px; }
.compare td.yes svg { width: 18px; height: 18px; margin-inline: auto; }
.compare td.no { color: var(--text-4); }
.compare .short { display: none; }
.compare .table-group__note { font-weight: 400; color: var(--text-3); }
.compare .table-group--all td { background: rgba(61,214,140,.06); }
.compare__foot { margin-top: 14px; }
@media (max-width: 640px) {
  .compare .compare__feat { width: 36%; }
  .compare th, .compare td { padding: 10px 5px; font-size: var(--fs-xs); }
  .compare tbody th, .compare .table-group td { padding-left: 12px; }
  .compare td { font-size: 12px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .compare .full { display: none; }
  .compare .short { display: inline; }
  /* Cabeçalho fixo: a tabela é alta no celular e os nomes dos planos sumiam.
     O wrapper não pode ser contêiner de rolagem (a 390px a tabela já cabe):
     overflow: clip recorta no raio da borda sem quebrar o sticky; visible é o fallback. */
  .table-wrap.compare { overflow: visible; overflow: clip; }
  .compare thead th { position: sticky; top: var(--nav-h); z-index: 3; background: #0e1d38; /* = rgba(16,32,61,.6) sobre --surface, opaco */ box-shadow: 0 1px 0 var(--line-strong); }
}

/* ---------- FAQ com título lateral ---------- */
.faq-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 32px 72px; align-items: start; }
.faq-split__aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-split__aside h2 { font-size: var(--fs-xl); }
@media (max-width: 960px) { .faq-split { grid-template-columns: 1fr; } .faq-split__aside { position: static; } }
