/* Visual das páginas de entrada: a escolha do país (index.html) e a de contatos
   (contato/index.html). O site de cada país usa o style.css. */
:root {
  --green: #20C878;
  --green-dark: #0B8F55;
  --navy: #101C2C;
  --navy-2: #16263A;
  --navy-3: #1D3048;
  --off: #F5F7F4;
  --muted: #A7B3C6;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px calc(120px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 60% 45% at 50% 32%, rgba(32, 200, 120, .10), transparent 70%), var(--navy);
  color: var(--off); font-family: var(--font-text); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 12px; }

/* ---------- Logo ---------- */
main { display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0 0 10px; }
/* As duas linhas de texto são bilíngues porque esta é a única página que todo país vê */
.slogan { margin: 0 0 52px; font-size: 16px; color: var(--muted); }
.sep { opacity: .55; margin: 0 8px; }
.pergunta {
  margin: 0 0 26px; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.logo-mark {
  width: 112px; height: auto; color: var(--off);
  animation: flutua 4.2s ease-in-out infinite;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35));
}
.logo-mark .antena { transform-origin: 50px 30px; animation: antena 4.2s ease-in-out infinite; }
.logo-sombra {
  width: 64px; height: 10px; border-radius: 50%;
  background: rgba(0, 0, 0, .45); filter: blur(4px); margin-top: -8px;
  animation: sombra 4.2s ease-in-out infinite;
}
.logo-nome { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; margin: 6px 0 0; }
.logo-nome b { color: var(--green); font-weight: 700; }
@keyframes flutua {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes antena {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}
@keyframes sombra {
  0%, 100% { transform: scaleX(1); opacity: .9; }
  50% { transform: scaleX(.72); opacity: .5; }
}

/* ---------- Países ----------
   Cada bandeira é um ladrilho de vidro como os ícones do iOS: a bandeira embaixo,
   um reflexo dela desfocado servindo de brilho no chão, e por cima as camadas do
   vidro (brilho especular no alto, borda acesa, profundidade embaixo). O reflexo
   segue o ponteiro (--mx/--my, definidos no script do fim da página). */
.paises { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin: 0; padding: 0; list-style: none; }
.pais { display: flex; flex-direction: column; align-items: center; gap: 22px; perspective: 700px; -webkit-tap-highlight-color: transparent; }
.vidro {
  --mx: 30%; --my: 0%; --rx: 0deg; --ry: 0deg;
  position: relative; width: 150px; aspect-ratio: 3 / 2; border-radius: 30px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.vidro .flag, .vidro .glow { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.vidro .flag { overflow: hidden; }
/* brilho colorido no chão, como a sombra das cores do ícone no iOS */
.vidro .glow { transform: translateY(14px) scale(.9); filter: blur(22px) saturate(1.6); opacity: .55; z-index: -1; transition: opacity .4s, transform .5s var(--ease); }
/* vidro: brilho especular + leve fosco no alto, profundidade embaixo */
.vidro::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(90% 70% at var(--mx) var(--my), rgba(255, 255, 255, .42), rgba(255, 255, 255, .1) 50%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .08) 46%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, .14) 100%);
}
/* borda acesa: fina, mais forte no alto e embaixo, como a lente do Liquid Glass */
.vidro::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(255, 255, 255, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 10px 18px -8px rgba(255, 255, 255, .45),
    inset 0 -14px 22px -10px rgba(0, 0, 0, .35),
    0 1px 1px rgba(0, 0, 0, .25),
    0 18px 32px -14px rgba(0, 0, 0, .75);
}
.pais:hover .vidro .glow, .pais:focus-visible .vidro .glow { opacity: .8; transform: translateY(18px) scale(.95); }
.pais:active .vidro { transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(.94); transition-duration: .15s; }
.pais:focus-visible { outline: none; }
.pais:focus-visible .vidro { outline: 3px solid var(--green); outline-offset: 6px; }
.tag {
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .14em;
  color: var(--muted); transition: color .3s;
}
.pais:hover .tag, .pais:focus-visible .tag { color: var(--off); }

/* ---------- Contato fixo ---------- */
.contato {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px; z-index: 10;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)), rgba(22, 38, 58, .6);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(1.8); backdrop-filter: blur(18px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    0 18px 40px -16px rgba(0, 0, 0, .7);
}
.contato a {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  transition: background-color .25s, transform .25s var(--ease);
}
.contato a:active { transform: scale(.97); }
.contato svg { width: 20px; height: 20px; flex: none; }
.c-sms { color: var(--off); }
.c-sms:hover { background: rgba(255, 255, 255, .08); }
.c-wpp {
  background: linear-gradient(180deg, #3fe091, var(--green) 55%, #17b56a); color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .12);
}
.c-wpp:hover { background: #2fd887; }

@media (max-width: 480px) {
  .slogan { margin-bottom: 40px; font-size: 15px; }
  .sep { display: none; }
  .en { display: block; margin-top: 2px; opacity: .7; }
  .pergunta { font-size: 12px; }
  .logo-mark { width: 92px; }
  .paises { gap: 18px; }
  .vidro { width: 96px; border-radius: 20px; }
  .tag { font-size: 11px; letter-spacing: .1em; }
  .tag .sep { display: inline; margin: 0 4px; }
  .contato a { padding: 0 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark, .logo-mark .antena, .logo-sombra { animation: none; }
  .vidro, .vidro .glow, .contato a { transition: none; }
}

/* ---------- Página de contatos (contato/index.html) ---------- */
.pagina-contato { justify-content: flex-start; padding: 24px 16px calc(48px + env(safe-area-inset-bottom)); }
.topo-contato { width: min(1080px, 100%); margin-bottom: 40px; }
.voltar {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 10px;
  border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--muted);
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: color .25s, background-color .25s;
}
.voltar:hover { color: var(--off); background: rgba(255, 255, 255, .09); }
.voltar svg { width: 20px; height: 20px; }
.voltar .sep { display: inline; }
.titulo-contato { font-family: var(--font-display); font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
.titulo-contato .en { display: block; font-size: .55em; font-weight: 600; color: var(--muted); margin-top: 8px; letter-spacing: -.01em; }
.contatos {
  list-style: none; margin: 0; padding: 0; width: min(1080px, 100%);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px;
}
/* Cartão de vidro, no mesmo acabamento das bandeiras e da barra de contato */
.pessoa {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 22px 24px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), var(--navy-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    0 24px 48px -28px rgba(0, 0, 0, .8);
}
.avatar {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--navy);
  background: linear-gradient(160deg, #6ee7b0, var(--green) 55%, var(--green-dark));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .6), inset 0 -8px 14px -6px rgba(0, 0, 0, .3), 0 12px 24px -12px rgba(32, 200, 120, .6);
}
.avatar-marca { background: var(--navy-3); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--off); }
.avatar-marca svg { width: 40px; height: 44px; }
.pessoa h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.papel { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.papel .en { display: block; opacity: .7; }
.canais { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.canal {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 10px;
  border-radius: 14px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; white-space: nowrap;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: background-color .25s, transform .25s var(--ease);
}
.canal .sep { display: inline; margin: 0 4px; }
a.canal:hover { background: rgba(255, 255, 255, .11); }
a.canal:active { transform: scale(.97); }
.canal svg { width: 18px; height: 18px; flex: none; }
.canal-wpp { background: linear-gradient(180deg, #3fe091, var(--green) 55%, #17b56a); color: var(--navy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .12); }
a.canal-wpp:hover { background: #2fd887; }
.canal.off { color: var(--muted); opacity: .55; cursor: default; }
.canal small { font-family: var(--font-text); font-weight: 500; font-size: 11px; margin-left: 2px; }
.dado { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); user-select: all; }
@media (max-width: 480px) {
  .topo-contato { margin-bottom: 28px; }
  .canal { font-size: 13px; padding: 0 6px; }
  .canal .sep, .canal .sep + span { display: none; }
}

/* ---------- Página de erro (404.html) ---------- */
.pagina-erro { padding-bottom: calc(96px + env(safe-area-inset-bottom)); overflow-x: hidden; }
.erro-numero {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 28px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(110px, 24vw, 180px); line-height: 1; letter-spacing: -.04em;
  color: var(--off);
}
.erro-bug { position: relative; display: inline-block; width: .74em; }
.erro-mark { width: 100%; height: auto; color: var(--off); transform-origin: 50% 95%; animation: procura 3.2s ease-in-out infinite; }
.erro-mark .olhos { animation: olha 3.2s ease-in-out infinite; }
.erro-mark .antena { transform-origin: 50px 30px; animation: antena 1.6s ease-in-out infinite; }
/* gota de suor de nervoso */
.erro-gota {
  position: absolute; top: 34%; right: 4%; width: .07em; height: .1em;
  background: #7FD6FF; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; opacity: 0;
  animation: gota 3.2s ease-in infinite;
}
@keyframes procura {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-9deg); }
  45% { transform: rotate(9deg); }
  65% { transform: rotate(-4deg); }
  80% { transform: rotate(0) translateY(-6%); }
}
@keyframes olha {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  45% { transform: translateX(4px); }
  65% { transform: translateX(-2px); }
}
@keyframes gota {
  0%, 55% { opacity: 0; transform: translateY(0); }
  62% { opacity: 1; }
  95% { opacity: 0; transform: translateY(70%); }
  100% { opacity: 0; }
}
.erro-titulo { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.02em; }
.erro-titulo.erro-en { font-size: clamp(17px, 2.6vw, 21px); font-weight: 600; color: var(--muted); margin: 6px 0 20px; }
.erro-texto { max-width: 34em; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.erro-texto.erro-en { font-size: 14.5px; opacity: .7; margin: 6px auto 32px; }
.erro-voltar {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 24px 0 18px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--navy);
  background: linear-gradient(180deg, #3fe091, var(--green) 55%, #17b56a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 12px 28px -12px rgba(32, 200, 120, .8);
  transition: transform .25s var(--ease);
}
.erro-voltar:hover { transform: translateY(-2px); }
.erro-voltar:active { transform: scale(.97); }
.erro-voltar svg { width: 20px; height: 20px; }
.erro-voltar .sep { display: inline; }
.erro-chao { position: fixed; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); height: 14px; pointer-events: none; }
.erro-chao::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
/* besourinho de 14px atravessando a tela, sem pressa */
.erro-andarilho {
  position: absolute; bottom: 2px; left: -24px; width: 14px; height: 10px; border-radius: 50% 50% 40% 40%;
  background: var(--green); box-shadow: inset -3px 0 0 var(--green-dark);
  animation: anda 16s linear infinite;
}
.erro-andarilho::before, .erro-andarilho::after {
  content: ""; position: absolute; top: -4px; width: 1.5px; height: 5px; background: var(--off); border-radius: 2px;
}
.erro-andarilho::before { left: 3px; transform: rotate(-25deg); }
.erro-andarilho::after { right: 3px; transform: rotate(25deg); }
@keyframes anda {
  0% { transform: translateX(0) translateY(0); }
  48% { transform: translateX(50vw) translateY(0); }
  50% { transform: translateX(50vw) translateY(-3px); }
  52% { transform: translateX(50vw) translateY(0); }
  100% { transform: translateX(calc(100vw + 48px)); }
}
@media (max-width: 480px) {
  .erro-texto { font-size: 15px; }
  .erro-voltar .sep { display: inline; margin: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .erro-mark, .erro-mark .olhos, .erro-mark .antena, .erro-gota, .erro-andarilho { animation: none; }
  .erro-andarilho { display: none; }
}
/* Cartão com número ímpar de canais: o último ocupa a linha inteira */
.canais > :last-child:nth-child(odd) { grid-column: 1 / -1; }
