/* ============================================================
   PORTAL DE COMPRAS PÚBLICAS — LP de validação (fakedoor)
   Estética editorial moderna (ref. Flowform):
   - Fundo cinza-claro, cards arredondados "flutuando"
   - Tipografia grande em peso NORMAL (bastonada regular)
   - Fotos de impacto, reveal on-scroll, parallax
   Identidade: DM Sans · Navy #081E2D · Ciano #0BA8BC · Laranja #F7A622
   ============================================================ */
:root {
  --navy: #081e2d;
  --navy-2: #0d2a3d;
  --petrol: #00606c;
  --cyan: #0ba8bc;
  --cyan-soft: #e9f8f9;
  --cyan-ghost: rgba(26, 176, 195, 0.1);
  --orange: #f7a622;
  --orange-dark: #e08f0a;
  --ink: #181a1f;
  --gray: #4a5560;
  --gray-light: #8b97a3;
  --line: #e3e9ee;
  --page: #e8ecf0;          /* fundo geral cinza-claro */
  --card: #ffffff;
  --tile: #f4f7f9;
  --radius-lg: 32px;
  --radius: 20px;
  --radius-btn: 14px;
  --shadow: 0 10px 34px rgba(8, 30, 45, 0.08);
  --shadow-lg: 0 24px 70px rgba(8, 30, 45, 0.16);
  --font: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* headings em peso normal (bastonada regular) */
h1, h2, h3 { font-weight: 400; }

/* tipografia: linhas equilibradas nos títulos, sem órfãs nos textos */
h1, h2, h3 { text-wrap: balance; }
p, figcaption, li { text-wrap: pretty; }
/* descrições dos planos: quebras em linhas de tamanho parecido */
.plan-card li, .plan-for p, .cell-head strong, .cell-note { text-wrap: balance; }

.page { padding: 16px; }
/* largura padrão de todas as seções */
:root { --section-w: 1200px; }
.container { max-width: var(--section-w); margin: 0 auto; padding: 0 24px; }

/* ---------- reveal on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; padding: 14px 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--orange); color: var(--navy);
  box-shadow: 0 6px 20px rgba(247, 166, 34, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: var(--cyan-ghost); color: var(--petrol); }
.btn-outline:hover { background: var(--cyan-soft); }
.btn-lg { padding: 11px 32px; font-size: 0.98rem; }
.btn-arrow { gap: 10px; }
.btn-arrow .arrow { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn-arrow:hover .arrow { transform: translateX(5px); }

/* botão "shiny": brilho varrendo + borda luminosa */
.btn-shiny {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffb93e 0%, var(--orange) 55%, #ef9c14 100%);
  box-shadow:
    0 6px 24px rgba(247, 166, 34, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-shiny:hover { background: linear-gradient(180deg, #ffc25a 0%, var(--orange) 60%, #e8950d 100%); }
.btn-shiny::before {
  content: ""; position: absolute; top: -4px; bottom: -4px;
  width: 42%; left: -60%;
  background: linear-gradient(105deg, transparent 10%, rgba(255, 255, 255, 0.65) 50%, transparent 90%);
  transform: skewX(-22deg);
  animation: btn-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine {
  0% { left: -60%; }
  55%, 100% { left: 140%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-shiny::before { animation: none; opacity: 0; }
}

/* ============================================================
   HERO — imagem de fundo + overlay + linhas de grid + centro
   ============================================================ */
.hero-wrap { max-width: var(--section-w); margin: 0 auto; }
.hero-card {
  position: relative;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: clamp(420px, 69vh, 600px);
  display: flex; align-items: center; justify-content: center;
}
/* imagem de fundo: troque a url abaixo pela imagem final */
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/hero.jpg") center / cover no-repeat;
  opacity: 0.5; /* imagem bem discreta sobre o navy do card */
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 30, 45, 0.66) 0%,
    rgba(8, 30, 45, 0.74) 55%,
    rgba(8, 30, 45, 0.85) 100%);
  pointer-events: none;
}
/* linhas verticais (grid 12 col: divisões em 1, 4, 8 e 11) */
.hero-lines {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-lines span {
  position: absolute; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.hero-lines span:nth-child(1) { left: 8.333%; }
.hero-lines span:nth-child(2) { left: 33.333%; }
.hero-lines span:nth-child(3) { left: 66.666%; }
.hero-lines span:nth-child(4) { left: 91.666%; }

.hero-content {
  position: relative; z-index: 2;
  max-width: 900px;
  padding: 64px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-logo {
  display: block;
  height: 42px;
  margin-bottom: 40px;
  filter: brightness(0) invert(1);
}
.hero-card h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px; margin: 0 auto 36px;
}


/* ============================================================
   SEÇÕES
   ============================================================ */
section { padding: 0; }
.kicker {
  display: inline-block; color: var(--petrol); background: var(--cyan-ghost);
  font-size: 0.76rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 7px 18px; border-radius: 999px;
  margin-bottom: 20px;
}
#features-kicker {
  background: none;
  padding: 0;
  border-radius: 0;
}
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-head h2, .sheet-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.03em; color: var(--navy);
  line-height: 1.08; margin-bottom: 16px;
}
.section-head p, .sheet-head p { color: var(--gray); font-size: 1.08rem; }

/* ============================================================
   MÓDULOS — sheet branco com bento (cards + fotos)
   ============================================================ */
.features-wrap { max-width: var(--section-w); margin: 16px auto 0; }
.sheet {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(40px, 6vw, 88px);
}
.sheet-head { max-width: 640px; margin-bottom: 56px; }
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--tile);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: card-float 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1s);
}
.feature-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
}
@keyframes card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-card { animation: none; }
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 15px;
  background: #fff; color: var(--petrol);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(8, 30, 45, 0.07);
  margin-bottom: 22px;
}
.feature-card:hover .feature-icon { background: var(--cyan-soft); }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.14rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 0.94rem; color: var(--gray); line-height: 1.55; }

/* tiles com foto */
.photo-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}
.photo-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 24px 20px;
  color: #fff; font-size: 0.95rem; font-weight: 500; line-height: 1.4;
  background: linear-gradient(180deg, transparent, rgba(8, 30, 45, 0.82));
}
.tile-tall { grid-row: span 2; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 84px); }
/* alinha as bordas dos cards com as bordas das outras seções */
.pricing .container { padding: 0; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: stretch;
}
.pricing-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.plan-card {
  position: relative; background: var(--card);
  border-radius: 24px;
  padding: 36px 30px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan-card.highlight {
  background:
    radial-gradient(420px 260px at 80% -10%, rgba(11, 168, 188, 0.28), transparent 65%),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.plan-tag {
  position: absolute; top: -13px; left: 30px;
  background: var(--orange); color: var(--navy); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.plan-card h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: 2rem; font-weight: 400; letter-spacing: -0.02em;
  margin-bottom: 6px; color: var(--navy);
}
.plan-card.highlight h3 { color: #fff; }
.plan-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--cyan-ghost); color: var(--petrol);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.plan-icon svg { width: 21px; height: 21px; }
.plan-card.highlight .plan-icon { background: rgba(255, 255, 255, 0.12); color: var(--cyan); }
.plan-tagline { font-size: 0.98rem; font-weight: 500; color: var(--navy); margin-bottom: 16px; }
/* sobra da linha dividida em cima e embaixo, em vez de um buraco só abaixo */
.pricing-grid.aligned .plan-tagline { display: flex; align-items: center; margin-bottom: 0; }
.plan-card.highlight .plan-tagline { color: rgba(255, 255, 255, 0.92); }
.plan-price {
  font-size: 2.7rem; font-weight: 400; color: var(--navy);
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.plan-card.highlight .plan-price { color: #fff; }
.plan-price span { font-size: 1rem; color: var(--gray-light); }

/* bloco "para quem é" */
.plan-for {
  background: var(--tile); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 20px;
}
.plan-card.highlight .plan-for { background: rgba(255, 255, 255, 0.08); }
.plan-for-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--petrol); margin-bottom: 6px;
}
.plan-for-label svg { width: 15px; height: 15px; flex-shrink: 0; }
.plan-card.highlight .plan-for-label { color: var(--cyan); }
.plan-for p { font-size: 0.9rem; color: var(--gray); }
.plan-card.highlight .plan-for p { color: rgba(255, 255, 255, 0.8); }

.plan-card ul { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; flex: 1; align-content: start; }
.plan-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.92rem; }
.plan-card li svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; margin-top: 4px; }
.plan-card.highlight li { color: rgba(255, 255, 255, 0.92); }
.plan-feature-variable .plan-feature-label {
  color: var(--navy);
  font-weight: 750;
}
.plan-card.highlight .plan-feature-variable .plan-feature-label { color: #fff; }
.feature-ai-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.35em;
  padding: 0.04em 0.42em;
  border: 1px solid rgba(11, 168, 188, 0.35);
  border-radius: 999px;
  background: var(--cyan-ghost);
  color: var(--petrol);
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  vertical-align: 0.08em;
}
.plan-card.highlight .feature-ai-chip {
  border-color: rgba(116, 223, 235, 0.5);
  background: rgba(116, 223, 235, 0.14);
  color: #9cecf4;
}

.plan-limit { font-size: 0.82rem; color: var(--gray-light); margin-bottom: 22px; }
.plan-card.highlight .plan-limit { color: rgba(255, 255, 255, 0.6); }
.btn-plan { width: 100%; padding: 13px 20px; font-size: 0.95rem; }
.btn-plan:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

/* ---------- switcher de precificação ---------- */
.billing-switch {
  display: flex; justify-content: center; gap: 4px;
  width: fit-content; margin: -16px auto 44px;
  background: var(--card); border-radius: 999px;
  padding: 6px; box-shadow: var(--shadow);
}
.billing-opt {
  border: none; background: none;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; color: var(--gray);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.billing-opt:hover { color: var(--navy); }
.billing-opt.active { background: var(--navy); color: #fff; }

/* plano indisponível na modalidade selecionada */
.plan-card.unavailable {
  background: #fbfcfd;
  box-shadow: none;
  border: 1px dashed var(--line);
}
.plan-card.unavailable .plan-tagline,
.plan-card.unavailable .plan-for,
.plan-card.unavailable ul,
.plan-card.unavailable .plan-limit,
.plan-card.unavailable .plan-icon { opacity: 0.45; }
.plan-price-off { font-size: 1.7rem; color: var(--gray-light); }
.plan-unavailable-note {
  font-size: 0.85rem; font-weight: 500; color: var(--petrol);
  background: var(--cyan-ghost);
  border-radius: 10px; padding: 10px 14px;
  margin-bottom: 20px;
}

/* cabeçalho compartilhado das subseções de planos (usado pela matriz) */
.compare-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.compare-head h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--navy);
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.compare-head p { color: var(--gray); font-size: 1rem; }

/* ---------- matriz funcionalidade a funcionalidade ---------- */
.matrix { margin-top: clamp(56px, 7vw, 96px); }
.matrix-table {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.matrix-row {
  display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line);
}
.matrix-row:first-child { border-top: none; }
.matrix-row-head {
  background: var(--tile);
  position: sticky; top: 0; z-index: 2;
}
.matrix-row-head .matrix-feature,
.matrix-row-head .matrix-cell {
  font-weight: 700; color: var(--navy); font-size: 0.95rem;
  padding-top: 16px; padding-bottom: 16px;
}
/* módulo como dropdown */
.matrix-module { border-top: 1px solid var(--line); }
.matrix-module summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  transition: background 0.2s ease;
}
.matrix-module summary::-webkit-details-marker { display: none; }
.matrix-module summary:hover { background: var(--tile); }
.matrix-module[open] summary { background: var(--cyan-ghost); }
.matrix-module-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--cyan-ghost); color: var(--petrol);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.matrix-module[open] .matrix-module-icon { background: var(--cyan); color: #fff; }
.matrix-module-icon svg { width: 19px; height: 19px; }
.matrix-module-name { font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.matrix-module-count {
  margin-left: auto;
  font-size: 0.8rem; color: var(--gray-light);
}
.matrix-chevron {
  border-left: 6px solid var(--petrol);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.matrix-module[open] .matrix-chevron { transform: rotate(90deg); }
.matrix-module .matrix-row { border-top: 1px solid var(--line); }
.matrix-feature { padding: 11px 22px; font-size: 0.9rem; color: var(--ink); }
.matrix-cell {
  display: flex; align-items: center; justify-content: center;
  padding: 8px; border-left: 1px solid var(--line);
}
.mx-icon {
  width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mx-icon svg { width: 12px; height: 12px; }
.mx-yes { background: var(--cyan); color: #fff; }
.mx-no { background: #eef1f4; color: var(--gray-light); }

/* ============================================================
   FAIXA DE IMPACTO — parallax
   ============================================================ */
.band-wrap { max-width: var(--section-w); margin: 0 auto; }
.band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* O vídeo é promovido a uma camada própria pelo Chrome/Windows. Durante o
     reveal com transform, o compositor deixava essa camada escapar do recorte
     arredondado por um frame. Clip explícito + paint containment tornam o
     limite do card estável, sem depender do overflow da camada pai. */
  clip-path: inset(0 round var(--radius-lg));
  contain: paint;
  isolation: isolate;
  background: #173f4d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: clamp(310px, 38vw, 410px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.band > img,
.band-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  backface-visibility: hidden;
}
.band > img {
  will-change: transform;
  transform: scale(1.15);
}
.band-content h2 br { display: inline; }
.band::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(700px 380px at 50% 110%, rgba(11, 168, 188, 0.28), transparent 65%),
    linear-gradient(180deg, rgba(8, 30, 45, 0.5), rgba(8, 30, 45, 0.66));
}
.band-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  padding: 48px 24px; max-width: 760px;
}
.band-content h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 14px;
}
.band-content p { color: rgba(255, 255, 255, 0.8); font-size: 1.12rem; }
.band-content .btn { margin-top: 26px; }

/* ============================================================
   FOOTER — claro, logo colorida + descrição
   ============================================================ */
.site-footer { padding: 84px 0 20px; }
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-logo { height: 26px; }
.site-footer span { color: var(--gray-light); font-size: 0.84rem; text-align: right; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 30, 45, 0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 24px;
  width: 100%; max-width: 480px;
  padding: 38px 36px 30px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform 0.25s ease;
  max-height: 92vh; overflow-y: auto;
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--tile); color: var(--gray);
  font-size: 1.15rem; line-height: 1;
}
.modal-close:hover { background: var(--line); }
.modal h3 { color: var(--navy); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.modal-sub { color: var(--gray); font-size: 0.95rem; margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 1rem; font-family: inherit;
  transition: border-color 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--cyan); }
.field.error input { border-color: #d64545; }
.field-error { display: block; color: #d64545; font-size: 0.8rem; margin-top: 4px; min-height: 1em; }

.field-radios { display: flex; gap: 10px; }
.field-radios label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 8px; font-size: 0.9rem; font-weight: 600; color: var(--gray);
  cursor: pointer; margin: 0; transition: all 0.15s ease;
}
.field-radios input { display: none; }
.field-radios label:has(input:checked) {
  border-color: var(--cyan); background: var(--cyan-soft); color: var(--petrol);
}
.form-submit { width: 100%; margin-top: 8px; }
.form-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-submit-error {
  margin-top: 10px;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}
.lgpd { font-size: 0.75rem; color: var(--gray-light); margin-top: 14px; line-height: 1.5; }
.form-privacy-links { margin-top: 6px; font-size: 0.72rem; color: var(--gray-light); }
.form-privacy-links a { color: var(--petrol); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   PÁGINA DE OBRIGADO — split-screen com cards arredondados
   ============================================================ */
.split-page {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; padding: 16px;
  min-height: 100vh;
}
.split-panel {
  position: relative;
  background:
    radial-gradient(700px 460px at 50% 8%, rgba(11, 168, 188, 0.26), transparent 65%),
    var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.split-panel #hero-grid { position: absolute; inset: 0; pointer-events: none; }
.split-panel::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(460px 280px at 50% 46%, rgba(8, 30, 45, 0.66), transparent 70%);
  pointer-events: none;
}
.split-panel-content {
  position: relative; z-index: 2;
  text-align: center; padding: 48px;
  max-width: 440px;
}
.split-logo {
  height: 58px; margin: 0 auto 28px;
  filter: brightness(0) invert(1);
}
.split-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem; line-height: 1.55;
}
.split-main {
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 56px 32px;
}
.split-card { max-width: 720px; width: 100%; }
.ty-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--cyan-soft); color: var(--petrol);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.ty-check svg { width: 30px; height: 30px; }
.split-card h1 {
  color: var(--navy); font-size: 2.2rem;
  letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 10px;
}
.split-card > p { color: var(--gray); font-size: 1rem; margin-bottom: 20px; }
.ty-transparency {
  background: var(--tile); border-left: 3px solid var(--cyan);
  border-radius: 10px; padding: 14px 18px;
  font-size: 0.85rem !important; color: var(--gray) !important;
  line-height: 1.55;
  margin-bottom: 28px !important;
}
.ty-survey-title {
  font-weight: 600; color: var(--navy) !important;
  font-size: 1.02rem !important; margin-bottom: 14px !important;
}
.ty-survey { margin-bottom: 30px; }
.survey-options { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-size: 0.87rem; font-weight: 600;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--cyan); background: var(--cyan-soft); color: var(--petrol); }
.survey-thanks { color: var(--petrol); font-weight: 600; font-size: 0.95rem; }

/* ---------- pesquisa de múltipla escolha, com ordem ----------
   A pergunta final passou a aceitar mais de uma resposta, na ordem de
   importância. Sem o estado visual, a pessoa não sabe o que já marcou e a
   ordem que ela declara deixa de ser a ordem que ela pensou — o dado
   continuaria chegando, e chegaria errado. */
.survey-hint {
  color: var(--muted, #667); font-size: 0.85rem; margin: -2px 0 14px;
}
.chip-on {
  border-color: var(--petrol); background: var(--petrol); color: #fff;
}
.chip-on:hover { border-color: var(--petrol); background: var(--petrol); color: #fff; }
/* O número é a ordem declarada. É a única parte da interface que mostra à
   pessoa que a sequência dela está sendo levada a sério. */
.chip-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15em; height: 1.15em; margin-right: 5px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.28);
  font-size: 0.78em; font-weight: 700; line-height: 1;
}
.survey-action {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.survey-selection-status {
  margin: 0; color: var(--gray); font-size: 0.86rem; font-weight: 600;
}
.survey-done { min-width: 190px; }
.survey-done:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ============================================================
   PAINEL DE DEBUG
   ============================================================ */
#pcp-debug {
  position: fixed; bottom: 16px; right: 16px; z-index: 200;
  width: 420px; max-width: calc(100vw - 32px);
  background: #0d1620; color: #cfe3ee;
  border: 1px solid #1f3346; border-radius: 12px;
  font-size: 12px; font-family: Consolas, monospace;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
#pcp-debug .dbg-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #12202e; border-bottom: 1px solid #1f3346;
}
#pcp-debug .dbg-head strong { color: #0ba8bc; font-size: 11px; letter-spacing: 0.04em; }
#pcp-debug button {
  background: #1a2c3d; color: #cfe3ee; border: 1px solid #2a4258;
  border-radius: 6px; font-size: 10.5px; padding: 3px 8px; margin-left: 4px;
}
#pcp-debug button:hover { background: #24384c; }
#pcp-debug .dbg-body { max-height: 220px; overflow-y: auto; }
#pcp-debug.min .dbg-body { display: none; }
#pcp-debug .dbg-row { padding: 5px 12px; border-bottom: 1px solid #14212e; line-height: 1.45; }
#pcp-debug .dbg-row code { color: #5a7d95; margin-right: 6px; }
#pcp-debug .dbg-row b { color: #f7a622; }
#pcp-debug .dbg-row span { color: #8fb2c6; word-break: break-all; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .pricing-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 48px 24px; }
  .hero-lines span:nth-child(1),
  .hero-lines span:nth-child(4) { display: none; }
  .split-page { grid-template-columns: 1fr; }
  .split-panel { min-height: 260px; }
  .split-panel-content { padding: 40px 24px; }
  .split-logo { height: 44px; margin-bottom: 16px; }
  .split-tagline { font-size: 0.95rem; }
}
@media (max-width: 640px) {
  .page { padding: 10px; }
  .br-desk { display: none; } /* quebra controlada só no desktop */
  .hero-content { padding: 40px 16px; }
  .hero-logo { height: 34px; margin-bottom: 28px; }
  .matrix-row { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .matrix-feature { padding-left: 14px; padding-right: 10px; }
  .matrix-module summary { padding: 14px; }
  .matrix-module-count { display: none; }
  .matrix-feature { font-size: 0.82rem; }
  .bento, .pricing-grid, .pricing-grid.cols-4 { grid-template-columns: 1fr; }
  .tile-tall { grid-row: auto; }
  .hero-card .btn { width: 100%; }
  .sheet { border-radius: 24px; }
  .modal { padding: 30px 22px 24px; }
  .site-footer .container { justify-content: center; text-align: center; }
  .site-footer span { text-align: center; }
  .split-page { padding: 10px; gap: 10px; }
  #pcp-debug { width: calc(100vw - 32px); }
}
@media (max-width: 560px) {
  .survey-action { align-items: stretch; flex-direction: column; }
  .survey-done { width: 100%; }
}

/* ============================================================
   LP1 — REPOSICIONAMENTO DE PLANOS
   Blocos que só existem nesta landing page:
   - kicker por card e preço com unidade própria (por processo / por mês)
   - "diferença em dez segundos"
   - tabela pública de funcionalidades (célula com texto, ✓ ou —)
   - tooltips de ajuda
   ============================================================ */

/* ---------- card: kicker, preço com unidade, intro dos bullets ---------- */
.plan-kicker {
  display: block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--petrol); margin-bottom: 10px;
}
.plan-card.highlight .plan-kicker { color: var(--cyan); }

/* A caixa "para quem é" ESTICA para preencher a linha do subgrid. Sem ela,
   o texto mais curto (Básico) deixava ~49px de buraco branco no card, porque
   a linha é dimensionada pelo texto mais longo (Ilimitado). Com o fundo
   tonalizado, a mesma altura lê como caixa de tamanho fixo, não como falha. */
.pricing-grid.aligned .plan-for { display: flex; flex-direction: column; }
.pricing-grid.aligned .plan-for p { flex: 1; }

/* preço + unidade em linhas separadas: "R$ 129" / "por processo" */
.plan-price-unit { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.plan-price-unit span { font-size: 0.92rem; font-weight: 500; color: var(--gray); }
.plan-card.highlight .plan-price-unit span { color: rgba(255, 255, 255, 0.7); }

.plan-highlights-intro {
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
  margin-bottom: 12px;
}
.plan-card.highlight .plan-highlights-intro { color: rgba(255, 255, 255, 0.92); }

/* ---------- tabela pública de funcionalidades ---------- */
.tbl-wrap { margin-top: clamp(56px, 7vw, 96px); }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Largura casada com o grid de planos: uma tabela mais estreita fica com as
   bordas desalinhadas em relação aos cards logo acima, e isso lê como erro.
   A densidade se resolve na proporção das colunas, não encolhendo a caixa. */
.tbl {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; min-width: 620px;
}
.tbl-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center; border-top: 1px solid var(--line);
}
.tbl-head {
  background: var(--tile); border-top: none;
  position: sticky; top: 0; z-index: 2;
}
.tbl-head .tbl-label, .tbl-head .tbl-cell {
  font-weight: 700; color: var(--navy); font-size: 0.95rem;
  padding-top: 16px; padding-bottom: 16px;
}
/* grupo como dropdown — mesmo padrão da matriz da LP2 */
.tbl-group { border-top: 1px solid var(--line); }
.tbl-group summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 14px;
  padding: 15px 22px;
  transition: background 0.2s ease;
}
.tbl-group summary::-webkit-details-marker { display: none; }
.tbl-group summary:hover { background: var(--tile); }
.tbl-group[open] summary { background: var(--cyan-ghost); }
.tbl-group-icon {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--cyan-ghost); color: var(--petrol);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tbl-group[open] .tbl-group-icon { background: var(--cyan); color: #fff; }
.tbl-group-icon svg { width: 18px; height: 18px; }
.tbl-group-name { font-weight: 600; color: var(--navy); font-size: 0.96rem; }
.tbl-group-count { margin-left: auto; font-size: 0.8rem; color: var(--gray-light); }
.tbl-chevron {
  border-left: 6px solid var(--petrol);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.tbl-group[open] .tbl-chevron { transform: rotate(90deg); }
.tbl-group .tbl-row { border-top: 1px solid var(--line); }
.tbl-label {
  padding: 12px 22px; font-size: 0.9rem; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.tbl-cell {
  padding: 12px 10px; text-align: center;
  font-size: 0.88rem; color: var(--gray);
  border-left: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 1px;
  min-height: 100%; align-self: stretch;
}
.tbl-text { font-weight: 600; color: var(--navy); }
.tbl-dash { color: var(--gray-light); }
.ft-ref { font-size: 0.68rem; color: var(--petrol); font-weight: 700; }

/* botão de ajuda (?) */
.tbl-help {
  flex-shrink: 0; width: 17px; height: 17px; border-radius: 50%;
  border: none; background: var(--line); color: var(--gray);
  font-size: 0.7rem; font-weight: 700; line-height: 1;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.tbl-help:hover { background: var(--petrol); color: #fff; }

.tbl-tip {
  position: absolute; z-index: 60; max-width: 290px;
  background: var(--navy); color: #fff;
  font-size: 0.84rem; line-height: 1.5;
  padding: 12px 14px; border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* ---------- observações da tabela, no rodapé ----------
   Ficam longe da tabela, então ganham rótulo próprio: sem ele os
   marcadores ¹ ² ³ do meio da página não teriam a que se referir. */
.footer-notes { width: 100%; min-width: 0; }
/* `.site-footer span` alinha à direita (regra do rodapé da LP2) e tem
   especificidade maior que uma classe sozinha — daí o seletor composto. */
.site-footer .footer-notes-label {
  display: block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--gray); margin-bottom: 10px;
  text-align: left;
}
/* As observações formam um único bloco de confiança. Duas colunas refletem os
   dois textos reais; a grade anterior reservava uma terceira coluna vazia e
   espremia a leitura sem motivo. */
.tbl-notes {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(8, 30, 45, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}
.tbl-notes li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
}
.tbl-notes li + li { border-left: 1px solid rgba(8, 30, 45, 0.08); }
.site-footer .tbl-note-number,
.site-footer .tbl-note-text {
  display: block;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
}
.site-footer .tbl-note-number {
  color: var(--petrol);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- rodapé da LP1 ----------
   Logo à esquerda, observações ao lado, descrição embaixo.
   Sem CTA: o fechamento da página é a faixa de impacto, logo acima. */
.lp1 .site-footer { padding: 72px 0 24px; }
/* mesmo tratamento de `.pricing .container`: sem o padding lateral padrão a
   logo alinha com a borda esquerda dos cards, da tabela e da faixa (x=113).
   Com ele, o rodapé ficava 24px para dentro de todo o resto. */
.lp1 .site-footer .container { padding-left: 0; padding-right: 0; }
/* `.site-footer .container` é flex e tem especificidade maior que uma classe
   sozinha — daí o seletor composto, senão o grid nunca vale. */
.site-footer .footer-top {
  display: grid; grid-template-columns: auto 1fr;
  gap: 56px; align-items: start;
  padding-bottom: 26px;
}
.lp1 .footer-logo { height: 30px; flex-shrink: 0; }
/* `.site-footer .container` é flex e faria o parágrafo encolher até o texto;
   como bloco ele ocupa os 1200px do container, de margem a margem. */
.site-footer .footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
/* ocupa a largura inteira do container (1200px) para caber em uma linha só;
   em telas estreitas volta a quebrar naturalmente */
.footer-bottom p {
  font-size: 0.78rem; color: var(--gray-light);
  line-height: 1.55;
}
.privacy-preferences {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--petrol);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy-preferences:hover { color: var(--navy); }
.privacy-preferences:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 4px;
  border-radius: 2px;
}
.ty-privacy-preferences {
  display: block;
  margin: 16px auto 0;
}

/* ---------- consentimento de analytics ----------
   Primeira camada curta, sem bloquear a navegação e sem consentimento tácito.
   As duas escolhas têm o mesmo peso visual. */
.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(960px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(8, 30, 45, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 46px rgba(8, 30, 45, 0.18);
  color: var(--navy);
}
.consent-banner[hidden] { display: none; }
.consent-banner-copy { min-width: 0; }
.consent-banner-copy p {
  max-width: 64ch;
  font-size: 0.88rem;
  line-height: 1.5;
}
.consent-banner-copy a {
  display: inline-block;
  margin-top: 4px;
  color: var(--petrol);
  font-size: 0.76rem;
  font-weight: 600;
  text-underline-offset: 3px;
}
.consent-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.consent-choice {
  min-height: 42px;
  border: 1px solid rgba(8, 30, 45, 0.24);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  padding: 9px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.consent-choice:hover {
  border-color: var(--petrol);
  background: var(--cyan-soft);
}
.consent-choice:active { transform: translateY(1px); }
.consent-choice:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
}


/* ---------- equilíbrio das linhas dos subtítulos ----------
   `text-wrap: balance` distribui as palavras para que as linhas fiquem de
   comprimento parecido, em vez de encher a primeira e deixar um resto curto
   na segunda. Antes destes ajustes o subtítulo da faixa quebrava em 652px +
   208px. Continua correto se a copy mudar — não depende de <br> fixo.
   Escopado na LP1 para não alterar a LP2, que já está fechada. */
.lp1 #hero-subtitle,
.lp1 #pricing-subtitle,
.lp1 #table-subtitle,
.lp1 #band-subtitle {
  text-wrap: balance;
}

/* ---------- responsivo ---------- */
@media (max-width: 640px) {
  .plan-price-unit { font-size: 2.2rem; }
  .tbl-label { padding: 12px 14px; font-size: 0.85rem; }
}

/* Em tela estreita a tabela rola na horizontal e o cabeçalho do grupo herda
   os 620px dela — com `margin-left:auto`, contagem e seta caem fora da área
   visível e o visitante perde a pista de que o grupo abre. Encostá-los no
   nome mantém a affordance dentro dos primeiros ~300px. */
@media (max-width: 700px) {
  /* o rodapé centraliza tudo em tela estreita (regra da barra da logo), mas
     nota de rodapé com 3 linhas centralizadas fica ruim de ler */
  .site-footer .footer-notes,
  .site-footer .footer-notes-label,
  .site-footer .tbl-notes li,
  .site-footer .footer-bottom p { text-align: left; }
  .tbl-notes { grid-template-columns: 1fr; }
  .tbl-notes li + li {
    border-top: 1px solid rgba(8, 30, 45, 0.08);
    border-left: 0;
  }
  .site-footer .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 13px;
    width: calc(100vw - 20px);
    padding: 14px;
    border-radius: 14px;
  }
  .consent-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .consent-choice { width: 100%; }

  .tbl-group summary { padding: 14px 16px; gap: 10px; }
  .tbl-group-count { margin-left: 10px; }
  .tbl-group-icon { width: 30px; height: 30px; border-radius: 9px; }
  .tbl-group-icon svg { width: 16px; height: 16px; }
}

/* ---------- alinhamento das linhas entre cards de preço único ----------
   Sem isso, tagline e "para quem é" de alturas diferentes empurram o preço
   de cada plano para uma altura distinta. O subgrid faz as 8 linhas do card
   compartilharem a mesma pauta do grid pai.
   Ordem das linhas: kicker · nome · tagline · para-quem-é · preço ·
                     intro dos bullets · lista · botão
   Navegador sem subgrid cai no layout flex anterior (funcional, só sem alinhar). */
@supports (grid-template-rows: subgrid) {
  .pricing-grid.aligned { grid-template-rows: repeat(6, auto) 1fr auto; }
  .pricing-grid.aligned .plan-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 8;
    row-gap: 0;
  }
  /* no grid o `flex:1` da lista não empurra mais o botão: quem faz isso
     agora é a linha 1fr do pai */
  .pricing-grid.aligned .plan-card ul { flex: none; margin-bottom: 26px; }
  /* card vazio de intro não deve criar respiro extra no Básico */
  .pricing-grid.aligned .plan-highlights-intro:empty { margin-bottom: 0; }
}
