/* Agenda do remarketing (FAP-05). Celular primeiro: a agenda aparece na primeira tela. */
:root {
  --red: #E31E3A;
  --red-vivo: #ff2449;
  --red-hover: #c4172f;
  --red-soft: rgba(227, 30, 58, .12);
  --ink: #fff;
  --muted: #b4b4b4;
  --faint: #8a8a8a;
  --card: #111114;
  --line: rgba(255, 255, 255, .1);
  --r: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { min-height: 100%; color: var(--ink); background: #000; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
  background: radial-gradient(900px 520px at 50% -10%, rgba(227, 30, 58, .15), transparent 65%), #000;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Ícone em quadrado vermelho suave (cards, para quem é) */
.ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: var(--red-soft); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
}
.ico svg { width: 20px; height: 20px; }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.topbar-inner img { height: 30px; width: auto; }
.topbar-cta {
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .88rem; padding: 10px 16px; border-radius: 10px;
}
.topbar-cta:hover { background: var(--red-hover); }

/* Primeira dobra: texto curto e a agenda */
.hero {
  max-width: 1180px; margin: 0 auto;
  padding: 22px 16px 8px;
  display: grid; gap: 18px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero h1 {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: clamp(1.45rem, 6vw, 2.4rem); line-height: 1.18; letter-spacing: -.4px;
}
.hero h1 span { color: var(--red); }
.subtitle { margin-top: 10px; font-size: 1rem; line-height: 1.55; color: var(--muted); max-width: 520px; }

.steps { list-style: none; display: none; margin-top: 26px; gap: 10px; }
.steps li {
  display: flex; align-items: center; gap: 12px;
  font-size: .95rem; color: #e6e6e6;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 16px;
}
.step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; font-size: .82rem;
  display: inline-flex; align-items: center; justify-content: center;
}

.booking-label { font-size: .9rem; font-weight: 600; color: #e6e6e6; margin-bottom: 10px; }
.calendar-container {
  position: relative; width: 100%; min-height: 600px;
  background: #0b0b0e; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
/* O form_embed.js do GHL deixa o iframe escondido até o widget carregar (em 4G lento, uns 10 s).
   Enquanto isso, um esqueleto da agenda se mexe no lugar, em vez de um quadrado preto parado. */
.agenda-loader {
  position: absolute; inset: 0; z-index: 0; padding: 22px 18px;
  display: flex; flex-direction: column; gap: 16px;
}
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06)); background-size: 200% 100%; animation: brilho 1.4s ease-in-out infinite; }
.sk-titulo { height: 18px; width: 62%; }
.sk-info { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.sk-info .sk { height: 10px; }
.sk-info .sk:nth-child(1) { width: 30%; } .sk-info .sk:nth-child(2) { width: 52%; } .sk-info .sk:nth-child(3) { width: 44%; }
.sk-mes { display: flex; align-items: center; justify-content: center; gap: 18px; }
.sk-seta { width: 22px; height: 22px; border-radius: 50%; }
.sk-nome { width: 110px; height: 14px; }
.sk-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px 8px; padding: 0 4px; }
.sk-dias i { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.07); animation: acende 2.2s ease-in-out infinite; }
.sk-texto { margin-top: 4px; text-align: center; color: var(--faint); font-size: .9rem; }
.sk-pontos b { animation: ponto 1.2s infinite; font-weight: 700; }
.sk-pontos b:nth-child(2) { animation-delay: .2s; } .sk-pontos b:nth-child(3) { animation-delay: .4s; }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes acende { 0%, 70%, 100% { background: rgba(255,255,255,.07); transform: scale(1); } 35% { background: rgba(227,30,58,.42); transform: scale(1.06); } }
@keyframes ponto { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
/* widget apareceu: o esqueleto sai */
.calendar-container:has(iframe[style*="visibility: visible"]) .agenda-loader,
.calendar-container.agenda-pronta .agenda-loader { display: none; }
/* Link de reserva: só aparece se o widget não aparecer em 8 s (ver index.html) */
.agenda-reserva {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: none; white-space: nowrap;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 13px 20px; border-radius: 12px;
}
.agenda-reserva.is-visible { display: inline-block; }
.calendar-container:has(iframe[style*="visibility: visible"]) .agenda-reserva,
.calendar-container.agenda-pronta .agenda-reserva { display: none; }
.calendar-container iframe { position: relative; z-index: 1; width: 100%; min-height: 820px; border: none; display: block; }
.booking-note { margin-top: 10px; font-size: .85rem; color: var(--faint); line-height: 1.5; }

/* Seções depois da agenda */
section h2 span { color: var(--red); }
section h2 {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: clamp(1.25rem, 4.8vw, 1.8rem); line-height: 1.25; letter-spacing: -.3px;
}
.clients, .benefits, .qualify, .about, .cases, .faq, .final-cta {
  max-width: 1180px; margin: 0 auto; padding: 44px 16px 0;
}

/* Logos de clientes: faixa que corre sozinha */
.clients h2 { font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); text-align: center; }
.marquee {
  margin-top: 18px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: corre 32s linear infinite; }
.clients-row { list-style: none; display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.clients-row img { height: 26px; width: auto; max-width: none; opacity: .85; }
@keyframes corre { to { transform: translateX(-50%); } }

/* O que entra na conversa: cards com ícone */
.benefits-list { list-style: none; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.benefits-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; display: flex; flex-direction: column; gap: 6px;
}
.benefits-list .ico { margin-bottom: 4px; }
.benefits-list strong { font-size: .95rem; }
.benefits-list span:not(.ico) { color: #c8c8c8; font-size: .84rem; line-height: 1.45; }

/* Para quem é */
.qualify-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.qualify-list li {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: var(--r); padding: 14px 16px;
}
.qualify-list p { color: #cfcfcf; font-size: .92rem; line-height: 1.45; }
.qualify-list strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }

/* Quem está por trás */
.socios { margin-top: 16px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.socios img { width: 100%; height: auto; }
.socios figcaption { padding: 12px 16px; color: var(--muted); font-size: .92rem; }

/* Cases de clientes: carrossel de arrastar */
.cases-row {
  list-style: none; margin-top: 18px; display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none;
}
.cases-row::-webkit-scrollbar { display: none; }
.cases-row li { flex: 0 0 72%; scroll-snap-align: start; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.cases-row img { width: 100%; height: auto; }
.cases-hint { margin-top: 8px; font-size: .78rem; color: var(--faint); }

/* FAQ */
.faq-list { margin-top: 16px; display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq-item[open] { border-color: rgba(227, 30, 58, .55); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-weight: 600; font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 18px 16px; color: #c8c8c8; font-size: .93rem; line-height: 1.6; }

/* CTA final */
.final-cta { text-align: center; padding-bottom: 56px; }
.final-ico {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
  background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center;
}
.final-ico svg { width: 28px; height: 28px; }
.final-cta p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.cta-button {
  display: inline-block; margin-top: 22px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.02rem; padding: 16px 30px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(227, 30, 58, .32);
}
.cta-button:hover { background: var(--red-hover); }

.footer { border-top: 1px solid var(--line); padding: 24px 16px 96px; text-align: center; color: var(--faint); font-size: .82rem; }
.footer img { height: 26px; width: auto; margin: 0 auto 10px; opacity: .9; }

/* Botão fixo: vermelho vivo, pulsando; some enquanto a agenda está na tela */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--red-vivo); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.02rem; padding: 15px; border-radius: 14px;
  animation: pulsa-cta 1.8s ease-in-out infinite;
  transition: opacity .25s, transform .25s;
}
.sticky-cta svg { width: 20px; height: 20px; }
.sticky-cta.is-hidden { opacity: 0; transform: translateY(18px); pointer-events: none; animation: none; }
@keyframes pulsa-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 36, 73, .55), 0 10px 28px rgba(0, 0, 0, .5); }
  50% { box-shadow: 0 0 0 9px rgba(255, 36, 73, 0), 0 10px 28px rgba(0, 0, 0, .5); }
}

/* O script.js marca seções para animar a entrada. Aqui elas ficam sempre visíveis:
   conteúdo não depende de animação para aparecer. */
.reveal, .reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid #ff5b72; outline-offset: 3px; }

/* Desktop: texto à esquerda, agenda à direita */
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 460px; gap: 48px; padding: 48px 20px 16px; align-items: start; }
  .steps { display: grid; }
  .calendar-container iframe { min-height: 720px; }
  .clients, .benefits, .qualify, .about, .cases, .faq, .final-cta { padding-left: 20px; padding-right: 20px; padding-top: 64px; }
  .benefits-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .benefits-list li { padding: 18px; }
  .qualify-list { grid-template-columns: repeat(3, 1fr); }
  .socios { max-width: 760px; }
  .cases-row li { flex-basis: 260px; }
  .cases-hint { display: none; }
  .faq-list { max-width: 760px; }
  .sticky-cta { left: auto; right: 24px; bottom: 24px; padding: 15px 26px; }
  .footer { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .sticky-cta, .sk, .sk-dias i, .sk-pontos b { animation: none !important; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
