/* Zelyon Web v2, Fase B: paginas internas e blocos novos da pagina inicial.
   Carregado com site.css em: /, /solucoes, /processo, /contato, /projetos e estudos.
   Regras do projeto (docs/02-direcao-arte-v2.md): lima so liga coisas (botao principal, traco,
   progresso, anel de foco); moldura de cantos so no palco da abertura, no palco de
   "Do pedido ao painel" e na faixa de contato; texto das interfaces nunca abaixo de 11 px.
   As telas das marcas ficticias (.scr) ficam em studies.css. */

/* =====================================================================
   Pecas comuns
   ===================================================================== */
.title-xl {
  font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5.5rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: clamp(-0.042em, 0.1px - 0.3vw, -0.026em);
  margin-inline-start: -0.05em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--zy-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  border-radius: 4px;
}
.text-link:hover { text-decoration-thickness: 2px; }
/* sobre fundo escuro */
.text-link--dark { color: var(--zy-on-dark); }

/* rotulo visivel de proposta (R7: proposta nao e compromisso confirmado) */
.proposal {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 62ch;
  padding: 16px 20px;
  border: 1px solid var(--zy-hair-dark);
  border-radius: 14px;
  background: rgba(244, 247, 248, 0.04);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--zy-on-dark);
}
.proposal::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 0 solid var(--zy-on-dark-muted);
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 6px;
}
.proposal--light {
  display: inline-flex;
  padding: 6px 14px;
  border-color: var(--zy-hair-light);
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zy-muted);
}
.proposal--light::before { width: 10px; height: 10px; margin-top: 5px; border-color: var(--zy-muted); border-top-left-radius: 4px; }

/* ---------- abertura das paginas internas ---------- */
.pagehead {
  position: relative;
  overflow-x: clip;
  padding-block: calc(var(--header-h) + clamp(56px, 7vw, 112px)) clamp(56px, 6vw, 96px);
  color: var(--zy-on-dark);
  background:
    radial-gradient(60vw 40vw at 92% 0%, rgba(0, 60, 70, 0.35), rgba(0, 60, 70, 0) 70%),
    linear-gradient(180deg, var(--zy-navy) 0%, var(--zy-abyss) 100%);
  --focus: var(--zy-lime);
}
.no-js .pagehead { padding-top: clamp(40px, 5vw, 72px); }
.pagehead__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 28px;
  align-items: end;
}
.pagehead__title { grid-column: 1 / 8; }
.pagehead__lead {
  grid-column: 8 / 13;
  max-width: 44ch;
  padding-bottom: 0.35em;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--zy-on-dark-muted);
}
.pagehead .proposal { grid-column: 1 / 9; margin-top: 12px; }
@media (max-width: 899px) {
  .pagehead__title,
  .pagehead__lead,
  .pagehead .proposal { grid-column: 1 / -1; }
  .pagehead__lead { padding-bottom: 0; }
}

/* indice interno (ancoras) */
.toc {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--zy-hair-dark);
}
.toc__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px 20px 14px 0;
  font-size: 1.0625rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--zy-on-dark);
  text-decoration: none;
  border-radius: 4px;
}
.toc__link + .toc__link { padding-left: 20px; border-left: 1px solid var(--zy-hair-dark); }
.toc__link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.toc__icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: var(--zy-on-dark-muted);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms var(--ease-out), stroke 160ms var(--ease-out);
}
.toc__link:hover .toc__icon { transform: translateY(3px); stroke: var(--zy-lime); }
@media (max-width: 899px) {
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc__link:nth-child(3) { padding-left: 0; border-left: 0; }
  .toc__link:nth-child(n + 3) { border-top: 1px solid var(--zy-hair-dark); }
}
@media (max-width: 399px) {
  .toc { grid-template-columns: minmax(0, 1fr); }
  .toc__link + .toc__link { padding-left: 0; border-left: 0; border-top: 1px solid var(--zy-hair-dark); }
  .toc__link { min-height: 56px; }
}

/* ---------- faixa de contato (o unico bloco com moldura de cantos) ---------- */
.strip {
  padding-block: clamp(72px, 8.9vw, 128px);
  background: var(--zy-navy);
  color: var(--zy-on-dark);
  --focus: var(--zy-lime);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 24px;
  align-items: end;
  padding: clamp(40px, 5.6vw, 88px) clamp(24px, 4.4vw, 72px);
}
.strip__title { grid-column: 1 / 7; }
.strip__side { grid-column: 8 / 13; }
.strip__text {
  max-width: 40ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--zy-on-dark-muted);
}
.strip__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 28px; }
.strip__link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  font-weight: 560;
  color: var(--zy-on-dark);
  text-underline-offset: 0.25em;
  border-radius: 4px;
}
.strip__link:hover { text-decoration-thickness: 2px; }
.strip__alt { margin-top: 24px; font-size: 0.9375rem; line-height: 1.5; color: var(--zy-on-dark-muted); }
.strip__alt a { color: var(--zy-on-dark); font-weight: 560; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .strip__title,
  .strip__side { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .strip__actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .strip__actions .btn { width: 100%; }
  .strip__link { justify-content: center; }
}


/* ---------- pagina de campanha (Maré), usada em /solucoes ---------- */
:where(.ml) :where(span) { display: block; }
.ml { display: flex; flex-direction: column; height: 100%; background: #faf6ef; color: #2a1f17; }
.ml__hero {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: 4cqw;
  padding: 4cqw 5cqw;
  background: #3b2a1d;
  color: #f5ede2;
}
.ml__brand { grid-column: 1; font-family: Georgia, "Times New Roman", serif; font-size: max(12px, 3cqw); font-weight: 700; color: #e8d5b9; }
.ml__title { grid-column: 1; margin-top: 4cqw; font-family: Georgia, "Times New Roman", serif; font-size: max(14px, 4.8cqw); line-height: 1.05; letter-spacing: -0.02em; color: #fff8ee; }
.ml__text { grid-column: 1; margin-top: 2.2cqw; font-size: max(11px, 2cqw); line-height: 1.45; color: #e3d3bd; }
.ml__btn { grid-column: 1; justify-self: start; margin-top: 3cqw; padding: 1.4cqw 3cqw; border-radius: 2px; background: #e9c98f; color: #2a1f17; font-size: max(11px, 2cqw); font-weight: 600; }
.ml__img { grid-column: 2; grid-row: 1 / -1; align-self: center; }
.ml__img svg { width: 100%; height: auto; }
.ml__table { fill: #c08d5a; }
.ml__legs { fill: none; stroke: #c08d5a; stroke-width: 5; stroke-linecap: round; }
.ml__chair { fill: #7a5a3f; }
.ml__floor { fill: none; stroke: rgba(233, 201, 143, 0.35); stroke-width: 1; }
.ml__form { flex: none; display: flex; flex-direction: column; gap: 1.6cqw; padding: 3cqw 5cqw 3.4cqw; }
.ml__form-title { font-family: Georgia, "Times New Roman", serif; font-size: max(12px, 2.8cqw); }
.ml__fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1.6cqw; }
.ml__field { padding: 1.3cqw 1.8cqw; border: 1px solid rgba(107, 74, 47, 0.35); border-radius: 2px; background: #fff; color: #6b5a4b; font-size: max(11px, 1.9cqw); }
.ml__send { padding: 1.3cqw 2.4cqw; border-radius: 2px; background: #6b4a2f; color: #faf6ef; font-size: max(11px, 1.9cqw); font-weight: 600; }
@container (max-width: 620px) {
  .ml__text { display: none; }
  .ml__hero { padding-block: 3.4cqw; }
}
/* celular (e navegador estreito): a campanha empilha, como uma pagina responsiva de verdade */
@container (max-width: 320px) {
  .ml__hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-content: start; padding: 15cqw 7cqw 6cqw; }
  .ml__brand { font-size: max(11px, 7cqw); }
  .ml__title { margin-top: 5cqw; font-size: max(13px, 9.6cqw); }
  .ml__text { display: none; }
  .ml__btn { align-self: start; margin-top: 5cqw; padding: 3cqw 5cqw; font-size: max(11px, 5cqw); }
  .ml__img { grid-column: 1; grid-row: auto; margin-top: 4cqw; }
  .ml__form { gap: 3cqw; padding: 5cqw 7cqw 7cqw; }
  .ml__form-title { font-size: max(11px, 6cqw); }
  .ml__fields { grid-template-columns: minmax(0, 1fr); gap: 2.4cqw; }
  .ml__field { padding: 2.6cqw 3.4cqw; font-size: max(11px, 4.8cqw); }
  .ml__field + .ml__field { display: none; }
  .ml__send { padding: 3.2cqw; text-align: center; font-size: max(11px, 5cqw); }
}
@container (max-width: 160px) {
  .ml__form-title,
  .ml__field { display: none; }
}


/* =====================================================================
   Pagina inicial: "Projetos para explorar"
   ===================================================================== */
.projects {
  padding-block: clamp(72px, 8.9vw, 128px);
  color: var(--zy-on-dark);
  background:
    radial-gradient(50vw 40vw at 6% 100%, rgba(0, 60, 70, 0.4), rgba(0, 60, 70, 0) 70%),
    var(--zy-navy);
  --focus: var(--zy-lime);
}
.projects__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 20px;
  align-items: end;
}
.projects__head .h2 { grid-column: 1 / 7; }
.projects__intro { grid-column: 8 / 13; }
.projects__lead { max-width: 46ch; font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--zy-on-dark-muted); }
.projects__note {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border: 1px solid var(--zy-hair-dark);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zy-on-dark);
}
@media (max-width: 899px) {
  .projects__head .h2,
  .projects__intro { grid-column: 1 / -1; }
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(40px, 4.4vw, 64px);
  margin-top: clamp(40px, 5vw, 72px);
}
.pcard { position: relative; grid-column: span 6; display: flex; flex-direction: column; gap: 22px; }
.pcard--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
}
.pcard--lead .thumb { grid-column: 1 / 9; }
.pcard--lead .pcard__body { grid-column: 9 / 13; padding-bottom: 8px; }
.pcard__name { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 620; line-height: 1.1; letter-spacing: -0.025em; }
.pcard__type { margin-top: 8px; max-width: 36ch; color: var(--zy-on-dark-muted); }
.pcard__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 600;
  color: var(--zy-on-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  border-radius: 4px;
}
/* o cartao inteiro leva ao estudo; o foco continua no link */
.pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.pcard:hover .pcard__link { text-decoration-thickness: 2px; }
/* abaixo de 1100 px um cartao por linha: a miniatura fica larga o bastante para a tela do computador */
@media (max-width: 1099px) {
  .pcard { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .pcard--lead { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .pcard--lead .pcard__body { padding-bottom: 0; }
}

/* miniatura: o mesmo par de pecas da abertura (navegador + celular), em escala menor */
.thumb {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  border: 1px solid var(--zy-hair-dark);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--zy-navy-raised), var(--zy-abyss));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  container-type: inline-size;
}
.thumb__browser,
.thumb__phone { position: absolute; transition: transform 320ms var(--ease-out); }
.thumb__browser { left: 6%; top: 10%; width: 68%; aspect-ratio: 16 / 10.4; }
.thumb__phone { right: 6%; top: 26%; width: 21%; aspect-ratio: 390 / 844; z-index: 2; }
.pcard:not(.pcard--lead) .thumb__browser { top: 12%; }
@media (hover: hover) and (pointer: fine) and (min-width: 600px) and (prefers-reduced-motion: no-preference) {
  .pcard:hover .thumb__browser { transform: translate(-3px, -3px); }
  .pcard:hover .thumb__phone { transform: translate(3px, -6px); }
}
.pcard:focus-within .thumb { border-color: rgba(244, 247, 248, 0.35); }
/* abaixo de 600 px so o celular, maior e centrado (o computador nao cabe legivel) */
@media (max-width: 599px) {
  .thumb { aspect-ratio: 4 / 3.6; border-radius: 16px; }
  .thumb__browser { display: none; }
  .thumb__phone { left: 50%; right: auto; top: 8%; width: 40%; transform: translateX(-50%); }
}

.flow__more { margin-top: 20px; }
.projects__all { margin-top: clamp(32px, 4vw, 48px); }


/* ---------- /projetos ---------- */
.pnote {
  grid-column: 1 / 9;
  max-width: 62ch;
  margin-top: 8px;
  padding: 16px 20px;
  border: 1px solid var(--zy-hair-dark);
  border-radius: 14px;
  background: rgba(244, 247, 248, 0.04);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--zy-on-dark);
}
@media (max-width: 899px) { .pnote { grid-column: 1 / -1; } }
.pbig-list { display: grid; gap: clamp(56px, 7vw, 112px); }
.pbig { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; align-items: center; }
.pbig .thumb { grid-column: 1 / 8; grid-row: 1; border-color: transparent; }
.pbig__body { grid-column: 9 / 13; grid-row: 1; }
.pbig:nth-child(even) .thumb { grid-column: 6 / 13; }
.pbig:nth-child(even) .pbig__body { grid-column: 1 / 5; }
.pbig__name { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 640; line-height: 1.02; letter-spacing: -0.032em; }
.pbig__type { margin-top: 12px; font-weight: 560; }
.pbig__problem { margin-top: 12px; max-width: 40ch; color: var(--zy-muted); }
.pbig .pcard__link { color: var(--zy-navy); }
.pbig .pcard__link::after { border-radius: 24px; }
.pbig:hover .pcard__link { text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) and (min-width: 600px) and (prefers-reduced-motion: no-preference) {
  .pbig:hover .thumb__browser { transform: translate(-3px, -3px); }
  .pbig:hover .thumb__phone { transform: translate(3px, -6px); }
}
@media (max-width: 899px) {
  .pbig .thumb,
  .pbig__body,
  .pbig:nth-child(even) .thumb,
  .pbig:nth-child(even) .pbig__body { grid-column: 1 / -1; grid-row: auto; }
}


/* =====================================================================
   /solucoes: um bloco por formato; o palco sangra ate a borda da janela
   ===================================================================== */
.fmt {
  overflow-x: clip;
  padding-block: clamp(72px, 8vw, 120px);
  background: var(--zy-paper);
  color: var(--zy-ink);
  --focus: var(--zy-navy);
}
.fmt + .fmt { border-top: 1px solid var(--zy-hair-light); }
.fmt__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  align-items: center;
}
.fmt__text { grid-row: 1; }
.fmt__figure { grid-row: 1; }
.fmt--stage-right .fmt__text { grid-column: 1 / 6; }
.fmt--stage-right .fmt__figure { grid-column: 7 / 13; margin-right: calc(-1 * var(--bleed)); }
.fmt--stage-left .fmt__text { grid-column: 8 / 13; }
.fmt--stage-left .fmt__figure { grid-column: 1 / 7; margin-left: calc(-1 * var(--bleed)); }

.fmt__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 640; line-height: 1.02; letter-spacing: -0.032em; }
.fmt__for { margin-top: 20px; max-width: 40ch; font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.5; color: var(--zy-muted); }
.fmt__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gutter); margin-top: 36px; }
.fmt__label { padding-top: 14px; border-top: 1px solid var(--zy-hair-light); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--zy-ink); }
.fmt__list { display: grid; gap: 10px; margin-top: 14px; }
.fmt__list li { position: relative; padding-left: 22px; font-size: 1rem; line-height: 1.45; color: var(--zy-ink); }
.fmt__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 12px; height: 2px; border-radius: 2px; background: var(--zy-navy); }
/* exemplos sao situacoes hipoteticas, nao clientes: marcador vazado */
.fmt__list--examples li { color: var(--zy-muted); }
.fmt__list--examples li::before { top: 0.42em; width: 8px; height: 8px; border: 1.5px solid var(--zy-muted); border-radius: 50%; background: none; }
.fmt__more { margin-top: 24px; }
.fmt__note { margin-top: 12px; max-width: 46ch; font-size: 0.9375rem; line-height: 1.5; color: var(--zy-muted); }
.fmt__note a { color: var(--zy-navy); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 900px) and (max-width: 1199px) {
  .fmt__cols { grid-template-columns: minmax(0, 1fr); }
}

.fmt__stage {
  position: relative;
  aspect-ratio: 720 / 470;
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 80% 0%, rgba(0, 60, 70, 0.35), rgba(0, 60, 70, 0) 70%),
    linear-gradient(180deg, var(--zy-navy), var(--zy-abyss));
  container-type: inline-size;
}
.fmt--stage-right .fmt__stage { border-radius: var(--corner) 0 0 var(--corner); }
.fmt--stage-left .fmt__stage { border-radius: 0 var(--corner) var(--corner) 0; }
.fmt__browser,
.fmt__phone { position: absolute; }
/* mesma composicao nos dois lados: o celular encosta na borda direita do navegador
   (a area de imagem/estado), nunca sobre o texto da interface; pouco navy sobrando embaixo */
.fmt__browser { left: 7%; top: 11%; width: 67%; aspect-ratio: 16 / 10.4; }
.fmt__phone { right: 7%; top: 20%; width: 21%; aspect-ratio: 390 / 844; z-index: 2; }
.fmt__tag {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--zy-faint-on-dark);
  white-space: nowrap;
}
.fmt__tag--browser { left: 7%; top: 4.5%; }
.fmt__tag--phone { right: 7%; top: 13.5%; }

/* legenda: trecho para telas largas e trecho para o celular (so um aparece) */
.cap-narrow { display: none; }
@media (max-width: 599px) {
  .cap-wide { display: none; }
  .cap-narrow { display: inline; }
}
.illus__caption { margin-top: 14px; max-width: 60ch; font-size: 0.875rem; line-height: 1.5; color: var(--zy-muted); }
.fmt--stage-right .illus__caption { padding-right: var(--bleed); }
.fmt--stage-left .illus__caption { padding-left: var(--bleed); margin-left: auto; text-align: right; }

@media (max-width: 899px) {
  .fmt__grid { align-items: start; }
  .fmt--stage-right .fmt__text,
  .fmt--stage-left .fmt__text,
  .fmt--stage-right .fmt__figure,
  .fmt--stage-left .fmt__figure { grid-column: 1 / -1; grid-row: auto; }
  .fmt--stage-right .fmt__figure,
  .fmt--stage-left .fmt__figure { margin-inline: calc(-1 * var(--margin)); }
  .fmt--stage-right .fmt__stage,
  .fmt--stage-left .fmt__stage { border-radius: 0; aspect-ratio: 390 / 320; }
  .fmt--stage-right .illus__caption,
  .fmt--stage-left .illus__caption { padding-inline: var(--margin); margin-left: 0; text-align: left; }
}
@media (max-width: 599px) {
  .fmt__cols { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  /* so o celular, centrado: o computador nao cabe legivel nesta largura */
  .fmt--stage-right .fmt__stage,
  .fmt--stage-left .fmt__stage { aspect-ratio: 390 / 440; }
  .fmt__browser,
  .fmt__tag--browser,
  .fmt__tag--phone { display: none; }
  .fmt__phone { left: 50%; right: auto; top: 5%; width: auto; height: 90%; transform: translateX(-50%); }
}

/* ---------- modelo pronto x sob medida ---------- */
.compare {
  padding-block: clamp(72px, 8vw, 120px);
  background: var(--zy-paper-deep);
  color: var(--zy-ink);
  --focus: var(--zy-navy);
}
.compare__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 20px;
  align-items: end;
}
.compare__title { grid-column: 1 / 8; }
.compare__lead { grid-column: 8 / 13; max-width: 46ch; font-size: 1.0625rem; line-height: 1.55; color: var(--zy-muted); }
.compare__table {
  width: 100%;
  margin-top: clamp(40px, 5vw, 64px);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.compare__table th,
.compare__table td { padding: 20px 24px; text-align: left; vertical-align: top; border-top: 1px solid var(--zy-hair-light); }
.compare__table thead th,
.compare__table thead td { border-top: 0; padding-block: 18px 16px; font-size: 0.9375rem; font-weight: 600; color: var(--zy-muted); }
.compare__table tbody th { width: 22%; padding-left: 0; font-weight: 600; }
.compare__table td { width: 39%; color: var(--zy-muted); }
.compare__table thead td { width: 22%; }
/* a coluna do sob medida e a peca que encaixa: navy, cantos arredondados nas pontas */
.compare__table .compare__ours { background: var(--zy-navy); color: var(--zy-on-dark); border-top-color: var(--zy-hair-dark); }
.compare__table thead .compare__ours { color: var(--zy-on-dark); border-radius: 20px 20px 0 0; padding-top: 22px; }
.compare__table tbody tr:last-child .compare__ours { border-radius: 0 0 20px 20px; padding-bottom: 26px; }
@media (max-width: 899px) {
  .compare__title,
  .compare__lead { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .compare__table,
  .compare__table tbody { display: block; }
  .compare__table tr { display: grid; gap: 10px; padding-block: 24px; border-top: 1px solid var(--zy-hair-light); }
  .compare__table tbody th,
  .compare__table td { width: auto; padding: 0; border-top: 0; }
  .compare__table td { padding: 14px 16px; border-radius: 12px; background: rgba(0, 35, 44, 0.04); }
  .compare__table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--zy-muted); }
  .compare__table tbody .compare__ours,
  .compare__table tbody tr:last-child .compare__ours { padding: 14px 16px; border-radius: 12px; }
  .compare__table .compare__ours::before { color: var(--zy-on-dark-muted); }
}


/* =====================================================================
   /processo: etapas (sequencia real: numeros e a linha lima que liga uma a outra)
   ===================================================================== */
.proc { padding-block: clamp(64px, 7vw, 112px); background: var(--zy-paper); color: var(--zy-ink); --focus: var(--zy-navy); }
.proc__list { counter-reset: etapa; }
.proc__list { --pt: clamp(32px, 4vw, 56px); --num: clamp(3.25rem, 2rem + 3.4vw, 5.5rem); }
.proc__item {
  counter-increment: etapa;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 16px;
  padding-block: var(--pt);
  border-top: 1px solid var(--zy-hair-light);
  --top: var(--pt);
}
.proc__item:first-child { border-top: 0; padding-top: 0; --top: 0px; }
.proc__item::before {
  content: counter(etapa);
  grid-column: 1 / 3;
  grid-row: 1 / span 2;
  font-size: var(--num);
  font-weight: 380;
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--zy-navy);
}
/* linha do processo: sai de baixo do numero e para logo antes do numero seguinte */
.proc__item:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(var(--num) * 0.2);
  top: calc(var(--top) + var(--num) * 0.86 + 18px);
  bottom: calc(18px - var(--pt));
  width: 4px;
  border-radius: 4px;
  background: var(--zy-lime);
}
.proc__title { grid-column: 3 / 7; font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.25rem); font-weight: 620; line-height: 1.1; letter-spacing: -0.025em; }
.proc__body { grid-column: 7 / 13; display: grid; gap: 16px; }
.proc__what { max-width: 48ch; font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.5; }
.proc__get { display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; background: var(--zy-paper-deep); }
.proc__get-label { font-size: 0.8125rem; font-weight: 600; color: var(--zy-muted); }
@media (max-width: 899px) {
  .proc__item::before { grid-column: 1 / 3; grid-row: 1 / span 2; }
  .proc__title { grid-column: 3 / -1; }
  .proc__body { grid-column: 3 / -1; }
}
@media (max-width: 599px) {
  .proc__list { --num: 3rem; }
  .proc__item { grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; }
  .proc__item::before { grid-column: 1; grid-row: 1 / span 2; }
  .proc__title,
  .proc__body { grid-column: 2; }
}

/* ---------- comparador rascunho -> site pronto (etapa 3) ---------- */
.demo--draft {
  grid-column: 3 / 13;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: clamp(16px, 2.4vw, 32px);
  --pos: 50%;
}
.demo--draft > .dstage,
.demo--draft > .draft__controls { grid-column: 1 / -1; }
.demo--draft > .demo__status { grid-column: 1 / 7; margin-top: 16px; }
.demo--draft > .demo__caption { grid-column: 7 / 11; margin-top: 16px; padding-top: 16px; color: var(--zy-muted); }
@media (max-width: 899px) {
  .demo--draft { grid-column: 1 / -1; }
  .demo--draft > .demo__status,
  .demo--draft > .demo__caption { grid-column: 1 / -1; }
  .demo--draft > .demo__caption { margin-top: 12px; padding-top: 0; }
}
/* a linha do processo passa por tras do comparador */
.demo--draft { position: relative; z-index: 2; }
@media (max-width: 899px) { .demo--draft { padding-bottom: 8px; background: var(--zy-paper); } }
@media (max-width: 599px) {
  .demo--draft { grid-column: 1 / -1; margin-inline: calc(-1 * var(--margin)); padding-bottom: 8px; background: var(--zy-paper); }
}

.dstage {
  position: relative;
  aspect-ratio: 1040 / 700;
  overflow: hidden;
  border-radius: var(--corner);
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(0, 60, 70, 0.35), rgba(0, 60, 70, 0) 70%),
    linear-gradient(180deg, var(--zy-navy), var(--zy-abyss));
  box-shadow: var(--shadow-light);
}
.dstage__device { position: absolute; left: 6%; right: 6%; top: 8%; bottom: 8%; }
.dlayer { position: absolute; inset: 0; }
/* cada camada e um contexto de empilhamento: os rotulos do desenho tecnico (z-index 3)
   ficam presos ao rascunho e nunca passam por cima do site pronto */
.dlayer--sketch { z-index: 0; background: #0a2238; }
.dlayer--final { z-index: 1; }
.dlayer .device--wire { position: absolute; inset: 0; opacity: 1; }
.dstage .browser__bar { height: max(16px, 3.2cqw); }
/* o mesmo site nos dois lados: no computador a versao larga, no celular a versao do celular */
.dstage__device--phone { display: none; }
/* rascunho a esquerda da divisa, site pronto a direita (os rotulos do palco e do range dizem o mesmo) */
.dlayer--final { clip-path: inset(0 0 0 var(--pos)); }
/* a divisa anda por transform: a camada tem a largura da tela, e translateX(--pos) e relativo a ela */
.dseam { position: absolute; z-index: 3; inset: 0; transform: translateX(var(--pos)); pointer-events: none; }
.dseam::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; border-radius: 4px; background: var(--zy-lime); }
.dstage__tag { position: absolute; z-index: 6; top: 2.4%; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: var(--zy-faint-on-dark); }
.dstage__tag--l { left: 6%; }
.dstage__tag--r { right: 6%; }
@media (max-width: 599px) {
  .dstage { aspect-ratio: 390 / 560; border-radius: 0; }
  .dstage__tag { top: 1.4%; }
  .dstage__tag--l { left: 20%; }
  .dstage__tag--r { right: 20%; }
  .dstage__device--browser { display: none; }
  .dstage__device--phone { display: block; left: 50%; right: auto; top: 5%; bottom: auto; height: 90%; aspect-ratio: 390 / 844; transform: translateX(-50%); }
}

.draft__controls { display: grid; gap: 4px; margin-top: 16px; padding-inline: 6%; }
.draft__label { font-size: 0.9375rem; font-weight: 600; color: var(--zy-ink); }
.draft__ends { display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 500; color: var(--zy-muted); }
@media (max-width: 599px) {
  /* o range acompanha a largura da tela do celular, para o polegar ficar sob o traco */
  .draft__controls { padding-inline: 20%; }
  .demo--draft > .demo__status,
  .demo--draft > .demo__caption { margin-inline: var(--margin); }
}

/* range: trilho fino, trecho ate o polegar em lima (o progresso liga o rascunho ao pronto) */
.draft__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
.draft__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--zy-lime) 0 var(--pos), rgba(0, 35, 44, 0.2) var(--pos) 100%);
}
.draft__range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(0, 35, 44, 0.2); }
.draft__range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--zy-lime); }
.draft__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -12px;
  border: 3px solid var(--zy-paper);
  border-radius: 50%;
  background: var(--zy-navy);
  box-shadow: 0 0 0 1px rgba(0, 35, 44, 0.25), 0 4px 10px -2px rgba(0, 35, 44, 0.35);
  transition: transform 120ms var(--ease-out);
}
.draft__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--zy-paper);
  border-radius: 50%;
  background: var(--zy-navy);
  box-shadow: 0 0 0 1px rgba(0, 35, 44, 0.25);
}
.draft__range:active::-webkit-slider-thumb { transform: scale(1.08); }
.draft__range:focus-visible { outline: 3px solid var(--zy-navy); outline-offset: 2px; }

/* ---------- o que propomos em todo projeto ---------- */
.promise { padding-block: clamp(72px, 8vw, 120px); background: var(--zy-paper-deep); color: var(--zy-ink); --focus: var(--zy-navy); }
.promise__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.promise__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: clamp(40px, 5vw, 64px);
}
.promise__item { padding: 24px 24px 32px 0; border-top: 1px solid var(--zy-hair-light); }
.promise__title { font-size: 1.25rem; font-weight: 620; line-height: 1.25; letter-spacing: -0.015em; }
.promise__item p { margin-top: 10px; max-width: 36ch; color: var(--zy-muted); }
@media (max-width: 959px) { .promise__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .promise__list { grid-template-columns: minmax(0, 1fr); }
  .promise__item { padding: 20px 0 24px; }
}


/* =====================================================================
   /contato
   ===================================================================== */
.talk {
  padding-block: calc(var(--header-h) + clamp(48px, 6vw, 96px)) clamp(72px, 8.9vw, 128px);
  color: var(--zy-on-dark);
  background:
    radial-gradient(50vw 40vw at 0% 0%, rgba(0, 60, 70, 0.35), rgba(0, 60, 70, 0) 70%),
    linear-gradient(180deg, var(--zy-navy) 0%, var(--zy-abyss) 100%);
  --focus: var(--zy-lime);
}
.no-js .talk { padding-top: clamp(40px, 5vw, 72px); }
.talk__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  align-items: start;
  /* a segunda linha absorve o crescimento do formulario (mensagem de erro): a coluna da esquerda nao pula */
  grid-template-rows: auto 1fr;
}
.talk__intro { grid-column: 1 / 6; grid-row: 1; }
.talk__form { grid-column: 7 / 13; grid-row: 1 / span 2; }
.talk__aside { grid-column: 1 / 6; grid-row: 2; }
.talk__title { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.5rem); }
.talk__lead { margin-top: 24px; max-width: 40ch; font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--zy-on-dark-muted); }
.talk__block { padding-top: 20px; border-top: 1px solid var(--zy-hair-dark); }
.talk__block + .talk__block { margin-top: 32px; }
.talk__h { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--zy-on-dark); }
.talk__block p { margin-top: 8px; max-width: 42ch; color: var(--zy-on-dark-muted); }
.talk__channels { margin-top: 8px; }
.talk__channels a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--zy-on-dark);
  font-weight: 500;
  text-underline-offset: 0.25em;
  border-radius: 4px;
}
.talk__channels a { text-decoration: none; }
.talk__value { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.talk__channels a:hover .talk__value { text-decoration-thickness: 2px; }
.talk__channel { display: inline-block; min-width: 92px; color: var(--zy-on-dark-muted); font-weight: 400; }
.talk__plans { margin-top: 32px; font-size: 0.9375rem; line-height: 1.5; color: var(--zy-on-dark-muted); }
.talk__plans a { color: var(--zy-on-dark); font-weight: 560; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .talk__intro,
  .talk__form,
  .talk__aside { grid-column: 1 / -1; grid-row: auto; }
}


/* =====================================================================
   Movimento reduzido
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .thumb__browser,
  .thumb__phone,
  .toc__icon { transition: none; }
}

