/* Zelyon Web v2: sistema base ("Encaixe de precisao", docs/02-direcao-arte-v2.md).
   Tokens medidos na marca. O verde-lima e o traco que liga: botao principal, progresso,
   anel de foco e o traco das demonstracoes. Nunca texto sobre fundo claro. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --zy-navy: #0b2741;
  --zy-abyss: #061626;
  --zy-navy-raised: #12324f;
  --zy-ink: #00232c;
  --zy-teal: #003c46;
  --zy-lime: #a4d006;
  --zy-lime-hover: #b4e01a;
  --zy-paper: #fcf7f4;
  --zy-paper-deep: #f3ede6;
  --zy-muted: #4a5a60;
  --zy-on-dark: #f4f7f8;
  --zy-on-dark-muted: #b9c6cc;
  --zy-faint-on-dark: #8fa3ad;
  --zy-hair-dark: rgba(255, 255, 255, 0.10);
  --zy-hair-light: rgba(0, 35, 44, 0.12);
  --zy-cota: rgba(143, 163, 173, 0.55);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-lock: cubic-bezier(0.3, 1.18, 0.5, 1);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1312px;
  --margin: clamp(20px, 4.4445vw, 64px);
  --gutter: clamp(16px, 1.667vw, 24px);
  --header-h: 72px;
  --corner: 28px;
  --frame-w: 6px;
  /* distancia da borda do conteudo ate a borda da janela (para os palcos sangrarem) */
  --bleed: calc(var(--margin) + max(0px, (100vw - var(--wrap) - 2 * var(--margin)) / 2));

  --shadow-dark: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 6px rgba(2, 10, 20, 0.35), 0 28px 56px -16px rgba(2, 10, 20, 0.6);
  --shadow-light: 0 1px 2px rgba(0, 35, 44, 0.06), 0 16px 40px -12px rgba(0, 35, 44, 0.16);
  --focus: var(--zy-lime);
}
@media (max-width: 767px) {
  :root { --header-h: 64px; --frame-w: 4px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--zy-ink);
  background: var(--zy-paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 640; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--zy-lime);
  color: var(--zy-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; outline-color: var(--zy-on-dark); }

/* .container: nome usado pelas paginas internas (privacidade, 404) */
.wrap,
.container {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* ---------- tipografia ---------- */
.display {
  font-size: clamp(2.75rem, 1.2rem + 6.4vw, 6.25rem);
  font-weight: 620;
  line-height: 0.96;
  /* tracking acompanha o tamanho: -0,045em a 100 px, -0,025em a 44 px */
  letter-spacing: clamp(-0.045em, 0.16px - 0.324vw, -0.025em);
  margin-inline-start: -0.055em;
  text-wrap: initial;
}
.h2 {
  font-size: clamp(2.25rem, 1.1rem + 4vw, 4.5rem);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-inline-start: -0.04em;
}
/* linha do titulo com mascara: cada uma entra separada (ver demos.css, abertura) */
.line { display: block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line__in { display: block; }
.line--light { font-weight: 380; }
.nb { white-space: nowrap; }
/* Duas colunas: o titulo e medido pela coluna (linha mais longa = 9,24em em Geist),
   para manter as quebras escolhidas sem invadir o palco. */
/* (medido pela coluna real via cqi: barras de rolagem nao quebram as linhas) */
.hero__text { container-type: inline-size; }
@supports (font-size: 1cqi) {
  .hero .display { font-size: min(clamp(2.75rem, 1.2rem + 6.4vw, 6.25rem), 10.4cqi); }
}
@media (min-width: 1200px) {
  .hero .display { font-size: min(10.4cqi, 6.25rem); }
}
/* Celular: quatro linhas deliberadas; a ultima ("e para nenhuma outra.") cabe inteira. */
@supports (font-size: 1cqi) {
  @media (max-width: 599px) {
    .hero .display { font-size: min(10.5cqi, 2.75rem); }
    .hero .display .line--light .line__in { white-space: nowrap; }
  }
}

/* ---------- botoes (pilula: eco das pontas arredondadas do simbolo) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--zy-lime); color: var(--zy-ink); }
.btn--primary:hover { background: var(--zy-lime-hover); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.link-down {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 4px;
  font-weight: 560;
  color: var(--zy-on-dark);
  text-decoration: none;
  border-radius: 6px;
}
.link-down:hover { text-decoration: underline; }
.link-down__icon {
  width: 16px; height: 16px;
  margin-top: 1px; /* alinha com a altura-x */
  fill: none;
  stroke: var(--zy-lime);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms var(--ease-out);
}
.link-down:hover .link-down__icon { transform: translateY(3px); }

/* ---------- cabecalho ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  color: var(--zy-on-dark);
  background: var(--zy-navy);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
/* Na pagina inicial o cabecalho comeca transparente sobre a abertura. */
.js .home .topbar:not(.is-scrolled):not(.is-menu) { background-color: transparent; }
.topbar.is-scrolled {
  border-bottom-color: var(--zy-hair-dark);
}
.topbar.is-scrolled { background-color: rgba(11, 39, 65, 0.94); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar.is-scrolled {
    background-color: rgba(11, 39, 65, 0.9);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}
/* Sobre secoes claras (papel) o cabecalho troca de tema: vidro claro, texto ink, logo escura do kit. */
.brand__logo--dark { display: none; }
.topbar.is-light:not(.is-menu) { color: var(--zy-ink); background-color: rgba(252, 247, 244, 0.96); border-bottom-color: rgba(0, 35, 44, 0.1); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar.is-light:not(.is-menu) { background-color: rgba(252, 247, 244, 0.86); }
}
.topbar.is-light:not(.is-menu) .brand__logo--light { display: none; }
.topbar.is-light:not(.is-menu) .brand__logo--dark { display: block; }
.topbar.is-light:not(.is-menu) .brand__front { color: var(--zy-ink); border-left-color: rgba(0, 35, 44, 0.24); }
.topbar.is-light:not(.is-menu) .topbar__link { color: var(--zy-ink); }
.topbar.is-light:not(.is-menu) .topbar__link--quiet { color: var(--zy-muted); }
.topbar.is-light:not(.is-menu) .topbar__toggle { color: var(--zy-ink); border-color: rgba(0, 35, 44, 0.35); }
.topbar.is-light:not(.is-menu) { --focus: var(--zy-navy); }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--zy-on-dark);
  text-decoration: none;
  border-radius: 4px;
}
.brand__logo--light { width: 148px; height: 36px; }
.brand__logo--dark { width: 144px; height: 36px; }
.brand__front {
  padding-left: 12px;
  border-left: 1px solid rgba(244, 247, 248, 0.28);
  font-weight: 560;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--zy-on-dark-muted);
}
.topbar__nav { display: flex; align-items: center; gap: 28px; }
.topbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--zy-on-dark-muted);
  text-decoration: none;
  border-radius: 4px;
}
.topbar__link:hover { color: var(--zy-on-dark); text-decoration: underline; }
.topbar__link--quiet { font-size: 0.875rem; color: var(--zy-faint-on-dark, #8fa3ad); }
/* Pagina atual (site.js marca aria-current pelo caminho que o build grava em data-path):
   texto pleno e um filete de 2 px por baixo, como a linha de cota das demonstracoes. */
.topbar__link[aria-current] { color: var(--zy-on-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 9px; }
.topbar.is-light:not(.is-menu) .topbar__link[aria-current] { color: var(--zy-ink); }
.topbar__cta[aria-current] { box-shadow: inset 0 0 0 2px var(--zy-ink); }
.topbar__toggle { display: none; }

@media (max-width: 1099px) {
  .brand__logo--light { width: 132px; height: 32px; }
  .brand__logo--dark { width: 128px; height: 32px; }
  .brand__front { font-size: 1rem; padding-left: 10px; }
  .brand { gap: 10px; }
  .js .topbar__toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid rgba(244, 247, 248, 0.4);
    border-radius: 999px;
    background: transparent;
    color: var(--zy-on-dark);
    font: 560 0.9375rem/1 var(--font);
    cursor: pointer;
  }
  .js .topbar__nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px var(--margin) 24px;
    background: var(--zy-navy);
    border-bottom: 1px solid var(--zy-hair-dark);
  }
  .js .topbar__nav.is-open { display: flex; }
  .js .topbar__link { min-height: 52px; font-size: 1.0625rem; color: var(--zy-on-dark); border-bottom: 1px solid var(--zy-hair-dark); }
  .js .topbar__nav .btn { min-height: 52px; margin-top: 8px; }
  /* Sem JS a navegacao continua visivel, em linha. */
  .no-js .topbar { position: relative; }
  .no-js .topbar__inner { flex-wrap: wrap; padding-block: 12px; }
  .no-js .topbar__nav { flex-wrap: wrap; gap: 8px 20px; }
}

/* ---------- abertura ---------- */
.hero {
  position: relative;
  overflow-x: clip;
  color: var(--zy-on-dark);
  background:
    radial-gradient(60vw 60vw at 92% 4%, 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);
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  align-content: center;
  min-height: min(100svh, 920px);
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 40px;
}
.hero__text { position: relative; z-index: 2; grid-column: 1 / 8; grid-row: 1; align-self: center; padding-bottom: 4%; }
.hero__lead {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--zy-on-dark-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(28px, 3vw, 40px); }
.demo--hero { position: relative; z-index: 1; grid-column: 8 / 13; grid-row: 1; }

@media (max-width: 1199px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding-bottom: 56px; }
  .hero__text { grid-column: 1; padding-top: 0; padding-bottom: 0; align-self: start; }
  .demo--hero { grid-column: 1; grid-row: 2; margin-top: 48px; }
  .hero__lead { max-width: 52ch; }
}
@media (max-width: 599px) {
  .hero__grid { padding-top: calc(var(--header-h) + 20px); padding-bottom: 40px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .hero__actions .btn { width: 100%; }
  .link-down { justify-content: center; }
  .demo--hero { margin-top: 32px; }
}

/* ---------- controles e textos das demonstracoes ---------- */
.no-js .demo__controls { display: none !important; }

.demo__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 20px;
}
.demo__status {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 56ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--zy-on-dark-muted);
}
.demo__caption {
  margin-top: 10px;
  max-width: 64ch;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--zy-on-dark-muted);
}

/* Estrutura / Acabamento: controle segmentado sobre escuro */
.seg {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1px solid var(--zy-hair-dark);
  border-radius: 999px;
  background: var(--zy-navy-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.seg__btn {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--zy-on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.seg__btn:hover { color: var(--zy-on-dark); }
.seg__btn[aria-pressed="true"] { background: var(--zy-on-dark); color: var(--zy-ink); }
.seg__btn:focus-visible { outline-offset: 2px; }
@media (max-width: 599px) {
  .demo__bar { margin-top: 16px; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .seg__btn { min-height: 48px; }
}

/* ---------- secao "Do pedido ao painel" ---------- */
.flow {
  padding-block: clamp(72px, 8.9vw, 128px);
  background: var(--zy-paper);
  color: var(--zy-ink);
  --focus: var(--zy-navy);
}
.flow__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 20px;
  align-items: end;
  margin-bottom: clamp(32px, 4.4vw, 64px);
}
.flow__head .h2 { grid-column: 1 / 7; }
.flow__lead {
  grid-column: 8 / 13;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--zy-muted);
}
@media (max-width: 899px) {
  .flow__head .h2,
  .flow__lead { grid-column: 1 / -1; }
}

/* etapas: unidas por uma linha fina; o trecho ate a etapa ativa fica lima */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  --p: 0;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 12.5%;
  width: 75%;
  top: 50%;
  pointer-events: none;
}
.steps::before { height: 1px; background: rgba(0, 35, 44, 0.18); }
.steps::after {
  height: 4px;
  margin-top: -1.5px;
  border-radius: 4px;
  background: var(--zy-lime);
  transform: scaleX(var(--p));
  transform-origin: left center;
  transition: transform 480ms var(--ease-in-out);
}
[data-pressed="2"] .steps { --p: 0.3334; }
[data-pressed="3"] .steps { --p: 0.6667; }
[data-pressed="4"] .steps { --p: 1; }
.step {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid var(--zy-hair-light);
  border-radius: 999px;
  background: var(--zy-paper-deep);
  color: var(--zy-ink);
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: -0.005em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.step:hover { background: #e9e2da; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.step:active { transform: scale(0.98); }
.step::before {
  content: "";
  width: 6px;
  height: 18px;
  margin-left: -4px;
  border-radius: 6px;
  background: var(--zy-lime);
  display: none;
}
.step[aria-pressed="true"] { background: var(--zy-navy); border-color: var(--zy-navy); color: var(--zy-on-dark); text-decoration: none; }
.step[aria-pressed="true"]::before { display: block; }
@media (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .steps::before,
  .steps::after { display: none; }
  .step { min-height: 48px; padding: 8px 12px; font-size: 0.875rem; }
}

/* status e legenda lado a lado sob o palco (a legenda e filha direta da figure) */
.demo--flow {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}
.demo--flow > .fstage,
.demo--flow > .steps { grid-column: 1 / -1; }
.demo--flow > .demo__status { margin-top: 20px; }
.demo__status--light {
  grid-column: 1 / 8;
  max-width: none;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--zy-paper-deep);
  color: var(--zy-ink);
  font-size: 1rem;
}
.demo__caption--light { grid-column: 8 / 13; margin-top: 20px; padding-top: 16px; color: var(--zy-muted); }
@media (max-width: 899px) {
  .demo__status--light,
  .demo__caption--light { grid-column: 1 / -1; }
  .demo__caption--light { margin-top: 12px; padding-top: 0; }
}

/* ---------- moldura de cantos (o "encaixe" do simbolo) ---------- */
.framed { position: relative; }
.framed::before,
.framed::after {
  content: "";
  position: absolute;
  width: 72px; height: 72px;
  border: 0 solid var(--zy-on-dark);
  pointer-events: none;
}
.framed::before { top: 0; left: 0; border-top-width: var(--frame-w); border-left-width: var(--frame-w); border-top-left-radius: var(--corner); }
.framed::after { bottom: 0; right: 0; border-bottom-width: var(--frame-w); border-right-width: var(--frame-w); border-bottom-right-radius: var(--corner); }

/* ---------- contato / briefing ---------- */
.contact {
  padding-block: clamp(72px, 8.9vw, 128px);
  background: var(--zy-navy);
  color: var(--zy-on-dark);
  --focus: var(--zy-lime);
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  align-items: start;
}
.contact__intro { grid-column: 1 / 6; }
.contact__intro p { margin-top: 24px; max-width: 38ch; font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--zy-on-dark-muted); }
.contact__intro .contact__alt { font-size: 1rem; }
.contact__alt a { color: var(--zy-on-dark); font-weight: 600; }
.brief { grid-column: 7 / 13; display: grid; gap: 24px; padding: clamp(28px, 3.6vw, 52px); background: rgba(6, 22, 38, 0.55); border-radius: var(--corner); }
.brief--fallback p { font-size: 1.125rem; color: var(--zy-on-dark-muted); }
.brief__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 899px) {
  .contact__intro,
  .brief { grid-column: 1 / -1; }
}
@media (max-width: 599px) { .brief__row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend { font-size: 0.9375rem; font-weight: 600; color: var(--zy-on-dark); }
.field legend { padding: 0; margin-bottom: 12px; }
.field__optional { font-weight: 400; color: var(--zy-on-dark-muted); }
.field input[type="text"],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 198, 204, 0.45);
  border-radius: 12px;
  background: rgba(244, 247, 248, 0.04);
  color: var(--zy-on-dark);
  font: 400 1rem/1.5 var(--font);
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input[type="text"]:hover,
.field textarea:hover { border-color: rgba(185, 198, 204, 0.75); }
.field input[type="text"]:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--zy-lime); outline-offset: 2px; border-color: var(--zy-lime); background: rgba(244, 247, 248, 0.07); }
.field__hint { font-size: 0.875rem; color: var(--zy-on-dark-muted); }
.field__error { font-size: 0.9375rem; font-weight: 600; color: #ffc4b8; }
.field textarea[aria-invalid="true"] { border-color: #ffc4b8; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(185, 198, 204, 0.45);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--zy-on-dark);
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.choice:hover span { border-color: var(--zy-on-dark-muted); }
.choice input:checked + span { background: var(--zy-on-dark); border-color: var(--zy-on-dark); color: var(--zy-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--zy-lime); outline-offset: 3px; }

/* ---------- paginas internas (privacidade, 404) ---------- */
.page { padding-block: calc(var(--header-h) + clamp(48px, 8vw, 112px)) clamp(64px, 10vw, 128px); min-height: 60vh; --focus: var(--zy-navy); }
.no-js .page { padding-top: clamp(48px, 8vw, 112px); }
.page__inner { max-width: calc(760px + 2 * var(--margin)); }
.page h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.page p { margin-top: 20px; max-width: 66ch; }
.page .page__lead { margin-top: 24px; font-size: 1.25rem; }
.page .btn { margin-top: 32px; }
.page__note { font-size: 0.9375rem; color: var(--zy-muted); }
.page a:not(.btn) { color: var(--zy-navy); font-weight: 600; }

/* ---------- rodape ---------- */
.footer {
  padding-top: clamp(56px, 6.7vw, 96px);
  background: var(--zy-abyss);
  color: var(--zy-on-dark-muted);
  --focus: var(--zy-lime);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
}
.footer__brand { grid-column: 1 / 6; }
.footer__nav { grid-column: 7 / 10; }
.footer__contact { grid-column: 10 / 13; }
.footer__brand p { margin-top: 20px; max-width: 46ch; font-size: 0.9375rem; }
.footer__out { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--zy-on-dark); font-weight: 600; }
.footer__title { margin-bottom: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--zy-on-dark); letter-spacing: 0; }
.footer__nav a,
.footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  text-decoration: none;
}
.footer__nav a:hover,
.footer__contact a:hover,
.footer__plans:hover { color: var(--zy-on-dark); text-decoration: underline; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-block: 16px;
  border-top: 1px solid var(--zy-hair-dark);
  font-size: 0.875rem;
}
.footer__plans { display: inline-flex; align-items: center; min-height: 44px; color: var(--zy-on-dark-muted); text-decoration: none; }
.footer__nav a[aria-current] { color: var(--zy-on-dark); font-weight: 600; }
@media (max-width: 899px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__nav { grid-column: 1 / 7; }
  .footer__contact { grid-column: 7 / 13; }
}
@media (max-width: 479px) {
  .footer__nav,
  .footer__contact { grid-column: 1 / -1; }
}

/* ---------- linha discreta na abertura: quem prefere custo fixo ---------- */
.hero__alt { margin-top: 20px; font-size: 0.9375rem; color: var(--zy-on-dark-muted); }
.hero__alt a { color: var(--zy-on-dark); font-weight: 560; text-underline-offset: 3px; }
.hero__alt a:hover { text-decoration-thickness: 2px; }
@media (max-width: 599px) { .hero__alt { text-align: center; } }

/* ---------- dois caminhos: sob medida e planos (os dois cantos do simbolo, ligados pelo traco) ---------- */
.paths {
  padding-block: clamp(72px, 8.9vw, 128px);
  background: var(--zy-paper-deep);
  color: var(--zy-ink);
  --focus: var(--zy-navy);
}
.paths__head { max-width: 780px; }
.paths__lead { margin-top: 20px; max-width: 56ch; font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--zy-muted); }
.paths__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: clamp(48px, 5.5vw, 80px);
}
.path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: var(--corner);
  box-shadow: var(--shadow-light);
}
.path--custom { grid-column: 1 / 7; grid-row: 1; align-self: start; background: var(--zy-navy); color: var(--zy-on-dark); --focus: var(--zy-lime); }
.path--plans { grid-column: 8 / 13; grid-row: 1; align-self: start; margin-top: clamp(64px, 8vw, 128px); background: #fff; box-shadow: var(--shadow-light), inset 0 0 0 1px rgba(0, 35, 44, 0.08); }
.paths__stroke { grid-column: 7 / 8; grid-row: 1; align-self: center; justify-self: center; width: 100%; max-width: 120px; height: auto; overflow: visible; }
.paths__stroke line { stroke: var(--zy-lime); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.path__title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 640; line-height: 1.05; letter-spacing: -0.03em; }
.path__for { max-width: 40ch; font-size: 1.0625rem; line-height: 1.5; color: var(--zy-muted); }
.path--custom .path__for { color: var(--zy-on-dark-muted); }
.path__list { display: grid; gap: 10px; margin: 4px 0 12px; padding: 0; list-style: none; }
.path__list li { position: relative; padding-left: 26px; line-height: 1.45; }
.path__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; border-radius: 2px; background: var(--zy-navy); }
.path--custom .path__list li::before { background: var(--zy-lime); }
.path__btn { align-self: flex-start; margin-top: auto; }
.btn--navy { background: var(--zy-navy); color: var(--zy-on-dark); }
.btn--navy:hover { background: #12324f; }

@media (max-width: 959px) {
  .paths__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .path--custom,
  .path--plans,
  .paths__stroke { grid-column: 1; grid-row: auto; }
  .path--plans { margin-top: 0; }
  .paths__stroke { width: 72px; margin-block: 12px; }
}
@media (max-width: 599px) {
  .path__btn { align-self: stretch; }
}
