@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-italic.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --mata: #0b3527;
  --mata-fundo: #072519;
  --mata-linha: #24614a;
  --folha: #1e7a4c;
  --folha-clara: #2b9160;
  --folha-escura: #145638;
  --ouro: #f2bc2e;
  --ouro-escuro: #c9971c;
  --ouro-claro: #ffd65e;
  --anil: #2456a8;
  --anil-escuro: #1a3f7d;
  --anil-fundo: #1b4590;
  --rosa: #edb3a8;
  --rosa-escuro: #d48d80;
  --rosa-papel: #fbf0ec;
  --tinta: #0a2a1f;
  --tinta-2: #4b3a34;
  --claro: #eef4ee;
  --claro-2: #b5cdbf;
  --anil-texto-2: #cad7f0;
  --ouro-texto-2: #4a3706;

  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 144px);
  --scale-radius: 6px 6px 50% 50% / 6px 6px 30% 30%;

  color-scheme: light;
  scroll-padding-top: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--folha-clara) var(--mata-fundo);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--mata);
  color: var(--claro);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ouro); color: var(--tinta); }

img, svg { display: block; max-width: 100%; }
p, ul, ol, dl, h1, h2, h3 { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2.5px; }

:focus-visible {
  outline: 3px solid var(--ouro);
  outline-offset: 3px;
  border-radius: 4px;
}

.num { font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ouro); color: var(--tinta); font-weight: 600;
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2.3rem, 1.4rem + 3.1vw, 4.1rem);
  font-stretch: 84%;
  font-weight: 740;
  line-height: 0.98;
  max-width: 15ch;
}
h3 {
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.08;
}
.lede {
  font-size: clamp(1.125rem, 1.02rem + 0.35vw, 1.3rem);
  line-height: 1.5;
  max-width: 46ch;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* ---------- Tiles (shared by dome, swatches, marks) ---------- */
.g1 { fill: var(--folha); }
.g2 { fill: var(--folha-clara); }
.g3 { fill: var(--folha-escura); }
.o1 { fill: var(--ouro); }
.o2 { fill: var(--ouro-escuro); }
.a1 { fill: var(--anil); }
.a2 { fill: var(--anil-escuro); }
.m1 { fill: var(--mata); }
.rosa { fill: var(--rosa); }

.tile {
  stroke: var(--mata);
  stroke-width: 2.4;
  stroke-linejoin: round;
  transition: fill 1.2s var(--ease);
}
.tile.plan {
  fill: transparent;
  stroke: var(--mata-linha);
  stroke-width: 1.6;
  stroke-dasharray: 3 3;
}
.tile.lit {
  fill: var(--ouro-claro);
  transition-duration: 0.06s;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 0 28px 4px;
  border-radius: var(--scale-radius);
  font-family: var(--body);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .arrow { width: 1.15em; height: 1.15em; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ouro);
  color: var(--tinta);
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.55);
}
.btn-primary:hover { background: var(--ouro-claro); text-decoration: none; }
.btn-dark {
  background: var(--tinta);
  color: var(--ouro);
}
.btn-dark:hover { background: var(--mata); text-decoration: none; }

.link-quiet {
  font-weight: 600;
  color: var(--claro);
  text-decoration: underline;
  text-decoration-color: var(--ouro);
}
.link-out {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--ouro);
}
.link-out .arrow { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
  background: var(--mata);
  color: var(--claro);
  position: relative;
  z-index: 5;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 760;
  font-stretch: 86%;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: auto; flex: none; }
.brand .mark path { stroke: var(--mata); stroke-width: 1.2; }
.site-footer .brand .mark path { stroke: var(--mata-fundo); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  font-weight: 550;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--claro);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { border-color: var(--ouro); }
.nav .nav-cta {
  border: 0;
  background: var(--ouro);
  color: var(--tinta);
  padding: 9px 20px 11px;
  border-radius: var(--scale-radius);
  font-weight: 650;
}
.nav .nav-cta:hover { background: var(--ouro-claro); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  background: var(--ouro);
  color: var(--tinta);
  padding: 9px 18px 11px;
  border-radius: var(--scale-radius);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--ouro-claro); }
.nav-mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(78vw, 300px);
  background: var(--mata-fundo);
  border: 1.5px solid var(--mata-linha);
  border-radius: 10px;
  padding: 8px;
  display: grid;
}
.nav-mobile nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 14px;
  border-radius: 6px;
}
.nav-mobile nav a:hover { background: var(--mata); }

@media (max-width: 899px) {
  .nav { display: none; }
  .nav-mobile { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--mata);
  position: relative;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  min-height: min(calc(100svh - 84px - 58px), 860px);
}
.hero-copy {
  grid-column: 1 / span 6;
  grid-row: 1;
  align-self: center;
  padding-block: clamp(40px, 7vh, 96px) clamp(48px, 9vh, 110px);
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.9rem, 1.3rem + 4.7vw, 5.6rem);
  font-stretch: 80%;
  font-weight: 780;
  line-height: 0.93;
  letter-spacing: -0.028em;
  max-width: 10ch;
}
.hero-sub {
  margin-top: 28px;
  font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.32rem);
  line-height: 1.5;
  color: var(--claro-2);
  max-width: 36ch;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}
.hero-id {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--claro-2);
  letter-spacing: 0.01em;
}
.hero-art {
  grid-column: 6 / -1;
  grid-row: 1;
  align-self: end;
  margin-right: calc(-1 * var(--gutter) / 2);
}
.hero-art .dome { width: 100%; height: auto; overflow: visible; }

.cornice {
  height: 58px;
  background: var(--rosa) url("/assets/colunata.svg") repeat-x left bottom;
  background-size: auto 100%;
  border-top: 5px solid var(--ouro);
  border-bottom: 8px solid var(--rosa-escuro);
}

@media (prefers-reduced-motion: no-preference) {
  .dome .tile {
    animation: assentar 0.9s var(--ease) both;
    transform-box: fill-box;
    transform-origin: 50% 100%;
  }
  .dome .r1 { animation-delay: 50ms; }
  .dome .r2 { animation-delay: 100ms; }
  .dome .r3 { animation-delay: 150ms; }
  .dome .r4 { animation-delay: 200ms; }
  .dome .r5 { animation-delay: 250ms; }
  .dome .r6 { animation-delay: 300ms; }
  .dome .r7 { animation-delay: 350ms; }
  .dome .r8 { animation-delay: 400ms; }
  .dome .r9 { animation-delay: 450ms; }
  .dome .r10 { animation-delay: 500ms; }
  .dome .r11 { animation-delay: 550ms; }
  .dome .r12 { animation-delay: 600ms; }
  .dome .r13 { animation-delay: 650ms; }
  .dome .r14 { animation-delay: 700ms; }
  .dome .r15 { animation-delay: 760ms; }
  .dome .r16 { animation-delay: 840ms; }
}
@keyframes assentar {
  from { opacity: 0; transform: translateY(18px) scale(0.55); }
}

@media (max-width: 899px) {
  .hero-grid { min-height: 0; }
  .hero-copy { grid-column: 1 / -1; padding-bottom: 8px; }
  .hero-art {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-inline: calc(-1 * var(--gutter) / 2);
    margin-top: 12px;
  }
  .hero h1 { max-width: 11ch; }
  .cornice { height: 40px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
}
.split-head { grid-column: 1 / span 5; }
.split-head .lede { margin-top: 24px; }
.split-head > p:not(.lede) { margin-top: 18px; max-width: 46ch; }
.split > :last-child:not(.split-head) { grid-column: 7 / -1; }
@media (min-width: 900px) {
  .split-head { position: sticky; top: 32px; align-self: start; }
}
@media (max-width: 899px) {
  .split-head, .split > :last-child:not(.split-head) { grid-column: 1 / -1; }
}

/* Soluções — rosa da fachada */
.solucoes { background: var(--rosa); color: var(--tinta); }
.solucoes .lede { color: var(--tinta-2); }
.legend > li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding-block: 34px;
  border-top: 2px solid var(--tinta);
}
.legend > li:last-child { border-bottom: 2px solid var(--tinta); }
.legend .swatch { width: 64px; height: auto; margin-top: 4px; }
.legend .swatch path { stroke: var(--rosa); stroke-width: 2; }
.legend p { margin-top: 12px; max-width: 58ch; }
.legend .includes {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--tinta-2);
}

/* Processo — mata */
.processo .lede { margin-top: 24px; color: var(--claro-2); }
.steps {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.steps > li {
  display: flex;
  flex-direction: column;
}
.steps .mini {
  width: 100%;
  height: auto;
  border-bottom: 5px solid var(--rosa);
  padding-bottom: 0;
  margin-bottom: 22px;
}
.steps .mini .tile { stroke-width: 1.8; }
.steps h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.step-n {
  font-stretch: 75%;
  font-weight: 800;
  color: var(--ouro);
  font-variant-numeric: tabular-nums;
}
.steps p { margin-top: 10px; color: var(--claro-2); max-width: 32ch; }
@media (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 479px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps .mini { width: 72%; }
}

/* Dados — anil */
.dados { background: var(--anil-fundo); color: #fff; }
.dados .lede { color: var(--anil-texto-2); }
.pledges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
}
.pledges > div { border-top: 2px solid var(--ouro); padding-top: 18px; }
.pledges dt {
  font-family: var(--display);
  font-size: 1.4rem;
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.12;
}
.pledges dd { margin: 10px 0 0; color: var(--anil-texto-2); }
@media (max-width: 599px) {
  .pledges { grid-template-columns: minmax(0, 1fr); }
}

.doc-links { margin-top: clamp(64px, 8vw, 104px); }
.doc-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 40px;
  align-items: center;
  gap: 24px;
  padding: 28px 12px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
}
.doc-links li:last-child a { border-bottom: 1.5px solid rgba(255, 255, 255, 0.28); }
.doc-links a:hover { background: var(--anil-escuro); }
.doc-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
  font-stretch: 84%;
  font-weight: 720;
  line-height: 1.05;
}
.doc-desc { color: var(--anil-texto-2); }
.doc-links .arrow { width: 32px; height: 32px; color: var(--ouro); transition: transform 0.3s var(--ease); }
.doc-links a:hover .arrow { transform: translateX(6px); }
@media (max-width: 699px) {
  .doc-links a { grid-template-columns: minmax(0, 1fr) 32px; row-gap: 6px; }
  .doc-desc { grid-column: 1; grid-row: 2; }
  .doc-links .arrow { grid-column: 2; grid-row: 1 / span 2; }
}

/* Empresa — mata, ficha cadastral */
.empresa .lede { color: var(--claro); }
.empresa .split-head > p:not(.lede) { color: var(--claro-2); }
.empresa .link-out { margin-top: 28px; }
.ficha {
  border-top: 3px solid var(--ouro);
  border-bottom: 3px solid var(--ouro);
}
.ficha > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  padding-block: 16px;
  border-top: 1px solid var(--mata-linha);
}
.ficha > div:first-child { border-top: 0; }
.ficha dt {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--claro-2);
  padding-top: 3px;
}
.ficha dd { margin: 0; }
.ficha dd ul { display: grid; gap: 8px; }
.copy {
  margin-left: 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ouro);
  background: transparent;
  border: 1.5px solid var(--ouro);
  border-radius: 999px;
  padding: 2px 12px 3px;
  cursor: pointer;
  vertical-align: 2px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy:hover { background: var(--ouro); color: var(--tinta); }
.copy[data-state="done"] { background: var(--ouro); color: var(--tinta); }
@media (max-width: 479px) {
  .ficha > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Contato — ouro */
.contato { background: var(--ouro); color: var(--tinta); }
.contato-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.contato-mark { width: min(100%, 360px); justify-self: end; }
.contato-mark path { stroke: var(--ouro); stroke-width: 0.6; }
@media (max-width: 899px) {
  .contato-grid { grid-template-columns: minmax(0, 1fr); }
  .contato-mark { display: none; }
}
.contato h2 { max-width: 14ch; }
.contato .lede { margin-top: 24px; color: var(--ouro-texto-2); }
.mail-big {
  display: inline-block;
  margin-top: clamp(40px, 5vw, 64px);
  font-family: var(--display);
  font-size: clamp(1.7rem, 0.6rem + 5.2vw, 5.4rem);
  font-stretch: 78%;
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 5px solid var(--tinta);
  padding-bottom: 6px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.mail-big:hover { color: var(--folha-escura); border-color: var(--folha-escura); }
.contato-actions { margin-top: 40px; }

/* ---------- Footer: bloco de créditos ---------- */
.site-footer {
  background: var(--mata-fundo);
  color: var(--claro);
  padding-block: 64px 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-top p { color: var(--claro-2); }
.billing {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.3fr 1fr;
  border-top: 2px solid var(--ouro);
  border-bottom: 2px solid var(--ouro);
}
.billing > div {
  padding: 18px 20px 20px;
  border-left: 1px solid var(--mata-linha);
}
.billing > div:first-child { border-left: 0; padding-left: 0; }
.billing dt {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--claro-2);
}
.billing dd {
  margin: 6px 0 0;
  font-family: var(--display);
  font-stretch: 82%;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.38;
}
.billing a { color: var(--ouro); }
.footer-base {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 0.92rem;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-links a { color: var(--claro); text-decoration-color: var(--mata-linha); }
.legal-links a:hover { text-decoration-color: var(--ouro); }
.copyright { color: var(--claro-2); }
@media (max-width: 999px) {
  .billing { grid-template-columns: 1fr 1fr; }
  .billing > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .billing > div:nth-child(n + 3) { border-top: 1px solid var(--mata-linha); }
}
@media (max-width: 519px) {
  .billing { grid-template-columns: minmax(0, 1fr); }
  .billing > div { border-left: 0; padding-left: 0; }
  .billing > div + div { border-top: 1px solid var(--mata-linha); }
}

/* ---------- Document pages ---------- */
.doc-hero {
  background: var(--mata);
  padding-block: clamp(40px, 6vw, 80px) calc(clamp(40px, 6vw, 72px) + 28px);
  background-image: url("/assets/frieze.svg");
  background-repeat: repeat-x;
  background-position: left bottom;
}
.doc-hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.6rem);
  font-stretch: 80%;
  font-weight: 780;
  line-height: 0.95;
  letter-spacing: -0.028em;
}
.doc-meta { margin-top: 18px; color: var(--claro-2); }

.doc-ground {
  background: var(--rosa-papel);
  color: var(--tinta);
  padding-block: clamp(48px, 6vw, 88px) clamp(72px, 9vw, 128px);
}
.doc-wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.toc {
  grid-column: 1 / span 3;
  align-self: start;
  position: sticky;
  top: 28px;
  font-size: 0.95rem;
}
.toc-title {
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 1.1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tinta);
}
.toc ol { list-style: none; padding: 0; margin-top: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  text-decoration: none;
  color: var(--tinta-2);
  border-left: 3px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toc a:hover { color: var(--tinta); border-color: var(--rosa); }
.toc a[aria-current="true"] { color: var(--tinta); font-weight: 650; border-color: var(--ouro-escuro); }

.doc {
  grid-column: 5 / span 7;
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.68;
}
.doc > section { padding-top: 8px; }
.doc > section + section { margin-top: 56px; }
.doc h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.25rem);
  font-stretch: 86%;
  font-weight: 720;
  line-height: 1.08;
  max-width: none;
  margin-bottom: 18px;
}
.doc h3 {
  font-size: 1.3rem;
  font-stretch: 90%;
  margin: 30px 0 10px;
}
.doc p + p, .doc p + ul, .doc ul + p, .doc ol + p, .doc p + ol, .doc .table-scroll + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc ul { list-style: none; padding-left: 0; }
.doc ul > li { position: relative; padding-left: 26px; }
.doc ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 11px;
  background: var(--folha);
  border-radius: 2px 2px 50% 50% / 2px 2px 62% 62%;
}
.doc li + li { margin-top: 8px; }
.doc a { color: var(--anil); }
.doc a:hover { color: var(--anil-escuro); }
.doc strong { font-weight: 650; }
.doc-intro { font-size: 1.2rem; line-height: 1.55; margin-bottom: 48px; }

.summary {
  background: #fff;
  border: 2px solid var(--tinta);
  border-radius: 10px;
  padding: 28px 30px 30px;
}
.summary h2 { font-size: 1.5rem; margin-bottom: 14px; }
.summary ul > li::before { background: var(--ouro-escuro); }

.callout {
  border-top: 2px solid var(--ouro-escuro);
  border-bottom: 2px solid var(--ouro-escuro);
  padding-block: 14px;
  font-weight: 600;
}

.steps-doc { counter-reset: passo; list-style: none; padding-left: 0 !important; }
.steps-doc > li {
  counter-increment: passo;
  position: relative;
  padding-left: 46px;
  min-height: 32px;
}
.steps-doc > li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -1px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 760;
  font-size: 1rem;
  padding-bottom: 3px;
  background: var(--ouro);
  color: var(--tinta);
  border-radius: 4px 4px 50% 50% / 4px 4px 40% 40%;
}
.steps-doc > li + li { margin-top: 14px; }
.doc .btn { margin-top: 22px; }
.doc .btn-dark { color: var(--ouro); }
.doc .btn-dark:hover { color: var(--ouro-claro); }

.table-scroll {
  overflow-x: auto;
  border: 1.5px solid var(--tinta);
  border-radius: 8px;
  background: #fff;
}
.table-scroll:focus-visible { outline-offset: 2px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.45;
  min-width: 520px;
}
th, td { text-align: left; vertical-align: top; padding: 12px 16px; }
thead th {
  background: var(--mata);
  color: var(--claro);
  font-weight: 650;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
tbody tr + tr td { border-top: 1px solid #ecd6cf; }
tbody td:first-child { font-weight: 600; }

@media (max-width: 999px) {
  .toc { grid-column: 1 / span 4; }
  .doc { grid-column: 5 / -1; }
}
@media (max-width: 799px) {
  .doc-wrap { display: block; }
  .toc {
    position: static;
    margin-bottom: 48px;
    background: #fff;
    border: 1.5px solid var(--tinta);
    border-radius: 10px;
    padding: 18px 20px 12px;
  }
  .toc ol { columns: 2; column-gap: 20px; }
  .toc a { padding-block: 5px; break-inside: avoid; }
}
@media (max-width: 479px) {
  .toc ol { columns: 1; }
  .summary { padding: 22px 20px 24px; }
}

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(56px, 10vw, 140px); }
.notfound-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.notfound h1 {
  font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem);
  font-stretch: 80%;
  font-weight: 780;
  line-height: 0.95;
  max-width: 10ch;
}
.notfound .lede { margin-block: 22px 34px; color: var(--claro-2); }
.notfound .mini { width: 100%; border-bottom: 6px solid var(--rosa); }
.lost .hole { fill: var(--mata); stroke: var(--ouro); stroke-width: 2; stroke-dasharray: 5 4; }
@media (max-width: 699px) {
  .notfound-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .toc, .site-footer .footer-top, .legal-links, .skip { display: none !important; }
  body, .doc-ground, .doc-hero, .site-footer { background: #fff !important; color: #000 !important; }
  .doc-hero { background-image: none; padding: 0 0 12px; }
  .doc { max-width: none; }
  .doc a { color: #000; }
  .billing { border-color: #000; }
  .billing dt, .copyright, .doc-meta { color: #333 !important; }
}
