/* Identidade Vibe Digital (ver clientes/vibe-automacao/design-system.md)
   + componentes desta página: conversa de WhatsApp, funil do CRM, calculadora e prints. */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-900-italic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #040f28;
  --bg-2: #081d47;
  --card: #0a1f4d;
  --line: rgba(255, 255, 255, .1);
  --text-soft: rgba(255, 255, 255, .76);
  --accent: #f1521b;
  --accent-btn: #d63f0a;
  --accent-2: #c23807;
  --font-title: "Montserrat", "Arial Black", sans-serif;
  --font-body: "Raleway", system-ui, sans-serif;
  --radius: 14px;
}

/* ---------- Tipografia da marca ---------- */
.h1, .h2 { font-weight: 900; font-style: italic; text-transform: none; letter-spacing: -.015em; line-height: 1.04; }
.h1 { font-size: clamp(36px, 4.4vw, 58px); margin-bottom: 20px; }
.h2 { font-size: clamp(30px, 4.4vw, 60px); }
.h3 { font-family: var(--font-body); font-weight: 800; letter-spacing: 0; line-height: 1.25; }
.h1 em, .h2 em { font-style: italic; }

/* ---------- Botões em pílula, como no site da Vibe ---------- */
.btn { border-radius: 999px; font: 700 16px/1.2 var(--font-body); letter-spacing: .01em; text-transform: none; background: var(--accent-btn); }
.btn:hover { background: var(--accent-2); }
.btn--wa { background: var(--wa); }
.btn--wa:hover { background: #1fbe5b; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); }
.btn--lg { font-size: 17px; }
.btn svg { flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.topo.is-solid { background: rgba(4, 15, 40, .82); }
.topo__logo img { width: 140px; height: auto; }

/* ---------- Hero: texto + conversa ---------- */
.hero { min-height: 0; align-items: center; padding-block: 112px 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 85% 30%, rgba(241, 82, 27, .22), transparent 70%),
    radial-gradient(35% 40% at 10% 10%, rgba(37, 99, 235, .25), transparent 70%);
}
.hero__in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero__in { grid-template-columns: 1.3fr .7fr; gap: 64px; } .hero { min-height: 100svh; } }
.hero .lead { margin-bottom: 24px; }

/* ---------- Celular com a conversa (exemplo) ---------- */
.fone {
  position: relative; width: 100%; max-width: 360px; margin-inline: auto;
  border-radius: 34px; padding: 10px; background: #0b1530; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .03);
}
.fone__tela { border-radius: 26px; overflow: hidden; background: #0b141a; }
.fone__topo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #1f2c34; font-size: 14px; }
.fone__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 900 italic 14px var(--font-title); }
.fone__nome strong { display: block; font-size: 14px; }
.fone__nome span { font-size: 12px; color: #8ed1a8; }
.fone__chat { display: grid; gap: 8px; padding: 14px 12px 16px; min-height: 380px; align-content: start; font-size: 14px; line-height: 1.4;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.025) 0 2px, transparent 3px) 0 0 / 22px 22px, #0b141a; }
.msg { max-width: 84%; padding: 8px 10px 6px; border-radius: 10px; position: relative; }
.msg small { display: block; text-align: right; font-size: 10px; color: rgba(255, 255, 255, .5); margin-top: 2px; }
.msg--in { justify-self: start; background: #202c33; border-top-left-radius: 2px; }
.msg--out { justify-self: end; background: #005c4b; border-top-right-radius: 2px; }
.msg--sys { justify-self: center; max-width: 100%; padding: 5px 10px; font-size: 12px; color: #ffd8c7; background: rgba(241, 82, 27, .16); border: 1px solid rgba(241, 82, 27, .4); border-radius: 999px; }
.fone__legenda { margin-top: 12px; text-align: center; font-size: 12px; color: var(--text-soft); }

/* As bolhas já estão no lugar (sem mexer no layout). Só aparecem em sequência quando há movimento permitido. */
@media (prefers-reduced-motion: no-preference) {
  .js .fone .msg { animation: bolha .5s var(--ease) backwards; }
  .js .fone .msg:nth-child(1) { animation-delay: .3s; }
  .js .fone .msg:nth-child(2) { animation-delay: 1.2s; }
  .js .fone .msg:nth-child(3) { animation-delay: 2.4s; }
  .js .fone .msg:nth-child(4) { animation-delay: 3.4s; }
  .js .fone .msg:nth-child(5) { animation-delay: 4.5s; }
  .js .fone .msg:nth-child(6) { animation-delay: 5.4s; }
  .js .fone .msg:nth-child(7) { animation-delay: 6.3s; }
}
@keyframes bolha { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Faixa de prova (fundo escuro, número laranja: contraste AA) ---------- */
.prova-faixa { background: var(--bg-2); color: var(--text); border-block: 1px solid var(--line); padding-block: 28px; }
.prova-faixa__in { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.prova-faixa strong { color: var(--accent); font-weight: 800; font-family: var(--font-title); }
.prova-faixa span { opacity: 1; color: var(--text-soft); }
.fonte { display: block; margin-top: 4px; font-size: 11px; color: rgba(255, 255, 255, .55); }

/* ---------- Dor ---------- */
.dor { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 720px) { .dor { grid-template-columns: repeat(2, 1fr); } }
.dor li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.dor li p { color: var(--text-soft); }
.dor strong { display: block; color: var(--text); margin-bottom: 2px; }
.dado { margin-top: 28px; padding: 22px 24px; border-left: 3px solid var(--accent); background: rgba(241, 82, 27, .07); border-radius: 0 var(--radius) var(--radius) 0; max-width: 760px; }
.dado p { color: var(--text-soft); }
.dado strong { color: var(--text); }

/* ---------- Ícones de linha ---------- */
.ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(241, 82, 27, .12); color: var(--accent); margin-bottom: 16px; }
.dor .ico { margin-bottom: 0; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cards--6 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards--6 { grid-template-columns: repeat(2, 1fr); } }
/* Mais específico que a regra de 4 colunas do base.css */
@media (min-width: 1100px) { .cards:not(.cards--2):not(.cards--3).cards--6 { grid-template-columns: repeat(3, 1fr); } }
.canais { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.canais span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text-soft); }

/* ---------- Funil do CRM (o card anda sozinho) ---------- */
.funil { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-block: 8px 32px; padding: 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.funil__col { min-height: 132px; padding: 10px 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.funil__col b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 10px; }
.funil__card { height: 38px; border-radius: 8px; background: rgba(255, 255, 255, .06); margin-bottom: 6px; }
.funil__lead {
  position: absolute; left: 22px; top: 52px; width: calc((100% - 28px - 24px) / 4 - 16px); height: 52px;
  padding: 6px 8px; border-radius: 8px; background: var(--accent-btn); color: #fff; font-size: 11px; line-height: 1.3; font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.funil__lead span { display: block; font-weight: 500; opacity: .9; }
@media (max-width: 599px) {
  .funil__col { padding-inline: 6px; }
  .funil__col b { font-size: 10.5px; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
  .funil__lead { left: 20px; width: calc((100% - 28px - 24px) / 4 - 12px); }
  @keyframes andar {
    0%, 18% { transform: translateX(0); }
    25%, 43% { transform: translateX(calc(100% + 20px)); }
    50%, 68% { transform: translateX(calc(200% + 40px)); }
    75%, 100% { transform: translateX(calc(300% + 60px)); }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .funil__lead { animation: andar 8s var(--ease) infinite; }
}
@keyframes andar {
  0%, 18% { transform: translateX(0); }
  25%, 43% { transform: translateX(calc(100% + 24px)); }
  50%, 68% { transform: translateX(calc(200% + 48px)); }
  75%, 100% { transform: translateX(calc(300% + 72px)); }
}

/* ---------- Para quem é ---------- */
.cards--nicho { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards--nicho { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.cards--nicho { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Diferenciais: exemplo do relatório ---------- */
.relatorio { margin-top: 8px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); max-width: 760px; }
.relatorio__linha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.relatorio__linha div { padding: 14px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); text-align: center; }
.relatorio__linha strong { display: block; font: 800 clamp(26px, 3vw, 36px)/1 var(--font-title); color: var(--accent); font-variant-numeric: tabular-nums; }
.relatorio__linha span { font-size: 13px; color: var(--text-soft); }

/* ---------- Prova com print ---------- */
.prints { display: grid; gap: 14px; margin-block: 32px; }
@media (min-width: 720px) { .prints { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .prints { grid-template-columns: repeat(4, 1fr); } }
.print { display: flex; flex-direction: column; gap: 12px; }
.print__num { font: 800 clamp(24px, 2.4vw, 30px)/1.1 var(--font-title); color: var(--accent); }
.print blockquote { color: var(--text); font-size: 15px; }
.print figcaption { font-size: 13px; color: var(--text-soft); }
.print figcaption strong { color: var(--text); display: block; font-size: 15px; }
.print details summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); }
.print details img { margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); }
.tag-pendente { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #4a3b00; color: #ffe08a; font-size: 12px; font-weight: 700; }
.nota { font-size: 13px; color: var(--text-soft); max-width: 760px; }

/* ---------- Time ---------- */
.pessoa img { aspect-ratio: 1 / 1; }
@media (max-width: 719px) {
  .pessoa { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: center; padding: 18px; }
  .pessoa img { grid-row: span 2; margin-bottom: 0; width: 96px; }
  .pessoa p { grid-column: 2; font-size: 14px; }
}

/* ---------- Oferta e calculadora ---------- */
.oferta-grid { display: grid; gap: 14px; margin-top: 32px; align-items: start; }
@media (min-width: 960px) { .oferta-grid { grid-template-columns: 1.1fr .9fr; } }
.oferta { max-width: none; margin-top: 0; border-color: rgba(241, 82, 27, .5); }
.oferta__preco { font-family: var(--font-title); font-weight: 800; margin-top: 24px; }
.oferta__preco small { font: 600 16px var(--font-body); color: var(--text-soft); }
.oferta__impl { margin-top: 6px; font-weight: 700; }
.oferta .btn--lg { width: 100%; margin-top: 20px; }
.extras { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-soft); }
.extras li { margin-bottom: 4px; }
.calc label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; margin-top: 18px; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.calc output { font: 800 20px var(--font-title); color: var(--text); }
.calc__res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.calc__res div { padding: 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.calc__res span { display: block; font-size: 12px; color: var(--text-soft); }
.calc__res strong { display: block; font: 800 clamp(20px, 2.2vw, 26px)/1.2 var(--font-title); font-variant-numeric: tabular-nums; margin-top: 4px; }
.calc__res .is-vibe strong { color: var(--accent); }
.calc .hint { font-size: 12px; }

/* ---------- Formulário ---------- */
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.contato-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .contato-grid { grid-template-columns: .9fr 1.1fr; } .contato-grid .form { margin-top: 0; } }

.cta-final { background: radial-gradient(60% 80% at 50% 100%, rgba(241, 82, 27, .18), transparent 70%); }
.cta-final .btn--lg { width: 100%; max-width: 440px; }
