/* CloudLabs Solutions — base comum às três direções.
   Mesma família do cloudlabsdev.com: letra do sistema, azul da Apple,
   fundo #fbfbfd / preto, cartões tingidos. Cada direção acrescenta a sua assinatura. */

:root {
  --fundo: #fbfbfd;
  --superficie: #f2f2f5;
  --texto: #1d1d1f;
  --texto-2: #6e6e73;
  --borda: #d2d2d7;
  --azul: #0071e3;
  --azul-hover: #0077ed;
  --link: #0066cc;
  --cinza-toque: rgb(0 0 0 / .05);
  --topo-fundo: rgb(251 251 253 / .8);

  --fonte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fonte-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", var(--fonte);

  --e-2: .5rem; --e-3: .75rem; --e-4: 1rem; --e-6: 1.5rem; --e-8: 2rem; --e-12: 3rem; --e-16: 4rem; --e-24: 6rem;
  --largura: 980px;
  --largura-larga: 72rem;
  --raio: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --topo-altura: 3rem;
  --ease: cubic-bezier(.25, .1, .25, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --fundo: #000; --superficie: #141416; --texto: #f5f5f7; --texto-2: #a1a1a6;
    --borda: #424245; --link: #2997ff; --cinza-toque: rgb(255 255 255 / .07);
    --topo-fundo: rgb(22 22 23 / .75);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topo-altura) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 400 1.0625rem/1.5 var(--fonte); letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--fonte-display); text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: var(--texto); color: var(--fundo); padding: .75rem 1rem; border-radius: 8px; }
.skip:focus { top: .5rem; }
.contentor { width: min(100% - 2rem, var(--largura)); margin-inline: auto; }
.contentor-largo { width: min(100% - 2rem, var(--largura-larga)); margin-inline: auto; }

/* ─── Topo ─────────────────────────────────────────── */
.topo {
  position: sticky; top: 0; z-index: 20; background: var(--topo-fundo);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--borda) 50%, transparent);
}
.topo-in { width: min(100% - 2rem, var(--largura)); margin-inline: auto; height: var(--topo-altura); display: flex; align-items: center; gap: var(--e-6); font-size: .8125rem; }
.marca { color: var(--texto); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: .35em; white-space: nowrap; }
.marca span { font-weight: 400; color: var(--texto-2); }
.topo-links { display: flex; gap: var(--e-6); margin-inline-start: auto; align-items: center; }
.topo-links a { color: var(--texto); opacity: .8; transition: opacity .2s var(--ease); }
.topo-links a:hover { opacity: 1; }
.topo-cloudlabs { display: inline-flex; align-items: center; gap: .3rem; }
.topo-cta { background: var(--azul); color: #fff !important; opacity: 1 !important; padding: .3rem .8rem; border-radius: 999px; font-weight: 500; }
.topo-cta:hover { background: var(--azul-hover); }
@media (max-width: 720px) {
  .topo-links .so-largo { display: none; }
  .topo-links { gap: var(--e-4); }
}

/* ─── Botões (pílulas da Apple) ─────────────────────── */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; padding: .7rem 1.4rem; border-radius: 999px; border: 0;
  background: var(--azul); color: #fff; font: 500 1.0625rem/1 var(--fonte); cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.botao:hover { background: var(--azul-hover); }
.botao:active { transform: scale(.97); }
.botao-2 { background: transparent; color: var(--link); }
.botao-2:hover { background: var(--cinza-toque); }
.seta::after { content: "›"; margin-inline-start: .15rem; font-size: 1.2em; line-height: 0; }
.link-seta { color: var(--link); }
.link-seta::after { content: " ›"; }

/* ─── Formulário ─────────────────────────────────────── */
.form { display: grid; gap: var(--e-4); }
.form .par { display: grid; gap: var(--e-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.campo { display: grid; gap: .375rem; }
.campo label { font-size: .875rem; font-weight: 500; color: var(--texto-2); }
.campo input, .campo textarea, .campo select {
  font: inherit; color: var(--texto); background: var(--superficie);
  border: 0; border-radius: 12px; padding: .8rem 1rem; min-height: 2.9rem; width: 100%;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.campo textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--azul) 45%, transparent); }
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texto-2) 50%), linear-gradient(135deg, var(--texto-2) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - .8rem) 1.3rem; background-size: .35rem .35rem; background-repeat: no-repeat; }
.mel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-nota { font-size: .8125rem; color: var(--texto-2); }
.form-estado { font-size: .9375rem; color: var(--texto-2); min-height: 1.5em; }

/* ─── Rodapé ─────────────────────────────────────────── */
.rodape { border-top: 1px solid color-mix(in srgb, var(--borda) 60%, transparent); padding-block: var(--e-8) var(--e-12); font-size: .8125rem; color: var(--texto-2); }
.rodape-in { width: min(100% - 2rem, var(--largura)); margin-inline: auto; display: grid; gap: var(--e-4); }
.rodape-linha { display: flex; flex-wrap: wrap; gap: var(--e-3) var(--e-6); align-items: center; }
.rodape a { color: var(--texto); opacity: .8; }
.rodape a:hover { opacity: 1; }
.rodape-cloudlabs { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-4); background: var(--superficie); border-radius: 16px; color: var(--texto) !important; opacity: 1 !important; }
.rodape-cloudlabs img { width: 2rem; height: 2rem; border-radius: 50%; }
.rodape-cloudlabs strong { display: block; font-size: .9375rem; }

/* ─── Aparecer ao fazer scroll (suave) ───────────────── */
@media (prefers-reduced-motion: no-preference) {
  .surge { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .surge.visto { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Barra de pré-visualização (só nesta fase de design) */
.previa { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: rgb(30 30 32 / .82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: .8125rem; box-shadow: 0 8px 30px rgb(0 0 0 / .2); }
.previa a { color: #f5f5f7; padding: .45rem .85rem; border-radius: 999px; opacity: .75; white-space: nowrap; }
.previa a[aria-current] { background: rgb(255 255 255 / .16); opacity: 1; }

/* Topo no telemóvel: tudo numa linha */
.topo-links a, .marca { white-space: nowrap; }
.cta-curto { display: none; }
@media (max-width: 480px) {
  .cta-longo { display: none; } .cta-curto { display: inline; }
  .marca { font-size: 1rem; }
  .topo-links { gap: .9rem; }
}
/* Capturas: esconde a barra de pré-visualização */
.sem-previa .previa { display: none; }

.sem-previa .surge { transition: none; }

/* Resultado do envio do formulário */
.form-estado[data-codigo="ok"] { color: #1d7a3e; font-weight: 500; }
.botao:disabled { opacity: .55; cursor: default; transform: none; }
