/* Caply Tools — sistema visual autoral (alinhado a igorcabral.dev.br)
   Preto #0a0a0a + azul da marca + papel off-white. Uma só família (Archivo, auto-hospedada).
   Tokens → base → contextos (escuro/azul) → componentes → páginas. Sem fontes externas (CSP/privacidade). */

@font-face {
  font-family: "Archivo";
  src: url(/assets/fonts/archivo-latin-wght.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a0a;
  --paper: #f8f8f6;
  --blue: #1447b1;          /* azul do ícone do Igor */
  --blue-bright: #7ea2ff;   /* o mesmo azul, legível sobre preto */
  --mist: #e7ecf8;          /* tinta clara do azul, p/ hover e estados */
  --text-2: #4b505c;        /* texto secundário sobre papel/branco */
  --hair: rgba(10, 10, 10, 0.16);
  --ok: #0b6b3a; --ok-dot: #2fd27a;
  --err: #b3261e;
  --warn: #8a4b00;
  --accent: var(--blue);    /* cor do ponto final dos títulos; muda por contexto */
  --focus: var(--blue);     /* cor do anel de foco; muda por contexto */
  --r: 3px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Contextos: preto (cabeçalho, hero, rodapé) e azul (resultados, privacidade) */
:is(.dark, .site-header, .hero, .page-head, .site-footer) {
  --accent: var(--blue-bright); --focus: #9db8ff; --text-2: #aab0bd; --hair: rgba(255, 255, 255, 0.2);
  background: var(--ink); color: #fff;
}
:is(.on-blue, .result, .proof, .demo) {
  --accent: #fff; --focus: #fff; --text-2: #d4def7; --hair: rgba(255, 255, 255, 0.4);
  background: var(--blue); color: #fff;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img, canvas, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:is(.dark, .site-header, .hero, .page-head, .site-footer, .on-blue, .result, .proof, .demo) a:not(.btn, .header-cta) { color: #fff; }
:is(.dark, .site-header, .hero, .page-head, .site-footer) a:not(.btn, .header-cta):hover { color: var(--blue-bright); }
:is(.on-blue, .result, .proof, .demo) a:not(.btn):hover { color: var(--mist); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
h1 { font-size: clamp(2.75rem, 1rem + 8vw, 6.75rem); line-height: .92; letter-spacing: -0.055em; }
h2 { font-size: clamp(2.1rem, 1rem + 4.2vw, 4.25rem); line-height: .96; letter-spacing: -0.05em; }
h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.03em; }
.dot { color: var(--accent); }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--mist); padding: .1em .4em; border-radius: 2px; }
.muted { color: var(--text-2); }
.wrap { width: min(1320px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1320px, 100% - 4rem); } }
@media (min-width: 1100px) { .wrap { width: min(1320px, 100% - 6rem); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: .75rem; top: -4rem; background: #fff; color: var(--ink); padding: .7rem 1rem; border-radius: var(--r); z-index: 50; font-weight: 700; }
.skip:focus { top: .75rem; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.45; color: var(--text-2); max-width: 36rem; margin: 0; }

/* ---------- Cabeçalho ---------- */
.site-header { border-bottom: 1px solid var(--hair); }
@media (min-width: 900px) { .site-header { position: sticky; top: 0; z-index: 20; } }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 2rem; padding-block: .85rem; }
.brand { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; text-decoration: none; padding-block: .4rem; margin-right: auto; }
.header-inner nav { order: 3; width: 100%; }
.nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: .98rem; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .15s; }
.nav a:hover { color: #fff; border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--accent); }
.header-cta { order: 2; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: var(--r); background: #fff; color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; transition: background-color .15s; }
.header-cta:hover { background: var(--blue-bright); }
@media (min-width: 900px) {
  .header-inner nav { order: 2; width: auto; margin-right: .5rem; }
  .header-cta { order: 3; }
  .brand { margin-right: auto; }
}

/* ---------- Botões ---------- */
.btn {
  --bg: var(--blue); --fg: #fff; --bd: var(--blue); --hbg: var(--ink); --hfg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .7rem 1.5rem;
  font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; text-decoration: none; cursor: pointer;
  border-radius: var(--r); border: 2px solid var(--bd); background: var(--bg); color: var(--fg);
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--hbg); border-color: var(--hbg); color: var(--hfg); }
.btn:active { transform: translateY(1px); }
.btn-secondary { --bg: transparent; --fg: var(--ink); --bd: var(--ink); --hbg: var(--ink); --hfg: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: transparent; --hbg: var(--mist); --hfg: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { min-height: 44px; padding: .4rem 1rem; font-size: .95rem; }
:is(.dark, .hero, .page-head, .site-footer) .btn { --bg: #fff; --fg: var(--ink); --bd: #fff; --hbg: var(--blue-bright); --hfg: var(--ink); }
:is(.dark, .hero, .page-head, .site-footer) .btn-secondary { --bg: transparent; --fg: #fff; --bd: #fff; --hbg: #fff; --hfg: var(--ink); }
:is(.on-blue, .result, .proof, .demo) .btn { --bg: #fff; --fg: var(--blue); --bd: #fff; --hbg: var(--ink); --hfg: #fff; }
:is(.on-blue, .result, .proof, .demo) .btn-secondary { --bg: transparent; --fg: #fff; --bd: #fff; --hbg: #fff; --hfg: var(--blue); }
:is(.on-blue, .result, .proof, .demo) .btn-ghost { --bd: transparent; --hbg: rgba(255, 255, 255, .16); --hfg: #fff; }
.btn.is-done, .btn.is-done:hover, :is(.result, .demo) .btn.is-done, :is(.result, .demo) .btn.is-done:hover { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ---------- Campos ---------- */
label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .45rem; }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: var(--r);
  padding: .7rem .85rem; min-height: 52px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
::placeholder { color: #5f6573; opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
input[readonly] { background: var(--mist); }
.mono { font-family: var(--mono); font-size: .95rem; }
.field { margin-bottom: 1.4rem; }
.narrow-field { max-width: 14rem; }
.hint { color: var(--text-2); font-size: .9rem; line-height: 1.45; margin: .45rem 0 0; }
.check { display: flex; gap: .65rem; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 500; margin: 0 0 .5rem; cursor: pointer; }
.check input { width: 1.35rem; height: 1.35rem; accent-color: var(--blue); flex: none; }
input[type="range"] { width: 100%; accent-color: var(--blue); min-height: 36px; }
.field-error { color: var(--err); font-weight: 700; margin: 0 0 1rem; }
.field-hint-warn { color: var(--warn); font-weight: 700; margin: 0 0 .75rem; }
.field-error:empty, .status:empty, .field-hint-warn:empty, .meta:empty { display: none; }
.meta { color: var(--text-2); font-size: .95rem; margin: .9rem 0; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.opts { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 0 1.1rem; margin: 1.25rem 0; }
.opts summary { padding: .85rem 0; font-weight: 700; cursor: pointer; min-height: 48px; }
.opts[open] summary { margin-bottom: .5rem; }

/* Status (sucesso, erro, aviso): barra lateral + texto, sem pílulas */
.status { display: block; margin: 1.1rem 0 0; padding: .75rem 1rem; background: #fff; color: var(--ink); border-left: 6px solid var(--blue); font-size: .98rem; font-weight: 600; animation: rise .18s ease-out; }
.status.ok { color: var(--ok); border-left-color: var(--ok); }
.status.err { color: var(--err); border-left-color: var(--err); }
.status.warn { color: var(--warn); border-left-color: var(--warn); }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* Controle segmentado (radios reais, operáveis por teclado) */
.seg { border: 0; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.seg legend { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; padding: 0; float: left; width: 100%; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.seg span { display: inline-flex; align-items: center; justify-content: center; min-width: 5.25rem; min-height: 48px; padding: .4rem 1.2rem; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; font-weight: 700; transition: background-color .15s, color .15s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.seg input:not(:checked):hover + span { background: var(--mist); }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem; border: 1px solid var(--hair); border-radius: var(--r); font-size: .85rem; font-weight: 600; line-height: 1.25; margin: 0; }
.chip-local { border-color: rgba(255, 255, 255, .35); color: #fff; }
.chip-local::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok-dot); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }

/* ---------- Moldura do QR (placa branca: leitura confiável) ---------- */
.qr-frame { background: #fff; padding: .9rem; display: grid; place-items: center; min-height: 120px; border-radius: 2px; }
.qr-frame canvas { width: 100%; height: auto; max-width: 360px; image-rendering: pixelated; display: block; }
.qr-frame .placeholder { color: var(--text-2); padding: 2.5rem 1rem; text-align: center; margin: 0; }

/* ---------- Seções ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-head { display: grid; gap: 1.25rem 4rem; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0; }

/* ---------- Home: hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: end; }
.hero h1 { margin: 1.4rem 0 1.5rem; font-size: clamp(2.9rem, .8rem + 8.4vw, 6.9rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }
.demo { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r); }
.demo-title { font-size: 1.5rem; margin: 0 0 1.1rem; letter-spacing: -0.03em; }
.demo .qr-frame { margin: 1.25rem 0 0; }
.demo .qr-frame canvas { max-width: 300px; }
.demo-foot { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.1rem 0 0; }
.demo .status { margin-top: .9rem; }

/* ---------- Home: índice de ferramentas ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.tool-row { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1rem clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(.75rem, 2vw, 1.5rem); border-bottom: 2px solid var(--ink); transition: background-color .15s, color .15s; }
.tool-row:hover { background: var(--blue); color: #fff; }
.tool-row:focus-within { background: var(--blue); color: #fff; }
.tool-icon { width: 4.5rem; height: 4.5rem; display: grid; place-items: center; border: 2px solid currentColor; border-radius: var(--r); }
.tool-icon svg { width: 2.1rem; height: 2.1rem; }
.tool-row h3 { margin: 0 0 .4rem; font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem); letter-spacing: -0.05em; line-height: 1; }
.tool-row h3 a { color: inherit; text-decoration: none; }
.tool-row h3 a:hover { color: inherit; }
.tool-row h3 a:focus-visible { outline: none; }
.tool-row:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.stretch::after { content: ""; position: absolute; inset: 0; }
.tool-row p { margin: 0 0 .9rem; max-width: 38rem; color: var(--text-2); }
.tool-row:hover p, .tool-row:focus-within p { color: #d4def7; }
.tool-row .chip { border-color: var(--hair); background: transparent; }
.tool-row:hover .chip, .tool-row:focus-within .chip { border-color: rgba(255, 255, 255, .55); }
.tool-open { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border: 2px solid currentColor; border-radius: var(--r); transition: background-color .15s, color .15s; }
.tool-open svg { transition: transform .15s ease-out; }
.tool-row:hover .tool-open, .tool-row:focus-within .tool-open { background: #fff; color: var(--blue); border-color: #fff; }
.tool-row:hover .tool-open svg, .tool-row:focus-within .tool-open svg { transform: translateX(3px); }
@media (max-width: 700px) {
  .tool-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tool-icon { display: none; }
  .tool-open { width: 3rem; height: 3rem; align-self: start; }
}

/* ---------- Home: privacidade ---------- */
.proof { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.proof h2 { margin: 0 0 1.5rem; }
.proof .lead { margin-bottom: 1.5rem; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid #fff; }
.fact { padding: 1.4rem 0; border-bottom: 1px solid var(--hair); }
.fact h3 { font-size: 1.5rem; margin: 0 0 .3rem; }
.fact p { margin: 0; color: var(--text-2); }

/* ---------- Home: criador ---------- */
.maker-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: center; }
.maker-icon { width: clamp(7rem, 17vw, 14rem); height: auto; display: block; }
.maker h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 1rem + 3.6vw, 3.6rem); }
.maker p { max-width: 40rem; color: var(--text-2); }
.maker-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.75rem; }
.maker-cta p { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- Páginas de ferramenta ---------- */
.page-head { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 5rem); }
.page-head h1 { margin: 1.1rem 0 1.25rem; font-size: clamp(2.6rem, 1rem + 6.6vw, 6rem); }
.crumbs { color: var(--text-2); font-size: .95rem; margin: 0 0 1.5rem; }
.crumbs a { color: #fff; }
.tool { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem; align-items: start; margin-block: clamp(1.5rem, 4vw, 3rem); }
.panel { background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.panel.result { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (min-width: 900px) { .result { position: sticky; top: 6rem; } }
.panel-title { font-size: 1.6rem; margin: 0 0 1.25rem; letter-spacing: -0.04em; }
.placeholder { color: var(--text-2); }
.note-box { margin: 1.4rem 0 0; padding: .9rem 1rem; border-left: 4px solid var(--blue); background: var(--mist); font-size: .92rem; line-height: 1.5; }
.preview { margin: 0 0 1.25rem; }
.preview img { display: block; max-height: 300px; width: auto; max-width: 100%; margin-inline: auto; border-radius: 2px; background: repeating-conic-gradient(#d9d9d6 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.preview figcaption { color: var(--text-2); font-size: .92rem; margin-top: .6rem; text-align: center; overflow-wrap: anywhere; }
.dropzone { position: relative; border: 2px dashed var(--ink); border-radius: var(--r); background: var(--paper); transition: background-color .15s, border-color .15s; margin-bottom: 1rem; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--blue); background: var(--mist); }
.dropzone.is-over { border-style: solid; border-color: var(--blue); background: var(--mist); }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only-focus { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-label { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: clamp(2rem, 6vw, 3.5rem) 1rem; text-align: center; cursor: pointer; margin: 0; font-weight: 400; font-size: .98rem; }
.drop-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--blue); }
.winners { margin: 0; padding: 0; list-style: none; counter-reset: w; display: grid; gap: .5rem; }
.winners li { counter-increment: w; display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; background: #fff; color: var(--ink); border-radius: 2px; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.winners li::before { content: counter(w); flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 2px; font-size: 1rem; font-weight: 800; letter-spacing: 0; }

/* Dentro do painel azul de resultado */
.result .placeholder, .result .meta, .result .hint { color: var(--text-2); }
.result .qr-frame .placeholder { color: #4b505c; }
.result input[readonly] { background: #fff; color: var(--ink); border-color: #fff; }
.result .note-box { background: rgba(0, 0, 0, .22); border-left-color: #fff; color: #fff; }
.result code { background: rgba(255, 255, 255, .18); color: #fff; }
.result .preview figcaption { color: var(--text-2); }
.result .status { background: #fff; }

/* ---------- Conteúdo textual (como usar, FAQ) ---------- */
.prose { margin-top: clamp(2.5rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.prose-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2rem, 5vw, 5rem); padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 2px solid var(--ink); }
.prose-block > h2 { grid-column: 1; grid-row: 1 / span 12; margin: 0; font-size: clamp(1.7rem, 1rem + 2vw, 2.6rem); letter-spacing: -0.045em; }
.prose-block > :not(h2) { grid-column: 2; max-width: 44rem; }
.prose-block p { color: var(--text-2); }
.prose-block ol { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.prose-block ol li { counter-increment: s; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); padding: .95rem 0; border-bottom: 1px solid var(--hair); }
.prose-block ol li:first-child { padding-top: 0; }
.prose-block ol li::before { content: counter(s); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1.15; color: var(--blue); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { border-bottom: 1px solid var(--hair); }
.plain-list li:first-child { border-top: 1px solid var(--hair); }
.plain-list a { display: block; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.plain-list a strong { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.plain-list a span { display: block; color: var(--text-2); font-size: .98rem; }
.plain-list a:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
details { border-bottom: 1px solid var(--hair); }
details:first-of-type { border-top: 1px solid var(--hair); }
details > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; font-weight: 700; padding: 1rem 0; min-height: 56px; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; flex: none; font-size: 1.75rem; font-weight: 400; line-height: 1; color: var(--blue); }
details[open] > summary::after { content: "\2212"; }
details > p { margin: 0 0 1.1rem; color: var(--text-2); }
.opts > summary { border: 0; }
.opts { border-bottom: 1.5px solid var(--ink); }
.opts:first-of-type { border-top: 1.5px solid var(--ink); }

/* Assinatura do autor (páginas de ferramenta) */
.maker-note { margin-top: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: center; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r); }
.maker-note img { width: 5.5rem; height: auto; display: block; }
.maker-note p { margin: 0; max-width: 36rem; }
.maker-note strong { font-weight: 800; }

/* ---------- Rodapé ---------- */
.site-footer { padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr); gap: 2.5rem clamp(1.5rem, 4vw, 4rem); }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { display: block; width: min(240px, 70vw); height: auto; }
.footer-grid p { color: var(--text-2); max-width: 26rem; }
.footer-h { font-weight: 700; margin-bottom: .75rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .2rem; }
.site-footer li a { display: inline-block; padding: .3rem 0; }
.footer-base { margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: 1.25rem 1.75rem; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .92rem; color: var(--text-2); }
.footer-base p { margin: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 899px) {
  .hero-grid, .tool, .proof-grid, .maker-grid, .footer-grid, .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 2.5rem; }
  .prose-block { display: block; }
  .prose-block > h2 { margin-bottom: 1.25rem; }
  .maker-note { grid-template-columns: auto minmax(0, 1fr); }
  .maker-note .btn { grid-column: 1 / -1; }
  .maker-icon { width: 7.5rem; }
}
@media (max-width: 640px) {
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .header-cta { width: auto; }
  .actions .btn, .hero-actions .btn, .demo-foot .btn { flex: 1 1 100%; }
  .nav { gap: 0 1rem; }
  .nav a { font-size: .92rem; }
}
