/* CloudLabs — estilos. Tudo o que se repete está nos tokens do :root. */

:root {
  --fundo: #fbfbfd;
  --fundo-alt: #f5f5f7;
  --texto: #1d1d1f;
  --texto-2: #6e6e73;
  --borda: #d2d2d7;
  --link: #0066cc;
  --botao: #0071e3;
  --botao-hover: #0077ed;
  --botao-texto: #ffffff;
  --topo-fundo: rgb(251 251 253 / 0.78);
  --foco: #0071e3;
  --glow-forca: 0.42;

  --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", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --e-2: .5rem; --e-3: .75rem; --e-4: 1rem; --e-6: 1.5rem; --e-8: 2rem; --e-12: 3rem;
  --seccao: clamp(5rem, 3rem + 8vw, 9.5rem);
  --largura: 980px;
  --largura-texto: 40rem;
  --raio-icone: 22.37%;
  --topo-altura: 3rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #000000;
    --fundo-alt: #101012;
    --texto: #f5f5f7;
    --texto-2: #a1a1a6;
    --borda: #424245;
    --link: #2997ff;
    --topo-fundo: rgb(22 22 23 / 0.72);
    --foco: #2997ff;
    --glow-forca: 0.55;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--topo-altura);
}
@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;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }

h1, h2, p { margin: 0; }

.sr {
  position: absolute; 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: var(--e-4); top: -4rem; z-index: 10;
  background: var(--texto); color: var(--fundo);
  padding: var(--e-3) var(--e-4); border-radius: 8px;
}
.skip:focus { top: var(--e-2); }

/* ─── Barra de topo ─────────────────────────────────────────── */
.topo {
  position: sticky; top: 0; z-index: 5;
  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) 55%, 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; }
.marca:hover { text-decoration: none; }
.topo-apps { display: none; list-style: none; margin: 0 auto; padding: 0; gap: var(--e-8); }
.topo-apps a, .lingua { color: var(--texto); opacity: .8; }
.topo-apps a:hover, .lingua:hover { opacity: 1; text-decoration: none; }
.lingua { margin-left: auto; padding: var(--e-3) 0; }
@media (min-width: 46rem) {
  .topo-apps { display: flex; }
  .lingua { margin-left: 0; }
}

/* ─── Topo da página ────────────────────────────────────────── */
.hero {
  text-align: center;
  padding-block: clamp(4rem, 2rem + 8vw, 8rem) var(--seccao);
}
.hero-in, .app-in {
  width: min(100% - 2rem, var(--largura));
  margin-inline: auto;
  display: flex; flex-direction: column; align-items: center;
}
.hero-marca {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  font-weight: 600;
  color: var(--texto-2);
  margin-bottom: var(--e-3);
}
h1 {
  font-family: var(--fonte-display);
  font-size: clamp(2.5rem, 1.4rem + 4.8vw, 5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 22ch;
  text-wrap: balance;
}
.hero-texto {
  margin-top: var(--e-6);
  max-width: var(--largura-texto);
  font-size: clamp(1.1875rem, 1.05rem + .55vw, 1.5rem);
  line-height: 1.4;
  color: var(--texto-2);
  text-wrap: pretty;
}

.grelha-icones {
  list-style: none; padding: 0;
  margin: clamp(3rem, 2rem + 4vw, 4.5rem) 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--e-8) var(--e-6);
}
@media (min-width: 36rem) { .grelha-icones { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e-8) var(--e-12); } }
.grelha-icones a {
  display: flex; flex-direction: column; align-items: center; gap: var(--e-3);
  color: var(--texto); font-size: .875rem; font-weight: 500;
  padding: var(--e-2); border-radius: 18px;
}
.grelha-icones a:hover { text-decoration: none; }
.grelha-icones a:hover .icone-p { transform: translateY(-3px); }
.hero-acoes { margin-top: var(--e-12); font-size: 1.0625rem; }
.seta::after { content: " ›"; }

/* ─── Ícones ────────────────────────────────────────────────── */
.icone {
  position: relative;
  width: clamp(6.5rem, 5.5rem + 3vw, 8.5rem);
  aspect-ratio: 1;
  border-radius: var(--raio-icone);
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 8px 24px rgb(0 0 0 / .10);
}
.icone img { width: 100%; height: 100%; object-fit: cover; }
/* O ícone do Mac do Orbe já traz margem transparente e forma própria. */
.icone-inset { overflow: visible; box-shadow: none; border-radius: 0; }
.icone-inset img { transform: scale(1.22); filter: drop-shadow(0 6px 14px rgb(0 0 0 / .18)); }
.icone-p { width: clamp(4.25rem, 3.6rem + 2vw, 5rem); transition: transform .2s ease; }

@media (prefers-color-scheme: dark) {
  .icone { box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }
  .icone-inset { box-shadow: none; }
}

/* ─── Secção de cada app ────────────────────────────────────── */
.app {
  text-align: center;
  padding-block: var(--seccao);
  overflow: hidden;
}
.app:nth-of-type(even) { background: var(--fundo-alt); }

.app .icone { margin-bottom: var(--e-8); isolation: isolate; overflow: visible; }
.app .icone img { border-radius: var(--raio-icone); }
.app .icone-inset img { border-radius: 0; }
/* Assinatura: um brilho suave na cor de cada app, atrás do ícone. */
.app .icone::before {
  content: "";
  position: absolute; inset: -60%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: var(--glow-forca);
  filter: blur(18px);
  pointer-events: none;
}

h2 { display: flex; flex-direction: column; align-items: center; gap: var(--e-3); }
.app-nome {
  font-size: clamp(1.1875rem, 1.1rem + .45vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.app-frase {
  font-family: var(--fonte-display);
  font-size: clamp(2.125rem, 1.3rem + 3.6vw, 4rem);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}
.app-texto {
  margin-top: var(--e-6);
  max-width: var(--largura-texto);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.5;
  color: var(--texto-2);
  text-wrap: pretty;
}
.app-meta {
  margin-top: var(--e-6);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--e-2) var(--e-3);
  font-size: .875rem;
  color: var(--texto-2);
}
.estado {
  color: var(--texto);
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--texto) 7%, transparent);
}

/* ─── Botões ────────────────────────────────────────────────── */
.acoes {
  margin-top: var(--e-8);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--e-3) var(--e-4);
}
.botao, .breve {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem;
  padding: .625rem 1.375rem;
  border-radius: 999px;
  font-size: 1.0625rem;
  line-height: 1.2;
}
.botao {
  background: var(--botao);
  color: var(--botao-texto);
  font-weight: 500;
  transition: background-color .15s ease;
}
.botao:hover { background: var(--botao-hover); text-decoration: none; }
.botao-2 {
  background: transparent;
  color: var(--link);
  box-shadow: inset 0 0 0 1px var(--link);
}
.botao-2:hover { background: color-mix(in srgb, var(--link) 8%, transparent); }
/* "App Store — em breve": não é clicável, por isso não parece botão. */
.breve {
  color: var(--texto-2);
  box-shadow: inset 0 0 0 1px var(--borda);
  font-size: .9375rem;
  cursor: default;
}

/* ─── Rodapé ────────────────────────────────────────────────── */
.rodape {
  background: var(--fundo-alt);
  border-top: 1px solid color-mix(in srgb, var(--borda) 60%, transparent);
  color: var(--texto-2);
  font-size: .8125rem;
  padding-block: var(--e-8) var(--e-12);
}
.rodape-in {
  width: min(100% - 2rem, var(--largura));
  margin-inline: auto;
  display: grid; gap: var(--e-2);
}

/* ─── 404 ───────────────────────────────────────────────────── */
.nao-existe {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--e-6); text-align: center; padding: var(--e-8) var(--e-4);
}
.nao-existe p { color: var(--texto-2); }
.nao-existe .botao { color: var(--botao-texto); }
.nao-existe-en { font-size: .9375rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

#orbe { --glow: #8a94a6; }
#dare-for-two { --glow: #e2503a; }
#openlater { --glow: #3a5a9c; }
#rich-light { --glow: #ffc72e; }
