/* Site da Aty. Paleta da marca: azul-marinho, menta e creme; pêssego quente de apoio.
   A peça principal é a tela do app de cada público, numa moldura discreta. */

/* Fontes no próprio domínio (Bricolage Grotesque e Inter, licença OFL; ver assets/fonts/README.txt):
   sem conexão ao Google e sem mandar o IP de quem visita para fora. Arquivos variáveis, um por alfabeto. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/site/assets/fonts/bricolage-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/site/assets/fonts/bricolage-latin-ext.woff2?v=1') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/site/assets/fonts/inter-latin.woff2?v=1') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/site/assets/fonts/inter-latin-ext.woff2?v=1') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #000124;
  --bg: #01022f;
  --panel: #060842;
  --surface: #0c0f4a;
  --surface-2: #151958;
  --line: rgba(253, 249, 242, 0.08);
  --line-strong: rgba(253, 249, 242, 0.16);
  --text: #fdf9f2;
  --muted: #b3b6d6;
  --faint: #8a8eba;
  --brand: #06fbc3;
  --brand-ink: #01022f;
  --peach: #ffb38a;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -0.01em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
section[id] { scroll-margin-top: 88px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s ease;
}
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #5cfdd6; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Menu ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(1, 2, 47, .92); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { width: 104px; height: auto; transform: translateY(10%); } /* centra pelas maiúsculas, não pela perna do y */
.nav-links { display: flex; gap: 26px; margin-left: 16px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  height: 40px; border-radius: 12px; background: rgba(253, 249, 242, .06); color: var(--text);
  border: 1px solid var(--line-strong); padding: 0 10px; font: 600 14px var(--body); cursor: pointer;
}
.lang option { background: var(--panel); }

/* ---------- Abertura ---------- */
/* topo mais baixo: as abas já aparecem na primeira tela (1440×900), também em inglês, com o título em 3 linhas */
.hero { position: relative; overflow: hidden; padding: 96px 0 56px; }
/* fundo animado (hero-net.js): pessoas se ligando até formar o "a" da marca; o texto fica por cima */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.hero.has-net .hero-net { opacity: 1; }
.hero-grid { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; }
.hero h1 { font-size: clamp(40px, 7vw, 100px); font-weight: 800; line-height: .98; letter-spacing: -0.03em; }
.hero h1 { max-width: 7.2em; }
.hero-side { margin-top: 32px; max-width: 30em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 26em; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-cta p { color: var(--faint); font-size: 14px; max-width: 18em; line-height: 1.45; }
/* Selos oficiais das lojas (App Store, Google Play, Microsoft Store). Regras de uso da Apple, do Google e da
   Microsoft: a arte é a original (assets/store-badges, ver README.txt), sem mudar cor, proporção nem texto;
   os três com a MESMA altura (nunca menos de 40 px) e área livre de 1/4 da altura entre eles e em volta. */
.stores { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stores a { display: block; line-height: 0; border-radius: 6px; }
.stores img { display: block; height: 40px; width: auto; }
/* linha sob os selos: o que acontece depois de baixar (a entrada é por convite) */
.hero-cta .stores-note { flex: 1 1 100%; max-width: none; margin-top: -2px; }

/* ---------- Telas do app ---------- */
.show { padding: 0 0 120px; }
.show-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
.who-label { font: 700 16px var(--display); color: var(--text); margin-bottom: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  font: 600 15px var(--body); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab:hover { color: var(--text); border-color: rgba(253, 249, 242, .32); }
.tab[aria-selected='true'] { background: var(--text); color: var(--brand-ink); border-color: var(--text); }
/* rodízio das telas: uma linha menta de 2 px sob a aba ativa enche em 6 s; ao terminar, o main.js passa para a
   próxima aba (o fim da animação é o relógio, então pausar a animação pausa o rodízio) */
.tab { position: relative; }
.tab::after {
  content: ''; position: absolute; left: 23px; right: 23px; bottom: -7px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left center; pointer-events: none;
}
.show.is-auto .tab[aria-selected='true']::after { animation: tab-fill 6s linear forwards; }
.show.is-auto.is-paused .tab[aria-selected='true']::after { animation-play-state: paused; }
@keyframes tab-fill { to { transform: scaleX(1); } }

.panels { display: grid; justify-self: end; width: 100%; max-width: 30em; }
.panel { grid-area: 1 / 1; }
.panel h2 { font-size: clamp(24px, 2.4vw, 32px); }
.panel p { margin-top: 10px; color: var(--muted); font-size: 18px; }
html.js .panel { transition: opacity .4s ease; }
html.js .panel[hidden] { display: block; visibility: hidden; opacity: 0; transition: none; }

/* moldura: uma janela escura sem enfeite; a profundidade vem só da sombra.
   Proporção fixa (16:9 no computador, 4:5 até 1024 px, como as telas): trocar de aba não mexe na página. */
.frame {
  margin-top: 40px; border-radius: 16px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9;
  box-shadow:
    0 0 0 1px rgba(253, 249, 242, .10),
    0 1px 0 0 rgba(253, 249, 242, .14) inset,
    0 24px 48px -20px rgba(0, 0, 18, .7),
    0 70px 120px -50px rgba(0, 0, 18, .9);
}
.shot { display: none; margin: 0; }
.show[data-mode='team'] .shot[data-mode='team'],
.show[data-mode='fun'] .shot[data-mode='fun'],
.show[data-mode='class'] .shot[data-mode='class'] { display: block; }
/* uma imagem por idioma: só a do idioma escolhido aparece (e só ela é baixada) */
.shot picture { display: none; }
html:not([data-lang]) .shot picture[data-l='en'],
html[data-lang='en'] .shot picture[data-l='en'],
html[data-lang='pt'] .shot picture[data-l='pt'],
html[data-lang='es'] .shot picture[data-l='es'] { display: block; }
.shot, .shot picture { height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
/* com JavaScript, as três telas ficam empilhadas na moldura e a troca é um cross-fade de 0,4 s: a nova entra por
   cima e a anterior só some quando a nova já cobriu tudo (sem escurecer no meio). A moldura não muda de tamanho. */
html.js .frame { position: relative; }
html.js .shot {
  position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden;
  transition: opacity 0s linear .4s, visibility 0s linear .4s;
}
html.js .show[data-mode='team'] .shot[data-mode='team'],
html.js .show[data-mode='fun'] .shot[data-mode='fun'],
html.js .show[data-mode='class'] .shot[data-mode='class'] {
  z-index: 1; opacity: 1; visibility: visible; transition: opacity .4s ease, visibility 0s;
}
/* as outras telas só entram no empilhamento depois do load (main.js marca .is-stacked): antes disso não
   disputam a banda com a tela visível */
html.js .show.is-stacked .shot { display: block; }
@media (prefers-reduced-motion: reduce) {
  html.js .shot, html.js .panel { transition: none !important; }
  .tab::after { display: none; }
}
/* sem JavaScript: os três textos e as três telas, um embaixo do outro */
html:not(.js) .who { display: none; }
html:not(.js) .panel + .panel { grid-area: auto; margin-top: 24px; }
html:not(.js) .frame { aspect-ratio: auto; }
html:not(.js) .shot, html:not(.js) .shot picture, html:not(.js) .shot img { height: auto; }
html:not(.js) .shot { display: block; }
html:not(.js) .shot + .shot { border-top: 1px solid var(--line-strong); }

/* ---------- Dúvidas ---------- */
.faq { padding: 104px 0; border-top: 1px solid var(--line); }
.faq-col { max-width: 640px; }
.faq h2 { font-size: clamp(32px, 3.6vw, 46px); }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line-strong); }
summary { list-style: none; cursor: pointer; padding: 22px 0; font: 700 19px/1.3 var(--display); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--peach); font-size: 26px; line-height: 1; transition: transform .2s; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 40px 24px 0; }

/* ---------- Pré-cadastro ---------- */
.join { padding: 104px 0 112px; border-top: 1px solid var(--line); }
.join-col { max-width: 560px; }
.join h2 { font-size: clamp(36px, 4.4vw, 56px); color: var(--peach); }
.join-text { margin-top: 14px; color: var(--muted); font-size: 19px; }
.join-form { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
html:not(.js) .join-form { display: none; }
.jf { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.jf small { color: var(--faint); font-weight: 500; }
.join-form input {
  width: 100%; height: 56px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--panel);
  color: var(--text); padding: 0 18px; font: 500 16px var(--body);
}
.join-form select {
  width: 100%; height: 56px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--panel);
  color: var(--text); padding: 0 14px; font: 500 16px var(--body); color-scheme: dark; cursor: pointer;
}
.join-form select option { background: var(--panel); color: var(--text); }
.join-form select:focus-visible { border-color: var(--brand); }
.join-form input::placeholder { color: var(--faint); }
.join-form input:focus-visible { border-color: var(--brand); }
.join-form .btn { align-self: flex-start; min-width: 220px; }
/* anti-robô (Turnstile): quase sempre invisível; a margem negativa anula o espaço do gap quando não aparece */
.join-captcha { display: flex; margin: -9px 0; }
.join-msg:empty { display: none; }
.join-msg { margin-top: 16px; min-height: 1.6em; font-weight: 600; }
.join-msg.ok { color: var(--brand); }
.join-msg.err { color: #ff9a8a; }

/* Dúvidas e pré-cadastro no computador: título à esquerda (5/12) e lista ou formulário à direita (7/12),
   as duas seções na mesma vertical; abaixo de 980 px voltam a uma coluna */
@media (min-width: 981px) {
  .faq-col, .join-col { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .faq-col > h2, .join-col > h2, .join-col > .join-text, .join-col > noscript { grid-column: 1; padding-right: 48px; }
  .faq-list { grid-column: 2; grid-row: 1; margin-top: 0; }
  .join-col > h2 { grid-row: 1; }
  .join-col > .join-text { grid-row: 2; }
  .join-form { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .join-msg { grid-column: 2; }
}

/* ---------- Rodapé (igual em todas as páginas do site; legal.css repete estas regras) ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 44px; background: var(--night); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 48px; }
.footer-company { display: block; width: 64px; height: auto; flex: none; }
/* do Brasil, a StarNorte no lugar da RockBay (troca feita no servidor, lib/siteSeo.ts): logo horizontal sem o subtítulo, mesmo peso óptico */
.footer-company-link { display: block; flex: none; line-height: 0; }
.footer-company--starnorte { width: 137px; }
/* na mesma linha dos links: a ponta de baixo da estrela puxa o desenho para cima; 1 px alinha a palavra aos links */
@media (min-width: 561px) { .footer-company--starnorte { transform: translateY(1px); } }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; font-size: 14px; line-height: 1.6; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

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

/* ---------- Telas menores ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 40px; }
  .hero.has-net { padding-bottom: 220px; }
  /* degradê escuro atrás do texto: a rede passa por trás sem atrapalhar a leitura */
  .hero.has-net .hero-grid::before { content: ''; position: absolute; z-index: -1; inset: -40px -16px -24px; background: linear-gradient(180deg, rgba(1, 2, 47, .9) 0%, rgba(1, 2, 47, .9) 80%, rgba(1, 2, 47, 0) 100%); pointer-events: none; }
  .show-head { grid-template-columns: minmax(0, 1fr); }
  .hero-side { margin-top: 24px; }
  .hero h1 { max-width: none; }
  .panels { justify-self: start; margin-top: 28px; }
  .frame { margin-top: 28px; }
  .show { padding-bottom: 80px; }
  .faq, .join { padding: 72px 0; }
}
/* até 1024 px, a tela de celular (4:5, interface ampliada): o texto continua legível no tablet */
@media (max-width: 1024px) {
  .frame { aspect-ratio: 4 / 5; }
}
/* tablet: a tela 4:5 não passa de 720 px (0,8 × a arte de 900, nunca ampliada) nem da altura da janela, e fica
   centrada (em 1024 × 768 ela tinha 976 × 1220 e a arte era esticada 8%) */
@media (min-width: 641px) and (max-width: 1024px) {
  .frame { width: 100%; max-width: min(720px, calc((100svh - 120px) * 0.8)); margin-inline: auto; }
}
@media (max-width: 640px) {
  .frame { border-radius: 14px; max-width: 460px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav-inner { gap: 12px; height: 64px; }
  .brand img { width: 88px; }
  .tabs { gap: 6px; }
  .tab { flex: 1 1 auto; height: 44px; padding: 0 10px; justify-content: center; font-size: 14px; white-space: nowrap; }
  .tab::after { left: 16px; right: 16px; }
  .panel p { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  /* no celular, só App Store e Google Play: os três não cabem numa linha sem descer de 40 px, e ninguém
     instala app de Windows pelo celular (o link continua no rodapé e em /download) */
  .stores a:has(img[data-badge='microsoft-store']) { display: none; }
  .join-form .btn { width: 100%; }
  details p { padding-right: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; gap: 8px 24px; }
}
@media (max-width: 380px) {
  .tab { padding: 0 8px; font-size: 13px; }
  .tab::after { left: 14px; right: 14px; }
}
