/* Zulex Connect: página para o cliente e para o técnico.
   Identidade do kit final limão v3: as logos são os SVGs do kit, sem alteração. Cores e contrastes do briefing.
   Sem estilo nem script embutido no HTML: o servidor só aceita arquivos do próprio site (Content-Security-Policy). */

@font-face { font-family: "Inter"; src: url("fontes/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fontes/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fontes/sora.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fontes/space-grotesk.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

/* ---------------------------------------------------------------- cores (tema claro) */
:root {
  --fundo: #ffffff;
  --superficie: #f4f5f2;
  --texto: #0b0d0a;
  --texto-2: #5b6058;
  --borda: #e3e5df;          /* decorativa: 1,27:1, nunca o único limite de um controle */
  --borda-forte: #7a847e;    /* limites essenciais: 3,9:1 no fundo */
  --link: #3e6600;           /* 6,76:1 no fundo */
  --limao: #c6f432;
  --limao-hover: #b3e01e;
  --sobre-limao: #0b0d0a;    /* 15,23:1; texto branco no limão não passa */
  --foco: #0b0d0a;
  --sombra: 0 1px 2px rgba(11, 13, 10, .04), 0 18px 40px rgba(11, 13, 10, .06);
  --ui: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --titulo: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-titulos="space"] { --titulo: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif; }

/* ---------------------------------------------------------------- tema escuro (escolhido, ou do sistema sem JavaScript) */
:root[data-theme="dark"] {
  --fundo: #0b0d0a; --superficie: #16191a; --texto: #f5f7f2; --texto-2: #a3a89f; --borda: #2a2e2b;
  --borda-forte: #79867e; --link: #c6f432; --foco: #c6f432; --sombra: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --fundo: #0b0d0a; --superficie: #16191a; --texto: #f5f7f2; --texto-2: #a3a89f; --borda: #2a2e2b;
    --borda-forte: #79867e; --link: #c6f432; --foco: #c6f432; --sombra: none;
    color-scheme: dark;
  }
  :root:not([data-theme]) .so-claro { display: none; }
  :root:not([data-theme]) .so-escuro { display: block; }
}
.so-escuro { display: none; }
:root[data-theme="dark"] .so-claro { display: none; }
:root[data-theme="dark"] .so-escuro { display: block; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 400 17px/1.6 var(--ui); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
strong { font-weight: 600; color: var(--texto); }
h1, h2, h3 { font-family: var(--titulo); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
p, ol, dl, dd, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pular {
  position: absolute; left: 16px; top: -100px; z-index: 20; padding: 10px 16px; border-radius: 10px;
  background: var(--limao); color: var(--sobre-limao); font-weight: 600; text-decoration: none;
}
.pular:focus { top: 16px; }

/* ---------------------------------------------------------------- topo */
.topo { position: sticky; top: 0; z-index: 10; background: var(--fundo); border-bottom: 1px solid var(--borda); }
.topo-linha { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.marca { margin-right: auto; display: block; border-radius: 8px; }
.marca img { height: 34px; width: auto; }
.marca-compacta { display: none; }
.menu { display: flex; gap: 24px; }
.menu a { color: var(--texto); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.menu a:hover { text-decoration: underline; }
.tema { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texto-2); }
.tema select {
  font: 600 14px/1.2 var(--ui); color: var(--texto); background: var(--fundo);
  border: 1.5px solid var(--borda-forte); border-radius: 10px; padding: 8px 10px; cursor: pointer;
}

/* ---------------------------------------------------------------- botões */
.acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent;
  font: 600 16px/1.2 var(--ui); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-grande { min-height: 60px; padding: 0 28px; font-size: 18px; border-radius: 14px; }
.btn-pequeno { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-primario { background: var(--limao); color: var(--sobre-limao); }
.btn-primario:hover { background: var(--limao-hover); }
.btn-secundario { background: transparent; color: var(--texto); border-color: var(--borda-forte); }
.btn-secundario:hover { border-color: var(--texto); }
.btn:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- topo da página */
.secao-hero { border-bottom: 1px solid var(--borda); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px);
  align-items: center; padding-block: clamp(40px, 7vw, 104px) clamp(48px, 7vw, 96px);
}
.sobretitulo { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-2); margin-bottom: 20px; }
.hero h1 { font-size: clamp(48px, 7.6vw, 96px); line-height: .98; letter-spacing: -.045em; }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--texto-2); max-width: 32em; margin-top: 28px; }
.micro { font-size: 15px; color: var(--texto-2); margin-top: 18px; max-width: 36em; }
.hero-arte {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1;
  border-radius: 32px; background: var(--superficie); padding: 15%; overflow: hidden;
}
/* anéis decorativos atrás do símbolo (o símbolo é o SVG do kit, sem alteração) */
.hero-arte::before, .hero-arte::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--borda); }
.hero-arte::before { inset: 7%; }
.hero-arte::after { inset: 21%; }
.hero-arte img { position: relative; z-index: 1; width: 100%; height: auto; }

/* ---------------------------------------------------------------- seções */
.secao { padding-block: clamp(56px, 8vw, 112px); border-bottom: 1px solid var(--borda); }
.secao h2 { font-size: clamp(34px, 4.8vw, 58px); }
.secao-intro { color: var(--texto-2); font-size: 18px; margin-top: 14px; max-width: 40em; }
.secao-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 40px; }
.subtitulo { font-size: clamp(24px, 2.6vw, 32px); }

/* dois lados */
.lados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.lado {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
  padding: 28px; border-radius: 22px; background: var(--superficie); color: var(--texto);
  text-decoration: none; border: 2px solid transparent; transition: border-color .15s ease;
}
.lado:hover { border-color: var(--borda-forte); }
.lado-icone { width: 56px; height: 56px; }
.lado-texto strong { display: block; font-family: var(--titulo); font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.lado-texto > span { display: block; color: var(--texto-2); font-size: 16px; margin-top: 6px; }
.lado .seta { width: 22px; height: 22px; }

/* passos */
.passos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.passos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.passo { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; background: var(--superficie); }
.passo-numero {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--limao); color: var(--sobre-limao); font: 700 16px/1 var(--titulo); letter-spacing: 0;
}
.passo h3 { font-size: 24px; }
.passo p { color: var(--texto-2); font-size: 16px; }
.print-pendente {
  margin-top: auto; aspect-ratio: 16 / 10; display: grid; place-content: center; justify-items: center; gap: 6px;
  padding: 16px; border: 2px dashed var(--borda-forte); border-radius: 16px; background: var(--fundo);
  color: var(--texto-2); font-size: 14px; line-height: 1.4; text-align: center;
}
.print-pendente svg { width: 30px; height: 30px; }
.print-pendente strong { font-size: 14px; }
.print-alto { aspect-ratio: 4 / 5; margin-top: 0; }
.print { margin-top: auto; width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--borda); background: var(--fundo); }
.secao-tecnico .passos-3 .print { margin-top: 14px; }

.dica { display: flex; gap: 20px; align-items: flex-start; margin-top: 20px; padding: 24px 26px; border-radius: 22px; border: 2px solid var(--borda); }
.dica > svg { width: 30px; height: 30px; flex: none; color: var(--texto); }
.dica h3 { font-size: 20px; }
.dica p { color: var(--texto-2); margin-top: 6px; }

/* dúvidas */
.duvidas-grade { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--superficie); border-radius: 16px; border: 2px solid transparent; }
.faq details[open] { border-color: var(--borda); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 56px 18px 22px;
  font-weight: 600; border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > p { padding: 0 22px 20px; color: var(--texto-2); }

/* técnico */
.secao-tecnico { background: var(--superficie); }
.secao-tecnico .passo, .secao-tecnico .faq details { background: var(--fundo); }
.secao-tecnico .print-pendente { background: var(--superficie); }
.tecnico-baixar { display: grid; gap: 4px; justify-items: start; }
.tecnico-baixar .micro { margin-top: 8px; }
.copiar { margin-top: auto; display: grid; gap: 8px; justify-items: start; }
.status { font-size: 14px; color: var(--texto-2); min-height: 1.4em; }
.durante { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.ajustes { display: grid; gap: 22px; margin-top: 28px; }
.ajustes dt { font-family: var(--titulo); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.ajustes dd { color: var(--texto-2); margin-top: 4px; }
.antes { margin-top: clamp(48px, 7vw, 88px); }

/* contato */
.contato-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(28px, 5vw, 80px); align-items: center; }
.contatos { display: grid; gap: 12px; }
.contato-botao {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 18px 22px; border-radius: 16px; border: 2px solid var(--borda-forte); color: var(--texto);
  text-decoration: none; transition: background-color .15s ease;
}
.contato-botao:hover { background: var(--superficie); }
.contato-botao > svg { width: 30px; height: 30px; }
.contato-botao .seta { width: 20px; height: 20px; }
.contato-botao strong { display: block; font-size: 17px; }
.contato-botao span span { color: var(--texto-2); font-size: 15px; }

/* rodapé */
.rodape { padding-block: 32px 44px; color: var(--texto-2); font-size: 14px; }
.rodape-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.rodape-marca { margin-right: auto; }
.rodape-marca img { height: 32px; width: auto; }

/* ---------------------------------------------------------------- telas menores */
@media (max-width: 1040px) {
  .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passos-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .menu { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-arte { max-width: 360px; width: 100%; justify-self: center; }
  .lados, .duvidas-grade, .contato-grade, .durante { grid-template-columns: minmax(0, 1fr); }
  .durante .print-pendente { max-width: 360px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topo-linha { min-height: 64px; gap: 16px; }
  .marca-larga { display: none; }
  .marca-compacta { display: block; }
  .marca img { height: 32px; }
  .tema-rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .acoes .btn, .tecnico-baixar .btn { width: 100%; }
  .tecnico-baixar { justify-items: stretch; }
  .passos { grid-template-columns: minmax(0, 1fr); }
  .passo, .lado { padding: 22px; }
  .lado { grid-template-columns: auto minmax(0, 1fr); }
  .lado .seta { display: none; }
  .lado-icone { width: 48px; height: 48px; }
  .hero-arte { max-width: 260px; border-radius: 26px; }
  .dica { padding: 20px; }
  .contato-botao { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
