/* Blog do Kallos. Mesmos tokens da landing (apps/studio_kallos_landing_react/src/index.css):
   papel #faf6f1, tinta #1a120e, oxblood #6b2536, sienna #c2724e, Fraunces + Outfit.
   Blog e landing têm que parecer uma marca só. Claro por padrão, escuro se o sistema pedir.
   Motor/estrutura herdados do blog irmão (dono-do-app/blog/css/dono.css). */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf6f1;          /* --paper */
  --bg-soft: #f3ecde;     /* --paper-deep */
  --card: #ffffff;
  --line: #d8ccba;        /* --rule */
  --line-soft: #e8dccb;   /* --rule-soft / --sand */
  --text: #1a120e;        /* --ink */
  --muted: #4a3d35;       /* --ink-soft */
  --faint: #7a6c5e;       /* --ink-faint */
  --accent: #6b2536;      /* --oxblood: a cor da marca, só como acento */
  --accent-deep: #4a1a26;
  --accent-soft: #f6e9ec;
  --warm: #c2724e;        /* --sienna */
  --ok: #2f6b46;
  --wrap: 720px;
  --radius: 12px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16110f;
    --bg-soft: #1e1715;
    --card: #221a18;
    --line: #3a2e2a;
    --line-soft: #2e2522;
    --text: #f3ebe4;
    --muted: #cdbfb4;
    --faint: #a08f83;
    --accent: #d98aa0;
    --accent-deep: #b86c83;
    --accent-soft: #2c1e22;
    --warm: #e39a78;
    --ok: #6cc08c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.68;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }

/* ===== topo ===== */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .5px;
}
.brand-name { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.15; }
.brand-name em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.nav-cta {
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 7px 15px; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

/* ===== hero do índice ===== */
.hero { border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 48px; }
.hero-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0 0 16px; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 34em; }

/* ===== lista ===== */
.list { padding: 40px 0 8px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px;
}
.card:hover { border-color: var(--accent); }
.card h2 { margin: 8px 0 8px; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.card-more { font-size: 14px; font-weight: 600; color: var(--accent); }
.card-meta, .post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.tag {
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12px;
}

/* ===== post ===== */
.post { padding: 32px 0 8px; }
.back { display: inline-block; margin-bottom: 20px; font-size: 14px; text-decoration: none; }
.post h1 { margin: 12px 0 14px; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 5.5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.lead { margin: 0 0 32px; font-size: 20px; line-height: 1.55; color: var(--muted); }

.body { font-size: 18px; }
.body h2 { margin: 44px 0 14px; font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.body h3 { margin: 32px 0 10px; font-size: 20px; }
.body p { margin: 0 0 20px; }
.body ul, .body ol { margin: 0 0 22px; padding-left: 24px; }
.body li { margin-bottom: 9px; }
.body strong { font-weight: 700; }
.body a { text-underline-offset: 2px; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.body blockquote {
  margin: 26px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text); font-size: 19px; line-height: 1.55;
}
.body blockquote p { margin-bottom: 10px; }
.body blockquote p:last-child { margin-bottom: 0; }

.body code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px;
}
.body pre {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; overflow-x: auto; font-size: 14.5px; line-height: 1.5;
}
.body pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.body th, .body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.body th { background: var(--bg-soft); font-weight: 700; }

.body img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ===== autor ===== */
.author {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 48px 0 0; padding: 22px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.author-avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.author-name { font-weight: 700; }
.author-role { font-size: 14px; color: var(--muted); }
.author-bio { margin: 10px 0 0; font-size: 15.5px; color: var(--muted); line-height: 1.6; }

/* ===== CTA ===== */
.cta {
  position: relative; /* âncora do honeypot */
  margin: 28px 0 56px; padding: 30px 26px;
  background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius);
}
.cta-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.cta h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 500; font-size: 27px; line-height: 1.2; }
.cta > p { margin: 0 0 22px; color: var(--muted); font-size: 16.5px; }
.btn {
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 9px;
  padding: 14px 20px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.cta-note { margin: 0 0 18px; font-size: 13.5px; color: var(--faint); }
.cta-reassure { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15.5px; color: var(--muted); }
.cta-reassure li { padding-left: 22px; position: relative; }
.cta-reassure li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.cta-plans-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.plans { margin: 0 0 10px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { display: grid; gap: 4px; padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.plan-hi { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-name { font-family: var(--display); font-size: 20px; font-weight: 500; }
.plan-price { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.plan-period { font-size: 12.5px; color: var(--faint); margin-top: -4px; }
.plan-body { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 14px; }
.stores-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.stores .btn { text-decoration: none; }
.cta-site { margin: 0; font-size: 15px; }
.cta-site a { font-weight: 600; text-decoration: none; }
.cta-site a:hover { text-decoration: underline; }

.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 30px 0 40px; color: var(--muted); font-size: 14.5px; }
.footer p { margin: 0 0 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal { font-size: 12.5px; opacity: .8; }

@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .brand-name em { display: none; }
  .cta { padding: 24px 18px; }
}

/* ===== capas ===== */
.hero-img {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630;
  object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line); margin: 0 0 34px;
}
.card-img img {
  display: block; width: calc(100% + 44px); margin: -22px -22px 18px;
  height: auto; aspect-ratio: 1200 / 630; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ===== 404 ===== */
.nao-achou {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-bottom: 26px;
}
.nao-achou h2 { margin: 0 0 10px; font-size: 24px; }
.nao-achou p { margin: 0 0 10px; color: var(--muted); }
