/* Blog do Tavaga — identidade Aurora (preto + verde-água, luzes desfocadas, vidro fosco).
   Títulos em Raleway, texto em Geist, rótulos em Geist Mono, logo em Sora. Nunca usar fundo quadriculado. */
:root {
  --aurora: #5EEAC4; --aurora-rgb: 94, 234, 196; --deep: #0B7A6B; --glow1: #12B5A0; --glow2: #3F7BFF;
  --ink: #07080C; --paper: #F7F6F3; --sand: #E6E3DC; --soft: #5F6069; --line: rgba(7, 8, 12, .09);
  --dark-soft: #A9AFBF; --dark-line: rgba(255, 255, 255, .1);
  --body: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head: 'Raleway', 'Geist', sans-serif; --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.7; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; line-height: 1.15; }

.tv-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.tv-wrap.narrow { max-width: 760px; }
@media (min-width: 768px) { .tv-wrap { padding: 0 24px; } }

/* Logo e botões */
.tv-logo { display: inline-flex; align-items: center; gap: .55em; font-family: 'Sora', var(--body); font-weight: 600; font-size: 1.4rem; letter-spacing: -.03em; line-height: 1; color: #fff; }
.tv-logo.light { color: var(--ink); }
.tv-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; text-decoration: none; padding: .6rem 1.1rem; font-size: .92rem; line-height: 1.2; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.tv-btn.aurora { background: var(--aurora); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(var(--aurora-rgb), .9); }
.tv-btn.aurora:hover { transform: translateY(-1px); }
.tv-btn.ghost { background: rgba(var(--aurora-rgb), .13); color: var(--aurora); }
.tv-btn.lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.tv-kicker { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); }

/* Cabeçalho flutuante com vidro fosco */
.tv-header { position: sticky; top: 0; z-index: 30; padding: .75rem 0; }
.tv-bar { display: flex; align-items: center; gap: 1.5rem; background: rgba(24, 25, 30, .86); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: .6rem .65rem .6rem 1.2rem; box-shadow: 0 18px 40px -24px rgba(7, 8, 12, .6); }
.tv-bar > a { text-decoration: none; }
.tv-menu { display: none; gap: 1.6rem; margin-left: 1rem; }
.tv-menu a { color: #C9CEDA; text-decoration: none; font-size: .92rem; font-weight: 500; }
.tv-menu a:hover { color: #fff; }
.tv-actions { display: flex; gap: .5rem; margin-left: auto; }
@media (min-width: 900px) { .tv-menu { display: flex; } }
@media (max-width: 575px) { .tv-bar { gap: .5rem; padding-left: .9rem; } .tv-bar .tv-btn { padding: .55rem .8rem; font-size: .85rem; } .tv-logo { font-size: 1.2rem; } }

/* Artigo */
.tv-article { padding: 2rem 0 3rem; }
.tv-crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.tv-crumbs a { color: var(--soft); text-decoration: none; } .tv-crumbs a:hover { color: var(--deep); }
.tv-article h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; margin: 1rem 0 1rem; }
.tv-lead { font-size: 1.18rem; color: var(--soft); margin: 0 0 1rem; }
.tv-meta { font-size: .9rem; color: var(--soft); margin: 0; }
.tv-hero { max-width: 1040px; margin: 2rem auto 0; padding: 0 16px; }
.tv-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; background: var(--sand); }
.tv-hero figcaption { font-size: .78rem; color: var(--soft); margin-top: .5rem; text-align: right; }
.tv-hero figcaption a { color: var(--soft); }

.tv-answer { margin: 2.2rem 0 1.5rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--aurora); border-radius: 18px; padding: 1.2rem 1.4rem; }
.tv-answer p { margin: .35rem 0 0; font-size: 1.06rem; font-weight: 500; }
.tv-toc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.4rem; margin-bottom: 2rem; }
.tv-toc summary { cursor: pointer; font-weight: 700; font-family: var(--head); }
.tv-toc ol { margin: .6rem 0 .2rem; padding-left: 1.2rem; font-size: .95rem; line-height: 1.6; }
.tv-toc a { color: var(--ink); text-decoration: none; } .tv-toc a:hover { color: var(--deep); text-decoration: underline; }

.tv-body h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; margin: 2.6rem 0 .8rem; }
.tv-body h3 { font-size: 1.22rem; font-weight: 700; margin: 1.8rem 0 .5rem; }
.tv-body p, .tv-body li { color: #2B2D33; }
.tv-body ul, .tv-body ol { padding-left: 1.3rem; }
.tv-body li { margin-bottom: .45rem; }
.tv-body li::marker { color: var(--deep); font-weight: 700; }
.tv-body strong { color: var(--ink); }
.tv-body blockquote { margin: 1.6rem 0; padding: 1rem 1.3rem; background: rgba(var(--aurora-rgb), .14); border-radius: 16px; border: 0; }
.tv-body blockquote p { margin: 0; color: var(--ink); }
.tv-table { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.tv-table table { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 480px; }
.tv-table th, .tv-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tv-table th { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); font-weight: 500; background: var(--paper); }
.tv-table tr:last-child td { border-bottom: 0; }

/* Chamada para o teste grátis: escuro com luzes Aurora desfocadas */
.tv-cta { position: relative; overflow: hidden; margin: 2.6rem 0; border-radius: 26px; background: var(--ink); color: #fff; padding: 2rem 1.5rem; isolation: isolate; }
.tv-cta .glow, .tv-blog-hero .glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; }
.tv-cta .g1 { width: 280px; height: 280px; background: var(--glow1); opacity: .55; top: -120px; right: -60px; }
.tv-cta .g2 { width: 240px; height: 240px; background: var(--glow2); opacity: .4; bottom: -140px; left: -60px; }
.tv-cta .tv-kicker { color: var(--aurora); }
.tv-cta .t { font-family: var(--head); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.03em; margin: .5rem 0 .6rem; color: #fff; }
.tv-cta .d { color: #D3D7E1; margin: 0 0 1.4rem; max-width: 560px; }
.tv-cta .s { display: block; margin-top: .9rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-soft); }
@media (min-width: 768px) { .tv-cta { padding: 2.6rem 2.4rem; } }
@media (max-width: 575px) { .tv-cta .tv-btn.lg { width: 100%; white-space: normal; } }

.tv-author { display: flex; gap: 1rem; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.tv-author .av { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.tv-author p { margin: .2rem 0 0; font-size: .92rem; color: var(--soft); line-height: 1.6; }

/* Cartões */
.tv-related { background: #fff; border-top: 1px solid var(--line); padding: 3.5rem 0 4rem; }
.tv-related h2, .tv-cat-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 1.4rem; }
.tv-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tv-grid { grid-template-columns: repeat(3, 1fr); } }
.tv-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.tv-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(7, 8, 12, .45); }
.tv-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--sand); }
.tv-card .cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); margin: 1.1rem 1.3rem 0; }
.tv-card h3 { font-size: 1.18rem; font-weight: 800; margin: .45rem 1.3rem .5rem; }
.tv-card p { font-size: .92rem; color: var(--soft); margin: 0 1.3rem 1rem; line-height: 1.55; flex: 1; }
.tv-card .more { margin: 0 1.3rem 1.3rem; font-weight: 600; font-size: .9rem; color: var(--deep); }

/* Índice do blog */
.tv-blog-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; margin: -5.2rem 0 0; padding: 8.5rem 0 4rem; }
.tv-blog-hero .g1 { width: 520px; height: 520px; background: var(--glow1); opacity: .45; top: -200px; right: -120px; filter: blur(100px); }
.tv-blog-hero .g2 { width: 460px; height: 460px; background: var(--glow2); opacity: .35; bottom: -260px; left: -140px; filter: blur(100px); }
.tv-blog-hero .tv-kicker { color: var(--aurora); }
.tv-blog-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; max-width: 860px; margin: .8rem 0 1rem; }
.tv-blog-hero h1 em { color: var(--aurora); font-style: italic; }
.tv-blog-hero p { color: #D3D7E1; font-size: 1.15rem; max-width: 640px; margin: 0; }
.tv-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tv-cats a { color: #E7EAF0; text-decoration: none; background: rgba(255, 255, 255, .06); border: 1px solid var(--dark-line); border-radius: 999px; padding: .4rem .95rem; font-size: .9rem; }
.tv-cats a:hover { border-color: rgba(var(--aurora-rgb), .6); color: #fff; }
.tv-cat-section { padding: 3.5rem 0 .5rem; }

/* Rodapé */
.tv-footer { background: var(--ink); color: var(--dark-soft); padding: 2.6rem 0 2rem; font-size: .88rem; }
.tv-footer a { color: #C9CEDA; text-decoration: none; } .tv-footer a:hover { color: #fff; }
.tv-footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--dark-line); }
.tv-footer-top nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.tv-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.4rem; font-family: var(--mono); font-size: .74rem; }

/* Botão fixo no celular */
.tv-sticky { display: none; }
@media (max-width: 767px) {
  .tv-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom, 0px)); background: rgba(7, 8, 12, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .tv-sticky .tv-btn { width: 100%; padding: .85rem; font-size: 1rem; }
  .tv-footer { padding-bottom: 6rem; }
  body { font-size: 16.5px; }
}
