/* FabriLink: estilo do site. Cores e medidas do pacote de marca (brand/tokens.css). */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fontes/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fontes/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fontes/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #16324f;
  --navy-lift: #1a3a5c;
  --ink-deep: #080c12;
  --teal: #1a8f8a;
  --teal-escuro: #136b67;   /* teal para texto e botão com contraste AA sobre papel e branco */
  --teal-claro: #5cc4bd;    /* teal para texto sobre navy */
  --paper: #f3efe7;
  --white: #ffffff;
  --ink: #0e151c;
  --graphite: #22262b;
  --steel: #7b8896;
  --texto-apoio: #4a5562;   /* aço escurecido para texto pequeno sobre papel */
  --on-dark-muted: #9aa7b0;
  --borda: rgb(22 50 79 / 0.16);

  --fonte: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --caixa: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --raio: 8px;
  --raio-lg: 16px;
  --sombra: 0 8px 24px rgb(22 50 79 / 0.12);
  --sombra-forte: 0 24px 60px rgb(8 12 18 / 0.45);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --foco: 0 0 0 3px rgb(26 143 138 / 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--teal-escuro); }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: 4px; }
[id] { scroll-margin-top: 1.5rem; }

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

.pular { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--white); color: var(--navy); padding: .6rem 1rem; border-radius: var(--raio); font-weight: 500; }
.pular:focus { top: 1rem; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: var(--raio); border: 1.5px solid transparent;
  font: 500 1rem/1.2 var(--fonte); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.botao:active { transform: scale(0.97); }
.botao-destaque { background: var(--teal-escuro); color: var(--white); }
.botao-destaque:hover { background: #0f5753; color: var(--white); }
.secao-escura .botao-destaque, .hero .botao-destaque { background: var(--teal); }
.secao-escura .botao-destaque:hover, .hero .botao-destaque:hover { background: #20a39d; }
.botao-contorno-claro { border-color: rgb(255 255 255 / 0.45); color: var(--white); }
.botao-contorno-claro:hover { border-color: var(--white); color: var(--white); background: rgb(255 255 255 / 0.06); }
.botao-claro { background: var(--white); color: var(--navy); }
.botao-claro:hover { background: var(--paper); color: var(--navy); }
.botao-pequeno { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }

/* ---------- Topo + hero (fundo navy com grade, como no pacote de marca) ---------- */
.topo, .hero {
  color: var(--white);
  background-color: var(--navy);
}
.topo { position: relative; z-index: 2; background: transparent; }
.topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.marca { display: block; padding: 4px; margin-left: -4px; }
.marca img { width: 148px; height: auto; }
.menu { display: none; gap: 1.75rem; }
.menu a { color: var(--white); text-decoration: none; font-weight: 500; font-size: .9375rem; opacity: .85; transition: opacity 160ms ease; }
.menu a:hover { opacity: 1; color: var(--white); }

body > header.topo { position: absolute; inset: 0 0 auto 0; }

.hero {
  position: relative;
  padding: 7rem 0 4rem;
  background:
    linear-gradient(rgb(243 239 231 / 0.05) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgb(243 239 231 / 0.05) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(ellipse 70% 60% at 65% 45%, var(--navy-lift) 0%, var(--navy) 45%, var(--ink-deep) 100%);
  overflow: hidden;
}
.hero-grade { display: grid; gap: 3rem; align-items: center; }
.endosso { color: var(--teal-claro); font-weight: 500; font-size: .9375rem; margin-bottom: 1rem; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3rem); max-width: 20ch; }
.hero-sub { margin-top: 1.25rem; font-size: 1.125rem; color: #d6dde3; max-width: 34rem; }
.acoes { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-nota { margin-top: 1.5rem; color: var(--on-dark-muted); font-size: .9375rem; max-width: 30rem; }

.hero-telas { position: relative; margin: 0; padding-bottom: 2rem; }
.tela-pc { width: 100%; border-radius: 10px; box-shadow: var(--sombra-forte); outline: 1px solid rgb(255 255 255 / 0.08); }
.tela-cel {
  position: absolute; left: -4%; bottom: 0; width: 34%;
  border: 6px solid #0b1520; border-radius: 26px; box-shadow: var(--sombra-forte);
}
.hero-telas figcaption { margin-top: 1rem; padding-left: 34%; font-size: .8125rem; color: var(--on-dark-muted); text-align: right; }

/* Entrada única do hero: o celular sobe sobre a tela do computador. Só no carregamento. */
@media (prefers-reduced-motion: no-preference) {
  .tela-pc { animation: entra-pc 700ms var(--ease-out) both; }
  .tela-cel { animation: entra-cel 800ms var(--ease-out) 180ms both; }
  @keyframes entra-pc { from { opacity: 0; transform: translateY(12px); } }
  @keyframes entra-cel { from { opacity: 0; transform: translateY(32px); } }
}

/* ---------- Seções ---------- */
.secao { padding-block: clamp(4rem, 9vw, 7rem); }
.secao-cabeca { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.secao-cabeca h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.secao-cabeca p { margin-top: .9rem; font-size: 1.125rem; color: var(--graphite); }

.recurso { display: grid; gap: 1.75rem; align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--borda); }
.recurso:first-of-type { border-top: 0; padding-top: 0; }
.recurso-texto h3 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); }
.recurso-texto p { margin-top: .9rem; max-width: 34rem; }
.lista { margin: 1rem 0 0; padding: 0; list-style: none; max-width: 34rem; }
.lista li { position: relative; padding-left: 1.25rem; margin-top: .6rem; color: var(--graphite); }
.lista li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--teal); }

.tela { width: 100%; border-radius: 10px; border: 1px solid var(--borda); box-shadow: var(--sombra); background: var(--white); }
.par-celulares { display: flex; gap: 1rem; justify-content: center; }
.par-celulares img { width: min(46%, 240px); border: 5px solid var(--graphite); border-radius: 24px; box-shadow: var(--sombra); }
.par-celulares img + img { margin-top: 2.5rem; }

.legenda-telas { font-size: .875rem; color: var(--texto-apoio); margin-top: 1rem; }

.extras { margin-top: clamp(3rem, 7vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--borda); }
.extras h3 { font-size: 1.25rem; }
.extras ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .25rem 2.5rem; }
.extras li { padding: .7rem 0; border-bottom: 1px solid var(--borda); color: var(--graphite); }

.limites {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--white);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--raio) var(--raio) 0;
}
.limites h3 { font-size: 1.375rem; }
.limites > p { margin-top: .4rem; color: var(--texto-apoio); }
.limites ul { margin: 1.25rem 0 0; padding-left: 1.1rem; display: grid; gap: .75rem; }
.limites strong { color: var(--navy); font-weight: 600; }

/* Sob medida */
.secao-escura {
  background:
    linear-gradient(rgb(243 239 231 / 0.04) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgb(243 239 231 / 0.04) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--navy);
  color: #d6dde3;
}
.secao-escura h2, .secao-escura h3 { color: var(--white); }
.secao-escura .secao-cabeca p { color: #d6dde3; }
.medida-grade { display: grid; gap: 2rem; }
.medida { padding-top: 1.25rem; border-top: 2px solid var(--teal); }
.medida h3 { font-size: 1.375rem; }
.medida p { margin-top: .75rem; max-width: 32rem; }
.medida-nota { margin: 2.5rem 0 1.5rem; color: var(--on-dark-muted); }

/* Implantação: é uma sequência de verdade, por isso os números */
.passos { list-style: none; margin: 0; padding: 0; counter-reset: passo; display: grid; gap: 0; }
.passos li { counter-increment: passo; position: relative; padding: 0 0 2rem 3.5rem; }
.passos li::before {
  content: counter(passo);
  position: absolute; left: 0; top: -.15rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.passos li::after { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.35rem; bottom: .2rem; width: 2px; background: var(--borda); }
.passos li:last-child { padding-bottom: 0; }
.passos li:last-child::after { display: none; }
.passos h3 { font-size: 1.25rem; }
.passos p { margin-top: .4rem; max-width: 36rem; color: var(--graphite); }

/* Contato */
.secao-contato { background: var(--white); border-top: 1px solid var(--borda); }
.contato-grade { display: grid; gap: 2.5rem; }
.contato-texto h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.contato-texto > p { margin-top: .9rem; font-size: 1.125rem; color: var(--graphite); max-width: 28rem; }
.canais { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.canais span { display: block; font-size: .875rem; color: var(--texto-apoio); }
.canais a { font-size: 1.125rem; font-weight: 500; word-break: break-word; }

.formulario { display: grid; gap: 1.1rem 1.25rem; }
.campo { display: grid; gap: .4rem; min-width: 0; }
.campo label { font-weight: 500; font-size: .9375rem; color: var(--graphite); }
.opcional { font-weight: 400; color: var(--texto-apoio); }
input[type="text"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: 400 1rem/1.4 var(--fonte); color: var(--ink);
  background: var(--paper); border: 1.5px solid rgb(22 50 79 / 0.22); border-radius: var(--raio);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
textarea { resize: vertical; min-height: 7rem; }
input::placeholder, textarea::placeholder { color: var(--steel); }
input:hover, select:hover, textarea:hover { border-color: rgb(22 50 79 / 0.4); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--teal-escuro); box-shadow: var(--foco); border-radius: var(--raio); }
[aria-invalid="true"] { border-color: #b42318 !important; }
.erro { color: #b42318; font-size: .875rem; min-height: 0; }
.erro:empty { display: none; }

.consentimento { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; padding: .25rem 0; }
.consentimento input { flex: none; width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--teal-escuro); cursor: pointer; }
.envio { display: grid; gap: .75rem; justify-items: start; }
.ajuda { font-size: .875rem; color: var(--texto-apoio); max-width: 30rem; }

/* Rodapé */
.rodape { background: var(--ink-deep); color: var(--on-dark-muted); padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom)); font-size: .9375rem; }
.rodape-grade { display: grid; gap: 2rem; }
.rodape img { width: 140px; }
.rodape p { margin-top: 1rem; }
.rodape ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; align-content: start; }
.rodape a { color: #d6dde3; }
.rodape a:hover { color: var(--white); }

/* WhatsApp flutuante */
.whats-flutuante {
  position: fixed; z-index: 40;
  right: calc(1rem + env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-escuro); color: var(--white);
  box-shadow: 0 6px 20px rgb(8 12 18 / 0.3);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.whats-flutuante:hover { background: #0f5753; color: var(--white); }
.whats-flutuante:active { transform: scale(0.94); }
.whats-flutuante:focus-visible { box-shadow: var(--foco), 0 6px 20px rgb(8 12 18 / 0.3); border-radius: 50%; }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .formulario { grid-template-columns: 1fr 1fr; }
  .campo-largo { grid-column: 1 / -1; }
  .extras ul { grid-template-columns: 1fr 1fr; }
  .medida-grade { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .rodape-grade { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
  .menu { display: flex; }
  .marca img { width: 168px; }
  .hero { padding: 9rem 0 6rem; }
  .hero-grade { grid-template-columns: 5fr 6fr; gap: 3.5rem; }
  .recurso { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .recurso-invertido .recurso-texto { order: 2; }
  .recurso-invertido { grid-template-columns: 7fr 5fr; }
  .contato-grade { grid-template-columns: 4fr 7fr; gap: 4rem; }
  .passos { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .passos li { padding: 3.25rem 0 0; }
  .passos li::after { left: 2.75rem; right: -1.25rem; top: calc(1.125rem - 1px); bottom: auto; width: auto; height: 2px; }
}
@media (pointer: fine) { html { overscroll-behavior: none; } }

/* Páginas simples (privacidade, 404) */
.pagina-simples .topo { position: static; background: var(--navy); }
.texto-longo { max-width: 44rem; padding-block: clamp(3rem, 8vw, 5rem); }
.texto-longo h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.texto-longo h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.texto-longo p, .texto-longo li { margin-top: .9rem; color: var(--graphite); }
.texto-longo ul { padding-left: 1.2rem; }
.texto-longo .data { color: var(--texto-apoio); font-size: .9375rem; margin-top: .6rem; }
