/* ── Shorti Blog — design system compartilhado ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #ffffff;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #1B44B8; color: #fff; }
a { color: inherit; }

/* ── Nav (igual ao site principal) ─────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.n-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.n-bars { display: flex; align-items: flex-end; gap: 2.5px; }
.n-bar  { border-radius: 2px; transform: skewX(-10deg); background: #0F172A; }
.n-bar:nth-child(1) { width: 4px; height: 9px; opacity: .35; }
.n-bar:nth-child(2) { width: 5px; height: 14px; }
.n-wm { font-size: 18px; font-weight: 900; letter-spacing: -.055em; color: #0F172A; }
.n-wm b { color: #1B44B8; }
.n-actions { display: flex; align-items: center; gap: 20px; }
.n-enter {
  font-size: 13px; font-weight: 500; color: rgba(15,23,42,.4);
  text-decoration: none; letter-spacing: .01em; transition: color .2s;
}
.n-enter:hover { color: #0F172A; }
.n-cta {
  display: inline-flex; align-items: center;
  background: #0F172A; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: -.01em;
  padding: 9px 18px; border-radius: 100px;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 2px 14px rgba(15,23,42,.14);
}
.n-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(15,23,42,.22); }

/* ── Cores por assunto (mesma paleta dos ícones da home) ────── */
.accent-blue    { --accent: #1D4ED8; --accent-soft: rgba(59,130,246,.14); --accent-glow: rgba(59,130,246,.28); }
.accent-cyan    { --accent: #0891b2; --accent-soft: rgba(22,211,234,.14); --accent-glow: rgba(22,211,234,.28); }
.accent-violet  { --accent: #7c3aed; --accent-soft: rgba(139,92,246,.14); --accent-glow: rgba(139,92,246,.28); }
.accent-purple  { --accent: #6d28d9; --accent-soft: rgba(168,85,247,.14); --accent-glow: rgba(168,85,247,.28); }

/* ── Reveal ao rolar a página (conteúdo abaixo da dobra) ────── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.rv.on { opacity: 1; transform: translateY(0); }
.rv-d1.on { transition-delay: .08s; }
.rv-d2.on { transition-delay: .16s; }
.rv-d3.on { transition-delay: .24s; }

/* ── Entrada por CSS puro (conteúdo já visível no carregamento,
   não depende de JS/scroll — usar em títulos acima da dobra) ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in    { opacity: 0; animation: fadeUp .6s cubic-bezier(.16,1,.3,1) forwards; }
.fade-in-d1 { animation-delay: .1s; }
.fade-in-d2 { animation-delay: .2s; }

/* ── Header do blog / artigo ───────────────────────────────── */
.blog-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #1B44B8; margin-bottom: 14px; display: block;
}

/* ── Badge de ícone colorido (topo do artigo / card) ───────── */
.post-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft, rgba(27,68,184,.12));
  color: var(--accent, #1B44B8);
  margin: 0 auto 20px;
}
.post-icon svg { width: 24px; height: 24px; }
.blog-card-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft, rgba(27,68,184,.12));
  color: var(--accent, #1B44B8);
  margin-bottom: 14px;
}
.blog-card-icon svg { width: 19px; height: 19px; }

/* ── Print do sistema, em moldura de navegador ─────────────── */
.shot-wrap {
  position: relative; margin: 36px 0 44px;
  display: flex; justify-content: center;
}
.shot-glow {
  position: absolute; inset: -10% -6%; z-index: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 45%, var(--accent-glow, rgba(27,68,184,.2)) 0%, transparent 72%);
  filter: blur(18px); pointer-events: none;
}
.shot-browser {
  position: relative; z-index: 1; width: 100%;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(15,23,42,.16), 0 0 0 1px rgba(15,23,42,.06);
  background: #fff;
}
.shot-bar {
  background: #F8FAFC; padding: 10px 14px;
  display: flex; align-items: center; gap: 9px;
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.shot-dots { display: flex; gap: 5px; }
.shot-dot { width: 8px; height: 8px; border-radius: 50%; }
.shot-url {
  flex: 1; background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 6px;
  padding: 4px 12px; font-size: 10.5px; color: rgba(15,23,42,.35); font-family: ui-monospace, monospace;
}
.shot-imgwrap { aspect-ratio: 1440 / 900; overflow: hidden; }
.shot-imgwrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot-caption {
  text-align: center; font-size: 13px; color: rgba(15,23,42,.4);
  margin-top: 14px;
}
.blog-hero {
  max-width: 760px; margin: 0 auto; padding: 64px 24px 40px; text-align: center;
}
.blog-hero h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -.03em;
  line-height: 1.05; margin-bottom: 18px;
}
.blog-hero p { font-size: 18px; color: rgba(15,23,42,.55); line-height: 1.5; }

/* ── Grid de artigos (index) ───────────────────────────────── */
.blog-grid {
  max-width: 1040px; margin: 0 auto; padding: 24px 24px 100px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
@media (max-width: 720px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: block; text-decoration: none; color: inherit;
  padding: 28px; border-radius: 20px;
  border: 1px solid rgba(15,23,42,.08);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(15,23,42,.1);
  border-color: var(--accent-glow, rgba(27,68,184,.25));
}
.blog-card:hover .blog-card-icon { transform: scale(1.08); }
.blog-card-icon { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.blog-card-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #1B44B8; margin-bottom: 12px; display: block;
}
.blog-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.25; }
.blog-card p { font-size: 14.5px; color: rgba(15,23,42,.55); line-height: 1.55; }
.blog-card-arr { margin-top: 16px; font-size: 13px; font-weight: 700; color: #0F172A; display: flex; align-items: center; gap: 6px; }

/* ── Corpo do artigo ────────────────────────────────────────── */
article.post {
  max-width: 680px; margin: 0 auto; padding: 8px 24px 80px;
  font-size: 17px; line-height: 1.75; color: rgba(15,23,42,.82);
}
article.post h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -.02em;
  color: #0F172A; margin: 44px 0 16px;
}
article.post h3 {
  font-size: 19px; font-weight: 800; letter-spacing: -.01em;
  color: #0F172A; margin: 32px 0 12px;
}
article.post p { margin-bottom: 18px; }
article.post ul, article.post ol { margin: 0 0 18px 22px; }
article.post li { margin-bottom: 8px; }
article.post strong { color: #0F172A; }
article.post a.inline-link { color: #1B44B8; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── CTA embutido no artigo ─────────────────────────────────── */
.post-cta {
  margin: 44px 0; padding: 32px; border-radius: 20px;
  background: #0F172A; color: #fff; text-align: center;
}
.post-cta h3 { color: #fff; margin: 0 0 8px; font-size: 21px; }
.post-cta p { color: rgba(255,255,255,.65); margin-bottom: 20px; font-size: 15px; }
.post-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #0F172A; text-decoration: none;
  font-size: 14px; font-weight: 800; letter-spacing: -.01em;
  padding: 12px 22px; border-radius: 100px;
  transition: transform .18s;
}
.post-cta-btn:hover { transform: translateY(-2px); }

.post-meta {
  max-width: 680px; margin: 0 auto 8px; padding: 0 24px;
  font-size: 13px; color: rgba(15,23,42,.4);
  display: flex; gap: 10px; align-items: center;
}
.post-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: rgba(15,23,42,.45);
  text-decoration: none; margin: 24px 24px 0; max-width: 680px;
}
.post-back:hover { color: #1B44B8; }

/* ── Footer (igual ao site principal) ──────────────────────── */
footer {
  padding: 32px 48px;
  border-top: 1px solid rgba(15,23,42,.07);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.foot-brand { font-size: 13px; font-weight: 900; letter-spacing: -.04em; color: rgba(15,23,42,.35); }
.foot-brand b { color: #818CF8; }
.foot-copy { font-size: 12px; color: rgba(15,23,42,.2); }
.foot-links { display: flex; gap: 24px; }
.foot-lk { font-size: 12px; color: rgba(15,23,42,.32); text-decoration: none; transition: color .2s; }
.foot-lk:hover { color: rgba(15,23,42,.8); }

@media (max-width: 640px) {
  nav, footer { padding: 18px 20px; }
  .blog-hero { padding: 40px 20px 28px; }
  article.post { font-size: 16px; }
}
