/* ════════════════════════════════════════════════
   SANITIZE — landing v2 (lead capture)
   Carregar com: <link rel="stylesheet" href="sanitize.css">
   Mobile-first. Sem dark mode.
════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}
[id] { scroll-margin-top: 80px; }

/* ── TOKENS ── */
:root {
  --white: #FFFFFF;
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --surface-soft: #EEF6FF;
  --border: #DDE6F0;
  --border-strong: #B8CEDE;

  --sky-50:  #EFF8FF;
  --sky-100: #DBEEFF;
  --sky-400: #38BDF8;
  --sky-500: #0EA5E9;
  --sky-600: #0284C7;
  --sky-700: #0369A1;

  --mint-50:  #EDFDF6;
  --mint-100: #D1FAE5;
  --mint-500: #10B981;
  --mint-600: #059669;
  --mint-700: #047857;

  --danger-50:  #FEF2F2;
  --danger-100: #FEE2E2;
  --danger-500: #EF4444;
  --danger-600: #DC2626;

  --text:  #0A1628;
  --text2: #3D5166;
  --muted: #8EA4B8;

  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(10,22,40,0.06);
  --shadow-md: 0 6px 24px rgba(10,22,40,0.09);
  --shadow-lg: 0 20px 48px rgba(14,165,233,0.16);
  --shadow-sky: 0 6px 24px rgba(14,165,233,0.25);
}

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
}
[data-reveal].visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.10s; }
[data-reveal][data-delay="2"] { transition-delay: 0.20s; }
[data-reveal][data-delay="3"] { transition-delay: 0.30s; }
[data-reveal][data-delay="4"] { transition-delay: 0.40s; }
[data-reveal][data-delay="5"] { transition-delay: 0.50s; }

/* ── LAYOUT ── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Container do sprite SVG — escondido mas acessível para referências via <use> */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn--primary {
  background: var(--sky-500);
  color: var(--white);
  box-shadow: var(--shadow-sky);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.btn--primary:hover:not(:disabled) {
  background: var(--sky-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14,165,233,0.35);
}
.btn--primary:active:not(:disabled) { transform: translateY(0); }
.btn--primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn--sm  { padding: 8px 16px; font-size: 13px; }
.btn--lg  { padding: 16px 32px; font-size: 16px; border-radius: 12px; }

/* ── TOP BAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.topbar__brand .brand-icon { width: 32px; height: 32px; flex-shrink: 0; }

/* ── HERO ── */
.hero {
  padding: 72px 0 80px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14,165,233,0.065) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(16,185,129,0.10) 0%, transparent 68%);
  pointer-events: none;
}
.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero__logo-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__logo-wrap::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.14) 0%, transparent 72%);
}
.hero__logo-wrap svg {
  width: 84px;
  height: 84px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(14,165,233,0.32));
}
.hero__slogan {
  font-size: clamp(2.4rem, 7.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero__slogan em { color: var(--mint-500); font-style: normal; }
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text2);
  max-width: 590px;
  margin: 0 auto 38px;
  line-height: 1.72;
}

/* ── FRASES-CHAVE ── */
.phrases {
  padding: 80px 0;
  background: var(--bg);
}
.phrases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.phrase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}
.phrase:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.phrase::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.phrase--sky::before    { background: linear-gradient(90deg, var(--sky-500), var(--sky-400)); }
.phrase--danger::before { background: var(--danger-500); }
.phrase--mint::before   { background: linear-gradient(90deg, var(--mint-500), var(--mint-600)); }

.phrase__ghost {
  position: absolute;
  right: -8px;
  bottom: -20px;
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  opacity: 0.055;
}
.phrase--sky    .phrase__ghost { color: var(--sky-600); }
.phrase--danger .phrase__ghost { color: var(--danger-500); }
.phrase--mint   .phrase__ghost { color: var(--mint-600); }

.phrase__num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 3px 11px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.phrase--sky    .phrase__num { background: var(--sky-50);    color: var(--sky-700); }
.phrase--danger .phrase__num { background: var(--danger-50); color: var(--danger-600); }
.phrase--mint   .phrase__num { background: var(--mint-50);   color: var(--mint-700); }

.phrase__text {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

/* ── SECTION TITLES ── */
.section__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky-600);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 36px;
  max-width: 600px;
}

/* ── BENEFÍCIOS ── */
.benefits {
  padding: 80px 0;
  background: var(--surface);
}
.benefits__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.benefit {
  background: var(--surface-soft);
  border: 1px solid var(--sky-100);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.benefit:hover {
  transform: translateY(-2px);
  border-color: var(--sky-400);
  box-shadow: var(--shadow-md);
}
.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.benefit__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.benefit__body {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── FORMULÁRIO ── */
.lead-form {
  padding: 88px 0;
  background: var(--bg);
  position: relative;
}
.lead-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--sky-400) 30%, var(--mint-500) 70%, transparent 95%);
}
.lead-form__box {
  max-width: 580px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
}
.lead-form__title {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
.lead-form__sub {
  font-size: 0.95rem;
  color: var(--text2);
  margin-bottom: 30px;
}

.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.form__input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
select.form__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233D5166' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form__input:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.14);
  background: var(--sky-50);
}
.form__input::placeholder { color: var(--muted); }
.form__input:invalid:not(:placeholder-shown) { border-color: var(--danger-500); }

.form__submit { margin-top: 6px; width: 100%; }

.form__error {
  background: var(--danger-50);
  border: 1px solid var(--danger-100);
  color: var(--danger-600);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
}

.form__success { text-align: center; padding: 16px 0; }
.form__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--mint-700);
  font-size: 34px;
  font-weight: 700;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 8px var(--mint-50);
}
.form__success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.form__success-body { font-size: 0.95rem; color: var(--text2); }

/* ── FOOTER ── */
.footer {
  background: var(--text);
  padding: 44px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
}
.footer__brand .brand-icon { width: 28px; height: 28px; opacity: 0.92; }
.footer__tagline { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer__copy    { font-size: 12px; color: rgba(255,255,255,0.28); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phrase:hover, .benefit:hover, .btn:hover { transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ════════ RESPONSIVE ════════ */

/* sm: ≥ 640px */
@media (min-width: 640px) {
  .hero { padding: 96px 0 104px; }
  .phrases { padding: 96px 0; }
  .benefits { padding: 96px 0; }
  .lead-form { padding: 100px 0; }
  .lead-form__box { padding: 48px 44px; }
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* lg: ≥ 1024px */
@media (min-width: 1024px) {
  .hero { padding: 120px 0 108px; }
  .phrases__grid { grid-template-columns: repeat(3, 1fr); }
  .benefits__list { grid-template-columns: repeat(2, 1fr); }
  .lead-form__box { padding: 56px 52px; }
}
