/* =========================================================
   Comprei Original — design system + landing
   Cores de marca:
     - Amarelo  (--brand)     = marca / atenção  (faixas, kicker, acentos)
     - Verde    (--whatsapp)  = AÇÃO WhatsApp     (nunca decoração)
     - Azul     (--telegram)  = Telegram apenas
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:root {
  /* superfícies */
  --bg: #0f1115;
  --bg-deep: #0a0b0d;
  --surface: #181b22;
  --surface-2: #1e222c;
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.05);

  /* texto (contraste AA garantido) */
  --text: #f2f3f5;
  --muted: rgba(242, 243, 245, 0.72);
  --faint: rgba(242, 243, 245, 0.6);

  /* marca */
  --brand: #f5c800;

  /* WhatsApp (ação) */
  --whatsapp: #25d366;
  --whatsapp-dark: #1aa34a;
  --whatsapp-glow: rgba(37, 211, 102, 0.22);

  /* Telegram */
  --telegram: #229ed9;
  --telegram-dim: rgba(34, 158, 217, 0.1);
  --telegram-border: rgba(34, 158, 217, 0.28);
  --telegram-glow: rgba(34, 158, 217, 0.16);

  /* sombra / layout / escala de espaçamento */
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
  --content: 640px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

ul[role="list"] { list-style: none; }

h1, h2, h3 { text-wrap: balance; line-height: 1.15; }

p { text-wrap: pretty; }

/* sprite escondido sem afetar layout */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----- acessibilidade ----- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- faixa amarela rotativa ----- */
.top-messages {
  width: 100%;
  background: var(--brand);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}
.top-messages__inner {
  position: relative;
  width: 100%;
  max-width: 720px;
  min-height: 24px;
}
.top-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #000;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.top-message.is-active { opacity: 1; transform: translateY(0); }

/* ----- layout base -----
   .page NÃO tem gutter lateral: as faixas internas (.category-strip,
   .retention-strip) precisam ocupar 100% real. O respiro lateral vai
   nos blocos de conteúdo (hero, faq, footer). */
.page { width: 100%; padding-bottom: 64px; }

.hero,
.faq-section__inner,
.footer {
  width: min(100%, var(--content));
  margin-left: auto;
  margin-right: auto;
}

.hero,
.faq-section,
.footer { padding-inline: 20px; }

/* ----- HERO ----- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--space-8);
}

.preview-msg {
  width: min(74%, 340px);
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(28px, 7.5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 16ch;
  color: var(--text);
}

.hero-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(15px, 3.6vw, 17px);
  max-width: 34ch;
  line-height: 1.55;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: 18px;
}
.trust-pills li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.pill-icon {
  width: 13px;
  height: 13px;
  fill: var(--brand);
  flex: 0 0 auto;
}

/* ----- CTAs ----- */
.cta-wrap,
.retention-strip__actions {
  width: 100%;
  display: grid;
  gap: 10px;
}
.cta-wrap { margin-top: var(--space-6); }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: scale(0.985); }

.cta-icon { width: 24px; height: 24px; fill: currentColor; flex: 0 0 auto; }
.cta-whatsapp .cta-icon { width: 26px; height: 26px; }

.cta-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}
.cta-text strong { font-weight: 800; font-size: 16px; }
.cta-whatsapp .cta-text strong { font-size: 17px; }
.cta-text small { font-size: 12px; opacity: 0.78; font-weight: 500; margin-top: 1px; }

/* WhatsApp = ação primária */
.cta-whatsapp {
  min-height: 60px;
  background: linear-gradient(135deg, var(--whatsapp-dark), var(--whatsapp));
  color: #fff;
  box-shadow: 0 12px 32px var(--whatsapp-glow);
  animation: sonar-wa 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.cta-whatsapp:hover {
  animation-play-state: paused;
  box-shadow: 0 18px 44px rgba(37, 211, 102, 0.36);
}
@keyframes sonar-wa {
  0%   { box-shadow: 0 12px 32px var(--whatsapp-glow), 0 0 0 0 rgba(37, 211, 102, 0); }
  20%  { box-shadow: 0 12px 32px var(--whatsapp-glow), 0 0 0 10px rgba(37, 211, 102, 0.26); }
  100% { box-shadow: 0 12px 32px var(--whatsapp-glow), 0 0 0 26px rgba(37, 211, 102, 0); }
}
.cta-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen-wa 3.4s ease-in-out 1s infinite;
}
@keyframes sheen-wa {
  0%, 60% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

/* Telegram = ação secundária */
.cta-telegram {
  min-height: 54px;
  background: var(--telegram-dim);
  border: 1.5px solid var(--telegram-border);
  color: var(--text);
}
.cta-telegram .cta-icon { fill: var(--telegram); }
.cta-telegram:hover {
  background: rgba(34, 158, 217, 0.16);
  border-color: rgba(34, 158, 217, 0.5);
  box-shadow: 0 10px 28px var(--telegram-glow);
}
.cta-telegram::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(34, 158, 217, 0.10) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen-tg 5s ease-in-out 2.4s infinite;
}
@keyframes sheen-tg {
  0%, 65% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

.cta-sub {
  margin-top: 10px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

/* prova social compacta (abaixo do CTA do hero) */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.social-proof__avatars { display: flex; }
.social-proof__avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #000;
  border: 2px solid var(--bg);
  margin-left: -9px;
}
.social-proof__avatars span:first-child { margin-left: 0; }
.social-proof__avatars span:nth-child(1) { background: var(--brand); }
.social-proof__avatars span:nth-child(2) { background: #ffd84d; }
.social-proof__avatars span:nth-child(3) { background: var(--whatsapp); color: #06351a; }
.social-proof__avatars span:nth-child(4) { background: var(--surface-2); color: var(--text); }
.social-proof__text { font-size: 13px; color: var(--muted); }
.social-proof__text strong { color: var(--text); font-weight: 800; }

/* ----- faixa de categorias (amarela) ----- */
.category-strip {
  width: 100%;
  background: var(--brand);
  margin-top: var(--space-10);
  padding: 22px 20px;
}
.category-strip__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.category-strip__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #000;
}
.label-icon { width: 16px; height: 16px; fill: #000; flex: 0 0 auto; }
.category-strip__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.category-strip__tags li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  font-size: 13px;
  font-weight: 700;
  color: #000;
}

/* ----- retention strip (2º CTA) ----- */
.retention-strip {
  width: 100%;
  background: var(--bg-deep);
  padding: 56px 20px;
}
.retention-strip__inner {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.retention-strip h2 {
  font-size: clamp(30px, 7vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}
.retention-strip h2 span { color: var(--brand); }
.retention-strip p {
  color: var(--muted);
  font-size: 16px;
  max-width: 32ch;
  margin-top: 14px;
  margin-bottom: 18px;
}
.retention-strip .social-proof { margin-top: 0; margin-bottom: var(--space-6); }
.retention-strip__actions { max-width: 620px; }

/* ----- FAQ ----- */
.faq-section { margin-top: 46px; }
.faq-section h2 {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 20px;
  transition: background 180ms ease;
}
.faq-list details[open] { background: var(--surface-2); }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: none;
}

/* ----- sticky CTA (mobile) ----- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(15, 17, 21, 0.98), rgba(15, 17, 21, 0));
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.sticky-cta .cta { width: min(100%, 520px); margin: 0 auto; }

/* ----- footer ----- */
.footer {
  margin-top: 42px;
  padding-bottom: 40px;
  text-align: center;
  display: grid;
  gap: 8px;
}
.footer p { color: var(--faint); font-size: 13px; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--text); }
.footer-copy { font-size: 12px; opacity: 0.7; }

/* =========================================================
   Páginas legais (termos.html / privacidade.html)
   ========================================================= */
.topbar {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 20px 0;
}
.brand-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.9;
  transition: opacity 160ms ease;
}
.brand-label:hover { opacity: 1; }
.legal-page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px 20px 56px;
}
.legal-page h1 {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 900;
  max-width: none;
  margin-top: 18px;
  color: var(--text);
}
.legal-page .updated {
  color: var(--faint);
  font-size: 13px;
  margin-top: 8px;
}
.legal-page section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-2);
}
.legal-page section:first-of-type { border-top: none; }
.legal-page h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.legal-page p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 68ch;
}
.legal-page p a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page ul {
  margin-top: 10px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.legal-page li { margin-top: 6px; }
.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
}
.legal-page .back-link svg { width: 16px; height: 16px; fill: currentColor; }
.legal-page .back-link:hover { text-decoration: underline; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (min-width: 560px) {
  .cta-wrap,
  .retention-strip__actions { grid-template-columns: 1fr 1fr; }
  .cta-text { text-align: center; }
}

@media (min-width: 768px) {
  .hero { padding-top: 36px; }
  .category-strip__inner {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
