/* SEM FIO — Resumidor (#6) — reusa design system */
:root {
  --bg: #fafaf7; --bg-card: #ffffff; --ink: #1a1f24; --ink-mid: #4a5560; --ink-soft: #7a8693;
  --line: #e5e8eb; --line-soft: #f0f2f4; --brand: #0a5a9c; --brand-mid: #084577; --brand-soft: #e6f0f8;
  --accent: #aed81e;
  --accent-mid: #9bc91f; --danger: #b14a3a; --ok: #2d6b4e;
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(14,59,67,0.05);
  --max: 1080px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 16px; }
a { color: var(--brand-mid); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--brand-mid); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--bg-card); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-svg { height: 36px; width: auto; display: block; flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; letter-spacing: 0.5px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 14px; color: var(--ink); }
.brand-tag { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.6px; }
.topbar-link { font-size: 13px; color: var(--brand-mid); font-weight: 500; }

.layout { max-width: var(--max); margin: 0 auto; padding: 40px 24px 64px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .layout { grid-template-columns: 1fr 320px; gap: 32px; align-items: start; } }
.principal { min-width: 0; }
.lateral { position: sticky; top: 80px; }

.hero { margin-bottom: 24px; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--brand-mid); margin: 0 0 12px; }
.hero h1 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--ink); }
.hero .lead { font-size: 16px; color: var(--ink-mid); margin: 0; max-width: 560px; }

.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px; margin: 0 0 20px; box-shadow: var(--shadow); }
.card h2 { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.card h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.hint { font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; }

.form .field { margin-bottom: 14px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.form textarea, .form input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; color: var(--ink); background: #fff; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.form textarea { resize: vertical; min-height: 200px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.5; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form .help { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; padding: 12px 22px; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn-primary:hover { background: var(--brand-mid); border-bottom: none; }
.btn-primary:active { transform: translateY(1px); }
.form .btn-primary { width: 100%; margin-top: 8px; }
.btn-secondary { background: var(--bg-card); color: var(--brand); padding: 10px 18px; border: 1px solid var(--brand); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.resultado { background: var(--brand-soft); border-color: #c8d8da; }
.resumo-bloco { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.resumo-bloco h3 { margin: 0 0 8px; color: var(--brand); }
.resumo-texto { font-size: 15px; color: var(--ink); line-height: 1.6; white-space: pre-wrap; }
.resumo-lista { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-mid); }
.resumo-lista li { margin-bottom: 6px; }
.resumo-lista:empty::before { content: '(nada detectado)'; color: var(--ink-soft); font-style: italic; font-size: 13px; }

.ia-local-box { background: var(--bg-card); border: 1px dashed var(--brand); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.ia-local-box p { font-size: 14px; color: var(--ink-mid); margin: 0 0 10px; }

.cta { background: var(--brand); color: #fff; padding: 18px 20px; border-radius: var(--radius); text-align: center; margin-top: 16px; }
.cta p { margin: 0 0 12px; font-size: 14px; }
.cta .btn-primary { background: #fff; color: var(--brand); }

.feed h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--brand); margin: 0 0 4px; }
.feed-lead { font-size: 12px; color: var(--ink-soft); margin: 0 0 14px; }
.manchetes { display: flex; flex-direction: column; gap: 12px; }
.manchete { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.manchete:last-child { border-bottom: none; }
.manchete-titulo { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; margin: 0 0 4px; display: block; }
.manchete-titulo:hover { color: var(--brand-mid); }
.manchete-resumo { font-size: 12px; color: var(--ink-soft); line-height: 1.4; margin: 0 0 4px; }
.manchete-data { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; }
.feed-loading { font-size: 13px; color: var(--ink-soft); font-style: italic; margin: 0; }
.feed-rodape { font-size: 12px; text-align: right; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }

.rodape { border-top: 1px solid var(--line); background: var(--bg-card); padding: 32px 24px; margin-top: 48px; }
.rodape-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 20px; grid-template-columns: 1fr; font-size: 13px; }
@media (min-width: 600px) { .rodape-inner { grid-template-columns: 2fr 1fr 1fr; gap: 32px; } }
.rodape strong { display: block; color: var(--ink); margin-bottom: 4px; }
.rodape p { margin: 0; color: var(--ink-soft); }
.rodape-links { display: flex; flex-direction: column; gap: 4px; }
.rodape-links a { color: var(--ink-mid); }
.rodape-meta p { margin: 0 0 4px; }
@media (max-width: 640px) { .layout { padding: 24px 16px 48px; } .card { padding: 18px 16px; } .topbar { padding: 12px 16px; } .topbar-link { display: none; } .lateral { position: static; } }
