/* Site pessoal de Renato Espeschit. Sem build: este arquivo é servido como está.
   Mundo visual: o quadro branco do escritório (post-its amarelos) sobre papel frio,
   com grafite escuro como cor de seção e da ação. */

/* Schibsted Grotesk (SIL Open Font License), subconjunto latino servido daqui mesmo:
   sem CSS externo bloqueando a primeira pintura. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f1f2ee;
  --paper-2: #e6e9e3;
  --ink: #16201c;
  --ink-2: #47524d;
  --line: #c9cfc8;
  --graphite: #1f2328;
  --graphite-2: #353b43;
  --on-graphite: #eef0f2;
  --on-graphite-2: #b8bec6;
  --note: #f7d64a;
  --note-2: #f2cb2c;
  --note-ink: #2a2306;
  --link: #1f2328;
  --error: #a3231b;
  --error-on-graphite: #ffb4a8;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
}

::selection { background: var(--note); color: var(--note-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--note); }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Topo ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 18px;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; min-height: 44px;
}
.mark svg { flex: none; }
.mark span { white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 22px); }
.lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-weight: 500; font-size: .9375rem; color: var(--ink-2);
}
.lang:hover { color: var(--ink); }

/* ---------- Botões ----------
   Regra de cor: o amarelo é só dos post-its (a voz do cliente).
   A ação é sempre o botão cheio: grafite sobre o papel, papel sobre o grafite. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 0; cursor: pointer;
  font: 700 1rem/1.2 var(--font); text-decoration: none; letter-spacing: -.005em;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-go {
  background: var(--graphite); color: var(--on-graphite);
  box-shadow: 0 1px 0 rgba(31, 35, 40, .3), 0 12px 24px -14px rgba(31, 35, 40, .7);
}
.btn-go:hover { background: var(--graphite-2); }
.on-dark .btn-go, .dock .btn-go { background: var(--paper); color: var(--graphite); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6); }
.on-dark .btn-go:hover, .dock .btn-go:hover { background: #fff; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.btn svg { flex: none; }
@media (max-width: 559px) { .top-cta { display: none; } }

.text-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px;
  font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: .22em;
}

/* A oferta de entrada fica colada em todo botão de ação */
.offer { margin-top: 12px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); max-width: 34rem; }
.offer strong { color: var(--ink); font-weight: 700; }
.on-dark .offer { color: var(--on-graphite-2); }
.on-dark .offer strong { color: var(--on-graphite); }

/* O que acontece depois do envio: três passos curtos, numerados porque são uma sequência */
.after-click { list-style: none; margin: 0; padding: 0; counter-reset: next; display: grid; gap: 10px; }
.after-click li {
  counter-increment: next; position: relative; padding-left: 34px;
  line-height: 1.45; color: var(--ink-2);
}
.after-click li::before {
  content: counter(next); position: absolute; left: 0; top: .05em;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor; font-size: .8125rem; font-weight: 700; line-height: 1;
  font-variant-numeric: lining-nums;
}

/* ---------- Hero ---------- */
/* Desktop: título à esquerda, texto e ação à direita, e a faixa do escritório fechando a primeira tela.
   Celular: título, texto, ação e a imagem recortada no rosto. */
.hero { padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-copy { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .hero-copy { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: end; }
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 800; line-height: .98; letter-spacing: -.035em;
  max-width: 13ch;
}
.lede { font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 36rem; }
.lede strong { font-weight: 700; }
.who { margin-top: 12px; font-size: 1.0625rem; color: var(--ink-2); max-width: 34rem; }
.hero .actions { margin-top: 24px; align-items: center; gap: 12px 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) {
  .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .actions .btn { width: 100%; }
  .hero .actions .text-link { justify-self: start; }
  .hero .offer { margin-top: 6px; }
}

/* A faixa do escritório e o post-it com a prova, colado no canto */
.hero-shot { position: relative; margin: clamp(32px, 4vw, 48px) 0 0; }
.hero-shot img {
  width: 100%; aspect-ratio: 16 / 5; object-fit: cover; object-position: 40% 30%;
  border-radius: 4px; background: var(--paper-2);
}
@media (max-width: 699px) {
  .hero-shot { margin-top: 32px; padding-bottom: 56px; }
  .hero-shot img { aspect-ratio: 16 / 11; object-position: 50% 20%; }
}
.hero-note {
  position: absolute; right: clamp(16px, 4vw, 48px); bottom: -28px; width: min(19rem, 78%);
  display: grid; gap: 8px; padding: 16px 16px 14px;
  background: var(--note); color: var(--note-ink);
  border-radius: 2px 2px 3px 14px; transform: rotate(-2.2deg);
  box-shadow: 0 1px 1px rgba(42, 35, 6, .18), 0 16px 24px -18px rgba(42, 35, 6, .65);
}
@media (max-width: 699px) { .hero-note { right: 0; bottom: 0; } }
.hero-note span { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.hero-note a {
  justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -10px;
  color: var(--note-ink); font-weight: 700; font-size: .9375rem; text-underline-offset: .2em;
}

/* ---------- Seções ---------- */
.section { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); }
.section.flush-top { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em;
}
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); max-width: 40rem; }
.on-dark .section-head p { color: var(--on-graphite-2); }

/* ---------- Quadro de post-its ---------- */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 40px); }
.board li {
  display: grid; gap: 18px; align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .board li { grid-template-columns: minmax(0, 23rem) 56px minmax(0, 1fr); gap: 20px; }
}
.note {
  position: relative; margin: 0; justify-self: start; max-width: 23rem;
  background: var(--note); color: var(--note-ink);
  padding: 22px 22px 26px; border-radius: 2px 2px 3px 14px;
  font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  box-shadow: 0 1px 1px rgba(42, 35, 6, .18), 0 14px 22px -16px rgba(42, 35, 6, .6);
  transform: rotate(-1.1deg);
}
/* Cada post-it foi colado à mão: tamanho, inclinação e tom mudam um pouco. */
.board li:nth-child(2) .note { transform: rotate(.9deg); width: 92%; background: #f9dd66; }
.board li:nth-child(3) .note { transform: rotate(-.4deg); width: 100%; border-radius: 2px 2px 16px 3px; }
.board li:nth-child(4) .note { transform: rotate(1.4deg); width: 86%; background: #f9dd66; }
.board li:nth-child(5) .note { transform: rotate(-1.6deg); width: 96%; }
@media (min-width: 760px) {
  .board li:nth-child(2) .note { margin-left: 1.25rem; }
  .board li:nth-child(4) .note { margin-left: 2rem; }
}
@media (max-width: 559px) { .note { padding: 18px 18px 20px; font-size: 1.125rem; } .board .fix p { display: none; } .board { gap: 24px; } .board li { gap: 12px; } }
.board .arrow { display: none; color: var(--ink-2); }
@media (min-width: 760px) { .board .arrow { display: block; } }
.fix h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.fix p { margin-top: 6px; color: var(--ink-2); max-width: 34rem; }

/* ---------- Como funciona (fundo grafite) ---------- */
.on-dark { background: var(--graphite); color: var(--on-graphite); }
.on-dark a:not(.btn) { color: var(--on-graphite); }
.on-dark .after-click li { color: var(--on-graphite-2); }

/* As duas conversas gratuitas e a folha que o cliente recebe na segunda */
.start { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .start { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; } }
.talks { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.talks li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 4px 16px; }
.talk-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--graphite); font-weight: 800; font-size: 1.125rem; line-height: 1;
  font-variant-numeric: lining-nums;
}
.talks h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.talks .tag {
  display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 999px; vertical-align: .2em;
  box-shadow: inset 0 0 0 1.5px var(--on-graphite-2); color: var(--on-graphite);
  font-size: .875rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; white-space: nowrap;
}
.talks p { margin-top: 8px; color: var(--on-graphite-2); max-width: 32rem; }

.sheet {
  margin: 0; padding: clamp(22px, 3vw, 34px);
  background: var(--paper); color: var(--ink); border-radius: 3px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .18), 0 28px 40px -26px rgba(0, 0, 0, .7);
  transform: rotate(-.8deg);
}
.sheet figcaption { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.sheet-title {
  margin-top: 6px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink);
  font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
}
.sheet-title span { display: block; margin-top: 4px; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.sheet dl { margin: 0; }
.sheet dl > div {
  display: grid; gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr);
}
.sheet dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 560px) { .sheet dl > div { grid-template-columns: 11.5rem minmax(0, 1fr); align-items: baseline; } }
.sheet dt { font-weight: 700; line-height: 1.35; }
.sheet dd { margin: 0; color: var(--ink-2); font-size: .9688rem; line-height: 1.45; }
@media (max-width: 559px) {
  .sheet { padding: 20px 18px; }
  .sheet-title { padding-bottom: 10px; }
  .sheet dl > div { padding: 9px 0; gap: 0; }
  .sheet dd { font-size: .9063rem; line-height: 1.4; }
}

/* Depois das conversas: uma fase só, sem numeração (não é mais o passo a passo gratuito).
   Os três itens se ligam por uma seta, porque um leva ao outro. */
.then { margin-top: clamp(48px, 7vw, 88px); padding-top: 28px; border-top: 1px solid rgba(238, 240, 242, .22); }
.then-title { font-size: 1.125rem; font-weight: 700; color: var(--on-graphite-2); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.steps li { position: relative; }
@media (min-width: 760px) {
  .steps li + li::before {
    content: ""; position: absolute; left: -28px; top: .7em; width: 14px; height: 1.5px; background: var(--on-graphite-2);
  }
}
.steps h4 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.steps p { margin-top: 4px; color: var(--on-graphite-2); max-width: 22rem; }
@media (max-width: 759px) { .steps li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; } .steps h4 { font-size: 1.125rem; } .steps p { margin: 0; } }
.terms { margin-top: 24px; color: var(--on-graphite-2); max-width: 48rem; }
.mid-cta { margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 559px) { .mid-cta .btn { width: 100%; } }

/* ---------- Caso ---------- */
/* Segfy: problema → o que construímos → resultado, com as telas da época presas ao lado */
.case-kicker { font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
#case .section-head { max-width: 54rem; }
#case .section-head h2 { font-size: clamp(1.875rem, 3.6vw, 2.875rem); }
.case {
  border-top: 1.5px solid var(--ink); padding-top: clamp(28px, 4vw, 44px);
  display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: start;
}
@media (min-width: 960px) { .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.case-step + .case-step { margin-top: 28px; }
.case-step h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.case-step p { margin-top: 8px; color: var(--ink-2); max-width: 38rem; }
.case-result {
  margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.case-result > div { padding: 14px 12px 14px 0; }
.case-result > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.case-result dt { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: lining-nums; }
.case-result dd { margin: 4px 0 0; color: var(--ink-2); font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.case-result + p { color: var(--ink); font-weight: 600; }
.case-ask { margin-top: 28px; }
.case-ask a { font-weight: 700; display: inline-block; padding: 10px 0; }
.case-shots { display: grid; gap: 28px; }
@media (max-width: 959px) and (min-width: 600px) { .case-shots { grid-template-columns: 1fr 1fr; } }
.pinned-shot {
  margin: 0; background: #fff; padding: 8px 8px 12px; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(22, 32, 28, .2), 0 18px 30px -20px rgba(22, 32, 28, .6);
  transform: rotate(-.8deg);
}
.pinned-shot + .pinned-shot { transform: rotate(.9deg); width: 88%; justify-self: end; }
@media (max-width: 599px) { .pinned-shot + .pinned-shot { width: 100%; } .pinned-shot { transform: none !important; } }
.pinned-shot img { width: 100%; background: var(--paper-2); }
.pinned-shot figcaption { margin-top: 8px; font-size: .875rem; color: var(--ink-2); }

/* Depoimentos públicos do LinkedIn: idioma original, tradução sob demanda */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.quotes figure { margin: 0; padding-top: 18px; border-top: 1.5px solid var(--ink); display: flex; flex-direction: column; height: 100%; }
.quotes blockquote { margin: 0; }
.quotes blockquote p { font-size: 1.125rem; line-height: 1.5; letter-spacing: -.005em; }
.quotes figcaption { margin-top: auto; padding-top: 18px; display: grid; gap: 2px; font-size: .9375rem; line-height: 1.4; }
.quotes figcaption strong { font-size: 1rem; }
.quotes figcaption span { color: var(--ink-2); }
.quotes .ctx { margin-top: 4px; }
.tr { margin-top: 10px; }
.tr summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.tr p { margin-top: 4px; padding-left: 14px; border-left: 2px solid var(--line); color: var(--ink-2); }
.quotes-more { margin-top: 24px; }
.quotes-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Gaveta do caso de 2008: a grade dos 853 municípios */
.drawer-map { margin: 28px 0 0; display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 18px; align-items: center; }
.drawer-map svg { display: block; width: 100%; height: auto; color: var(--graphite); }
.drawer-map figcaption { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.drawer-map figcaption strong { color: var(--ink); font-weight: 800; font-size: 1.125rem; }

/* ---------- Projetos: o resultado primeiro, o detalhe na gaveta ---------- */
.work { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.work li { border-bottom: 1px solid var(--line); }
.work-row {
  display: grid; align-items: baseline; gap: 4px 24px; padding: 18px 4px; margin: 0 -4px;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) 20px;
  color: var(--ink); text-decoration: none; border-radius: 4px;
  transition: background-color .18s var(--ease);
}
.work-row:hover { background: var(--paper-2); }
.work-row:hover .work-name strong { text-decoration: underline; text-underline-offset: .18em; }
.work-num {
  font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
  font-variant-numeric: lining-nums;
}
.work-num small { display: block; margin-top: 4px; font-size: .9375rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; color: var(--ink-2); }
.work-name strong { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.work-name > span { display: block; margin-top: 2px; color: var(--ink-2); font-size: .9688rem; }
.work-go { align-self: center; color: var(--ink-2); }
/* Setores: etiquetas de texto para escanear onde ele já resolveu problema. Fundo papel, para seguirem legíveis no hover da linha. */
.sectors { display: flex; flex-wrap: wrap; gap: 6px; }
.work-name > .sectors { display: flex; margin-top: 8px; font-size: 1rem; }
.sectors > span:not(.sr-only) {
  padding: 0 8px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2); font-size: .8125rem; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.case-sectors { margin: -4px 0 14px; }
@media (max-width: 759px) {
  .work-row { grid-template-columns: minmax(0, 1fr) 20px; padding: 14px 4px; gap: 2px 16px; }
  .work-num, .work-name { grid-column: 1; }
  .work-go { grid-column: 2; grid-row: 1 / span 2; }
  .work-num { font-size: 1.5rem; }
  .work-num small { display: inline; margin: 0 0 0 6px; font-size: .9375rem; }
  .work-name strong { font-size: 1.0625rem; }
}
.ledger-note { margin-top: 24px; font-size: .9375rem; color: var(--ink-2); max-width: 46rem; }

/* Gaveta (dialog nativo): foco preso pelo showModal, Esc fecha, tela cheia no celular */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(44rem, 100%); max-width: 100%; height: 100%; max-height: 100%;
  background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: -24px 0 48px -24px rgba(0, 0, 0, .45);
}
.drawer::backdrop { background: rgba(20, 23, 27, .55); }
.drawer[open] { display: block; }
.drawer-in { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 28px clamp(20px, 4vw, 48px) 48px; }
.drawer-close {
  position: sticky; top: 0; float: right; z-index: 1; margin: -8px -8px 0 16px;
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--paper-2); color: var(--ink);
}
.drawer-close:hover { background: var(--line); }
.drawer-kicker { font-size: .9375rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: lining-nums; }
.drawer h2 { margin-top: 8px; font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.drawer-num { clear: both; margin-top: 20px; padding: 14px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.drawer-num strong { display: block; color: var(--ink); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.drawer h3 { margin-top: 26px; font-size: 1.125rem; font-weight: 700; }
.drawer h3 + p { margin-top: 6px; color: var(--ink-2); max-width: 38rem; }
.shots { margin-top: 32px; display: grid; gap: 14px; }
.shots img { width: 100%; border-radius: 4px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.shots-phone { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shots-phone img { border-radius: 10px; }
.shots-note { margin-top: 10px; font-size: .875rem; color: var(--ink-2); }
.drawer-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.drawer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
@media (max-width: 599px) {
  .drawer { width: 100%; box-shadow: none; }
  .drawer-in { padding: 16px 16px 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-in .32s var(--ease); }
  .drawer[open]::backdrop { animation: fade-in .32s var(--ease); }
}
@keyframes drawer-in { from { transform: translateX(32px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
/* Sem JS, o link #projeto mostra a gaveta como página */
html:not(.js) .drawer:target { display: block; position: static; width: auto; height: auto; box-shadow: none; }
body.has-drawer { overflow: hidden; }

/* ---------- Sobre ---------- */
.about { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 820px) { .about { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); } }
.about-side figure { margin: 0; width: 100%; max-width: 13rem; transform: rotate(-1.5deg); background: #fff; padding: 8px 8px 10px; box-shadow: 0 1px 2px rgba(22, 32, 28, .2), 0 18px 30px -20px rgba(22, 32, 28, .6); }
.about-side img { width: 100%; aspect-ratio: 504 / 597; object-fit: cover; background: var(--paper-2); }
@media (max-width: 819px) { .about-side { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 20px; align-items: start; } .about-side figure { max-width: none; } }
@media (max-width: 479px) { .about-side { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px; } }
.about h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
.about .body { max-width: 44rem; }
.about .body > p { margin-top: 18px; max-width: 40rem; }
.about .body { grid-row: 1; }
@media (min-width: 820px) { .about .body { grid-column: 2; } .about-side { grid-column: 1; grid-row: 1; } }
.facts { margin: 28px 0 0; display: grid; gap: 14px; }
@media (max-width: 819px) { .facts { margin: 0; } }
.facts dt { font-weight: 700; font-size: .9375rem; }
.facts dd { margin: 2px 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }

/* ---------- Contato com formulário próprio ---------- */
.contact {
  padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 112px);
  display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start;
}
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 72px; } }
.contact h2 {
  font-size: clamp(2.375rem, 5.4vw, 4.5rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; max-width: 13ch;
}
.contact-copy > p:not(.offer):not(.alt) { margin-top: 20px; max-width: 34rem; font-size: 1.1875rem; color: var(--on-graphite-2); }
.next-title { margin-top: 36px; font-size: 1.125rem; font-weight: 700; }
.contact .after-click { margin-top: 14px; }
.contact .offer { margin-top: 18px; font-size: 1rem; }
.contact .alt { margin-top: 24px; color: var(--on-graphite-2); }
.contact .alt a { font-weight: 700; display: inline-block; padding: 10px 0; }

.form-card {
  background: var(--paper); color: var(--ink); border-radius: 4px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .18), 0 28px 40px -26px rgba(0, 0, 0, .7);
}
.form-card :focus-visible { outline-color: var(--link); }
.form-card a { color: var(--link) !important; font-weight: 700; }
.form-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.form-title:focus { outline: none; }
.field { margin-top: 18px; }
.field label { display: block; font-weight: 700; font-size: .9688rem; }
.field .opt { font-weight: 500; color: var(--ink-2); }
.hint { margin-top: 2px; font-size: .875rem; color: var(--ink-2); }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; min-height: 48px;
  font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff;
  border: 1.5px solid #7b828b; border-radius: 6px;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 6px; color: var(--error); font-size: .9063rem; font-weight: 600; display: flex; gap: 6px; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: .15em; border-radius: 50%; background: var(--error); color: #fff; font-size: .75rem; font-weight: 800; }
.form-errors { margin-top: 16px; padding: 12px 14px; border: 1.5px solid var(--error); border-radius: 4px; background: #fbeceb; color: var(--ink); font-size: .9375rem; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { margin-top: 24px; width: 100%; }
/* O cartão do formulário é papel sobre o grafite: o botão volta a ser grafite cheio */
.on-dark .form-card .btn-go { background: var(--graphite); color: var(--on-graphite); box-shadow: 0 1px 0 rgba(31, 35, 40, .3), 0 12px 24px -14px rgba(31, 35, 40, .7); }
.on-dark .form-card .btn-go:hover { background: var(--graphite-2); }
.form-submit[aria-disabled="true"] { opacity: .7; cursor: progress; }
.form-card .offer { margin-top: 10px; text-align: center; max-width: none; color: var(--ink-2); }
.form-card .offer strong { color: var(--ink); }
.form-status:not(:empty) { margin-top: 16px; padding: 12px 14px; border-radius: 4px; font-size: .9375rem; line-height: 1.5; }
.form-status.is-error { border: 1.5px solid var(--error); background: #fbeceb; }
.form-status.is-sending { background: var(--paper-2); }
.form-done h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.form-done h3:focus { outline: none; }
.form-done p { margin-top: 10px; color: var(--ink-2); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-top: 24px; padding-bottom: 32px; font-size: .9375rem; color: var(--on-graphite-2);
  border-top: 1px solid rgba(238, 240, 242, .22);
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { color: var(--on-graphite); display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Botão fixo no celular: aparece depois do topo e some perto do formulário ---------- */
.dock { display: none; }
@media (max-width: 759px) {
  .js .dock:not([hidden]) {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    padding: 10px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--graphite); box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .6);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .js .dock:not(.on) { visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
  .js .dock.on { transform: none; }
  .dock .btn { width: 100%; }
  .dock p { margin-top: 4px; text-align: center; font-size: .875rem; color: var(--on-graphite-2); }
}
@media (prefers-reduced-motion: reduce) { .js .dock:not([hidden]) { transition: none; } }

/* ---------- O único movimento de entrada: os post-its "colam" ----------
   Ficam visíveis o tempo todo; só o deslocamento é animado. */
@media (prefers-reduced-motion: no-preference) {
  .js .board li .note { translate: 0 -14px; transition: translate .7s var(--ease); }
  .js .board li.in .note { translate: 0 0; }
  .js .board li:nth-child(2).in .note { transition-delay: .06s; }
  .js .board li:nth-child(3).in .note { transition-delay: .12s; }
  .js .board li:nth-child(4).in .note { transition-delay: .18s; }
  .js .board li:nth-child(5).in .note { transition-delay: .24s; }
}

@media print {
  .top-nav, .actions, .skip, .dock, .form-card, .mid-cta { display: none; }
  .on-dark { background: none; color: #000; }
}

/* ---------- Celular mais curto: o que repete ou só ilustra fica para telas maiores ---------- */
@media (max-width: 559px) {
  .pinned-shot + .pinned-shot { display: none; }       /* o diagrama é ilegível a 360 px; a tela de cotação fica */
  .contact .next-title, .contact .after-click { display: none; } /* o passo a passo já está no "Como funciona" */
  .quotes { gap: 24px; }
  .quotes blockquote p { font-size: 1.0625rem; }
  .quotes figcaption { padding-top: 12px; }
  .case-step + .case-step { margin-top: 22px; }
  .about-side { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .facts { gap: 10px; }
  .facts dd { font-size: .9063rem; }
}

@media (max-width: 559px) {
  .sheet dd { display: none; }                         /* no celular a folha vira a lista dos cinco itens */
  .sheet dl > div { padding: 8px 0; }
  .case-result dd { font-size: .875rem; }
}
