/* ================================================================
   kasabr.com — design system compartilhado
   Paleta: #1D9E75 (verde principal) · #ffffff · #f8f8f6 · #e8e8e5
   ================================================================ */

/* ── RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8f8f6;
}

a { color: #1D9E75; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── ACESSIBILIDADE ────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #1D9E75; color: #fff; padding: 12px 18px;
  z-index: 1000; text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.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; }

/* ── HEADER PADRÃO (páginas de artigo e ferramentas) ───────────── */
header {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e5;
  padding: 28px 24px 20px;
  text-align: center;
  color: #1a1a1a;
}
header .logo {
  width: 40px; height: 40px;
  border-radius: 10px;
}
header h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.5px;
  max-width: 760px;
  margin: 0 auto 8px;
}
header p {
  font-size: 14px;
  color: #6b6b6b;
  max-width: 560px;
  margin: 0 auto;
}
header .meta { font-size: 13px; color: #9b9b9b; margin-top: 8px; }

/* ── SITE-HEADER (nav persistente — calculadoras e index futuro) ─ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e5;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header img { height: 32px; border-radius: 8px; }
.site-header .brand { font-size: 15px; font-weight: 500; color: #1a1a1a; }
.header-brand {
  display: flex; align-items: center; gap: 10px; justify-content: center;
}
header .header-brand { margin-bottom: 14px; }
.brand-name { font-size: 17px; font-weight: 500; color: #1a1a1a; }
.header-nav { display: flex; gap: 20px; }
.header-nav a { font-size: 13px; color: #6b6b6b; text-decoration: none; }

/* ── HERO (index.html) ─────────────────────────────────────────── */
.hero {
  background: #ffffff;
  padding: 48px 24px 36px;
  text-align: center;
  border-bottom: 1px solid #e8e8e5;
}
.hero-logo {
  height: 64px; border-radius: 18px;
  margin: 0 auto 20px; display: block;
}
.hero h1, .hero .hero-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.hero p, .hero .hero-lead {
  font-size: 15px; color: #6b6b6b;
  max-width: 440px; margin: 0 auto;
}

/* Badge */
.badge {
  display: inline-flex;
  background: #E1F5EE; color: #0F6E56;
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; margin-bottom: 14px;
}

/* Hero checklist */
.hero-checklist {
  list-style: none;
  display: flex; justify-content: center;
  gap: 20px; margin: 20px auto 24px;
  max-width: 600px;
}
.hero-checklist li {
  font-size: 13px; font-weight: 400; color: #6b6b6b;
  display: flex; align-items: center; gap: 6px;
}
.hero-checklist li::before {
  content: '✓'; color: #1D9E75; font-size: 1rem;
}
.hero-cta {
  display: inline-block;
  background: #1D9E75; color: #ffffff;
  padding: 12px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background 0.2s;
}
.hero-cta:hover { background: #0F6E56; text-decoration: none; }

/* ── BREADCRUMB ────────────────────────────────────────────────── */
.breadcrumb {
  background: #f0f7f3; padding: 10px 20px;
  font-size: 13px; color: #0F6E56; text-align: center;
}
.breadcrumb a { color: #0F6E56; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── NAV STICKY (seções do formulário — index.html) ────────────── */
.section-nav {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e5;
  padding: 8px 0; margin-bottom: 20px;
}
.section-nav-inner {
  max-width: 900px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav-inner a {
  flex-shrink: 0; padding: 6px 14px;
  color: #6b6b6b; border-radius: 6px;
  text-decoration: none; font-size: 13px; font-weight: 400;
  transition: all 0.15s; white-space: nowrap;
  display: inline-block; background: none;
  border-bottom: 2px solid transparent;
}
.section-nav-inner a:hover { color: #1a1a1a; background: #f8f8f6; }
.section-nav-inner a.current,
.section-nav-inner a.current:hover {
  color: #1a1a1a !important; background: none !important;
  border-bottom-color: #1D9E75;
}
[id^="sec-"] { scroll-margin-top: 60px; border-radius: 8px; padding: 8px 12px; margin-left: -12px; transition: background 0.3s; }
@keyframes destacarSecao {
  0%   { background: rgba(29,158,117,0); }
  30%  { background: rgba(29,158,117,0.12); }
  100% { background: rgba(29,158,117,0); }
}
.secao-destacada { animation: destacarSecao 1.2s ease; }

/* ── SEÇÃO DE FERRAMENTAS ──────────────────────────────────────── */
.tools-section { max-width: 900px; margin: 32px auto 0; padding: 0 24px; }
.tools-section h2, .section-label {
  text-align: center; font-size: 11px; color: #9b9b9b;
  margin-bottom: 14px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.08em;
  border: none; padding: 0;
}
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.tool-card {
  background: #ffffff; border-radius: 12px;
  padding: 14px 16px; text-align: center;
  text-decoration: none; color: inherit;
  border: 1px solid #e8e8e5; transition: border-color 0.2s;
  display: block;
}
.tool-card:hover { border-color: #1D9E75; transform: none; box-shadow: none; text-decoration: none; }
.tool-card.active { border: 1.5px solid #1D9E75; text-align: left; background: #ffffff; }
.tool-card.active::after { content: '• você está aqui'; display: block; font-size: 11px; color: #1D9E75; margin-top: 6px; font-weight: 400; }
.tool-icon { font-size: 20px; margin-bottom: 8px; color: #1D9E75; display: block; }
.tool-name { font-weight: 500; color: #1a1a1a; font-size: 13px; margin-bottom: 3px; display: block; }
.tool-desc { font-size: 12px; color: #6b6b6b; line-height: 1.4; }

/* ── SEÇÃO DE ARTIGOS ──────────────────────────────────────────── */
.articles-section { max-width: 900px; margin: 16px auto 32px; padding: 0 24px; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px; }
.article-link { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; transition: background 0.15s; }
.article-link:hover { background: #ffffff; }
.article-link .tool-icon { font-size: 1.1rem; margin-bottom: 0; flex-shrink: 0; margin-top: 2px; }
.article-link .tool-name { font-weight: 500; color: #1D9E75; font-size: 13px; margin-bottom: 2px; }
.article-link .tool-desc { font-size: 12px; }

/* ── TOOLS-NAV (calculadoras) ──────────────────────────────────── */
.tools-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 24px; }
.tools-nav .tool-card { font-size: 12px; padding: 12px 10px; }
.tools-nav .tool-card .icon { font-size: 1.2rem; display: block; margin-bottom: 4px; }
.tools-nav .tool-card strong { display: block; font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.tools-nav .tool-card span { color: #9b9b9b; font-size: 11px; }

/* ── LINKS RELACIONADOS ────────────────────────────────────────── */
.related-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px 0 24px; }
.rl-card { display: block; background: #ffffff; border: 1px solid #e8e8e5; border-radius: 10px; padding: 14px; text-decoration: none; transition: border-color 0.15s; color: inherit; }
.rl-card:hover { border-color: #1D9E75; transform: none; text-decoration: none; }
.rl-icon { font-size: 1.3rem; margin-bottom: 6px; display: block; }
.rl-title { font-weight: 500; color: #1D9E75; font-size: 13px; margin-bottom: 4px; line-height: 1.3; }
.rl-desc { font-size: 12px; color: #6b6b6b; line-height: 1.4; }

/* ── CONTAINER & CARD ──────────────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto 40px; padding: 0 24px; }
.card {
  background: #ffffff; border-radius: 12px;
  padding: 20px; border: 1px solid #e8e8e5;
  margin-bottom: 12px;
}
.card::after { content: ''; display: table; clear: both; }

/* Artigo container (max-width menor) */
.container.article-container { max-width: 820px; margin-top: -20px; }

/* ── TIPOGRAFIA ─────────────────────────────────────────────────── */
h1 { font-size: 28px; font-weight: 500; line-height: 1.25; letter-spacing: -0.5px; }
h2 {
  font-size: 14px; font-weight: 500;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 2px solid #1D9E75;
  border-bottom: none; padding-bottom: 0;
  color: #1a1a1a; line-height: 1.3;
}
h3 { font-size: 16px; font-weight: 500; }

/* Tipografia de artigos */
article h2 {
  font-size: 1.35rem; font-weight: 500;
  margin: 32px 0 12px; color: #0F6E56;
  padding-bottom: 6px; padding-left: 0;
  border-left: none; border-bottom: 1px solid #e8e8e5;
  line-height: 1.3; scroll-margin-top: 16px;
}
article h2:first-child { margin-top: 0; }
article h3 { font-size: 1.05rem; font-weight: 500; margin: 22px 0 8px; color: #1a1a1a; }
article p { margin-bottom: 14px; color: #374151; font-size: 15px; }
article ul, article ol { margin: 0 0 14px 22px; color: #374151; }
article li { margin-bottom: 7px; font-size: 15px; }
article strong { color: #111827; font-weight: 500; }
article a { color: #1D9E75; text-decoration: none; font-weight: 400; }
article a:hover { text-decoration: underline; }

/* ── LEADS E BADGES (calculadoras) ─────────────────────────────── */
.lead { font-size: 14px; color: #6b6b6b; margin-bottom: 6px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

/* ── CAIXAS DE DESTAQUE (artigos) ──────────────────────────────── */
.cta-box {
  background: #E1F5EE; border-left: 3px solid #1D9E75;
  padding: 20px; border-radius: 8px; margin: 24px 0; text-align: center;
}
.cta-box h3 { color: #0F6E56; margin-bottom: 8px; border: none; padding: 0; font-size: 15px; }
.cta-box p { color: #0F6E56; margin-bottom: 14px; font-size: 14px; }
.cta-box a {
  display: inline-block; background: #1D9E75; color: #ffffff;
  padding: 11px 22px; border-radius: 8px;
  font-weight: 500; text-decoration: none;
}
.cta-box a:hover { background: #0F6E56; text-decoration: none; }

.callout {
  background: #fef3c7; border-left: 3px solid #f59e0b;
  padding: 14px 18px; border-radius: 8px; margin: 18px 0;
  font-size: 14px; color: #78350f;
}
.callout strong { color: #78350f; font-weight: 500; }

.callout-green {
  background: #f0fdf4; border-left: 3px solid #16a34a;
  padding: 14px 18px; border-radius: 8px; margin: 18px 0;
  font-size: 14px; color: #14532d;
}
.callout-green strong { color: #14532d; font-weight: 500; }

/* ── MODELO DE TEXTO (aviso prévio) ────────────────────────────── */
.modelo-box {
  background: #f8f8f6; border: 1px solid #e8e8e5;
  border-radius: 10px; padding: 20px; margin: 20px 0;
  font-family: 'Courier New', monospace; font-size: 13px;
  color: #334155; line-height: 1.8; white-space: pre-wrap;
}
.modelo-box .modelo-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px; font-weight: 500; color: #9b9b9b;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px;
}

/* ── TABELA DE COMPARAÇÃO ───────────────────────────────────────── */
.comparison-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.comparison-table th, .comparison-table td { border: 1px solid #e8e8e5; padding: 10px 12px; text-align: left; }
.comparison-table th { background: #f0f7f3; color: #0F6E56; font-weight: 500; }
.comparison-table tr:nth-child(even) { background: #f8f8f6; }

/* ── TOC (sumário) ──────────────────────────────────────────────── */
.toc { background: #f8f8f6; border: 1px solid #e8e8e5; border-radius: 8px; padding: 10px 16px; margin: 16px 0 22px; font-size: 13px; }
.toc summary { cursor: pointer; font-weight: 500; color: #0F6E56; padding: 4px 0; outline: none; user-select: none; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: '▸'; display: inline-block; transition: transform 0.15s; margin-right: 6px; color: #9b9b9b; }
.toc[open] summary::before { transform: rotate(90deg); }
.toc ol { margin: 10px 0 4px 20px; padding: 0; color: #374151; }
.toc li { margin-bottom: 4px; line-height: 1.4; }
.toc a { color: #1D9E75; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── FAQ (artigos — details/summary) ───────────────────────────── */
.faq { margin-top: 32px; }
.faq h2 { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
details { background: #ffffff; border: 1px solid #e8e8e5; border-radius: 10px; padding: 14px 18px; margin-bottom: 8px; }
details[open] { border-color: #1D9E75; }
summary { cursor: pointer; font-weight: 500; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '＋'; font-size: 14px; color: #1D9E75; }
details[open] summary::after { content: '－'; }
details p { margin-top: 10px; font-size: 13px; color: #6b6b6b; line-height: 1.6; }

/* ── FAQ (ferramentas — faq-item) ───────────────────────────────── */
.faq-item { border-bottom: 1px solid #e8e8e5; padding: 14px 0; }
.faq-item:last-child { border: none; }
.faq-item h4 { color: #1a1a1a; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.faq-item h3 { color: #1a1a1a; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.faq-item p { color: #6b6b6b; font-size: 13px; }

/* ── FORMULÁRIO — LAYOUT ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-section { background: #ffffff; border: 1px solid #e8e8e5; border-radius: 12px; padding: 20px; margin-bottom: 12px; }
.form-section h2 { font-size: 13px; font-weight: 500; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #e8e8e5; border-left: none; padding-left: 0; color: #1a1a1a; }

/* ── FORMULÁRIO — CAMPOS ────────────────────────────────────────── */
label {
  display: block; font-size: 12px; font-weight: 400;
  margin-bottom: 5px; color: #6b6b6b;
}
.field label { font-size: 13px; font-weight: 400; color: #6b6b6b; }

input, select, textarea {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid #e8e8e5; border-radius: 8px;
  font-size: 13px; font-family: inherit;
  background: #f8f8f6; color: #1a1a1a;
  transition: border-color 0.2s;
}
textarea { height: auto; padding: 8px 10px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #1D9E75;
  box-shadow: none;
}
.field { margin-bottom: 14px; }
.field input, .field select { background: #ffffff; padding: 9px 12px; height: auto; }
.field input:focus, .field select:focus { border-color: #1D9E75; box-shadow: 0 0 0 3px rgba(29,158,117,.1); }
.field .hint { font-size: 12px; color: #9b9b9b; margin-top: 4px; }
.field .auto-hint { font-size: 12px; color: #1D9E75; margin-top: 4px; display: none; }
.field input.auto-filled { border-color: #1D9E75; background: #f0f7f3; }

/* ── BARRA DE PROGRESSO ─────────────────────────────────────────── */
.progress-bar { display: flex; gap: 6px; margin-bottom: 24px; }
.progress-step { flex: 1; height: 3px; border-radius: 2px; background: #e8e8e5; }
.progress-step.active, .progress-step.done { background: #1D9E75; }

/* ── NOTA DE PRIVACIDADE ────────────────────────────────────────── */
.privacy-note {
  background: #f0f7f3; border-left: 3px solid #1D9E75;
  padding: 10px 14px; border-radius: 0 8px 8px 0;
  font-size: 13px; color: #0F6E56; margin-bottom: 20px;
}

/* ── PAINEL DE ÍNDICE (calculadora reajuste) ────────────────────── */
.indice-panel { background: #f0f7f3; border: 1px solid #b8dfc7; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 14px; }
.indice-panel .ip-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.indice-panel .ip-body { flex: 1; min-width: 0; }
.indice-panel .ip-title { font-size: 12px; font-weight: 500; color: #1D9E75; margin-bottom: 4px; }
.indice-panel .ip-values { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 4px; }
.indice-panel .ip-val { text-align: center; }
.indice-panel .ip-val .vnum { font-size: 1.25rem; font-weight: 500; color: #1D9E75; font-variant-numeric: tabular-nums; }
.indice-panel .ip-val .vlbl { font-size: 11px; color: #6b6b6b; margin-top: 1px; }
.indice-panel .ip-source { font-size: 11px; color: #9b9b9b; }
.indice-panel .ip-loading { font-size: 12px; color: #9b9b9b; display: flex; align-items: center; gap: 6px; }
.indice-panel .ip-error { font-size: 12px; color: #c0392b; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #b8dfc7; border-top-color: #1D9E75; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-usar-indice { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 4px 10px; background: #1D9E75; color: #fff; border: none; border-radius: 6px; font-size: 12px; font-weight: 400; cursor: pointer; transition: background .15s; }
.btn-usar-indice:hover { background: #0F6E56; }

/* ── CARD DE RESULTADO (calculadoras) ──────────────────────────── */
.result-card { background: linear-gradient(135deg, #1D9E75 0%, #17856a 100%); color: #fff; border-radius: 12px; padding: 24px; margin: 20px 0 0; display: none; }
.result-card.visible { display: block; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 0; }
.result-item { background: rgba(255,255,255,.15); border-radius: 8px; padding: 12px 14px; text-align: center; }
.result-item .ri-label { font-size: 11px; opacity: .85; margin-bottom: 4px; }
.result-item .ri-val { font-size: 1.2rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.result-item.destaque { background: rgba(255,255,255,.25); }
.result-item.destaque .ri-val { font-size: 1.45rem; }
.result-item .ri-sub { font-size: 11px; opacity: .7; margin-top: 2px; }
.isencao-box { background: rgba(255,255,255,.18); border-radius: 8px; padding: 12px 16px; font-size: 13px; line-height: 1.5; margin-top: 0; display: none; }
.isencao-box.visible { display: block; }

/* ── CÔMODOS (vistoria) ─────────────────────────────────────────── */
.comodo-box { background: #f8f8f6; border: 1px solid #e8e8e5; border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.comodo-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.comodo-header input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; }
.comodo-header strong { color: #1D9E75; font-size: 14px; font-weight: 500; }
.comodo-content { display: none; }
.comodo-content.ativo { display: block; }

/* ── BOTÕES ─────────────────────────────────────────────────────── */
.btn {
  background: #1D9E75; color: #ffffff;
  border: none; padding: 13px; width: 100%;
  font-size: 14px; font-weight: 500; border-radius: 8px;
  cursor: pointer; transition: background 0.2s;
}
.btn:hover { background: #0F6E56; }
.btn-secondary {
  background: transparent; border: 1px solid #e8e8e5;
  color: #6b6b6b; margin-top: 8px;
}
.btn-secondary:hover { background: #f8f8f6; border-color: #ccc; }
.btn-primary { width: 100%; padding: 13px; background: #1D9E75; color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s; margin-top: 16px; }
.btn-primary:hover { background: #0F6E56; }
.btn-primary:disabled { background: #a0d4bf; cursor: not-allowed; }

/* Seções PDF/Termo (calculadoras) */
.termo-section, .pdf-section { display: none; margin-top: 20px; }
.termo-section.visible, .pdf-section.visible { display: block; }
.termo-section h3 { font-size: 14px; font-weight: 500; margin-bottom: 12px; }

/* ── CEP ────────────────────────────────────────────────────────── */
.cep-wrapper { display: flex; gap: 8px; }
.cep-wrapper input { flex: 1; }
.btn-cep { background: #1D9E75; color: white; border: none; padding: 0 14px; border-radius: 8px; cursor: pointer; font-size: 13px; white-space: nowrap; transition: background 0.2s; flex-shrink: 0; }
.btn-cep:hover { background: #0F6E56; }
.btn-cep:disabled { background: #a0d4bf; cursor: not-allowed; }

/* ── VALIDAÇÃO ──────────────────────────────────────────────────── */
input.campo-erro { border-color: #ef4444 !important; background: #fff5f5; }
.msg-erro { color: #ef4444; font-size: 12px; margin-top: 4px; display: none; }
.msg-erro.visivel { display: block; }

/* ── AFILIADOS ──────────────────────────────────────────────────── */
.affiliate-box { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-left: 3px solid #f59e0b; padding: 18px; border-radius: 8px; margin: 20px 0; position: relative; }
.affiliate-box h3 { color: #78350f; margin-bottom: 8px; font-size: 14px; border: none; padding: 0; font-weight: 500; }
.affiliate-box p { color: #78350f; font-size: 13px; margin-bottom: 10px; }
.affiliate-box a { display: inline-block; background: #f59e0b; color: white; padding: 9px 18px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 13px; }
.affiliate-box a:hover { background: #d97706; text-decoration: none; }
.affiliate-tag { position: absolute; top: 10px; right: 12px; font-size: 11px; color: #92400e; background: rgba(255,255,255,.6); padding: 2px 8px; border-radius: 999px; }

.partner-rec { display: flex; align-items: flex-start; gap: 14px; background: #fafaf8; border: 1px solid #e8e8e5; border-radius: 10px; padding: 14px 16px; margin-top: 20px; }
.partner-rec .pr-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.partner-rec .pr-body { flex: 1; min-width: 0; }
.partner-rec .pr-head { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: #1a1a1a; }
.partner-rec .pr-desc { font-size: 13px; color: #6b6b6b; margin-bottom: 10px; line-height: 1.5; }
.partner-rec .pr-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 400; color: #0F6E56; border: 1px solid #b8dfc7; background: #f0f7f3; border-radius: 6px; padding: 6px 12px; text-decoration: none; transition: background .15s; }
.partner-rec .pr-link:hover { background: #b8dfc7; }
.partner-rec .pr-label { font-size: 11px; color: #9b9b9b; margin-left: 8px; }

.ad-placeholder { background: #f8f8f6; border: 2px dashed #e8e8e5; padding: 40px; text-align: center; color: #9b9b9b; border-radius: 8px; margin: 20px 0; font-size: 13px; }

/* ── COLLAPSE ───────────────────────────────────────────────────── */
.collapse-toggle { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.collapse-toggle:hover, .collapse-toggle:focus { outline: none; color: #1D9E75; }

/* ── MODAL DE PREVIEW ───────────────────────────────────────────── */
#previewModal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200; overflow-y: auto; padding: 24px 16px; }
.preview-box { max-width: 760px; margin: 0 auto; background: white; border-radius: 12px; padding: 48px 52px; font-family: Georgia,'Times New Roman',serif; line-height: 1.75; }
.preview-titulo { font-size: 1.1rem; text-align: center; font-weight: bold; text-transform: uppercase; margin-bottom: 24px; }
.preview-valor { font-size: 1.1rem; text-align: center; font-weight: bold; margin-bottom: 24px; }
.preview-num { text-align: right; font-size: 13px; color: #6b6b6b; margin-bottom: 4px; }
.preview-clausula { font-weight: bold; text-transform: uppercase; margin: 20px 0 6px; font-size: 0.9rem; }
.preview-p { font-size: 0.92rem; text-align: justify; margin-bottom: 10px; color: #111; }
.preview-assinaturas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.preview-assin-bloco { text-align: center; }
.preview-assin { text-align: center; margin-top: 48px; }
.preview-assin-linha { border-top: 1px solid #000; padding-top: 8px; margin-top: 44px; width: 60%; margin: 44px auto 0; }
.preview-assin-titulo { font-weight: bold; font-size: 0.88rem; text-transform: uppercase; }
.preview-assin-nome { font-weight: bold; font-size: 14px; }
.preview-assin-cpf { font-size: 13px; color: #444; margin-top: 2px; }
.preview-btns { display: flex; gap: 12px; margin-top: 32px; justify-content: flex-end; flex-wrap: wrap; border-top: 2px solid #e8e8e5; padding-top: 24px; }

/* ── SHARE ──────────────────────────────────────────────────────── */
.btn-share { background: #1D9E75; color: white; border: none; padding: 12px 20px; font-size: 14px; font-weight: 500; border-radius: 8px; cursor: pointer; width: 100%; margin-top: 10px; transition: background 0.2s; }
.btn-share:hover { background: #0F6E56; }
#sharePanel { display: none; background: #E1F5EE; border: 1px solid #b8dfc7; border-radius: 8px; padding: 16px; margin-top: 10px; }
#sharePanel p { font-size: 13px; color: #0F6E56; margin-bottom: 10px; }
.share-input-row { display: flex; gap: 8px; }
.share-input-row input { flex: 1; font-size: 13px; background: white; border: 1px solid #b8dfc7; border-radius: 6px; padding: 8px 10px; color: #1a1a1a; height: 36px; }
#btnCopiarLink { background: #1D9E75; color: white; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 400; white-space: nowrap; transition: background 0.2s; }
#btnCopiarLink:hover { background: #0F6E56; }

/* ── FAB ────────────────────────────────────────────────────────── */
#fabGerar { display: none; }
@media (max-width: 640px) {
  #fabGerar { display: block; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(80px); z-index: 90; background: #1D9E75; color: white; border: none; padding: 13px 32px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 4px 20px rgba(29,158,117,.35); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  #fabGerar.fab-visivel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
  body.modal-aberto #fabGerar { opacity: 0 !important; pointer-events: none !important; }
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
footer {
  background: #ffffff; border-top: 1px solid #e8e8e5;
  padding: 24px; font-size: 13px; color: #9b9b9b; text-align: center;
}
footer a { color: #1D9E75; text-decoration: none; }
footer a:visited { color: #1D9E75; }
footer a:hover { text-decoration: underline; }

/* ── RESPONSIVO ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  header { padding: 20px 16px 16px; }
  .site-header { padding: 12px 16px; }
  .hero { padding: 32px 16px 24px; }
  .tools-section, .articles-section, .container { padding-left: 16px; padding-right: 16px; }
  .tools-section { margin-top: 24px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .grid-2, .field-row { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .card figure { float: none; margin: 0 0 20px 0; max-width: 100%; }
  .hero-checklist { flex-direction: column; gap: 8px; align-items: center; }
  .hero-cta { width: 100%; text-align: center; }
  .preview-box { padding: 28px 18px; }
  .preview-assin-linha { margin: 32px auto 0; }
  .modelo-box { font-size: 12px; padding: 14px; }
  footer { padding: 18px 16px; }
  .indice-panel .ip-values { gap: 12px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ── CTA CANAIS WHATSAPP / TELEGRAM ─────────────────────────── */
.cta-canais {
  background: #f0faf0;
  border: 1px solid #c3e6c3;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px auto;
  max-width: 760px;
  text-align: center;
}
.cta-canais p { margin: 0 0 12px 0; font-size: 1rem; color: #1a1a1a; }
.cta-canais-botoes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.cta-btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: opacity 0.2s; }
.cta-btn:hover { opacity: 0.85; }
.cta-whatsapp { background: #25D366; color: #fff; }
.cta-telegram { background: #229ED9; color: #fff; }
.cta-sub { font-size: 0.82rem !important; color: #555 !important; margin-top: 8px !important; }

/* ── AFILIADO AMAZON (aside) ─────────────────────────────────── */
aside {
  background: #fafaf8;
  border: 1px solid #e8e8e5;
  border-left: 3px solid #ff9900;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 20px 0;
}
aside p:first-child { font-size: 1.4rem; margin-bottom: 4px; }
aside p:nth-child(2) { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 4px; }
aside p:nth-child(3) { font-size: 13px; color: #6b6b6b; margin-bottom: 10px; line-height: 1.5; }
aside a { display: inline-flex; align-items: center; font-size: 13px; font-weight: 400; color: #0F6E56; border: 1px solid #b8dfc7; background: #f0f7f3; border-radius: 6px; padding: 6px 12px; text-decoration: none; transition: background .15s; }
aside a:hover { background: #b8dfc7; text-decoration: none; }
aside span { font-size: 11px; color: #9b9b9b; display: inline-block; margin-top: 6px; }
