/* ==========================================================
   Velo Crédito: design system
   Azul marinho #0F172A | Verde esmeralda #10B981 | Plus Jakarta Sans
   ========================================================== */
:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --navy-3: #334155;
  --emerald: #10B981;
  --emerald-hover: #34D399;
  --emerald-deep: #047857;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --white: #FFFFFF;
  --danger: #B91C1C;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lift: 0 24px 60px -24px rgba(15, 23, 42, .35);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 780px; }

:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--emerald); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--emerald); color: var(--navy); box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .7); }
.btn-primary:hover { background: var(--emerald-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: var(--gray-100); color: var(--navy); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-whatsapp { background: #25D366; color: #052e16; }
.btn-whatsapp:hover { background: #4ADE80; transform: translateY(-1px); }
.btn-whatsapp svg { width: 22px; height: 22px; fill: currentColor; }
.btn-sm { padding: 10px 18px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(15, 23, 42, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 26px; }
.nav ul a { color: #E2E8F0; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.nav ul a:hover { color: var(--white); border-bottom-color: var(--emerald); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 56px) 0 120px;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(16, 185, 129, .10), transparent 60%),
    linear-gradient(180deg, var(--gray-50), var(--white));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { max-width: 14ch; }
.lead { font-size: 1.2rem; color: var(--navy-3); max-width: 46ch; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 28px 0 18px; }
.badges li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; }
.badges svg { width: 28px; height: 28px; fill: none; stroke: var(--emerald-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.legal-note { font-size: .85rem; color: var(--gray-600); max-width: 52ch; }
.hero-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3; background: var(--navy); border: 1px solid var(--gray-200); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Glass / Simulador ---------- */
.simulator-section { margin-top: -84px; position: relative; z-index: 2; padding-bottom: 24px; }
.glass {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.sim-card { padding: 32px; max-width: 920px; margin-inline: auto; background-image: linear-gradient(135deg, rgba(219, 234, 254, .55), rgba(255, 255, 255, .7)); }
.sim-card h2 { font-size: 1.5rem; margin-bottom: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; background: var(--white); margin-bottom: 28px; }
.tab { font: inherit; font-weight: 700; font-size: .95rem; padding: 13px 10px; border: 0; background: transparent; color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s; }
.tab.is-active { background: var(--navy); color: var(--white); }
.tab:not(.is-active):hover { background: var(--gray-100); }
.sim-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.slider-block + .slider-block { margin-top: 26px; }
.slider-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.slider-head label { font-weight: 700; }
.pill { background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; padding: 6px 14px; font-weight: 800; min-width: 96px; text-align: center; }
.slider-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--gray-600); margin-top: 8px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--emerald) var(--p, 0%), var(--gray-200) var(--p, 0%));
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 4px solid var(--emerald); box-shadow: 0 3px 10px rgba(15, 23, 42, .3); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--emerald); box-shadow: 0 3px 10px rgba(15, 23, 42, .3); }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }

.sim-result { background: var(--white); border-radius: var(--radius-md); padding: 24px; text-align: center; border: 1px solid var(--gray-200); box-shadow: var(--shadow-soft); }
.result-label { margin: 0; font-weight: 600; color: var(--gray-600); }
.result-value { margin: 4px 0; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.result-sub { font-size: .9rem; color: var(--gray-600); margin-bottom: 18px; }
.sim-disclaimer { margin: 22px 0 0; font-size: .82rem; color: var(--gray-600); }

/* ---------- Seções ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--gray-100); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2 { color: var(--white); }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.line-card h2 { font-size: 1.6rem; }
.line-card p { color: var(--navy-3); }
.specs { margin: 20px 0 24px; display: grid; gap: 10px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
.specs dt { color: var(--gray-600); }
.specs dd { margin: 0; font-weight: 800; }

/* ---------- Solicitação ---------- */
.request-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.request-intro p { color: var(--navy-3); max-width: 46ch; }
.steps { list-style: none; counter-reset: s; margin: 28px 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--navy-3); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.steps strong { display: block; color: var(--navy); }
.trust-line { font-weight: 700; color: var(--emerald-deep) !important; }

.form-card h3 { margin-bottom: 6px; }
.form-summary { font-size: .92rem; color: var(--gray-600); margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; font: inherit; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-400); background: var(--white); color: var(--navy);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
.form-error { margin-bottom: 12px; font-weight: 600; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--emerald-deep); }
.check label { font-weight: 500; font-size: .88rem; color: var(--navy-3); margin: 0; }
.check .error { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status-card { text-align: center; padding: 48px 32px; }
.spinner { width: 48px; height: 48px; margin: 0 auto 20px; border: 5px solid var(--gray-200); border-top-color: var(--emerald); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.check-list { list-style: none; display: inline-grid; gap: 12px; text-align: left; margin-top: 12px; }
.check-list li { display: flex; align-items: center; gap: 10px; color: var(--gray-600); font-weight: 600; transition: color .2s; }
.check-list li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gray-400); flex: none; transition: all .2s; }
.check-list li.done { color: var(--navy); }
.check-list li.done::before { background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat; border-color: var(--emerald); }

.result-card { text-align: center; }
.result-card[hidden], .status-card[hidden], .form-card[hidden] { display: none; }
.result-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--emerald); display: grid; place-items: center; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.result-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-text { color: var(--navy-3); }
.protocol-box { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; background: var(--navy); border-radius: var(--radius-md); padding: 18px 20px; margin: 8px 0 20px; }
.protocol { color: var(--emerald-hover); font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 800; letter-spacing: .03em; word-break: break-all; }
.protocol-box .btn-ghost { background: rgba(255, 255, 255, .12); color: var(--white); }
.protocol-box .btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.result-fine { margin: 18px 0 0; font-size: .82rem; color: var(--gray-600); }
.demo-banner { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #FEF3C7; color: #78350F; font-size: .85rem; font-weight: 600; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-text { font-size: 1.12rem; color: var(--navy-3); max-width: 58ch; }
.facts { list-style: none; display: grid; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); background: var(--gray-50); }
.facts svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--emerald-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.facts strong { display: block; }
.facts span { font-size: .9rem; color: var(--gray-600); }

/* ---------- Segurança ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0; }
.glass-dark {
  padding: 28px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.glass-dark svg { width: 38px; height: 38px; margin-bottom: 16px; fill: none; stroke: var(--emerald); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.glass-dark h3 { color: var(--white); }
.glass-dark p { color: #CBD5E1; margin: 0; }
.warning { display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border-radius: var(--radius-md); background: #FEF3C7; color: #451A03; border-left: 6px solid #F59E0B; }
.warning svg { width: 34px; height: 34px; flex: none; fill: none; stroke: #B45309; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.warning strong { font-size: 1.08rem; }
.warning p { margin: 6px 0 0; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--gray-200); padding: 18px 0; }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--emerald-deep); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--navy-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #CBD5E1; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr .8fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--emerald-hover); text-decoration: underline; }
.footer-small { font-size: .88rem; margin-top: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp flutuante & toast ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; border: 0; background: #25D366; color: #052e16; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 120; background: var(--navy); color: var(--white); padding: 14px 20px; border-radius: 12px; max-width: min(92vw, 460px); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lift); text-align: center; }
.toast[hidden] { display: none; }

/* ---------- Páginas legais ---------- */
.legal-page { padding: calc(var(--header-h) + 48px) 0 80px; }
.legal-page h1 { font-size: 2.2rem; }
.legal-page h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal-page p, .legal-page li { color: var(--navy-3); }
.legal-page ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal-todo { background: #FEF3C7; color: #78350F; padding: 12px 16px; border-radius: 10px; font-weight: 600; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .request-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy h1 { max-width: 18ch; }
  .sim-body { grid-template-columns: 1fr; gap: 28px; }
  .sec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--navy); padding: 16px 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav .btn { margin-top: 10px; }
}
@media (max-width: 680px) {
  .two-col { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .sim-card { padding: 22px 18px; }
  .tab { font-size: .82rem; }
  .card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Oculta o selo da Netlify */
#netlify-badge {
  display: none !important;
}
