/* VendFlow · landing de validação */

@font-face { font-family: Archivo; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/archivo-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 800; font-style: normal; font-display: swap; src: url(/assets/fonts/archivo-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --teal: #0f5e5c;
  --teal-dark: #0b4c4a;
  --soft: #f2f8f7;
  --border: #dde8e7;
  --border-2: #cfe3e0;
  --text: #10262a;
  --muted: #4d6366;
  --coral: #d4552f;      /* números dos passos (texto grande) */
  --coral-btn: #c44c28;  /* botões: branco sobre ele = 4,76:1 */
  --coral-btn-hover: #a83f20;
  --wa: #25d366;
  --wa-icon: #1faa52;
  --wa-bg: #e8fbef;
  --wa-border: #9fe6bb;
  --wa-text: #0b2e1a;
  --input-border: #6b8487;
  --error: #b42318;
  --radius: 16px;
  --font-title: Archivo, Inter, system-ui, sans-serif;
  --font-text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font-text); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
html:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; }
h1, h2 { font-family: var(--font-title); font-weight: 800; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.band :focus-visible, .cookie :focus-visible { outline-color: #fff; }
.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-wa { stroke: var(--wa-icon); }

.wrap { max-width: 1120px; margin: 0 auto; }
.wrap-narrow { max-width: 720px; margin: 0 auto; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sub { color: var(--muted); max-width: 600px; text-wrap: pretty; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-wa { background: var(--wa); color: var(--wa-text); font-size: 15px; }
.btn-coral { background: var(--coral-btn); color: #fff; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 18px; gap: 10px; }
.btn-block { width: 100%; min-height: 52px; font-size: 17px; }
.btn-outline { background: #fff; color: var(--teal-dark); border: 2px solid var(--teal); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Cabeçalho */
.site-header { max-width: 1120px; margin: 0 auto; padding: 20px 24px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 800; font-size: 22px; color: var(--teal); }

/* Hero */
.hero { max-width: 860px; margin: 0 auto; padding: 56px 24px 72px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: -.01em; }
.hero .lead { max-width: 640px; font-size: 19px; color: var(--muted); text-wrap: pretty; }
.hero-note { font-size: 15px; color: var(--muted); }

/* Seções */
section h2 { font-size: 40px; line-height: 1.1; }
.reach { background: var(--soft); padding: 72px 24px; }
.reach .center { gap: 14px; }
.reach .sub { margin-bottom: 32px; }
.how { padding: 80px 24px; }
.how .center { gap: 10px; margin-bottom: 40px; }
.final { padding: 88px 24px 72px; }
.final .center { gap: 20px; }

/* Diagrama: mesmas medidas e setas do design de referência, mas fluido (sem zoom) */
.dflow { --g: 20px; width: 100%; max-width: 600px; display: flex; flex-direction: column; align-items: center; }
.d-defs { position: absolute; }
.d-arrow { display: block; flex: none; overflow: visible; }
.d-arrow path { fill: none; stroke-width: 2; stroke-linecap: round; }
.d-arrow .d-green { stroke: #25d366; }
.d-arrow .d-gray { stroke: #7fa9a6; }
.d-stem { display: block; width: 2px; height: 48px; background: #7fa9a6; flex: none; }
.d-node { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius); font-weight: 600; font-size: 15px; line-height: 1.35; }
.d-wa, .d-ad { width: 260px; max-width: 100%; min-height: 72px; padding: 8px 14px; text-align: left; }
.d-wa { background: var(--wa-bg); border: 1px solid var(--wa-border); color: var(--wa-text); }
.d-ad { background: #e3f2f0; border: 1px solid #9fd0c9; color: var(--teal-dark); }
.d-ad .ico { stroke: var(--teal); }
.d-brand { width: 200px; min-height: 80px; padding: 12px 8px; flex-wrap: wrap; column-gap: 10px; row-gap: 4px; text-align: center; background: var(--teal); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 22px; }
.d-brand-sub { flex-basis: 100%; font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 1.35; color: #fff; }
.d-nets { width: 100%; }
.d-nets ul { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--g); }
/* barras horizontais: do centro do 1º card ao centro do 5º */
.d-nets ul::before, .d-nets ul::after { content: ""; position: absolute; left: calc((100% - 4 * var(--g)) / 10 - 1px); right: calc((100% - 4 * var(--g)) / 10 - 1px); height: 2px; background: #7fa9a6; }
.d-nets ul::before { top: 0; }
.d-nets ul::after { bottom: 0; }
.d-nets li { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.d-net { width: 100%; min-height: 64px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #fff; border: 1px solid var(--border-2); border-radius: 12px; font-weight: 600; font-size: 14px; line-height: 1.2; text-align: center; }
.d-logo { width: 22px; height: 22px; overflow: visible; }

/* Como funciona */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.step { flex: 1 1 190px; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-n { font-family: var(--font-title); font-weight: 800; font-size: 34px; line-height: 1; color: var(--coral); }
.step-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--wa-bg); display: inline-flex; align-items: center; justify-content: center; }
.step p { font-weight: 600; font-size: 18px; line-height: 1.3; }

/* Faixa */
.band { background: var(--teal); color: #f2fbfa; padding: 80px 24px; }
.band-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.band-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.band-text p { max-width: 560px; font-size: 18px; color: #cfe9e6; }
.checks { flex: 1 1 300px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.checks svg { flex: none; fill: none; stroke: #ffb39f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--border); padding: 24px 24px 32px; text-align: center; font-size: 13px; color: #5b6f72; display: flex; flex-direction: column; gap: 4px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 14px; }

/* Modal */
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--radius); color: var(--text); background: #fff; box-shadow: 0 24px 64px rgba(16, 38, 42, .3); overflow: hidden; }
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(16, 38, 42, .55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--border); flex: none; }
.modal-head h2 { font-size: 22px; line-height: 1.2; }
.btn-close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-close svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.modal-body { padding: 20px 24px 28px; overflow-y: auto; overscroll-behavior: contain; }

form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; line-height: 1.35; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 10px;
  background: #fff; color: var(--text); font: inherit; font-size: 16px;
}
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310262a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input::placeholder { color: #6b7f82; }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.optional { font-weight: 400; color: var(--muted); }
.modal-head h2:focus { outline: none; }
.field-error { color: var(--error); font-size: 14px; line-height: 1.4; }
.field-error:empty { display: none; }
.field-check { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); }
.field-check label { font-weight: 400; font-size: 14px; line-height: 1.5; }
.field-check .field-error { grid-column: 2; }
.modal-intro { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; background: var(--wa-bg); border: 1px solid var(--wa-border); color: var(--wa-text); font-size: 15px; line-height: 1.5; }
.form-alert { padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #7a1a10; font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }

.success { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 32px 0 8px; }
.success svg { fill: none; stroke: var(--wa-icon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success-title { font-family: var(--font-title); font-weight: 800; font-size: 26px; line-height: 1.2; }
.success-title:focus { outline: none; }
.success .btn { margin-top: 12px; min-width: 160px; }

/* Aviso de cookies */
.cookie { position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(calc(100% - 24px), 640px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; background: var(--text); color: #f2fbfa; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(16, 38, 42, .28); font-size: 14px; line-height: 1.5; }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 280px; }
.cookie a { color: #ffb39f; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.btn-cookie-yes { background: #ffb39f; color: var(--text); font-size: 15px; }
.btn-cookie-no { background: transparent; color: #f2fbfa; border: 1px solid #9fb3b5; font-size: 15px; }

/* Hover só em aparelhos com mouse: no toque, o :hover "gruda" no último ponto tocado
   (ex.: o botão Fechar aparecia destacado logo ao abrir o modal). */
@media (hover: hover) {
  .btn:hover { filter: brightness(.94); }
  .btn-coral:hover { filter: none; background: var(--coral-btn-hover); }
  .btn-close:hover { background: var(--soft); }
}

/* Celular */
@media (max-width: 700px) {
  .hero h1 { font-size: 40px; }
  section h2 { font-size: 30px; }
  .hero { padding: 24px 16px 48px; gap: 18px; }
  .modal-head h2 { font-size: 20px; }
  .cookie { bottom: 8px; padding: 10px 12px; gap: 8px; font-size: 13px; }
  .cookie p { flex-basis: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .reach, .how, .band { padding: 56px 16px; }
  .final { padding: 64px 16px 56px; }
  .site-header { padding: 16px; }
  .modal { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border-radius: 0; }
  .modal-body { padding: 16px 16px 28px; }
  .modal-head { padding: 10px 8px 10px 16px; }
}


@media (max-width: 560px) {
  .dflow { --g: 8px; }
  .d-net { min-height: 52px; }
  .d-logo { width: 26px; height: 26px; }
  .d-net-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 400px) {
  .brand { font-size: 20px; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .btn-wa { font-size: 13px; padding: 0 12px; gap: 6px; white-space: nowrap; }
  .btn-wa .ico { display: none; }
  .site-header { gap: 8px; }
  .hero .btn-lg, .final .btn-lg { width: 100%; padding: 0 16px; font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in .18s ease-out; }
  @keyframes modal-in { from { opacity: 0; transform: translateY(8px); } }
}
