/* =========================================================
   BookZap comercial — folha única das três páginas.
   Ordem: tokens, base, componentes, blocos na ordem da página.
   Tudo dimensionado para 360px antes de crescer.
   ========================================================= */

:root {
  --blue: #0056FF;
  --blue-700: #0045CC;
  --blue-100: #DCE7FF;
  --blue-50: #EEF4FF;

  --green: #25D366;
  --green-600: #1DBF5A;
  --green-ink: #053D20;
  --green-50: #E8FBEF;
  --green-700: #0F7A40;

  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;

  --red-50: #FEF2F2;
  --red-700: #B91C1C;

  --wa-head: #008069;
  --wa-bg: #EFEAE2;
  --wa-out: #D9FDD3;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.05), 0 6px 16px rgba(17,24,39,.06);
  --shadow-lg: 0 24px 60px -24px rgba(0,40,130,.38);

  --container: 1080px;
}

/* ---------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.narrow { max-width: 700px; margin-inline: auto; }

.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; padding: 15px 24px;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; border: 0; border-radius: 14px; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
@media (min-width: 560px) { .btn { width: auto; } }
.btn-block { width: 100%; }
.btn-cta { background: var(--green); color: var(--green-ink); box-shadow: 0 12px 26px -12px rgba(37,211,102,.9); }
.btn-cta:hover { background: var(--green-600); transform: translateY(-2px); }
.btn-cta:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
/* 44px é o alvo mínimo confortável de toque; abaixo disso o dedo erra. */
.btn-sm { width: auto; min-height: 44px; padding: 10px 18px; font-size: .9375rem; border-radius: 999px; box-shadow: none; }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo {
  --logo-ink: #043F5A; --logo-bolt: #5CCE94;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1;
  text-decoration: none; color: var(--logo-ink);
}
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }

/* ---------------------------------------------------------- seção */
.section { padding: 52px 0; }
@media (min-width: 768px) { .section { padding: 76px 0; } }
.bg-soft { background: var(--bg-soft); }
.bg-ink { background: var(--ink); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-50); color: var(--blue);
  font-size: .8125rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.bg-ink .eyebrow { background: rgba(255,255,255,.1); color: #A7C4FF; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.75rem, 7.2vw, 2.5rem); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 1.0625rem; max-width: 48ch; }
.bg-ink .section-head p { color: #D1D5DB; }
@media (min-width: 768px) { .section-head { margin-bottom: 40px; } .section-head p { font-size: 1.1875rem; } }

/* ---------------------------------------------------------- hero */
.hero { padding: 32px 0 40px; }
@media (min-width: 900px) { .hero { padding: 60px 0 72px; } }
.hero h1 { font-size: clamp(2rem, 8.6vw, 3.25rem); font-weight: 800; letter-spacing: -.038em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { margin-top: 16px; font-size: 1.0625rem; color: var(--ink-2); max-width: 42ch; }
@media (min-width: 768px) { .hero-sub { font-size: 1.1875rem; margin-top: 20px; } }
.hero-actions { margin-top: 24px; display: grid; gap: 12px; }
@media (min-width: 560px) { .hero-actions { grid-auto-flow: column; justify-content: start; } }
.hero-trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }
.hero-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.hero-trust .icon { width: 20px; height: 20px; color: var(--green-700); margin-top: 2px; stroke-width: 2.6; }

/* ---------------------------------------------------------- troca de página */
.switch { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.switch p { font-size: .875rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.switch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .switch-list { grid-auto-flow: column; justify-content: start; } }
.switch-list a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line);
  font-size: .9375rem; font-weight: 700; text-decoration: none; color: var(--ink-2);
  transition: border-color .18s ease, color .18s ease;
}
.switch-list a:hover { border-color: var(--blue); color: var(--blue); }
.switch-list a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------------- telas do produto */
.screens { display: grid; gap: 32px; }
.screen { display: grid; grid-template-rows: 1fr auto; gap: 18px; justify-items: center; text-align: center; }
/* No desktop cada .screen vira subgrid de duas linhas (palco e legenda), então
   as três legendas começam na mesma altura — o notebook é bem mais baixo que os
   celulares, e sem isso cada coluna alinhava por conta própria. */
@media (min-width: 900px) {
  .screens { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 24px 24px; }
  @supports (grid-template-rows: subgrid) {
    .screen { grid-row: span 2; grid-template-rows: subgrid; row-gap: 18px; }
  }
}
.screen-stage { display: flex; align-items: center; justify-content: center; width: 100%; }
.screen-caption { max-width: 32ch; }
/* Classe própria em vez de `.screen-caption span`: o seletor de elemento vencia
   .screen-step por especificidade e o número saía escuro sobre o azul. */
.screen-step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: .875rem; margin-bottom: 8px; }
.screen-caption strong { display: block; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; }
.screen-note { display: block; margin-top: 5px; font-size: .9375rem; color: var(--ink-2); }

/* celular */
.phone {
  position: relative; width: min(268px, 76vw); aspect-ratio: 268 / 545; flex-shrink: 0;
  background: var(--ink); border-radius: 42px; padding: 9px; box-shadow: var(--shadow-lg);
}
@media (min-width: 420px) { .phone { width: 268px; } }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; background: var(--ink); border-radius: 20px; z-index: 5; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }

/* conversa do WhatsApp */
.wa-header { background: var(--wa-head); color: #fff; padding: 44px 13px 11px; display: flex; align-items: center; gap: 10px; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; background: #FCE7F3; color: #9D174D; display: grid; place-items: center; font-weight: 800; font-size: .72rem; }
.wa-name { font-weight: 600; font-size: .875rem; line-height: 1.2; }
.wa-status { font-size: .7rem; opacity: .85; }
.wa-body { flex: 1; background: var(--wa-bg); padding: 11px 9px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; text-align: left; }
.wa-date { align-self: center; background: #fff; color: #54656F; font-size: .66rem; font-weight: 600; padding: 3px 10px; border-radius: 8px; box-shadow: 0 1px .5px rgba(0,0,0,.1); }
.msg { max-width: 88%; padding: 7px 10px 17px; border-radius: 10px; font-size: .78rem; line-height: 1.4; position: relative; box-shadow: 0 1px .5px rgba(0,0,0,.13); color: #111B21; }
.msg time { position: absolute; right: 8px; bottom: 3px; font-size: .6rem; color: #667781; }
.msg-in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.msg-out { background: var(--wa-out); align-self: flex-end; border-top-right-radius: 2px; }
.msg-slots { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.msg-slots span { background: var(--blue-50); color: var(--blue); font-weight: 700; padding: 3px 8px; border-radius: 6px; font-size: .72rem; }
.msg-ok { font-weight: 700; color: #128C4A; }
.typing { display: none; align-self: flex-start; background: #fff; border-radius: 10px; padding: 10px 12px; gap: 4px; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.typing.is-shown { display: flex; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #9CA3AF; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.js [data-chat-step] { display: none; }
.js [data-chat-step].is-shown { display: block; animation: msgIn .35s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wa-input { background: #F0F2F5; padding: 9px 9px 16px; display: flex; gap: 8px; align-items: center; }
.wa-input div { flex: 1; background: #fff; border-radius: 20px; padding: 7px 13px; font-size: .72rem; color: #8696A0; text-align: left; }
.wa-input i { width: 32px; height: 32px; border-radius: 50%; background: var(--wa-head); flex-shrink: 0; }

/* tela de agendamento */
.app-screen { display: flex; flex-direction: column; height: 100%; background: #fff; text-align: left; }
.app-top { padding: 46px 15px 11px; border-bottom: 1px solid var(--line); }
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .84rem; }
.app-brand i { width: 25px; height: 25px; border-radius: 8px; background: #FCE7F3; color: #9D174D; font-size: .6rem; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.app-progress { margin-top: 9px; display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted); }
.app-bar { height: 4px; background: var(--line); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.app-bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.app-body { flex: 1; padding: 13px 15px; overflow: hidden; display: flex; flex-direction: column; gap: 7px; }
.app-title { font-weight: 800; font-size: .95rem; letter-spacing: -.02em; }
.app-label { font-size: .66rem; font-weight: 700; color: var(--muted); margin-top: 5px; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: .7rem; font-weight: 600; }
.chip.is-sel { border-color: var(--blue); background: var(--blue); color: #fff; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.day { border: 1.5px solid var(--line); border-radius: 10px; text-align: center; padding: 6px 0; font-size: .66rem; color: var(--muted); line-height: 1.25; }
.day b { display: block; font-size: .86rem; color: var(--ink); }
.day.is-sel { border-color: var(--blue); background: var(--blue); color: #fff; }
.day.is-sel b { color: #fff; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.slot { border: 1.5px solid var(--line); border-radius: 8px; text-align: center; padding: 7px 0; font-size: .72rem; font-weight: 600; }
.slot.is-off { color: #B8BDC6; text-decoration: line-through; background: var(--bg-soft); }
.slot.is-sel { border-color: var(--blue); background: var(--blue); color: #fff; }
.app-foot { padding: 11px 15px 20px; }
.app-btn { width: 100%; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; font-size: .84rem; padding: 12px; text-align: center; }

/* painel */
.laptop { width: 100%; max-width: 420px; }
.laptop-screen { background: #1F2937; border-radius: 14px 14px 0 0; padding: 9px 9px 0; box-shadow: var(--shadow-lg); }
.laptop-base { height: 12px; width: 108%; margin-left: -4%; background: linear-gradient(#D1D5DB, #9CA3AF); border-radius: 0 0 12px 12px; }
.dash { background: #F9FAFB; border-radius: 7px 7px 0 0; overflow: hidden; font-size: .72rem; color: var(--ink); padding: 12px; display: grid; gap: 9px; text-align: left; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dash-head strong { font-size: .84rem; }
.dash-head span { color: var(--muted); font-size: .68rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px; }
.kpi span { display: block; color: var(--muted); font-size: .62rem; line-height: 1.3; }
.kpi b { display: block; font-size: 1.05rem; letter-spacing: -.02em; margin-top: 2px; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
.dcard h4 { margin: 0 0 7px; font-size: .7rem; letter-spacing: 0; }
.cash-row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-2); font-size: .68rem; }
.cash-total { border-top: 1px solid var(--line); margin-top: 3px; padding-top: 6px; font-weight: 800; color: var(--ink); }

/* ---------------------------------------------------------- comparativo */
.vs-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vs-row { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.bg-ink .vs-row { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.vs-label { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bg-ink .vs-label { color: #9CA3AF; }
.vs-values { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs-cell { border-radius: var(--radius-sm); padding: 11px 12px; min-width: 0; }
.vs-cell > span { display: block; font-size: .75rem; font-weight: 800; }
.vs-cell > strong { display: block; margin-top: 3px; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.vs-cell > small { display: block; margin-top: 4px; font-size: .78rem; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 640px) {
  .vs-row { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 18px; padding: 16px 20px; }
  .vs-label { text-transform: none; letter-spacing: 0; font-size: .9375rem; color: var(--ink-2); }
  .bg-ink .vs-label { color: #D1D5DB; }
  .vs-values { margin-top: 0; }
  .vs-cell > strong { font-size: 1.1875rem; }
}
.vs-them { background: var(--red-50); }
.vs-them > span { color: var(--red-700); }
.vs-us { background: var(--green-50); }
.vs-us > span { color: var(--green-700); }

.prize { margin-top: 20px; border-radius: var(--radius); padding: 24px 20px; text-align: center; background: var(--blue); color: #fff; }
@media (min-width: 640px) { .prize { padding: 32px 28px; } }
.prize .prize-label { font-size: .9375rem; color: rgba(255,255,255,.78); }
.prize .prize-value { margin-top: 6px; font-size: clamp(2rem, 9.5vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: #fff; }
.prize .prize-value em { font-style: normal; color: #BBF7D0; }
.prize .prize-note { margin-top: 10px; color: rgba(255,255,255,.88); font-size: .9375rem; max-width: 44ch; margin-inline: auto; }
.prize .btn { margin-top: 20px; }

.source { margin-top: 20px; font-size: .8125rem; color: var(--muted); line-height: 1.55; }
.bg-ink .source { color: #9CA3AF; }
.bg-ink .source a { color: #D1D5DB; }

/* ---------------------------------------------------------- formulário */
.lead-card { background: #fff; border-radius: 22px; padding: 24px 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
@media (min-width: 640px) { .lead-card { padding: 32px; } }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink);
  font-size: 1rem; /* 16px evita o zoom automático do iOS ao focar */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.field input[aria-invalid="true"] { border-color: var(--red-700); }
.field-error { display: none; margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--red-700); }
.field input[aria-invalid="true"] ~ .field-error { display: block; }
.field-hint { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; font-size: .8125rem; color: var(--muted); line-height: 1.5; text-align: center; }
.form-alt { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: .9375rem; color: var(--ink-2); }
.form-alt a { font-weight: 700; color: var(--green-700); }
.form-status { margin-top: 14px; border-radius: 13px; padding: 12px 14px; font-size: .9375rem; font-weight: 600; display: none; }
.form-status.is-error { display: block; background: var(--red-50); color: var(--red-700); }
.lead-done { display: none; text-align: center; padding: 12px 0; }
.lead-done.is-shown { display: block; }
.lead-done .done-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; margin: 0 auto 14px; }
.lead-done .done-icon .icon { width: 34px; height: 34px; stroke-width: 2.6; }
.lead-done h3 { font-size: 1.375rem; font-weight: 800; }
.lead-done p { margin-top: 10px; color: var(--ink-2); max-width: 36ch; margin-inline: auto; }
.is-sending { opacity: .6; pointer-events: none; }

/* ---------------------------------------------------------- rodapé e CTA fixo */
.site-footer { background: var(--ink); color: #9CA3AF; padding: 28px 0 96px; font-size: .875rem; }
@media (min-width: 768px) { .site-footer { padding-bottom: 28px; } }
.footer-inner { display: grid; gap: 16px; justify-items: center; text-align: center; }
.site-footer .logo { --logo-ink: #FFFFFF; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.footer-links a { color: #D1D5DB; text-decoration: none; }
.footer-links a:hover { color: #fff; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform .3s ease; }
.sticky-cta .btn { box-shadow: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------------------------------------------------------- fade-in */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.notfound h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 800; }
.notfound p { margin-top: 12px; color: var(--ink-2); }
.notfound .switch-list { margin-top: 24px; justify-content: center; }
