:root {
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-text: #ffffff;
  --accent-soft: #dbeafe;
  --focus: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #111a2e;
    --card: #131d33;
    --text: #e8eefb;
    --muted: #a8b4cc;
    --border: #2b3a57;
    --accent: #6ea0ff;
    --accent-hover: #93b6ff;
    --accent-text: #08122b;
    --accent-soft: #1b2a4d;
    --focus: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Cabeçalho */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); z-index: 10; }
@media (min-width: 760px) { .site-header { position: sticky; top: 0; } }
.bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 60px; flex-wrap: wrap; padding-top: .4rem; padding-bottom: .4rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.brand:hover { color: var(--text); }
.site-header nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-header nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-header nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 560px) {
  .site-header nav { gap: .7rem; }
  .site-header nav a:not(.btn) { font-size: .9rem; }
}

/* Botões */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  line-height: 1.2;
  text-align: center;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-sm { padding: .5rem 1rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }

/* Herói */
.hero { padding: 3rem 0 2.5rem; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0 0 1.5rem; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.fine { font-size: .92rem; color: var(--muted); margin-top: .9rem; }

/* Seções */
section { padding: 3rem 0; }
section.alt { background: var(--bg-soft); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.25; margin: 0 0 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; line-height: 1.3; }
.section-intro { color: var(--muted); max-width: 42rem; margin: 0 0 1.75rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.card.featured { border: 2px solid var(--accent); }

.steps { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: passo; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(passo);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: .6rem;
}
.steps p { margin: 0; color: var(--muted); }

/* Preço */
.price-box { max-width: 480px; margin: 0 auto; text-align: center; }
.price { font-size: 3rem; font-weight: 800; line-height: 1; margin: .5rem 0; }
.price small { font-size: 1.05rem; font-weight: 500; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.25rem 0; text-align: left; }
.checks li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: .1rem; top: .75rem; width: .8rem; height: .45rem; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.1rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 700; padding: 1rem 0; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: .75rem; }
details p { margin: 0 0 1rem; color: var(--muted); }

.roadmap { font-size: .95rem; color: var(--muted); text-align: center; margin-top: 1.5rem; }

/* Blog e artigos */
.page-head { padding: 2.5rem 0 1rem; }
.page-head h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -0.02em; }
.meta { color: var(--muted); font-size: .92rem; margin: 0; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.post-list a.title { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.post-list a.title:hover { text-decoration: underline; }

article.post { padding: 1rem 0 3rem; }
article.post h2 { margin-top: 2.25rem; }
article.post p, article.post li { max-width: 68ch; }
article.post ul, article.post ol { padding-left: 1.4rem; }
article.post li { margin-bottom: .5rem; }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout p { margin: 0; }
.related { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 2rem 0; font-size: .95rem; }
.site-footer p { margin: .25rem 0 0; color: var(--muted); }
.foot { display: grid; gap: 1.5rem; }
.foot nav { display: flex; flex-direction: column; gap: .4rem; }
@media (min-width: 760px) { .foot { grid-template-columns: 2fr 1fr 1.4fr; } }
.legal { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1rem; font-size: .88rem; color: var(--muted); }
.legal p { max-width: 80ch; }
.brand img, .foot img { height: 36px; width: auto; display: block; }
.foot img { height: 30px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Landing v2 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .92rem; margin: 0 0 .75rem; text-transform: none; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.mock { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; font-size: .98rem; }
.mock-head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-weight: 700; margin-bottom: .6rem; }
.mock .tag { background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: .1rem .7rem; font-size: .82rem; font-weight: 600; }
.mock ul { list-style: none; margin: 0; padding: 0; }
.mock li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--border); }
.mock li.done { color: var(--muted); text-decoration: line-through; }
.mock .box { width: 1.1rem; height: 1.1rem; border: 2px solid var(--muted); border-radius: 4px; flex: none; position: relative; }
.mock li.done .box { background: var(--accent); border-color: var(--accent); }
.mock li.done .box::after { content: ""; position: absolute; left: .27rem; top: .05rem; width: .3rem; height: .55rem; border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mock-next { margin-top: .6rem; background: var(--accent-soft); border-radius: 8px; padding: .55rem .8rem; font-size: .9rem; }
.facts { padding: 0; border-block: 1px solid var(--border); background: var(--bg-soft); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; text-align: center; }
@media (min-width: 760px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }
.facts-grid strong { display: block; font-size: 1.25rem; }
.facts-grid span { color: var(--muted); font-size: .92rem; }
h3.group { font-size: 1.15rem; margin: 2rem 0 .8rem; padding-bottom: .4rem; border-bottom: 2px solid var(--accent-soft); }
h4 { font-size: 1.05rem; margin: 0 0 .35rem; line-height: 1.3; }
.price-grid { align-items: start; margin-top: 1.5rem; }
.price-grid .card { text-align: left; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .96rem; background: var(--card); }
th, td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg-soft); }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
#faq h3 { margin: 2rem 0 .8rem; font-size: 1.1rem; }
details:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.wrap { scroll-margin-top: 80px; }
section[id], details[id], h3[id] { scroll-margin-top: 80px; }
@media (max-width: 560px) {
  table { min-width: 0; font-size: .8rem; }
  th, td { padding: .5rem .45rem; }
  tbody th { width: 34%; }
}

/* Blog v2 */
.breadcrumb { font-size: .92rem; color: var(--muted); margin: 0 0 .75rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--text); overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; line-height: 1; padding: .3rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--text); text-decoration: none; letter-spacing: .01em; }
.badge-novidades { background: var(--accent); color: var(--accent-text); }
.badge-row { margin: 0 0 .6rem; }
a.badge:hover { text-decoration: underline; color: inherit; }
a.badge-novidades:hover { color: var(--accent-text); }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tabs a { text-decoration: none; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: .95rem; }
.tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.tabs .count { opacity: .75; font-size: .85em; }
.post-list { padding-bottom: 1.5rem; }
.post-list .card-meta { font-size: .88rem; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.post-list .card p:not(.card-meta) { margin-top: .35rem; }
.pager { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-bottom: 1.5rem; }
.pager a { text-decoration: none; padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.pager a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.list-cta { padding-bottom: 3rem; }
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.5rem; font-size: .96rem; }
.toc ol { margin: .5rem 0 0; padding-left: 1.3rem; }
.toc li { margin-bottom: .25rem; }
.post-body h2, .post-body h3 { scroll-margin-top: 80px; }
.post-body h3 { margin: 1.6rem 0 .5rem; }
.post-body h2 { margin-top: 2.25rem; }
.post-body p, .post-body li { max-width: 68ch; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li { margin-bottom: .5rem; }
blockquote.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: .9rem 1.25rem; margin: 1.5rem 0; }
blockquote.callout p { margin: 0 0 .6rem; }
blockquote.callout p:last-child { margin-bottom: 0; }
pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: .9rem 1rem; overflow-x: auto; font-size: .9rem; line-height: 1.5; max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--bg-soft); padding: .1rem .3rem; border-radius: 4px; overflow-wrap: anywhere; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
article.post { overflow-wrap: break-word; }
.more { margin-top: 2rem; }
.more h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.more li { max-width: none; margin: 0; }
ul.plain { list-style: none; padding: 0; margin: .5rem 0; }
ul.plain li { margin-bottom: .5rem; }
.foot-4 { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .foot.foot-4 { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
