/* ══════════════════════════════════════════════════════════════════
   Blog HeyBira — sistema editorial

   Estrutura, hierarquia e componentes espelham o blog do Sistema
   Elementar (grid de 3 colunas, meta em monoespaçada, régua de
   compartilhamento lateral, faixa de estatísticas, caixa "em resumo",
   acordeão de FAQ, cartão de autor, navegação anterior/próximo).

   A paleta é a do HeyBira, não a do Elementar: creme/laranja no lugar
   de branco/vermelho. Blog e landing page dividem o mesmo domínio —
   trocar de paleta entre uma página e outra leria como site invadido.
   ══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal:    #111111;
  --teal2:   #1A1A1A;
  --orange:  #F26419;
  --orange2: #D95510;
  --orange-soft: #FDF0E9;
  --cream:   #FBF7F0;
  --cream2:  #F3EDE3;
  --white:   #FDFAF6;
  --ink:     #080808;
  --soft:    #3A3A3A;
  --muted:   #6E6E6E;
  --dim:     #A0A0A0;
  --bd:      #E8E5DE;
  --bd2:     #D9D5CB;
  --ease:    cubic-bezier(.22,1,.36,1);

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body:    'DM Sans', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
}

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

body {
  font-family: var(--body);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.08; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.rule { height: 1px; background: var(--bd); border: 0; }

/* rótulo monoespaçado — assinatura visual da referência */
.kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ══ CABEÇALHO ═══════════════════════════════════════════════════ */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253,250,246,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bd);
}
.nav { display: flex; align-items: center; gap: 34px; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-brand span { font-family: var(--display); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-right: auto; }
.nav-links > a { font-size: 0.9063rem; font-weight: 500; color: var(--soft); transition: color .2s var(--ease); }
.nav-links > a:hover, .nav-links > a.active { color: var(--orange); }
.nav-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--bd); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--soft); transition: all .2s var(--ease);
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange); }
.nav-cta {
  background: var(--orange); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  font-size: 0.8438rem; font-weight: 700; white-space: nowrap;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.nav-cta:hover { background: var(--orange2); transform: translateY(-1px); }

/* ══ TOPO DA LISTAGEM ════════════════════════════════════════════ */
.list-hero { padding: 76px 0 40px; }
.list-hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  font-weight: 800; max-width: 20ch;
}
.list-hero h1 em { font-style: italic; color: var(--orange); }
.list-hero p {
  margin-top: 18px; max-width: 52ch;
  font-size: 1rem; line-height: 1.65; color: var(--muted);
}

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.cat {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--bd); background: transparent;
  padding: 8px 14px; border-radius: 999px;
  transition: all .2s var(--ease);
}
.cat:hover { border-color: var(--orange); color: var(--orange); }
.cat.on { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ══ GRID DE CARTÕES ═════════════════════════════════════════════ */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin-top: 38px;
}
.card {
  border: 1px solid var(--bd); border-radius: 10px;
  background: var(--white); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { border-color: var(--bd2); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(8,8,8,0.06); }
.card-thumb {
  height: 176px; background: var(--cream2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(8,8,8,0.13); position: relative; overflow: hidden;
}
.card-thumb.tinted { background: var(--orange-soft); color: rgba(242,100,25,0.26); }
/* variante "dark" é creme mais fechado, não preto: na referência as
   miniaturas sem imagem são todas claras, e um bloco preto no meio do
   grid puxa o olho para o card errado. */
.card-thumb.dark { background: #EDE6D9; color: rgba(8,8,8,0.15); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body .kicker { color: var(--muted); }
.card-body h3 {
  margin-top: 10px; font-size: 1.0625rem; font-weight: 700;
  line-height: 1.3; letter-spacing: -0.02em; flex: 1;
}
.card-foot {
  margin-top: 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.byline-mini { display: flex; align-items: center; gap: 9px; min-width: 0; }
.av {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 0.6875rem;
}
.byline-mini div { min-width: 0; }
.byline-mini .nm { font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.byline-mini .dt { font-family: var(--mono); font-size: 0.6563rem; color: var(--dim); }
.readtime {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--bd); border-radius: 999px; padding: 4px 10px;
  font-family: var(--mono); font-size: 0.6563rem; color: var(--muted);
}

/* ══ ARTIGO ══════════════════════════════════════════════════════ */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--orange); width: 0; z-index: 99; }

.crumb {
  padding: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dim);
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--orange); }

.post-layout { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 28px; }

/* régua vertical de compartilhamento */
.share-rail { position: sticky; top: 108px; height: max-content; padding-top: 6px; }
.share-rail .lbl {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--dim);
  writing-mode: vertical-rl; margin: 0 auto 16px; display: block;
}
.share-rail a {
  width: 38px; height: 38px; margin: 0 auto 10px;
  border: 1px solid var(--bd); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .2s var(--ease);
}
.share-rail a:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

article { max-width: 820px; }

.post-cat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.04em;
  background: var(--orange-soft); color: var(--orange2);
  padding: 4px 11px; border-radius: 999px;
}
.post-title {
  margin-top: 14px; font-size: clamp(2rem, 4.6vw, 3.125rem); font-weight: 800;
}
.post-by {
  margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 0.9063rem; color: var(--muted);
}
.post-by b { color: var(--ink); font-weight: 600; }
.post-by .sep { color: var(--bd2); }

/* faixa de estatísticas */
.stats {
  margin: 30px 0 0; padding: 26px 0;
  border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat { text-align: center; padding: 0 18px; }
.stat + .stat { border-left: 1px solid var(--bd); }
.stat .n { font-family: var(--display); font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.04em; }
.stat .l {
  margin-top: 6px; font-family: var(--mono); font-size: 0.6563rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.4;
}

/* caixa "em resumo" */
.tldr {
  margin: 34px 0; padding: 26px 28px;
  background: linear-gradient(135deg, var(--orange-soft) 0%, rgba(253,240,233,0.35) 100%);
  border: 1px solid rgba(242,100,25,0.16); border-radius: 16px;
}
.tldr-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--orange); color: #fff;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.tldr ol { list-style: none; margin: 18px 0 0; }
.tldr li {
  display: flex; gap: 16px; padding: 14px 0;
  font-size: 0.9688rem; line-height: 1.65; color: var(--soft);
}
.tldr li + li { border-top: 1px solid rgba(242,100,25,0.14); }
.tldr li .num {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--orange); flex-shrink: 0; padding-top: 2px;
}
.tldr li b { color: var(--ink); font-weight: 700; }

/* corpo */
article > p { font-size: 1.0625rem; line-height: 1.8; color: var(--soft); margin-bottom: 22px; }
article h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800;
  margin: 52px 0 18px; scroll-margin-top: 96px;
}
article h3 { font-size: 1.25rem; font-weight: 700; margin: 34px 0 12px; }
article strong { color: var(--ink); font-weight: 700; }
article em { font-style: italic; }
article ul, article ol { margin: 0 0 24px 20px; }
article li { font-size: 1.0625rem; line-height: 1.75; color: var(--soft); margin-bottom: 12px; }
article li::marker { color: var(--orange); }
article a.inline { color: var(--orange2); font-weight: 600; border-bottom: 1px solid rgba(242,100,25,0.32); }
article a.inline:hover { border-color: var(--orange); }

.dense { margin-left: 0; list-style: none; }
.dense li { padding-left: 0; }
.dense li b { display: inline; }

blockquote {
  margin: 30px 0; padding: 20px 26px;
  border-left: 3px solid var(--orange); background: var(--cream);
  border-radius: 0 10px 10px 0;
}
blockquote p { font-family: Georgia, serif; font-size: 1.125rem; font-style: italic; color: var(--ink); line-height: 1.55; }

.table-scroll { overflow-x: auto; margin: 30px 0; }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--bd); border-radius: 10px; overflow: hidden; min-width: 520px; }
th, td { padding: 14px 18px; text-align: left; font-size: 0.9375rem; border-bottom: 1px solid var(--bd); }
th { background: var(--cream2); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
tr:last-child td { border-bottom: none; }
td.win { color: var(--orange2); font-weight: 700; }

/* captura de e-mail no meio do texto */
.capture {
  margin: 46px 0; background: var(--teal); color: var(--white);
  border-radius: 16px; padding: 42px 38px; text-align: center;
  position: relative; overflow: hidden;
}
.capture::after {
  content: ''; position: absolute; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(242,100,25,0.26) 0%, transparent 70%);
  bottom: -260px; left: 50%; transform: translateX(-50%);
}
.capture-logo {
  position: relative; z-index: 2; width: 44px; height: 44px; margin: 0 auto 18px;
  border-radius: 12px; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.capture h3 { position: relative; z-index: 2; font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 800; max-width: 22ch; margin: 0 auto; }
.capture p { position: relative; z-index: 2; margin: 12px auto 22px; max-width: 46ch; font-size: 0.9375rem; line-height: 1.6; color: rgba(255,255,255,0.6); }
.capture form { position: relative; z-index: 2; display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.capture input {
  flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  color: var(--white); padding: 13px 18px; border-radius: 10px;
  font-family: var(--body); font-size: 0.9063rem; outline: none;
}
.capture input::placeholder { color: rgba(255,255,255,0.36); }
.capture input:focus { border-color: var(--orange); }
.capture button {
  background: var(--orange); color: #fff; border: 0;
  padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 0.9063rem;
  transition: background .2s var(--ease);
}
.capture button:hover { background: var(--orange2); }
.capture small { position: relative; z-index: 2; display: block; margin-top: 14px; font-size: 0.75rem; color: rgba(255,255,255,0.34); }

/* cartão escuro de produto */
.promo {
  margin: 46px 0; background: var(--teal); color: var(--white);
  border-radius: 16px; padding: 34px 34px; position: relative; overflow: hidden;
}
.promo::after {
  content: ''; position: absolute; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(242,100,25,0.3) 0%, transparent 70%);
  top: -150px; right: -110px;
}
.promo > * { position: relative; z-index: 2; }
.promo h3 { font-size: 1.375rem; font-weight: 800; }
.promo p { margin: 10px 0 20px; font-size: 0.9375rem; line-height: 1.65; color: rgba(255,255,255,0.62); max-width: 56ch; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  padding: 13px 24px; border-radius: 999px;
  font-size: 0.9063rem; font-weight: 700;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--orange2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--orange2);
  border: 1.5px solid var(--orange);
}
.btn-ghost:hover { background: var(--orange-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }

/* FAQ */
.faq { margin-top: 20px; }
.faq-item { border-bottom: 1px solid var(--bd); }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left;
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; color: var(--ink);
}
.faq-q::after { content: '+'; color: var(--orange); font-size: 1.5rem; line-height: 1; flex-shrink: 0; transition: transform .25s var(--ease); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a p { font-size: 0.9688rem; line-height: 1.7; color: var(--muted); padding-bottom: 22px; }

/* tags */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 38px 0 0; }
.tags .kicker { color: var(--dim); }
.tag-chip {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  border: 1px solid var(--bd); border-radius: 999px; padding: 6px 14px;
  transition: all .2s var(--ease);
}
.tag-chip:hover { border-color: var(--orange); color: var(--orange); }

/* botões sociais */
.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 0; }
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 10px; border-radius: 10px; color: #fff;
  font-size: 0.9063rem; font-weight: 600;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.share-btn:hover { opacity: .9; transform: translateY(-2px); }
.sb-wa { background: #25D366; }
.sb-fb { background: #1877F2; }
.sb-tg { background: #0088CC; }
.sb-x  { background: #111111; }

/* cartão do autor */
.author-card {
  margin-top: 34px; border: 1px solid var(--bd); border-radius: 14px;
  padding: 26px 28px; display: flex; gap: 22px; align-items: flex-start;
}
.author-card .av-lg {
  width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal); display: flex; align-items: center; justify-content: center;
}
.author-card .av-lg img { width: 46px; height: 46px; object-fit: contain; }
.author-card h4 { font-size: 1.125rem; font-weight: 800; }
.author-card .role { margin-top: 5px; }
.author-card p { margin-top: 12px; font-size: 0.9375rem; line-height: 1.65; color: var(--muted); }

/* anterior / próximo */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.pn {
  border: 1px solid var(--bd); border-radius: 12px; padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.pn:hover { border-color: var(--orange); transform: translateY(-2px); }
.pn.next { flex-direction: row-reverse; text-align: right; }
.pn .arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--orange);
}
.pn > span { min-width: 0; }
.pn .kicker { display: block; }
.pn .t { display: block; margin-top: 7px; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3; }

/* leia também */
.related { margin-top: 76px; }
.related-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.related-head .bar { width: 4px; height: 26px; background: var(--orange); border-radius: 2px; }
.related-head h2 { font-size: 1.5rem; font-weight: 800; margin: 0; }

/* ══ RODAPÉ ══════════════════════════════════════════════════════ */
footer.site { margin-top: 92px; background: var(--teal); color: var(--white); padding: 62px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand img { width: 138px; }
.footer-tagline { margin-top: 14px; font-size: 0.9063rem; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 34ch; }
.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-nav-title {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px;
}
.footer-nav-links { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-links a { font-size: 0.9063rem; color: rgba(255,255,255,0.72); transition: color .2s var(--ease); }
.footer-nav-links a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.09);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-family: var(--mono); font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ══ RESPONSIVO ══════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .share-rail { display: none; }
  .nav-links { display: none; }
  .share-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--bd); padding-top: 18px; margin-top: 18px; }
  .prevnext { grid-template-columns: 1fr; }
  .capture form { flex-direction: column; }
  .capture { padding: 32px 22px; }
  .author-card { flex-direction: column; }
  .footer-nav { gap: 32px; }
}
