:root {
  --cyan: #05a6fa;
  --cyan-dark: #0490d9;
  --cyan-soft: #89d5fd;
  --cyan-mist: #e8f6fe;
  --orange: #ffa500;
  --orange-dark: #e69500;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --ok: #15803d;
  --shadow: 0 2px 6px rgb(15 23 42 / 8%);
  --shadow-lg: 0 8px 15px rgb(15 23 42 / 8%), 0 3px 6px rgb(15 23 42 / 8%);
  --shadow-xl: 2px 11px 16px rgb(15 23 42 / 17%), 0 1px 6px rgb(15 23 42 / 17%);
  --header: 72px;
  --max: 72rem;
  --prose: 48rem;
  --font: Inter, ui-sans-serif, system-ui, sans-serif;
  --display: "Cabinet Grotesk", Inter, ui-sans-serif, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:hover { color: var(--cyan-dark); }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--slate-900);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  font-weight: 800;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--slate-100);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  color: var(--slate-800);
}
pre {
  font-family: var(--mono);
  background: var(--slate-50);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  padding: 1rem 1.1rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
}
pre code { background: none; padding: 0; }
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(226 232 240 / 80%);
}
.site-header .wrap { position: relative; }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-900);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { text-decoration: none; color: var(--slate-900); }
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  color: var(--slate-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover,
.nav a.is-active {
  color: var(--slate-900);
  background: var(--slate-50);
  text-decoration: none;
}
.nav .btn {
  margin-left: 10px;
  color: #fff;
}
.nav .btn:hover { color: #fff; }
.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-800);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}
.btn-cyan:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--slate-800);
  border-color: var(--slate-200);
}
.btn-ghost:hover { background: var(--slate-50); color: var(--slate-900); }
.btn-outline {
  background: var(--white);
  color: var(--slate-800);
  border-color: var(--slate-200);
}
.btn-outline:hover { border-color: var(--slate-400); color: var(--slate-900); }
.btn-lg { padding: 12px 22px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero — cyan bleed + capa + título no mesmo wrap */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--slate-100);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
  position: relative;
  z-index: 1;
}
.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: -56px;
  bottom: -72px;
  right: 24px;
  left: calc(50% - 50vw);
  background: var(--cyan);
  border-bottom-right-radius: 5rem;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -56px 24px -72px auto;
  left: calc(50% - 50vw);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cpath d='M0 128V.5H128' fill='none' stroke='%23ffffff' stroke-opacity='0.12'/%3E%3C/svg%3E");
  border-bottom-right-radius: 5rem;
  pointer-events: none;
}
.hero-cover {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin-left: auto;
  margin-right: 8px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hero-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-copy {
  padding: 12px 0 12px 8px;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  color: var(--slate-900);
  max-width: 12ch;
  margin-bottom: 16px;
}
.hero .lead {
  font-size: 1.25rem;
  color: var(--slate-700);
  max-width: 34ch;
  line-height: 1.45;
  margin-bottom: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Chapter nav */
.chapters {
  position: sticky;
  top: var(--header);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.chapters ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: chapter;
}
.chapters a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  color: var(--slate-900);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.chapters a::before {
  counter-increment: chapter;
  content: counter(chapter, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--slate-500);
}
.chapters a:hover {
  background: rgb(241 245 249 / 60%);
  color: var(--slate-900);
  text-decoration: none;
}

/* Lead band */
.lead-band {
  padding: 56px 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
}
.lead-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}
.lead-band h2 { font-size: 1.75rem; margin-bottom: 8px; }
.lead-band .muted { color: var(--slate-600); max-width: 36ch; }
.lead-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  color: var(--slate-700);
}
.lead-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.lead-card > p { color: var(--slate-600); font-size: 0.92rem; margin-bottom: 16px; }

/* Forms */
.form-grid { display: grid; gap: 12px; }
.form-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.form-grid.cols-2 .consent,
.form-grid.cols-2 .btn,
.form-grid.cols-2 .form-note,
.form-grid.cols-2 .ok-banner,
.form-grid.cols-2 .form-error,
.form-grid.cols-2 .span-2 {
  grid-column: 1 / -1;
}
.form-grid > label:not(.consent):not(.hp) {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-800);
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: var(--slate-50);
  color: var(--slate-800);
}
.form-grid input:focus,
.form-grid select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgb(5 166 250 / 15%);
}
.consent {
  display: grid;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--slate-50);
}
.consent:hover { border-color: var(--cyan-soft); background: #f0f9ff; }
.consent:has(input:focus-visible) {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgb(5 166 250 / 15%);
}
.consent:has(input:checked) {
  border-color: var(--cyan);
  background: #e8f6fe;
}
.consent > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.consent-hit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-800);
  line-height: 1.45;
  user-select: none;
}
.consent-mark {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid var(--slate-400);
  border-radius: 7px;
  background: var(--white);
  display: grid;
  place-items: center;
}
.consent-mark::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.consent input:checked + .consent-hit .consent-mark {
  background: var(--cyan);
  border-color: var(--cyan);
}
.consent input:checked + .consent-hit .consent-mark::after { opacity: 1; }
.consent-link {
  margin-left: 36px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-dark);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-note { font-size: 0.76rem; color: var(--slate-500); margin-top: 4px; }
.form-error { color: #b91c1c; font-size: 0.85rem; display: none; }
.form-error.is-on { display: block; }

/* Sections */
.section { padding: 80px 0; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.section-head {
  max-width: var(--prose);
  margin: 0 0 36px;
}
.muted { color: var(--slate-600); }
.white { background: var(--white); }
.ink { background: var(--slate-50); }

.measure {
  max-width: var(--prose);
}

.chapter {
  background: var(--cyan);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%2360c6fc'/%3E%3Ccircle cx='20' cy='20' r='13' fill='%2305a6fa'/%3E%3C/svg%3E");
  opacity: 0.18;
  pointer-events: none;
}
.chapter .wrap { position: relative; }
.chapter h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}
.chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgb(137 213 253);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
}
.chapter-kicker span {
  font-family: var(--mono);
  font-size: 0.78rem;
  opacity: 0.9;
}
.chapter-kicker i {
  width: 1px;
  height: 14px;
  background: rgb(203 236 254);
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--prose);
}
.card {
  background: var(--slate-50);
  border-radius: 16px;
  padding: 22px;
}
.card h3 { font-size: 1.1rem; }
.icon {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 10px;
}

.steps {
  display: grid;
  gap: 12px;
  max-width: var(--prose);
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 18px 20px;
}
.step h3 { margin-bottom: 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--slate-600); }
.step b {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--cyan-soft);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--white);
}

.prose { max-width: var(--prose); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.35em; font-size: 1.25rem; }
.prose h4 { font-size: 1.05rem; margin-top: 1.1em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 0.4em 0; }
.prose a { font-weight: 500; }

.article {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header) + 24px);
  font-size: 0.88rem;
  padding-top: 4px;
}
.toc strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--display);
  color: var(--slate-900);
  font-size: 0.95rem;
}
.toc a {
  display: block;
  color: var(--slate-600);
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--slate-100);
}
.toc a:hover { color: var(--cyan); }

.page-hero {
  padding: 56px 0 40px;
  background: var(--slate-100);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
  margin-bottom: 12px;
}
.page-hero .muted {
  max-width: 46ch;
  font-size: 1.05rem;
}
.crumbs {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 14px;
}
.crumbs a { color: var(--slate-500); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: start;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  overflow: hidden;
}
.compare th,
.compare td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
.compare th { background: var(--cyan); color: #fff; font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare tr:nth-child(even) td { background: var(--slate-50); }
.compare td:first-child { font-weight: 600; color: var(--slate-800); }

.faq { max-width: var(--prose); }
.faq details {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--display);
  color: var(--slate-900);
  font-size: 1.05rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: var(--slate-600); }

.cta-band {
  background: var(--cyan);
  color: #fff;
  border-radius: 20px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: var(--prose);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band .muted { color: rgb(255 255 255 / 90%); }
.cta-band .btn-ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 45%);
}
.cta-band .btn-ghost:hover { background: rgb(255 255 255 / 12%); color: #fff; }
.soft-cta {
  background: var(--cyan-mist);
  border-radius: 16px;
  padding: 24px 26px;
  margin-top: 32px;
}
.soft-cta h3 { font-size: 1.2rem; }
.soft-cta p { margin-bottom: 16px; }
.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: var(--prose);
  margin: 28px 0 0;
  font-size: 0.95rem;
}

.site-footer {
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 64px 0 28px;
  border-top: 1px solid var(--slate-200);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer .brand { margin-bottom: 12px; }
.site-footer a { color: var(--slate-700); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer h3 {
  color: var(--slate-900);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.legal {
  border-top: 1px solid var(--slate-200);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--slate-500);
  display: grid;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgb(15 23 42 / 48%);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 20px;
}
.modal.is-open { display: grid; }
.modal-card {
  width: min(440px, 100%);
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px 24px;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: var(--slate-100);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--slate-700);
}
.modal-card h2 { padding-right: 36px; }

.float-dl {
  position: fixed;
  right: 0;
  top: 40%;
  z-index: 30;
  background: #ffa500;
  border: 1px solid #ffa500;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.25;
  padding: 12px 10px;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  border-radius: 8px 0 0 8px;
  box-shadow: var(--shadow-lg);
}
.float-dl:hover { color: #fff; text-decoration: none; background: #e69500; }

.ok-banner {
  display: none;
  background: #f0fdf4;
  color: var(--ok);
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .nav a { padding: 8px 8px; font-size: 0.86rem; }
}

@media (max-width: 960px) {
  .hero-inner,
  .lead-band-inner,
  .article,
  .cards,
  .footer-grid,
  .cta-band,
  .split,
  .form-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .hero-inner { padding: 32px 0 40px; gap: 28px; }
  .hero-visual { min-height: 0; }
  .hero-visual::before,
  .hero-visual::after {
    top: -32px;
    bottom: auto;
    height: calc(100% + 48px);
    right: -24px;
    left: -24px;
    border-radius: 0 0 2.5rem 0;
  }
  .hero-cover { margin: 0 auto; }
  .hero-copy { padding: 8px 0 0; }
  .hero-copy h1 { max-width: none; }
  .chapters { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-header { position: sticky; }
  .toc { position: static; }
  .float-dl { display: none; }
  .cta-band { padding: 28px; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
}
