/* Clean Contas — estilo partilhado do blog e páginas de conteúdo */
:root {
  --ink: #0F1B2D;
  --paper: #FFFFFF;
  --surface: #F4F6F9;
  --line: #D8DCE5;
  --yellow: #FFCB05;
  --yellow-dark: #E0AD00;
  --blue: #1A4FCC;
  --green: #10B981;
  --steel: #4A5568;
  --max: 1000px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 3px;
}
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--ink);
  border-bottom: 6px solid var(--yellow);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em;
  color: var(--paper); text-transform: none;
}
.brand:hover { text-decoration: none; }
.brand .c2 { color: var(--yellow); }
.brand img { height: 27px; width: auto; display: block; }
.site-footer .brand img { height: 30px; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--yellow); color: var(--yellow);
  padding: 8px 13px; border-radius: 6px; font-weight: 800; font-size: .95rem;
}
.header-cta:hover { background: var(--yellow); color: var(--ink); text-decoration: none; }

/* Article shell */
main { padding: 34px 0 8px; }
.breadcrumb { font-size: .84rem; color: var(--steel); margin-bottom: 18px; }
.breadcrumb a { color: var(--steel); }
.eyebrow {
  display: inline-block; margin-bottom: 12px; color: var(--blue);
  font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
}
article h1, .page h1 {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800; line-height: 1.1; letter-spacing: -.01em;
  font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 10px;
}
.article-meta { color: var(--steel); font-size: .9rem; margin: 0 0 26px; }
article h2, .page h2 {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800; line-height: 1.15;
  font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin: 40px 0 12px;
}
article h3, .page h3 { font-weight: 800; font-size: 1.18rem; margin: 26px 0 8px; }
article p, .page p { margin: 0 0 16px; }
article ul, article ol, .page ul, .page ol { margin: 0 0 18px; padding-left: 22px; }
article li, .page li { margin-bottom: 8px; }
strong { font-weight: 800; }
.lead { font-size: 1.18rem; color: var(--steel); }

/* Callout / note */
.callout {
  margin: 22px 0; padding: 16px 18px; background: var(--surface);
  border-left: 5px solid var(--yellow); border-radius: 4px;
}
.callout p:last-child { margin-bottom: 0; }

/* Tables */
.table-shell { overflow-x: auto; border: 2px solid var(--ink); margin: 22px 0; box-shadow: 8px 8px 0 rgba(15,27,45,.08); }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--yellow); color: var(--ink); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:nth-child(even) { background: #FFF7C8; }
tbody tr:last-child td { border-bottom: 0; }

/* Checklist */
.check { list-style: none; padding-left: 0; }
.check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 900;
}

/* FAQ */
.faq { margin: 14px 0 0; display: grid; gap: 10px; }
details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
details[open] { border-color: var(--ink); box-shadow: 5px 5px 0 var(--yellow); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; font-weight: 800; cursor: pointer; list-style: none; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; display: grid; place-items: center; flex: 0 0 26px;
  width: 26px; height: 26px; background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink); font-size: 1.2rem; line-height: 1;
}
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 18px 18px; color: var(--steel); }

/* CTA box */
.cta-box {
  margin: 40px 0 8px; padding: 28px 26px; background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 8px; box-shadow: 12px 12px 0 var(--yellow);
}
.cta-box h2 { color: var(--paper); margin: 0 0 8px; }
.cta-box p { color: rgba(255,255,255,.86); margin: 0 0 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 13px 18px; border-radius: 5px; font-weight: 900;
  border: 2px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-outline { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { border-color: var(--paper); background: rgba(255,255,255,.08); }

/* Related / internal links */
.related { margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.15rem; margin: 0 0 10px; }
.related ul { padding-left: 20px; }

/* Blog index cards */
.post-list { display: grid; gap: 16px; margin-top: 8px; }
.post-card {
  display: block; padding: 22px 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.post-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--ink); box-shadow: 8px 8px 0 var(--yellow); }
.post-card .tag { display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.post-card h2 { font-size: 1.3rem; margin: 0 0 6px; }
.post-card p { color: var(--steel); margin: 0; }

/* Footer */
.site-footer { margin-top: 46px; background: var(--ink); color: rgba(255,255,255,.72); padding: 34px 0 26px; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--paper); }
.disclaimer { width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: .82rem; }

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.6; }
  .wrap { width: min(100% - 28px, var(--max)); }
  main { padding: 22px 0 4px; }

  /* Cabeçalho mais compacto */
  .site-header .wrap { min-height: 54px; }
  .brand { font-size: 1.1rem; }
  .brand img { height: 22px; }
  .site-footer .brand img { height: 24px; }
  .header-cta { font-size: .8rem; padding: 7px 10px; gap: 5px; }

  /* Títulos e texto proporcionais ao ecrã */
  .breadcrumb { font-size: .8rem; margin-bottom: 14px; }
  .eyebrow { font-size: .68rem; }
  article h1, .page h1 { font-size: 1.72rem; line-height: 1.18; }
  .lead { font-size: 1.02rem; }
  article h2, .page h2 { font-size: 1.32rem; margin-top: 30px; }
  article h3, .page h3 { font-size: 1.06rem; margin-top: 22px; }
  article p, .page p { margin-bottom: 14px; }

  /* Elementos */
  .callout { padding: 14px 15px; }
  .cta-box { margin: 32px 0 4px; padding: 20px 16px; box-shadow: 8px 8px 0 var(--yellow); }
  .cta-box h2 { font-size: 1.3rem; }
  .btn { width: 100%; min-height: 48px; }
  table { font-size: .86rem; }
  th, td { padding: 10px 11px; }
  .post-card { padding: 18px 16px; }
  .post-card h2 { font-size: 1.15rem; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 400px) {
  body { font-size: 15.5px; }
  article h1, .page h1 { font-size: 1.55rem; }
  article h2, .page h2 { font-size: 1.22rem; }
  .brand { font-size: 1.02rem; }
  .brand img { height: 20px; }
  .header-cta { font-size: .74rem; padding: 6px 8px; }
}
