/*
 * Portal Pulso — landing estática.
 *
 * Porte da versão React (pulso/web/src/pages/Landing/) para HTML+CSS puro, para
 * publicar num host de estático enquanto o portalpulso.com.br não resolve.
 *
 * As cores são os MESMOS tokens do produto (pulso/web/src/shared/themes/tokens.ts).
 * Marca é uma só: se a página de vendas usar outro azul, o visitante troca de
 * marca ao entrar no app.
 *
 * Sem JavaScript. O FAQ usa <details>, que já é acordeão nativo, e o menu do
 * celular usa um checkbox escondido — as duas coisas que normalmente pedem script.
 */

:root {
  --brand: #0369a1;
  --brand-dark: #0c4a6e;
  --brand-light: #38bdf8;
  --brand-surface: #f0f9ff;

  --ink: #0f172a;
  --ink-2: #64748b;
  --ink-muted: #94a3b8;

  --bg: #f8fafc;
  --paper: #ffffff;
  --divider: #e5e7eb;
  --success: #15803d;
  --success-surface: #ecfdf5;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --pill: 999px;

  --maxw: 1200px;
  --font: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  /* Respiro lateral em toda largura — sem isto o texto encosta na borda no celular. */
  padding-inline: 20px;
}

.section { padding-block: 56px; }
.section--alt { background: var(--bg); }

@media (min-width: 900px) {
  .container { padding-inline: 40px; }
  .section { padding-block: 88px; }
}

/* ---------- blocos de texto ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-surface);
  padding: 8px 16px;
  border-radius: var(--pill);
}

.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.eyebrow--dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.eyebrow--dark .dot {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto; }

.section-head h2,
.about-copy h2 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 16px;
}
@media (min-width: 900px) {
  .section-head h2, .about-copy h2 { font-size: 36px; }
}

.lead {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-top: 16px;
}
@media (min-width: 900px) { .lead { font-size: 17px; } }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

/*
 * No HTML original o CTA era laranja sobre página azul e saltava por contraste de
 * matiz. Sem o laranja (a paleta do produto não tem cor de destaque), ele passa a
 * saltar por profundidade: sombra da própria cor e um leve deslocamento no hover.
 */
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(3, 105, 161, 0.30);
}
.btn--primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 14px 30px rgba(3, 105, 161, 0.38);
  transform: translateY(-2px);
}

/* Sobre fundo azul escuro o botão da marca sumiria. */
.btn--on-dark {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.btn--on-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.28); }

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--divider);
  padding: 12px 24px;
}
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-surface); }

/*
 * Envoltório de CTA. Existe como classe, e não como `style=` inline, para a CSP
 * poder ser `style-src 'self'` SEM `unsafe-inline` — um único atributo inline
 * obrigaria a abrir a política para a página toda.
 */
.acao { margin-top: 32px; }
.acao--compacta { margin-top: 28px; }

/* ---------- cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__logo img { height: 34px; width: auto; }

.nav__links, .nav__cta { display: none; }

.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.nav__links a:hover { color: var(--brand); }

/*
 * Menu do celular sem JavaScript: um checkbox escondido guarda o estado e o
 * label é o botão. `:checked ~` alcança o painel porque ele é irmão posterior.
 */
.nav__toggle { display: none; }

.nav__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--ink);
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav__burger span::before,
.nav__burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: currentColor;
}
.nav__burger span::before { top: -7px; }
.nav__burger span::after { top: 7px; }

.nav__panel {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 8px 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--divider);
}
.nav__panel a { color: var(--ink-2); text-decoration: none; font-size: 15px; }

.nav__toggle:checked ~ .nav__panel { display: flex; }

@media (min-width: 900px) {
  .nav__links { display: flex; gap: 24px; }
  .nav__cta { display: flex; gap: 12px; }
  .nav__burger { display: none; }
  .nav__toggle:checked ~ .nav__panel { display: none; }
}

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

.hero {
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
  padding-block: 48px 40px;
  overflow: hidden;
}
@media (min-width: 900px) { .hero { padding-block: 88px 60px; } }

.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
  margin-top: 20px;
}
@media (min-width: 900px) { .hero h1 { font-size: 48px; } }

.hero h1 .destaque { color: var(--brand); white-space: nowrap; }

.hero__lead { max-width: 540px; }

.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.avatars { display: flex; }
.avatars img {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}
.avatars img + img { margin-left: -10px; }

.hero__trust p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }

/* cartão de monitoramento — ilustração do produto, não dado real */
.monitor {
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 100%);
  border-radius: 24px;
  padding: 28px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(3, 105, 161, 0.28);
}

.monitor__top { display: flex; justify-content: space-between; align-items: center; }
.monitor__label { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .9; }

.live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(56,189,248,.27);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.monitor__score { font-size: 30px; font-weight: 700; line-height: 1; }
.monitor__score small { font-size: 14px; opacity: .7; }

.monitor__line { margin-block: 20px; }
.monitor__line svg { width: 100%; height: 70px; display: block; }

.pulse-path {
  fill: none;
  stroke: var(--brand-light);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawPulse 3.2s ease-in-out infinite;
}
@keyframes drawPulse {
  0%   { stroke-dashoffset: 900; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -900; }
}

.monitor__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.monitor__stats .n { font-size: 22px; font-weight: 700; }
.monitor__stats .t { font-size: 11.5px; opacity: .75; line-height: 1.35; }

.monitor__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 16px;
  background: rgba(255,255,255,.12);
  border-radius: var(--pill);
  font-size: 13px;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); margin-top: 56px; } }

.card {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 12px 32px rgba(3,105,161,.12);
}

.card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg);
  background: var(--brand-surface);
  color: var(--brand);
  margin-bottom: 16px;
}

.card h3 { font-size: 16.5px; font-weight: 600; }
.card p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 8px 0 0; }

/* ---------- sobre ---------- */

.about__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

.about-copy .forte { color: var(--ink); font-weight: 600; }

.risks { display: grid; gap: 16px; }

.risk {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  padding: 20px;
}
.risk__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--brand-surface);
  color: var(--brand);
}
.risk h4 { font-size: 15.5px; font-weight: 600; }
.risk p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 4px 0 0; }

/* ---------- prova social ---------- */

.logos { margin-top: 40px; overflow: hidden; }

/*
 * A faixa é duplicada e a animação percorre metade da largura: a emenda cai
 * exatamente onde a cópia começa, e o laço não tem salto visível.
 */
.logos__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 56px;
  animation: scrollLogos 22s linear infinite;
}
.logos__track:hover { animation-play-state: paused; }
@keyframes scrollLogos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; }
  .live, .pulse-path { animation: none; }
}

.logos__track img {
  height: 46px; width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
}


.plano h3 { font-size: 20px; font-weight: 700; margin-top: 16px; }
@media (min-width: 900px) { .plano h3 { font-size: 24px; } }

.plano ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.plano li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.plano li .tick {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-surface);
  color: var(--brand);
}

.canais { display: flex; flex-direction: column; justify-content: center; gap: 16px; }

.canal {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.canal:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 32px rgba(3,105,161,.12);
  transform: translateY(-2px);
}
.canal__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg);
  background: var(--brand-surface);
  color: var(--brand);
}
.canal .rotulo { font-size: 13px; color: var(--ink-2); }
.canal .valor { font-size: 15.5px; font-weight: 600; color: var(--ink); }

.nota {
  display: flex; align-items: center; gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }

.faq details {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }

/* O "+" gira 45° e vira "×" quando aberto — mesmo gesto da versão React. */
.faq summary .mais {
  flex-shrink: 0;
  position: relative;
  width: 18px; height: 18px;
  transition: transform .2s ease;
}
.faq summary .mais::before,
.faq summary .mais::after {
  content: '';
  position: absolute;
  background: var(--ink-2);
  border-radius: 2px;
}
.faq summary .mais::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq summary .mais::after  { left: 8px; top: 0; height: 18px; width: 2px; }
.faq details[open] summary .mais { transform: rotate(45deg); }

.faq .resposta {
  padding: 0 24px 24px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ---------- CTA final ---------- */

.cta-final {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, #0284c7);
  color: #fff;
  text-align: center;
  padding-block: 64px;
}
@media (min-width: 900px) { .cta-final { padding-block: 88px; } }

.cta-final h2 { font-size: 26px; font-weight: 700; margin-top: 16px; }
@media (min-width: 900px) { .cta-final h2 { font-size: 36px; } }

.cta-final p {
  font-size: 15px;
  opacity: .9;
  line-height: 1.65;
  margin: 16px auto 0;
  max-width: 640px;
}
@media (min-width: 900px) { .cta-final p { font-size: 17px; } }

/* ---------- rodapé ---------- */

.site-footer {
  background: var(--ink);
  color: #c9d3d8;
  padding-block: 64px 28px;
}

.footer__grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }

.footer__logo {
  display: inline-flex;
  background: #fff;
  padding: 12px 18px;
  border-radius: var(--r-lg);
}
.footer__logo img { height: 34px; width: auto; }

.footer__brand p { font-size: 14px; line-height: 1.65; margin: 20px 0 0; max-width: 340px; }

.site-footer h4 { font-size: 14.5px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { font-size: 14px; color: #c9d3d8; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}
@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.social { display: flex; gap: 12px; }
.social a { display: flex; }

/* Foco visível — o outline padrão some com `border: 0` nos botões. */
a:focus-visible, summary:focus-visible, .nav__burger:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
