/* =========================================================
   ARCANJO — Landing "Diagnóstico para o Município Seguro"
   Mesmo design system do site institucional (arcanjo.seg.br)
   ========================================================= */

:root {
  --navy-900: #060b18;
  --navy-850: #0a1122;
  --navy-800: #0d1730;
  --navy-700: #12203f;
  --blue: #2e90ff;
  --blue-bright: #4aa8ff;
  --blue-deep: #0f5ed6;
  --white: #ffffff;
  --text: #cdd6e6;
  --text-dim: #8fa0bd;
  --line: rgba(120, 160, 220, 0.16);
  --card-bg: rgba(16, 30, 60, 0.55);
  --card-brd: rgba(90, 140, 220, 0.22);
  --danger: #ff6b6b;
  --success: #35d07f;

  --grad-blue: linear-gradient(180deg, #6fbaff 0%, #2e90ff 55%, #0f5ed6 100%);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* O atributo [hidden] precisa vencer os display:flex/block declarados abaixo
   (é assim que o JS alterna entre o formulário e a tela de sucesso). */
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.grad {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-solid { color: var(--blue-bright); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.3s var(--ease); text-align: center;
}
.btn svg { flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; box-shadow: 0 8px 30px rgba(46, 144, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(46, 144, 255, 0.6); }
.btn-ghost {
  border-color: rgba(120, 170, 240, 0.45); color: var(--white); background: rgba(46, 144, 255, 0.06);
}
.btn-ghost:hover { border-color: var(--blue-bright); background: rgba(46, 144, 255, 0.15); transform: translateY(-2px); }
.btn-header { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--blue-bright); outline-offset: 3px;
}

/* ---------- Header ---------- */
.lp-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(6, 11, 24, 0); backdrop-filter: blur(0);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.lp-header.scrolled {
  background: rgba(6, 11, 24, 0.88); backdrop-filter: blur(14px); border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand-logo { height: 40px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 18% 40%, rgba(46, 144, 255, 0.20), transparent 65%),
    linear-gradient(180deg, rgba(6, 11, 24, 0.92) 0%, rgba(6, 11, 24, 0.72) 45%, var(--navy-900) 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-title, .hero-sub { overflow-wrap: break-word; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-bright);
  padding: 7px 14px; border: 1px solid rgba(74, 168, 255, 0.35); border-radius: 100px;
  background: rgba(46, 144, 255, 0.08); margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-head); font-weight: 800; line-height: 1.06;
  font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.02em; color: var(--white);
  margin-bottom: 20px;
}
.hero-title .line { display: block; }
.hero-sub { font-size: clamp(15px, 1.3vw, 17.5px); color: var(--text); max-width: 560px; margin-bottom: 26px; }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--text);
  padding: 9px 15px; border-radius: 100px;
  border: 1px solid var(--card-brd); background: rgba(16, 30, 60, 0.6);
}
.hero-badges b { color: var(--white); }
.hero-badges svg {
  width: 18px; height: 18px; flex: none; fill: none;
  stroke: var(--blue-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Card do formulário ---------- */
.form-card {
  background: linear-gradient(180deg, rgba(13, 23, 48, 0.94) 0%, rgba(10, 17, 34, 0.97) 100%);
  border: 1px solid var(--card-brd); border-radius: 18px; padding: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(74, 168, 255, 0.08);
  backdrop-filter: blur(8px);
}
/* o alvo dos links "#form" é o wrapper, não o card */
#form { scroll-margin-top: 90px; }
.form-card-head { margin-bottom: 22px; }
.form-card-head h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 23px; color: var(--white);
  letter-spacing: -0.01em; margin-bottom: 7px;
}
.form-card-head p { font-size: 14px; color: var(--text-dim); }

.lead-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
/* flex-grow só vale dentro de .field-row — como filho direto do form (coluna)
   o grow esticaria o campo verticalmente. */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: none; }
.field-row > .field { flex: 1 1 180px; }
.field-row > .field-grow { flex: 1 1 200px; }
.hidden-field { display: none !important; }
.field.hidden-field { display: none !important; }

.field > label {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim);
}
/* o label do consentimento é texto corrido, não rótulo de campo */
.field > label.checkbox {
  font-family: var(--font-body); font-size: 13px; font-weight: 400;
  letter-spacing: normal; text-transform: none;
}
.req { color: var(--blue-bright); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--white);
  background: rgba(6, 11, 24, 0.72); border: 1px solid var(--card-brd);
  border-radius: 10px; padding: 13px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa8ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  padding-right: 40px; cursor: pointer;
}
.field select:disabled { opacity: 0.55; cursor: not-allowed; }
.field input::placeholder { color: #6b7c99; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--blue); background: rgba(6, 11, 24, 0.95);
  box-shadow: 0 0 0 3px rgba(46, 144, 255, 0.18);
}
.field select option { background: var(--navy-800); color: var(--white); }

.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field-error { font-size: 12.5px; color: var(--danger); display: none; }
.field.invalid .field-error { display: block; }
.field-hint { font-size: 12.5px; color: var(--text-dim); }
.field-hint:empty { display: none; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* checkbox LGPD */
.field-check { margin-top: 2px; }
.checkbox { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox .box {
  flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 5px;
  border: 1px solid var(--card-brd); background: rgba(6, 11, 24, 0.72);
  position: relative; transition: all 0.2s var(--ease);
}
.checkbox .box::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: 0; transition: opacity 0.15s var(--ease);
}
.checkbox input:checked + .box { background: var(--blue); border-color: var(--blue); }
.checkbox input:checked + .box::after { opacity: 1; }
.checkbox input:focus-visible + .box { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.check-text { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.check-text a { color: var(--blue-bright); text-decoration: underline; }
.field-check.invalid .box { border-color: var(--danger); }

/* botão + spinner */
#submitBtn { position: relative; margin-top: 4px; }
.spinner {
  display: none; width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
#submitBtn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-foot { font-size: 12.5px; color: var(--text-dim); text-align: center; }
.form-alert {
  font-size: 14px; padding: 13px 15px; border-radius: 10px;
  background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffb3b3;
}

/* sucesso */
.form-success { text-align: center; padding: 14px 4px 6px; }
.success-icon {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(53, 208, 127, 0.12); border: 1px solid rgba(53, 208, 127, 0.45);
}
.success-icon svg {
  width: 34px; height: 34px; fill: none; stroke: var(--success);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.form-success h3 { font-family: var(--font-head); font-size: 22px; color: var(--white); margin-bottom: 10px; }
.form-success p { font-size: 14.5px; color: var(--text-dim); margin-bottom: 22px; }
.form-success b { color: var(--white); }
.success-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Seções ---------- */
.section { position: relative; padding: 96px 0; overflow: hidden; }
.section-dark { background: var(--navy-850); }
.section-bg { position: absolute; inset: 0; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.section-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy-850) 0%, rgba(10, 17, 34, 0.85) 40%, var(--navy-850) 100%);
}
.section .container { position: relative; z-index: 2; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.12; letter-spacing: -0.02em; color: var(--white); margin-bottom: 16px;
}
.section-lead { font-size: 16px; color: var(--text-dim); }

/* duas colunas */
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.two-col > * { min-width: 0; }
.panel {
  background: var(--card-bg); border: 1px solid var(--card-brd); border-radius: 16px; padding: 30px;
}
.panel-title { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--blue-bright); margin-bottom: 18px; }
.tick-list { list-style: none; display: flex; flex-direction: column; }
.tick-list li {
  position: relative; padding: 13px 0 13px 22px; font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.tick-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 12px rgba(46, 144, 255, 0.8);
}

.highlight-card {
  display: flex; align-items: center; gap: 20px; padding: 28px;
  border: 1px solid rgba(74, 168, 255, 0.4); border-radius: 16px;
  background: linear-gradient(135deg, rgba(46, 144, 255, 0.12) 0%, rgba(16, 30, 60, 0.6) 100%);
}
.highlight-card.wide { margin-top: 34px; }
.highlight-icon {
  flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(74, 168, 255, 0.5); background: rgba(6, 11, 24, 0.5);
}
.highlight-icon svg {
  width: 30px; height: 30px; fill: none; stroke: var(--blue-bright);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.highlight-card p { font-family: var(--font-head); font-size: 17px; font-weight: 500; color: var(--white); }

/* lista numerada "o que será avaliado" */
.steps-list { list-style: none; display: grid; gap: 0; max-width: 760px; }
.step-item {
  display: flex; align-items: center; gap: 18px; padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.step-item:last-child { border-bottom: 0; }
.step-icon {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(74, 168, 255, 0.45); background: rgba(6, 11, 24, 0.45);
  transition: all 0.3s var(--ease);
}
.step-item:hover .step-icon { border-color: var(--blue-bright); box-shadow: 0 0 28px rgba(46, 144, 255, 0.35); }
.step-icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--blue-bright);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--blue); }
.step-text { font-family: var(--font-head); font-size: 17px; font-weight: 500; color: var(--white); }

/* fluxo de etapas */
.flow {
  display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap;
  gap: 8px 4px; margin-top: 54px; padding-top: 40px; border-top: 1px solid var(--line);
}
.flow-step { width: 118px; text-align: center; }
.flow-icon {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(74, 168, 255, 0.45); background: rgba(6, 11, 24, 0.45);
}
.flow-icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--blue-bright);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.flow-step b {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
}
.flow-sep { color: var(--blue); font-size: 24px; line-height: 58px; }

/* cards */
.cards-grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; background: var(--card-bg); border: 1px solid var(--card-brd);
  border-radius: 16px; padding: 28px; transition: all 0.35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: 16px; opacity: 0;
  background: linear-gradient(135deg, rgba(46, 144, 255, 0.12), transparent 60%);
  transition: opacity 0.35s var(--ease); pointer-events: none;
}
.card:hover {
  transform: translateY(-6px); border-color: rgba(74, 168, 255, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(74, 168, 255, 0.25);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  border: 1px solid rgba(74, 168, 255, 0.35); background: rgba(46, 144, 255, 0.08); margin-bottom: 18px;
}
.card-icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--blue-bright);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--white); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-dim); }

/* faixa CTA */
.band {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 76px 0; text-align: center;
}
.band-title {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 3vw, 36px);
  line-height: 1.2; color: var(--white); letter-spacing: -0.01em; margin-bottom: 14px;
}
.band-sub { font-size: 16px; color: var(--text-dim); margin-bottom: 30px; }

/* footer */
.lp-footer { background: var(--navy-850); border-top: 1px solid var(--line); padding: 44px 0 96px; }
.footer-inner { display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 42px; height: auto; }
.footer-brand b { display: block; font-family: var(--font-head); font-size: 15px; letter-spacing: 0.14em; color: var(--white); }
.footer-brand span { font-size: 12.5px; color: var(--text-dim); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); transition: color 0.25s var(--ease); }
.footer-contact a:hover { color: var(--blue-bright); }
.footer-contact svg { fill: none; stroke: var(--blue-bright); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-legal { font-size: 12px; color: var(--text-dim); max-width: 700px; }

/* CTA fixo mobile */
.mobile-cta {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15px;
  text-align: center; padding: 15px; border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  transform: translateY(140%); transition: transform 0.35s var(--ease);
}
.mobile-cta.show { transform: translateY(0); }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards-grid .reveal, .steps-list .reveal { transition-delay: calc(var(--d, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
  .hero { min-height: auto; padding: 110px 0 60px; }
  /* minmax(0,1fr) e não 1fr: 1fr tem piso de min-content e o card do
     formulário empurraria a coluna para além da largura da viewport. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-sub { max-width: none; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .section { padding: 68px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .btn-header { display: none; }
  .mobile-cta { display: block; }
  .hero-actions .btn { width: 100%; }
  .form-card { padding: 22px 18px; }
  .field-row { gap: 16px; }
  .field, .field-grow { flex: 1 1 100%; }
  .flow-sep { display: none; }
  .flow { gap: 26px 18px; }
  .step-item { gap: 13px; padding: 15px 0; }
  .step-icon { width: 46px; height: 46px; }
  .step-icon svg { width: 22px; height: 22px; }
  .step-text { font-size: 15.5px; }
  .highlight-card { flex-direction: column; text-align: center; gap: 15px; padding: 24px; }
  .lp-footer { padding-bottom: 100px; }
}
