/* arquiteto.luigibolfer.io — prancha e caderno de obra.
   Tinta marinho sobre papel; vermelho só para pendência; verde só para "conferido". */

@font-face {
  font-family: 'Geist';
  src: url('/fontes/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --papel: #F4F5F1;
  --folha: #FFFFFF;
  --tinta: #0E2339;
  --tinta-2: #44546A;
  --linha: rgba(14, 35, 57, .16);
  --grade: rgba(14, 35, 57, .055);
  --pendencia: #B3261E;
  --conferido: #2E6B4A;
  --largura: 72rem;
  --lateral: clamp(16px, 4vw, 40px);
  --fonte: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--fonte);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }

.largura { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: var(--lateral); }

/* ---------------------------------------------------------------- botões */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.25em;
  border: 2px solid var(--tinta); border-radius: 3px;
  background: transparent; color: var(--tinta);
  font: 600 1rem/1.2 var(--fonte); text-decoration: none; text-align: center;
  cursor: pointer;
}
.cta:hover { background: var(--tinta); color: var(--papel); }
.cta__icone { width: 1.2em; height: 1.2em; flex: none; }
.cta--principal { background: var(--tinta); color: var(--papel); }
.cta--principal:hover { background: #1B3A5C; border-color: #1B3A5C; }
.cta--link {
  min-height: 44px; padding: .25em 0; border: 0; border-radius: 0;
  justify-content: flex-start; text-align: left;
  font-weight: 500; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px;
}
.cta--link:hover { background: none; color: var(--tinta); text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- cabeçalho */
.cabecalho { border-bottom: 1px solid var(--linha); background: var(--papel); }
.cabecalho__linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marca { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.marca__nome { font-weight: 650; font-size: 1.125rem; letter-spacing: -.01em; }
.marca__oficio { font-size: .8125rem; color: var(--tinta-2); }

/* ---------------------------------------------------------------- capa: a prancha */
.capa {
  background-color: var(--papel);
  background-image:
    linear-gradient(var(--grade) 1px, transparent 1px),
    linear-gradient(90deg, var(--grade) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--linha);
}
.capa__grade {
  display: grid; gap: 32px;
  padding-block: clamp(36px, 7vw, 88px);
}
.sobretitulo { font-size: .9375rem; color: var(--tinta-2); margin-bottom: 1.1em; max-width: 34ch; }
.capa h1 { font-size: clamp(2.2rem, 7.4vw, 4.6rem); line-height: 1.03; letter-spacing: -.03em; max-width: 13ch; }
.capa__sub { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.5; margin: 1.1em 0 1.6em; max-width: 36ch; }
.capa__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.capa__acoes .cta--principal { font-size: 1.0625rem; padding: .9em 1.5em; }

/* O carimbo de prancha: o que está combinado, como no canto de todo desenho de obra. */
.carimbo-caixa { position: relative; align-self: end; padding-top: 18px; }
.carimbo {
  margin: 0; background: var(--folha);
  border: 2px solid var(--tinta);
  display: grid; grid-template-columns: 1fr 1fr;
  font-size: .9375rem;
}
.carimbo > div { padding: 10px 14px; border-top: 1px solid var(--tinta); min-width: 0; }
.carimbo > div:first-child { border-top: 0; grid-column: 1 / -1; }
.carimbo > div:nth-child(even) { border-right: 1px solid var(--tinta); }
.carimbo dt { font-size: .75rem; color: var(--tinta-2); }
.carimbo dd { margin: 0; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.carimbo__responsavel dd { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.carimbo__responsavel img { width: 52px; height: 52px; border-radius: 50%; background: var(--papel); object-fit: cover; object-position: top; flex: none; }

.selo {
  position: absolute; right: 14px; top: 0; margin: 0;
  padding: 6px 12px; border: 2px solid var(--conferido); border-radius: 4px;
  color: var(--conferido); background: rgba(244, 245, 241, .92);
  font-size: .8125rem; font-weight: 700; line-height: 1.25; text-align: center;
  transform: rotate(-6deg);
  animation: carimbar .45s cubic-bezier(.2, .9, .25, 1.2) .5s both;
}
.selo span { display: block; font-weight: 500; }
@keyframes carimbar {
  from { opacity: 0; transform: scale(1.7) rotate(-16deg); }
  to { opacity: 1; transform: scale(1) rotate(-6deg); }
}

/* ---------------------------------------------------------------- blocos de risco: pendência e solução */
.bloco { border-bottom: 1px solid var(--linha); padding-block: clamp(40px, 6vw, 72px); }
.bloco__grade { display: grid; gap: 16px 48px; }
.bloco h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); line-height: 1.12; display: flex; align-items: baseline; gap: 14px; }
.bloco__num {
  flex: none; display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border: 2px solid var(--pendencia); border-radius: 50%;
  color: var(--pendencia); font-size: .9rem; font-weight: 700; letter-spacing: 0;
  transform: translateY(-.15em);
}
.bloco__corpo { max-width: 62ch; }
.caos { font-size: 1.125rem; }
.solucao { position: relative; padding-left: 2rem; }
.solucao::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem;
  background: var(--conferido);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.2 4.2L17 5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.2 4.2L17 5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bloco .cta { margin-top: .5em; }
.fonte { font-size: .875rem; color: var(--tinta-2); }
.fonte a { text-underline-offset: .2em; }

.nao-faco { list-style: none; margin: 0 0 1.5em; padding: 0; }
.nao-faco li { padding: .7em 0; border-bottom: 1px solid var(--linha); }
.nao-faco li:first-child { border-top: 1px solid var(--linha); }

/* ---------------------------------------------------------------- quem sou */
.quem { background: var(--tinta); color: var(--papel); padding-block: clamp(48px, 7vw, 96px); }
.quem__grade { display: grid; gap: 32px; align-items: end; }
.quem h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.1; max-width: 22ch; margin-bottom: .8em; }
.quem__texto p { max-width: 60ch; }
.quem__foto { margin: 0; max-width: min(320px, 80%); }
@media (min-width: 768px) { .quem__foto { max-width: 420px; } }
.quem__foto img { border-bottom: 2px solid var(--papel); }
.trajetoria { list-style: none; padding: 0; margin: 1.4em 0; max-width: 62ch; }
.trajetoria li { padding: .8em 0; border-top: 1px solid rgba(244, 245, 241, .25); }
.ressalva { font-size: .9375rem; opacity: .8; }
.quem .cta { border-color: var(--papel); color: var(--papel); }
.quem .cta:hover { background: var(--papel); color: var(--tinta); }

/* ---------------------------------------------------------------- relatório-modelo */
.relatorio { padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--linha); }
.relatorio h2, .pacotes h2, .passos h2, .simulador h2, .faq h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); line-height: 1.12; }
.relatorio__intro, .pacotes__intro, .simulador__intro { margin-top: .6em; max-width: 52ch; color: var(--tinta-2); }
.folha {
  margin: 28px auto 0; max-width: 760px;
  background: var(--folha); border: 1px solid var(--linha);
  box-shadow: 8px 8px 0 rgba(14, 35, 57, .08);
}
.folha > figcaption { padding: 12px 16px; border-top: 1px solid var(--linha); font-size: .9375rem; color: var(--tinta-2); }
.folha > figcaption strong { color: var(--tinta); }
.rel { padding: clamp(16px, 4vw, 32px); font-size: .9375rem; }
.rel-cabeca { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--linha); }
.rel-cabeca h3 { font-size: 1.375rem; margin-bottom: .2em; }
.rel-cabeca p { margin: 0; color: var(--tinta-2); font-size: .875rem; }
.rel-selo-modelo {
  flex: none; margin: 4px 0 0; padding: 4px 14px; border: 2.5px solid var(--tinta); border-radius: 4px;
  font-size: 1.25rem; font-weight: 700; transform: rotate(-7deg);
}
.rel-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.rel-foto { margin: 0; min-width: 0; }
.rel-foto svg { display: block; width: 100%; height: auto; }
.rel-foto p { font-size: .75rem; line-height: 1.3; margin: 4px 0 0; }
.rel-h { margin: 18px 0 6px; font-size: 1rem; font-weight: 600; }
.rel-h--pend { color: var(--pendencia); }
.rel-h--ok { color: var(--conferido); }
.rel-pendencias, .rel-conferidos { margin: 0; padding-left: 1.4em; }
.rel-pendencias li { margin: .25em 0; }
.rel-pendencias li::marker { color: var(--pendencia); font-weight: 700; }
.rel-conferidos { list-style: none; padding-left: 0; }
.rel-conferidos li { position: relative; padding-left: 1.6em; margin: .25em 0; }
.rel-conferidos li::before { content: '✓'; position: absolute; left: .1em; color: var(--conferido); font-weight: 700; }
.rel-tabela { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rel-tabela th, .rel-tabela td { padding: 7px 4px; border-top: 1px solid var(--linha); text-align: right; font-weight: 400; }
.rel-tabela th:first-child { text-align: left; }
.rel-tabela thead th { font-size: .75rem; color: var(--tinta-2); border-top: 0; }
.rel-rodape { margin: 18px 0 0; padding-top: 10px; border-top: 1px solid var(--linha); font-size: .8125rem; color: var(--tinta-2); }
.rel-t { font-family: var(--fonte); fill: var(--tinta); }
.rel-fraco { fill: var(--tinta-2); }
.rel-pend { fill: var(--pendencia); }
.rel-ok { fill: var(--conferido); }
.rel-linha { stroke: var(--linha); stroke-width: 1; fill: none; }
.rel-traco { stroke: var(--tinta); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rel-traco-pend { stroke: var(--pendencia); stroke-width: 2; fill: none; stroke-linecap: round; }
.rel-selo { stroke: var(--tinta); stroke-width: 2.5; fill: none; }

/* ---------------------------------------------------------------- tabela de honorários */
.pacotes { padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--linha); }
.pacotes__lista { margin: 28px 0 32px; border-top: 2px solid var(--tinta); }
.pacote { display: grid; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--linha); }
.pacote--destaque { border-left: 4px solid var(--tinta); padding-left: 18px; background: var(--folha); }
.pacote h3 { font-size: 1.25rem; }
.pacote__preco { margin: 0; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pacote ul { margin: .4em 0 0; padding-left: 1.1em; max-width: 64ch; }
.pacote li { margin: .2em 0; }
.pacote__nota { margin: .6em 0 0; font-size: .9375rem; color: var(--tinta-2); max-width: 64ch; }

/* ---------------------------------------------------------------- passos */
.passos { padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--linha); }
.passos__lista { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 0; }
.passos__lista li { counter-increment: passo; display: grid; grid-template-columns: 2.6rem 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--linha); max-width: 62ch; }
.passos__lista li::before { content: counter(passo); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- simulador (desenho das telas na Tarefa 5) */
.simulador { padding-block: clamp(48px, 7vw, 96px); background: var(--folha); border-bottom: 1px solid var(--linha); scroll-margin-top: 8px; }
.sim { margin-top: 24px; max-width: 44rem; border: 2px solid var(--tinta); background: var(--papel); padding: clamp(16px, 4vw, 28px); }
.sim__sem-js { margin: 0; }
.sim__progresso { height: 6px; background: var(--linha); margin-bottom: 18px; }
.sim__progresso span { display: block; height: 100%; background: var(--tinta); transition: width .25s ease; }
.sim__tela { border: 0; margin: 0; padding: 0; min-width: 0; }
.sim__passo { margin: 0 0 4px; font-size: .875rem; color: var(--tinta-2); }
.sim__pergunta { float: left; width: 100%; padding: 0; font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.sim__pergunta:focus { outline: none; }
.sim__pergunta:focus-visible { outline: 3px solid var(--tinta); outline-offset: 4px; }
.sim__pergunta + * { clear: both; }
.sim__ajuda { margin: 4px 0 0; font-size: .9375rem; color: var(--tinta-2); clear: both; }
.sim__opcoes { display: grid; gap: 10px; margin-top: 16px; clear: both; }
.sim__opcao {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--folha); color: var(--tinta); border: 1.5px solid var(--linha); border-radius: 3px;
  font: 500 1rem/1.3 var(--fonte); text-align: left; cursor: pointer;
}
.sim__opcao::before {
  content: ''; flex: none; width: 20px; height: 20px; border: 2px solid var(--tinta); border-radius: 50%;
}
.sim__opcoes--varias .sim__opcao::before { border-radius: 3px; }
.sim__opcao:hover { border-color: var(--tinta); }
.sim__opcao[aria-pressed="true"] { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.sim__opcao[aria-pressed="true"]::before {
  background: var(--conferido); border-color: var(--conferido);
  box-shadow: inset 0 0 0 3px var(--folha);
}
.sim__m2 { display: grid; gap: 6px; margin-top: 14px; font-size: .9375rem; color: var(--tinta-2); }
.sim__m2 input {
  width: 9rem; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--tinta); border-radius: 3px;
  background: var(--folha); color: var(--tinta); font: 500 1.0625rem var(--fonte);
}
.sim__navega { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.sim__navega > .sim__seguir:only-child { margin-left: auto; }
.sim__botao {
  min-height: 48px; padding: .6em 1.1em; background: none; border: 0; color: var(--tinta);
  font: 500 1rem var(--fonte); text-decoration: underline; text-underline-offset: .25em; cursor: pointer;
}
.sim__envio { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--linha); }
.sim__envio .sim__ajuda { margin-bottom: 10px; }
.sim__enviar { width: 100%; }
.sim__resumo {
  margin: 16px 0; padding: 14px 16px; background: var(--folha); border: 1px solid var(--linha);
  font: 400 .9375rem/1.6 var(--fonte); white-space: pre-wrap; overflow-wrap: anywhere;
}
@media (min-width: 640px) {
  .sim__opcoes--varias { grid-template-columns: 1fr 1fr; }
  .sim__enviar { width: auto; }
}

/* ---------------------------------------------------------------- perguntas */
.faq { padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--linha); }
.faq__lista { margin-top: 20px; max-width: 70ch; border-top: 1px solid var(--linha); }
.pergunta { border-bottom: 1px solid var(--linha); }
.pergunta summary {
  list-style: none; cursor: pointer; padding: 16px 2.2rem 16px 0; position: relative;
  font-weight: 600; font-size: 1.0625rem;
}
.pergunta summary::-webkit-details-marker { display: none; }
.pergunta summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.pergunta[open] summary::after { content: '−'; }
.pergunta p { padding-bottom: 8px; color: var(--tinta-2); }

/* ---------------------------------------------------------------- fecho e rodapé */
.fecho { padding-block: clamp(56px, 8vw, 112px); }
.fecho h2 { font-size: clamp(2rem, 5.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; max-width: 16ch; }
.fecho p { margin: 1em 0 1.6em; font-size: 1.125rem; max-width: 40ch; }
.rodape { border-top: 2px solid var(--tinta); padding-block: 28px 96px; font-size: .9375rem; color: var(--tinta-2); }
.rodape p { margin: .3em 0; }
.rodape a { text-underline-offset: .2em; }

/* ---------------------------------------------------------------- barra fixa do celular */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px var(--lateral) calc(10px + env(safe-area-inset-bottom));
  background: var(--tinta);
  transform: translateY(110%); transition: transform .25s ease;
}
.barra .cta { width: 100%; background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.barra--visivel { transform: none; }

/* ---------------------------------------------------------------- telas maiores */
@media (min-width: 768px) {
  .barra { display: none; }
  .rodape { padding-bottom: 32px; }
  .bloco__grade { grid-template-columns: minmax(220px, 1fr) 2fr; }
  .pacote { grid-template-columns: 1fr auto; }
  .pacote__preco { grid-column: 2; grid-row: 1; text-align: right; }
  .pacote ul, .pacote__nota { grid-column: 1 / -1; }
  .quem__grade { grid-template-columns: 2fr 3fr; }
}
@media (min-width: 960px) {
  .capa__grade { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .selo { animation: none; }
  .barra { transition: none; }
}

/* ---------------------------------------------------------------- páginas de texto (privacidade) */
.texto-legal { max-width: 46rem; padding-block: 40px 72px; }
.texto-legal h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: .3em; }
.texto-legal h2 { font-size: 1.125rem; margin: 1.8em 0 .4em; }
.texto-legal .versao { color: var(--tinta-2); }
.texto-legal button { min-height: 44px; padding: 8px 14px; font: inherit; color: inherit; background: var(--folha); border: 1px solid var(--tinta); cursor: pointer; }

/* ---------------------------------------------------------------- página de parceiros */
.capa--curta .capa__grade { padding-block: clamp(32px, 6vw, 72px); }
.capa--curta h1 { max-width: 18ch; font-size: clamp(2rem, 6vw, 3.6rem); }
.parceiro__chamada { font-size: 1.25rem; font-weight: 600; margin-bottom: .6em; }
