/* ============================================================
   marelvo — guia (páginas de conteúdo)
   版式目标：能读、能被 AI 提取。
   与 landing.css（销售页）、style.css（法律页）分开，互不影响。
   ============================================================ */

:root{
  --navy:#0E2F4A;
  --navy-2:#1B4463;
  --gold:#F0B429;
  --ink:#12212E;
  --body:#2B3A47;
  --muted:#5A6B7A;
  --line:#E4E9EE;
  --soft:#F6F8FA;
  --ok:#1E7A5A;
  --max:700px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:var(--navy)}
img,svg{max-width:100%;display:block}

.wrap{max-width:var(--max);margin:0 auto;padding:0 22px}

/* ---------- header（与 landing 同构） ---------- */

.top{border-bottom:1px solid var(--line);background:#fff}
.top .wrap{
  display:flex;align-items:center;gap:11px;
  padding-top:16px;padding-bottom:16px;
}
.top .logo{width:28px;height:28px;flex:none}
.top .brand{
  font-weight:700;font-size:18px;letter-spacing:-.02em;
  color:var(--navy);text-decoration:none;
}
.top .spacer{flex:1}
.top .mini{
  font-size:14px;font-weight:600;color:var(--navy);
  text-decoration:none;border-bottom:2px solid var(--gold);
  padding-bottom:1px;white-space:nowrap;
}
.top .mini:hover{color:var(--navy-2)}

/* ---------- artigo ---------- */

article{padding:34px 0 56px}

article h1{
  margin:0 0 10px;
  font-size:clamp(25px,4.6vw,33px);
  line-height:1.25;
  letter-spacing:-.025em;
  color:var(--navy);
  font-weight:800;
  text-wrap:balance;
}

.byline{
  margin:0 0 26px;
  font-size:13.5px;color:var(--muted);
}
.byline span + span::before{content:"·";margin:0 8px;color:#C3CDD6}

/* 第一段：AI 提取的那 40–60 字。视觉上必须是全页最显眼的一块 */
.resposta{
  margin:0 0 30px;
  padding:20px 22px;
  background:#F2F6F9;
  border-left:4px solid var(--gold);
  border-radius:0 10px 10px 0;
  font-size:19px;
  line-height:1.6;
  color:var(--ink);
  font-weight:500;
  letter-spacing:-.01em;
}
.resposta strong{font-weight:800;color:var(--navy)}

article h2{
  margin:38px 0 12px;
  font-size:clamp(19px,3.2vw,22px);
  line-height:1.35;
  letter-spacing:-.02em;
  color:var(--navy);
  font-weight:700;
  text-wrap:balance;
}

article h3{
  margin:26px 0 6px;
  font-size:17px;
  line-height:1.4;
  color:var(--navy);
  font-weight:700;
}

article p{margin:0 0 14px;color:var(--body)}
article p:last-child{margin-bottom:0}

article ul,article ol{margin:0 0 16px;padding-left:22px;color:var(--body)}
article li{margin:7px 0}
article li::marker{color:var(--muted)}

article strong{color:var(--ink);font-weight:700}
article em{font-style:italic}

/* ---------- tabela ---------- */

.tabela{
  margin:6px 0 20px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.tabela table{
  width:100%;
  border-collapse:collapse;
  font-size:15px;
  line-height:1.55;
  min-width:520px;
}
.tabela th{
  text-align:left;
  padding:11px 14px;
  background:var(--navy);
  color:#fff;
  font-weight:700;
  font-size:14px;
  letter-spacing:.01em;
  vertical-align:bottom;
}
.tabela th:first-child{border-radius:8px 0 0 0}
.tabela th:last-child{border-radius:0 8px 0 0}
.tabela td{
  padding:11px 14px;
  border-bottom:1px solid var(--line);
  color:var(--body);
  vertical-align:top;
}
.tabela tbody tr:nth-child(even) td{background:var(--soft)}
.tabela tbody tr:last-child td:first-child{border-radius:0 0 0 8px}
.tabela tbody tr:last-child td:last-child{border-radius:0 0 8px 0}
.tabela td strong{color:var(--navy)}

/* 窄屏：三列挤不下，横向滚动会把最关键的一列藏起来 ⇒ 每行变成一张卡片。
   DOM 里仍是标准 table，AI 引擎和屏幕阅读器照样能读到 th/td 对应关系。 */
@media(max-width:600px){
  .tabela{overflow-x:visible}
  .tabela table{min-width:0;display:block;font-size:15px}
  .tabela thead{
    position:absolute;width:1px;height:1px;
    overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;
  }
  .tabela tbody{display:block}
  .tabela tbody tr{
    display:block;
    margin:0 0 12px;
    border:1px solid var(--line);
    border-radius:11px;
    overflow:hidden;
    background:#fff;
  }
  .tabela tbody tr:nth-child(even) td{background:#fff}
  .tabela td{
    display:block;
    padding:9px 15px;
    border-bottom:1px solid var(--line);
  }
  .tabela td:last-child{border-bottom:0;padding-bottom:13px}
  .tabela td:first-child{
    background:var(--soft);
    padding-top:11px;
    font-size:15.5px;
  }
  .tabela tbody tr:last-child td:first-child,
  .tabela tbody tr:last-child td:last-child{border-radius:0}
  .tabela td + td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:2px;
    font-size:11.5px;
    letter-spacing:.07em;
    text-transform:uppercase;
    color:var(--muted);
    font-weight:700;
  }
}

/* 表格下面的补充说明（比正文轻，但仍是正文语义） */

.nota{
  margin:-8px 0 22px;
  font-size:13.5px;
  color:var(--muted);
  line-height:1.55;
}

/* ---------- 例外 / 提醒 块 ---------- */

.excecoes{
  margin:22px 0;
  padding:20px 22px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:12px;
}
.excecoes h2,.excecoes h3{
  margin:0 0 10px;
  font-size:16.5px;
  color:var(--navy);
}
.excecoes ol,.excecoes ul{margin:0;padding-left:20px}
.excecoes li{margin:9px 0;font-size:15.5px}
.excecoes li:last-child{margin-bottom:0}
.excecoes a{
  display:inline-block;
  color:var(--navy);
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:#C9D5DF;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.excecoes a::before{content:"→ ";color:#8C9AA8;font-weight:400}
.excecoes a:hover{text-decoration-color:var(--gold)}

.alerta{
  margin:22px 0;
  padding:16px 20px;
  background:#FDF7E7;
  border:1px solid #F2DEA6;
  border-radius:10px;
  font-size:15.5px;
  color:#4A3B12;
}
.alerta p{margin:0;color:inherit}
.alerta strong{color:#3D3009}

/* ---------- roteiro de conversa（B 组用） ---------- */

.roteiro{
  margin:24px 0;
  padding:2px 0 2px 20px;
  border-left:3px solid var(--gold);
}
.roteiro .passo{margin:0 0 24px}
.roteiro .passo:last-child{margin-bottom:0}
.roteiro .quando{
  margin:0 0 6px;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.roteiro .fala{
  margin:0 0 8px;
  font-size:17px;
  line-height:1.55;
  font-weight:600;
  color:var(--navy);
}
.roteiro .fala::before{content:"“"}
.roteiro .fala::after{content:"”"}
.roteiro .nota{margin:0;font-size:14.5px;line-height:1.65;color:var(--muted)}

/* ---------- base legal ---------- */

.base-legal{
  margin:40px 0 0;
  padding:22px 0 0;
  border-top:1px solid var(--line);
}
.base-legal h2{
  margin:0 0 6px;
  font-size:15px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
}
.base-legal .intro{
  font-size:14.5px;
  color:var(--muted);
  margin:0 0 18px;
}
.base-legal dl{margin:0}
.base-legal dt{
  font-size:14.5px;
  font-weight:700;
  color:var(--navy);
  margin:16px 0 4px;
}
.base-legal dt:first-of-type{margin-top:0}
.base-legal dd{
  margin:0;
  font-size:14px;
  color:var(--body);
  line-height:1.65;
}
.base-legal blockquote{
  margin:0 0 8px;
  padding:0 0 0 14px;
  border-left:2px solid #D5DEE6;
  font-style:italic;
  color:#3C4C5A;
}
.base-legal .fonte{
  font-size:13px;
  color:var(--muted);
}
.base-legal .fonte a{color:var(--navy);text-decoration:none;border-bottom:1px solid var(--gold)}

/* ---------- 相关页 ---------- */

.relacionadas{
  margin:36px 0 0;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.relacionadas h2{
  margin:0 0 12px;
  font-size:15px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
}
.relacionadas ul{list-style:none;margin:0;padding:0}
.relacionadas li{margin:0 0 10px}
.relacionadas a{
  display:block;
  padding:13px 16px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:10px;
  font-size:15.5px;
  font-weight:600;
  color:var(--navy);
  text-decoration:none;
}
.relacionadas a:hover{border-color:#C9D5DF;background:#EFF4F7}
.relacionadas a span{
  display:block;
  margin-top:2px;
  font-size:13.5px;
  font-weight:400;
  color:var(--muted);
}

/* ---------- índice de artigos（/guia/ 目录页） ---------- */

.indice{margin:8px 0 0}
.indice .grupo{margin:0 0 30px}
.indice .grupo > h2{
  margin:0 0 4px;
  font-size:19px;
  letter-spacing:-.015em;
  text-transform:none;
  color:var(--navy);
  font-weight:700;
}
.indice .grupo > h2 .num{
  color:var(--gold);
  font-weight:800;
  margin-right:9px;
  font-variant-numeric:tabular-nums;
}
.indice .grupo > .lead{
  margin:0 0 14px;
  font-size:14.5px;
  line-height:1.6;
  color:var(--muted);
}
.indice ul{list-style:none;margin:0;padding:0}
.indice li{margin:0 0 9px}
.indice a{
  display:block;
  padding:13px 16px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:10px;
  font-size:15.5px;
  font-weight:600;
  line-height:1.45;
  color:var(--navy);
  text-decoration:none;
  transition:border-color .13s ease, background .13s ease;
}
.indice a:hover{border-color:#C9D5DF;background:#EFF4F7}
.indice a span{
  display:block;
  margin-top:3px;
  font-size:13.5px;
  font-weight:400;
  line-height:1.55;
  color:var(--muted);
}

/* ---------- produto（全页唯一 CTA） ---------- */

.produto{
  margin:40px 0 0;
  padding:26px 24px;
  background:var(--navy);
  border-radius:14px;
  text-align:center;
  color:#fff;
}
.produto h2{
  margin:0 0 8px;
  font-size:19px;
  line-height:1.35;
  color:#fff;
  letter-spacing:-.01em;
}
.produto p{
  margin:0 0 18px;
  font-size:15px;
  color:#C6D5E1;
}
.produto .cta{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:52px;padding:0 28px;
  background:var(--gold);
  color:#1A1200;
  font-size:17px;font-weight:800;
  text-decoration:none;
  border-radius:11px;
  box-shadow:0 2px 0 #D99E14;
  transition:background .13s ease, transform .13s ease;
}
.produto .cta:hover{background:#F5C044;transform:translateY(-1px)}
.produto .cta:active{transform:translateY(1px)}
.produto .cta:focus-visible{outline:3px solid #fff;outline-offset:3px}
.produto .miudo{
  margin:12px 0 0;
  font-size:13px;
  color:#A9BECE;
}

/* ---------- aviso ---------- */

.disclaimer{
  margin:32px 0 0;
  padding:4px 0 4px 16px;
  border-left:3px solid var(--gold);
  font-size:14px;
  color:var(--body);
}
.disclaimer p{margin:0;color:inherit}

/* ---------- footer ---------- */

.site-foot{
  border-top:1px solid var(--line);
  padding:26px 0 34px;
  font-size:12.8px;
  color:var(--muted);
}
.site-foot .wrap{display:grid;gap:8px}
.site-foot .row{display:flex;flex-wrap:wrap;gap:7px 20px;align-items:center}
.site-foot a{color:var(--muted);text-decoration:none;border-bottom:1px solid transparent}
.site-foot a:hover{color:var(--navy);border-bottom-color:var(--gold)}

/* ---------- motion ---------- */

@media(prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
  html{scroll-behavior:auto}
}

@media(max-width:520px){
  article{padding:26px 0 44px}
  .resposta{font-size:18px;padding:18px 18px}
  .produto{padding:22px 18px}
  .produto .cta{width:100%}
}
