/* Doc pages (Instalação, Suporte): landing.css tokens, header and footer, plus a docs layout. Spacing on the 4px grid. */
.doc-hero { padding: calc(72px + 48px) 0 48px; /* header height + space */ border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 80% at 80% 0%, #c9f15a14, transparent 70%); }
.doc-hero h1 { margin: 0 0 16px; font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: -.07em; }
.doc-hero h1 span { color: var(--lime); }
.doc-hero p { max-width: 560px; margin: 0 0 32px; color: var(--mut); font-size: 18px; line-height: 1.5; }
.doc-hero .install { display: flex; flex-wrap: wrap; gap: 12px; }
.js .doc-hero .wrap > * { animation: rise 1s var(--ease) both; }
.js .doc-hero .wrap > :nth-child(2) { animation-delay: .08s; } .js .doc-hero .wrap > :nth-child(3) { animation-delay: .16s; } .js .doc-hero .wrap > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }

.doc { padding: 64px 0; }
.doc-grid { display: grid; grid-template-columns: 224px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(72px + 24px); display: grid; gap: 4px; }
.toc b { margin-bottom: 8px; color: var(--dim); font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.toc a { padding: 8px 12px; border-left: 2px solid var(--line); color: var(--mut); font-size: 14px; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.toc a:hover { color: var(--fg); }
.toc a.is-active { border-color: var(--lime); background: #c9f15a0f; color: var(--lime); }

.doc-body { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
.doc-sec { min-width: 0; scroll-margin-top: calc(72px + 24px); }
.doc-sec > h2 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -.05em; }
.doc-sec > p.lead { margin: 0 0 24px; color: var(--mut); font-size: 16px; }
.doc-sec p { line-height: 1.6; }
.doc-sec p code, .doc-sec li code, .faq p code { padding: 4px 8px; border-radius: 4px; background: #1a1a1a; color: var(--lime); font-size: .88em; }

/* numbered steps */
.steps-v { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: s; }
.steps-v > li { padding: 24px; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 24px; align-items: start; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); counter-increment: s; }
.steps-v > li > * { grid-column: 2; }
.steps-v > li > .btn { justify-self: start; }
.steps-v > li::before { content: counter(s, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 4; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9999px; background: var(--lime); color: var(--lime-ink); font: 700 13px/1 var(--mono); }
.steps-v h3 { margin: 8px 0 8px; font-size: 20px; }
.steps-v p { margin: 0 0 16px; color: var(--mut); }
.steps-v p:last-child { margin-bottom: 0; }

/* code block with copy */
.code { position: relative; margin: 0 0 16px; overflow: hidden; border: 1px solid #2a2a2a; border-radius: 12px; background: #0d0d0d; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; color: var(--fg); font: 500 13px/1.6 var(--mono); }
.code pre .c { color: var(--dim); }
.code pre .p { color: var(--lime); user-select: none; }
.code .cmd-copy { position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 8px 12px; }

/* key table */
.keys-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.keys-t td { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--mut); }
.keys-t td:last-child { text-align: right; }
.keys-t kbd + kbd { margin-left: 4px; }

.note { padding: 16px; border: 1px solid #3c4a1c; border-radius: 12px; background: #1a1d14; color: #d7ed91; font-size: 14px; line-height: 1.6; }
.note b { color: var(--lime); }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .2s ease; }
.faq details[open] { border-color: #3c4a1c; }
.faq summary { padding: 16px 48px 16px 24px; position: relative; list-style: none; cursor: pointer; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 50%; color: var(--lime); font: 500 20px/1 var(--mono); transform: translateY(-50%); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--lime); outline-offset: -4px; border-radius: 12px; }
.faq p { margin: 0; padding: 0 24px 16px; color: var(--mut); line-height: 1.6; }

/* support channels */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.channel { padding: 24px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .3s ease, transform .4s var(--spring); }
.channel:hover { border-color: #3c4a1c; transform: translateY(-4px); }
.channel .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #1c2410; color: var(--lime); }
.channel .ic svg { width: 20px; height: 20px; }
.channel h3 { margin: 0; font-size: 18px; }
.channel p { margin: 0; color: var(--mut); font-size: 14px; line-height: 1.5; }
.channel .link { margin-top: auto; }

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .toc b { width: 100%; }
  .toc a { border: 1px solid var(--line); border-radius: 9999px; padding: 8px 12px; }
  .channels { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .doc-hero { padding-top: calc(64px + 32px); }
  .steps-v > li { padding: 16px; column-gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .doc-hero .wrap > * { animation: none; }
}

/* long-form text (privacy policy) */
.doc-prose { max-width: 720px; }
.doc-prose p { margin: 0 0 16px; color: var(--mut); font-size: 16px; line-height: 1.7; }
.doc-prose h2 { margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.04em; }
.doc-prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }
