/* ==========================================================================
   CréditoParaImportação.com.br — Design System
   Fontes: system stack (zero requisições externas = LCP rápido)
   ========================================================================== */

:root {
  --navy: #0a2440;
  --navy-700: #123457;
  --navy-500: #1e4a75;
  --accent: #10b981;
  --accent-600: #059669;
  --accent-700: #047857;
  --accent-050: #ecfdf5;
  --blue: #2563eb;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --bg-deep: #0a2440;
  --text: #15263a;
  --muted: #586a7d;
  --border: #e3e9f0;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 36, 64, .06), 0 2px 8px rgba(10, 36, 64, .04);
  --shadow-md: 0 8px 30px rgba(10, 36, 64, .08);
  --shadow-lg: 0 24px 60px rgba(10, 36, 64, .14);

  --wrap: 1160px;
  --gap: clamp(1rem, 2vw, 1.75rem);
  --sec: clamp(3.5rem, 7vw, 6.5rem);

  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--f-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.sec { padding-block: var(--sec); }
.sec--alt { background: var(--bg-alt); }
.sec--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.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;
}
.skip-link {
  position: absolute; left: .5rem; top: -3rem; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: .5rem; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { line-height: 1.15; color: var(--navy); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h4 { font-size: 1.08rem; }
p { max-width: 68ch; }
.lead { font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem); color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-700);
  background: var(--accent-050); border: 1px solid #c7f0dd;
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head p { margin-top: 1rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent-600); color: #fff; box-shadow: 0 6px 18px rgba(5, 150, 105, .28); }
.btn--primary:hover { background: var(--accent-700); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy-500); background: #fff; }
.btn--wa { background: #25d366; color: #073b1f; }
.btn--wa:hover { background: #1fbf5b; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.brand__name { font-size: 1.05rem; line-height: 1; }
.brand__tag { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-700); margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.nav__list a {
  display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--text);
  font-weight: 500; font-size: .95rem;
}
.nav__list a:hover, .nav__list a[aria-current="page"] { background: var(--bg-alt); color: var(--navy); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: .6rem; margin-left: .6rem; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  border-radius: 10px; padding: .5rem .6rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; background: #fff; border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] { max-height: 80vh; overflow: auto; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 1rem; gap: .15rem; }
  .nav__list a { padding: .8rem .6rem; border-radius: 10px; }
  .nav__cta { flex-direction: column; align-items: stretch; margin: .5rem 1rem 1.25rem; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(16,185,129,.28), transparent 60%),
    linear-gradient(160deg, #0a2440 0%, #0d3057 55%, #0a2440 100%);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .6; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1.15fr .85fr; align-items: center; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #6ee7b7; }
.hero .lead { color: #c7d5e5; }
.hero .eyebrow { background: rgba(16,185,129,.14); border-color: rgba(110,231,183,.4); color: #6ee7b7; }
.hero__ctas { margin-top: 1.75rem; }
.hero__trust { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem; color: #9fb2c6; font-size: .9rem; }
.hero__trust li { list-style: none; display: flex; align-items: center; gap: .45rem; }
.hero__panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 1.5rem; backdrop-filter: blur(6px);
}
.hero__panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { background: rgba(255,255,255,.05); border-radius: var(--radius-sm); padding: .9rem; }
.stat b { display: block; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.stat span { font-size: .8rem; color: #9fb2c6; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 1.9rem); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe0d6; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-050); color: var(--accent-700); margin-bottom: 1rem;
}
.card--feature { border-top: 3px solid var(--accent); }
.card__tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-700); }

.card--link { display: flex; flex-direction: column; height: 100%; }
.card--link .more { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--accent-700); }

/* ---------- Comparativo antes/depois ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }
.compare__col { border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--border); }
.compare__col--bad { background: #fff8f8; border-color: #f3d6d6; }
.compare__col--good { background: var(--accent-050); border-color: #bfecda; }
.compare__col h3 { margin-bottom: 1rem; }
.compare__col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.compare__col li { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); }
.compare__col--good li { color: var(--text); }
.compare__col li svg { flex: none; margin-top: .25rem; }

/* ---------- Números ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 780px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stats-band .stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.stats-band .stat b { color: var(--navy); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.stats-band .stat span { color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 3rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 860px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  overflow: hidden;
}
.faq details[open] { border-color: #cfe0d6; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-600); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .faq__body { padding: 0 1.3rem 1.3rem; color: var(--muted); }
.faq .faq__body p { margin-bottom: .6rem; }

/* ---------- Prova social ---------- */
.quote { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.quote blockquote { font-size: 1.06rem; color: var(--navy-700); margin-bottom: 1rem; }
.quote blockquote::before { content: "“"; }
.quote blockquote::after { content: "”"; }
.quote figcaption { font-size: .92rem; color: var(--muted); }
.quote figcaption b { color: var(--navy); }

.logos { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: center; }
.logos span { font-weight: 700; color: #95a5b6; font-size: 1.05rem; letter-spacing: -.02em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, #0a2440, #124069);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem);
  display: grid; gap: 2rem; grid-template-columns: 1.2fr .8fr; align-items: center;
}
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d5e5; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-600); box-shadow: 0 0 0 3px rgba(16,185,129,.15); outline: none;
}
.field .hint { font-size: .8rem; color: var(--muted); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.form-consent input { margin-top: .3rem; }
.form-note { font-size: .82rem; color: var(--muted); }
.form [aria-live] { font-size: .9rem; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list svg { flex: none; color: var(--accent-600); margin-top: .2rem; }

/* ---------- Blog ---------- */
.posts { display: grid; gap: var(--gap); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__media { aspect-ratio: 16/9; background: linear-gradient(135deg, #0a2440, #1e4a75); display: grid; place-items: center; color: #6ee7b7; }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; height: 100%; }
.post-card__meta { font-size: .8rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; }
.post-card h3 { font-size: 1.16rem; }
.post-card h3 a { color: var(--navy); }
.post-card .more { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--accent-700); }

/* ---------- Artigo ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article__header { margin-bottom: 2rem; }
.article__header .post-card__meta { margin-bottom: .9rem; }
.article__body { font-size: 1.08rem; }
.article__body h2 { margin: 2.4rem 0 .9rem; }
.article__body h3 { margin: 1.8rem 0 .7rem; }
.article__body p, .article__body ul, .article__body ol { margin-bottom: 1.1rem; color: #2a3b4d; }
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body li { margin-bottom: .45rem; }
.article__body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.article__body th, .article__body td { border: 1px solid var(--border); padding: .7rem .85rem; text-align: left; }
.article__body th { background: var(--bg-alt); color: var(--navy); }
.article__body blockquote {
  border-left: 4px solid var(--accent); background: var(--accent-050);
  padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0; color: var(--navy-700);
}
.article__body .callout {
  background: var(--bg-alt); border: 1px solid var(--border); border-left: 4px solid var(--navy-500);
  padding: 1.1rem 1.3rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0;
}
.toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .7rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--navy-700); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: #b8c4d1; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #a9bccf; padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; font-size: .92rem; }
.site-footer h2, .site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #c7d5e5; }
.site-footer a:hover { color: #fff; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; line-height: 1.6; color: #7f93a8; }
.footer-legal p { max-width: none; margin-bottom: .6rem; }
.social { display: flex; gap: .75rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); }
.social a:hover { background: rgba(255,255,255,.16); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25d366; color: #073b1f; font-weight: 700;
  padding: .8rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-lg);
}
.wa-float:hover { text-decoration: none; transform: translateY(-2px); }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: .85rem; border-radius: 50%; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.muted { color: var(--muted); }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--navy-700); background: var(--bg-alt); border: 1px solid var(--border); padding: .25rem .7rem; border-radius: 999px; }
.prose-note { font-size: .8rem; color: var(--muted); }
