/* Esteira de Segurança — site institucional
   CSS próprio, sem dependência de framework (Bootstrap etc.) — página de
   conteúdo simples não precisa do peso de um framework de UI completo. */

:root {
  --color-bg: #f6f7fb;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f2f9;
  --color-border: #e3e6ef;
  --color-text: #1a1d29;
  --color-text-muted: #5b6172;
  --color-text-soft: #848ba0;

  --color-brand: #3454d1;
  --color-brand-dark: #253d9e;
  --color-brand-light: #eef1fd;
  --color-accent: #16a888;
  --color-accent-light: #e5f7f3;

  --color-verde: #1e8e5a;
  --color-verde-bg: #e6f4ec;
  --color-amarelo: #b8860b;
  --color-amarelo-bg: #fff6e0;

  --shadow-sm: 0 1px 2px rgba(20, 24, 40, 0.06), 0 1px 3px rgba(20, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 24, 40, 0.09);
  --shadow-lg: 0 20px 48px rgba(20, 24, 40, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --container-width: 1120px;

  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  color: var(--color-brand-dark);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
  background: var(--color-brand-light);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 1.05rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
}

.brand:hover {
  color: var(--color-text);
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__mark svg {
  width: 19px;
  height: 19px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--color-text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-brand-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
  /* Sobrescreve o white-space:nowrap de .btn -- só usado dentro de
     plan-card (rolagem lateral com largura FIXA por card, ver
     .plan-card abaixo); "Começar grátis no primeiro mês" não pode
     empurrar o card inteiro pra ficar mais largo que os outros só
     porque o botão insiste em ficar numa linha só. */
  white-space: normal;
}

/* ---------- hero ---------- */

.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 50% 30%, rgba(52, 84, 209, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--color-brand), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 0 auto 2.1rem;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
}

.step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-light);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.step p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.94rem;
}

.step code {
  background: var(--color-surface-alt);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ---------- carrossel de rolagem (setas laterais) ---------- */
/* Compartilhado por Diferenciais e Análises (os dois blocos que rolam
   lateralmente) -- a pedido do usuário, com o mesmo visual de seta
   redonda do exemplo enviado (círculo cheio, chevron branco, meio
   sobreposta à borda do card). */

.scroll-carousel {
  position: relative;
}

.scroll-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.scroll-carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.scroll-carousel__arrow:hover {
  background: var(--color-brand-dark);
}

.scroll-carousel__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.scroll-carousel__arrow--prev {
  left: -22px;
}

.scroll-carousel__arrow--next {
  right: -22px;
}

/* Só faz sentido clicar em seta em tela grande o bastante pra ela não
   cobrir o próprio card -- no celular, a "espiadinha" do card seguinte
   já convida a arrastar/rolar com o dedo. */
@media (max-width: 720px) {
  .scroll-carousel__arrow {
    display: none;
  }
}

/* ---------- diferenciais ---------- */

/* 4 cards visíveis por vez, o resto rola lateralmente (mesmo modelo da
   seção de Análises) -- scroll-snap prende cada card na borda, pra não
   parar "cortado" no meio ao soltar o scroll/swipe. */
.diff-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.diff-card {
  flex: 0 0 calc((100% - 3 * 1rem) / 4);
  scroll-snap-align: start;
  padding: 1.2rem 1rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.diff-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.diff-card__icon svg {
  width: 18px;
  height: 18px;
}

.diff-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.diff-card p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- análises (tipos) ---------- */

/* 3 cards visíveis por vez, o resto rola lateralmente (mesmo modelo de
   Diferenciais) -- scroll-snap prende cada card na borda, pra não parar
   "cortado" no meio ao soltar o scroll/swipe. */
.analysis-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.analysis-card {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.analysis-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.analysis-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.analysis-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.analysis-card__icon svg {
  width: 22px;
  height: 22px;
}

.analysis-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--color-verde-bg);
  color: var(--color-verde);
  white-space: nowrap;
}

.analysis-card__tag--pago {
  background: var(--color-amarelo-bg);
  color: var(--color-amarelo);
}

.analysis-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.analysis-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.analysis-card__tool {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--color-border);
}

/* ---------- planos ---------- */

/* 3 cards visíveis por vez, o resto rola lateralmente (mesmo modelo de
   Análises/Diferenciais) -- hoje são só 3 planos, então não tem o que
   rolar de verdade, mas já fica pronto pra crescer sem reformular o
   layout de novo. */
.plans-grid {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  overflow-x: auto;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.plan-card {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  /* Clássica pegadinha do flexbox: sem isto, o min-width automático de
     um item flex é o tamanho do CONTEÚDO — o botão "Começar grátis no
     primeiro mês" (mais comprido que os outros, "Fale conosco") tinha
     um mínimo maior que os 85%/33% calculados, e forçava só ESTE card
     a ficar mais largo que os outros (quebrando a largura igual entre
     cards, essencial pro efeito de "espiadinha" no celular). */
  min-width: 0;
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.plan-card--highlight {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-lg);
}

.plan-card__badge {
  /* DENTRO do card (não mais position:absolute pra fora da borda) --
     com overflow-x:auto no .plans-grid, o eixo Y também passa a cortar
     conteúdo que vaza da caixa (regra do CSS: um eixo com overflow
     diferente de "visible" força o outro a virar "auto" também), então
     o selo ficava cortado ao rolar. */
  align-self: flex-start;
  margin-bottom: 0.9rem;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.plan-card__name {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.plan-card__desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin: 0 0 1.4rem;
  min-height: 2.6em;
}

.plan-card__price {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.plan-card__price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.plan-card__price--muted {
  font-size: 1.3rem;
  color: var(--color-text-muted);
}

.plan-card__period {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin-bottom: 1.6rem;
}

.plan-card__features {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.plan-card__features svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.plan-card__features li.is-muted {
  color: var(--color-text-soft);
}

.plan-card__features li.is-muted svg {
  color: var(--color-text-soft);
}

.plans-note {
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.85rem;
  margin-top: 2.2rem;
}

/* ---------- faq ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.15rem 1.4rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.faq-item__question .chevron {
  width: 18px;
  height: 18px;
  color: var(--color-text-soft);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-item__question .chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item__answer-inner {
  padding: 0 1.4rem 1.3rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------- cta final ---------- */

.cta {
  background: linear-gradient(135deg, var(--color-brand-dark), var(--color-brand) 60%, var(--color-accent));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.2rem 2.5rem;
  text-align: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 0.75rem;
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
  margin: 0 auto 1.8rem;
}

.cta .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cta .btn--primary {
  background: #fff;
  color: var(--color-brand-dark);
}

.cta .btn--primary:hover {
  background: #fff;
  color: var(--color-brand-dark);
  opacity: 0.92;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  background: var(--color-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  max-width: 280px;
  margin: 0.9rem 0 0;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-soft);
  margin: 0 0 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--color-brand);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

/* ---------- responsivo ---------- */

@media (max-width: 960px) {
  /* 2 cards visíveis por vez em telas médias */
  .diff-card {
    flex-basis: calc((100% - 1rem) / 2);
  }

  .analysis-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }

  .plan-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  section {
    padding: 3.5rem 0;
  }

  .nav__links,
  .nav__actions .btn--ghost {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    overflow-y: auto;
  }

  .site-header.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .site-header.is-open .nav__actions {
    margin-top: 1.5rem;
    width: 100%;
  }

  .site-header.is-open .nav__actions .btn--ghost {
    display: inline-flex;
  }

  .site-header.is-open .nav__actions {
    flex-direction: column;
  }

  .site-header.is-open .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* 1 card por vez, com uma "espiadinha" do próximo pra sinalizar que
     dá pra continuar rolando (comportamento já esperado de carrossel
     no celular). */
  .diff-card,
  .analysis-card,
  .plan-card {
    flex-basis: 85%;
  }

  .cta {
    padding: 2.5rem 1.5rem;
  }
}
