/* =============================================================================
   Planos e Preços — estilos específicos (usa css/base.css)
   ========================================================================== */

/* ----------------------------------------------------------------- hero -- */
.pl-hero { position: relative; padding: 76px 24px 48px; overflow: hidden; }
.pl-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(760px 380px at 12% 8%, rgba(59, 184, 255, 0.16), transparent 55%);
}
.pl-hero__inner {
  position: relative; max-width: 900px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.pl-hero__inner h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08; letter-spacing: -0.03em;
  text-wrap: balance; max-width: 20ch;
  animation: pageEnterIn .5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pl-hero__inner h1 .thin { font-weight: 100; }
.pl-hero__inner h1 strong { font-weight: 700; }
.pl-hero__lead {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--text-dim);
  animation: pageEnterIn .5s cubic-bezier(0.16, 1, 0.3, 1) .1s both;
}
.pl-hero__toggle {
  display: flex; align-items: center; gap: 14px; margin-top: 8px;
  flex-wrap: wrap; justify-content: center;
  animation: pageEnterIn .5s cubic-bezier(0.16, 1, 0.3, 1) .2s both;
}

/* alternador mensal / anual */
.seg {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  padding: 4px; border-radius: 999px; background: var(--surface);
  gap: 2px; transition: background .25s;
}
.seg__btn {
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 8px 20px; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; color: var(--brand);
  transition: all .25s;
}
.seg__btn[data-billing="monthly"].is-active {
  background: var(--gradient-hero); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 92, 246, 0.35);
}
.seg__btn[data-billing="annual"] { color: var(--brand); }
.seg__btn[data-billing="annual"].is-active {
  background: #4ADE58; color: #0D2E12; font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.seg.is-annual .seg__btn[data-billing="monthly"] { color: #16a34a; }
.seg__save {
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 15%, transparent);
}
.seg.is-annual .seg__save {
  color: #0D2E12; background: #4ADE58; margin-left: 6px; padding: 7px 16px;
}

/* --------------------------------------------------------- cartões plano -- */
.pl-plans { padding: 8px 32px 40px; }
.plangrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }

.planwrap { position: relative; display: flex; padding-top: 44px; }
.planwrap.is-recommended { padding-top: 0; }
.plangrid.is-annual .planwrap { padding-top: 0; }

.plancard {
  position: relative; z-index: 2;
  background: var(--surface-2); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 17px;
  overflow: hidden; display: flex; flex-direction: column; width: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.plancard:hover { transform: translateY(-4px); }
.plancard__glow {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border: 2px solid transparent; border-radius: 17px;
  background: var(--gradient-hero) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.plancard__badge {
  background: var(--gradient-hero); color: #fff; text-align: center;
  padding: 11px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em;
}
.plancard__ribbon {
  background: linear-gradient(135deg, #3CD856, #22c55e); color: #06230f;
  text-align: center; padding: 11px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em;
  animation: ribbonIn .55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.plancard__body {
  padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; height: 100%;
}
.plancard__head { display: flex; flex-direction: column; gap: 8px; }
.plancard__tag { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.plancard__name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.plancard__pos { font-size: 13.5px; color: var(--text-dim); line-height: 1.45; min-height: 38px; }

.plancard__price { display: flex; flex-direction: column; animation: priceIn .55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.plancard__struck {
  font-size: 14.5px; color: var(--text-faint);
  text-decoration: line-through; line-height: 1.4;
}
.plancard__row { display: flex; align-items: flex-end; gap: 2px; }
.plancard__cur { font-size: 17px; font-weight: 600; color: var(--text-dim); margin-bottom: 9px; }
.plancard__reais { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.plancard__cents { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.plancard__suffix { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; margin-left: 3px; }

.plancard__billing { font-size: 11px; color: var(--text-faint); margin-top: -8px; min-height: 15px; }
.plancard__franquia {
  font-size: 12.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; line-height: 1.4;
}
.plancard__rule { height: 1px; background: var(--line-2); margin: 2px 0; }
.plancard__feats { display: flex; flex-direction: column; gap: 9px; }
.plancard__feats > div {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; line-height: 1.4;
}
.plancard__feats > div > span:first-child { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.plancard__feats > div > span:last-child { color: var(--text); }
.dev { cursor: help; font-size: 11px; color: var(--dev-tag); }

.plancard__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 600; font-size: 13.5px; padding: 11px; border-radius: 11px;
  border: 1px solid var(--brand); color: var(--brand); background: transparent;
}
.plancard__cta:hover {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.pl-plans__note {
  margin-top: 26px; text-align: center;
  font-size: 13.5px; color: var(--text-dim); line-height: 1.6;
}

/* ------------------------------------------------------------ divisória -- */
.pl-divider { line-height: 0; }

/* ------------------------------------------------------------ comparação -- */
.devnote {
  font-size: 13.5px; color: var(--text-dim); line-height: 1.6;
  background: rgba(242, 201, 76, 0.08);
  border: 1px solid rgba(242, 201, 76, 0.28);
  border-radius: 11px; padding: 12px 15px; text-align: left;
}
.devnote b { color: var(--dev-tag); font-size: 11px; letter-spacing: 0.06em; }

.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface-2);
}
.cmp {
  width: 100%; border-collapse: collapse; min-width: 760px;
  font-size: 13.5px; table-layout: fixed;
}
.cmp col:first-child { width: 34%; }
.cmp col:not(:first-child) { width: 16.5%; }
.cmp thead th {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 18px 10px; text-align: center;
  border-left: 1px solid var(--line-2);
}
.cmp thead th:first-child { text-align: left; padding: 18px 20px; font-weight: 600; border-left: none; }
.cmp__plan { font-weight: 700; font-size: 14px; color: var(--text); }
.cmp__plan--brand { color: var(--brand); }
.cmp__plan--brand2 { color: var(--brand-2); }
.cmp__price { font-size: 10.5px; color: var(--text-dim); margin-top: 2px; }

.cmp__cat { cursor: pointer; }
.cmp__cat:hover > td { background: var(--surface); }
.cmp__cat > td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-2);
  border-top: 1px solid var(--line-2);
  background: transparent;
  transition: background .2s;
}
.cmp__cat.is-open > td { background: var(--surface); }
.cmp__catrow { display: flex; align-items: center; gap: 12px; }
.cmp__catname {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand);
}
.cmp__meta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.cmp__count { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; color: var(--text-faint); }
.cmp__caret {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--brand);
  transform: rotate(0deg); transition: transform .2s;
}
.cmp__cat.is-open .cmp__caret { transform: rotate(180deg); }

.cmp tbody tr.cmp__row td { padding: 13px 20px; vertical-align: middle; }
.cmp tbody tr.cmp__row td:not(:first-child) { text-align: center; border-left: 1px solid var(--line-2); }
.cmp tbody tr.cmp__row:nth-child(even) td { background: var(--line-2); }
.cmp__dash { color: var(--text-faint); }
.cmp__check { color: var(--green); font-weight: 700; }
.cmp__soon {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--dev-tag);
}
.cmp__text { color: var(--text-dim); font-size: 12.5px; }

/* ---------------------------------------------------------- complementos -- */
.compgrid { display: flex; flex-wrap: wrap; gap: 16px; }
.compgrid > .compcard { width: calc((100% - 48px) / 4); }
.compcard {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, border-color .2s;
}
.compcard:hover { border-color: var(--brand); }
.compcard p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; flex: 1; }
.compcard__price {
  font-size: 11px; color: var(--brand);
  border-top: 1px solid var(--line-2); padding-top: 10px;
}
.compcard__note { font-size: 11.5px; color: var(--text-faint); line-height: 1.5; }

/* -------------------------------------------------------------------- faq */
.faq__h2 {
  font-size: clamp(24px, 3vw, 34px); font-weight: 700;
  letter-spacing: -0.02em; text-align: center; margin-bottom: 26px;
}
.faq__item { border-radius: 12px; padding: 2px 18px; }
.faq__item summary { padding: 16px 0; }
.faq__item summary::after { font-size: 20px; }
.faq__item p { padding-bottom: 18px; }

/* ------------------------------------------------------------ responsivo -- */
@media (max-width: 1024px) {
  .plangrid { grid-template-columns: repeat(2, 1fr); }
  .compgrid > .compcard { width: calc((100% - 16px) / 2); }
}

@media (max-width: 640px) {
  .plangrid { grid-template-columns: 1fr; }
  .planwrap { padding-top: 0; }
  .compgrid > .compcard { width: 100%; }
  .pl-plans { padding: 8px 18px 40px; }
  .pl-hero__lead br { display: none; }
}
