/* Estilo da home (site/index.html e site/pt/index.html).
 *
 * Vive separado do style.css de propósito: aquele arquivo veste as páginas
 * legais (/privacy.html, /terms.html e as versões em /pt/), cujas URLs estão
 * cadastradas na tela de consentimento do Google e na App Store Connect e não
 * podem quebrar. Mexer numa coisa não deve derrubar a outra.
 *
 * A fonte Inter é servida daqui mesmo, não do fonts.googleapis.com: menos um
 * domínio de terceiro no caminho crítico e nenhum IP de visitante entregue a
 * outra empresa numa página de saúde. Ver site/font/.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/font/inter-latin.woff2') 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 900;
  font-display: swap;
  src: url('/font/inter-latin-ext.woff2') 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #070b0a;
  --bg-soft: #0c1311;
  --card: rgba(255, 255, 255, .04);
  --border: rgba(255, 255, 255, .09);
  --text: #e9f2ee;
  --muted: #9db3a8;
  --primary: #34d399;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #34d399, #22d3ee);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* O cabeçalho é fixo com 74px de altura; sem isto os links do menu param com o
 * título da seção escondido atrás dele. */
section[id] { scroll-margin-top: 84px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer; transition: .3s; }
.btn-primary { background: var(--grad); color: #04110c; box-shadow: 0 8px 30px rgba(52, 211, 153, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(52, 211, 153, .5); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: .3s; background: rgba(7, 11, 10, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
header.scrolled { background: rgba(7, 11, 10, .92); border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .2px; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Seletor de idioma: são dois endereços de verdade (/ e /pt/), não um toggle em
 * JavaScript. É o que o hreflang aponta e o que o buscador indexa. O clique
 * também grava o cookie que o i18n do Firebase lê — ver site/lang.js. */
.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-toggle a { color: var(--muted); font-size: 12px; font-weight: 700; padding: 7px 13px; transition: .2s; }
.lang-toggle a:hover:not(.on) { color: var(--text); }
.lang-toggle a.on { background: var(--grad); color: #04110c; }
.nav-cta { padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 80px; }
.hero-bg { position: absolute; inset: 0; background: url('/img/hero.jpg') center/cover no-repeat; background-color: #0d1a14; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 10, .78), rgba(7, 11, 10, .92) 70%, var(--bg)); }
.hero-content { position: relative; max-width: 820px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 28px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 900; line-height: 1.08; letter-spacing: -1.5px; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 24px 0 12px; }
.hero-quick { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 34px; }
.hero-quick svg { color: var(--primary); flex-shrink: 0; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.platform-pills { display: flex; align-items: center; gap: 10px; margin-top: 48px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.platform-pills span { background: rgba(255, 255, 255, .05); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--text); }
.platform-pills .plain { background: none; border: none; padding: 0; font-weight: 400; color: var(--muted); }

.section { padding: 100px 0; }
.section-label { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 620px; font-size: 17px; }

.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.eco-media { position: relative; }
.eco-media .img-wrap { position: relative; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, #12332a, #0a1a14); border: 1px solid var(--border); }
.eco-media img { width: 100%; height: 520px; object-fit: cover; }
.float-card { position: absolute; bottom: -26px; left: -26px; background: rgba(12, 19, 17, .92); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; backdrop-filter: blur(10px); display: flex; align-items: center; gap: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.float-card .pulse { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #04110c; }
.float-card .pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--grad); animation: pulse 2s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6 } 100% { transform: scale(1.9); opacity: 0 } }
.float-card strong { display: block; font-size: 18px; }
.float-card small { color: var(--muted); font-size: 12px; }
.eco-text .about-p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.eco-text ul { list-style: none; margin: 26px 0 0; display: grid; gap: 14px; }
.eco-text li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.eco-text li svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.features-head { text-align: center; margin-bottom: 56px; }
.features-head .section-sub { margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; transition: .3s; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); opacity: 0; transition: .3s; }
.feature-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .07); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .25); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 20px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.vm-card { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); transition: .3s; }
.vm-card:hover { transform: translateY(-4px); }
.vm-card .vm-img { position: relative; height: 230px; background-color: #0d1a14; }
.vm-card .vm-img img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.vm-card .vm-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(12, 19, 17, .95)); }
.vm-body { padding: 34px; }
.vm-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #04110c; margin-bottom: 18px; }
.vm-body h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.vm-body p { color: var(--muted); font-size: 16px; }

.values-head { text-align: center; margin-bottom: 56px; }
.values-head .section-sub { margin: 0 auto; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.value-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; transition: .3s; position: relative; }
.value-card:hover { transform: translateY(-6px); border-color: rgba(52, 211, 153, .4); }
.value-num { font-size: 13px; font-weight: 800; color: var(--primary); letter-spacing: 2px; }
.value-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .25); display: flex; align-items: center; justify-content: center; color: var(--cyan); margin: 18px 0; }
.value-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14.5px; }

.privacy { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.privacy-card { max-width: 820px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 56px 40px; }
.privacy-icon { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.privacy-card h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; margin-bottom: 14px; }
.privacy-card p { color: var(--muted); font-size: 16px; }

/* Bloco "Sobre" + "Login com Google".
 *
 * Não é enfeite de marketing: a verificação de marca da tela de consentimento
 * OAuth do Google confere, na home, a descrição do aplicativo e a explicação de
 * quais dados da conta Google são usados. Estava na home antiga e veio junto na
 * migração para este layout. Remover daqui é reprovar na verificação. */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 34px; }
.info-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.info-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card ul { list-style: none; display: grid; gap: 10px; margin: 0 0 14px; }
.info-card li { color: var(--muted); font-size: 15.5px; display: flex; gap: 10px; align-items: flex-start; }
.info-card li::before { content: '·'; color: var(--primary); font-weight: 800; }
.info-card strong { color: var(--text); font-weight: 600; }
.info-card a { color: var(--primary); }
.info-card a:hover { text-decoration: underline; }
.info-note { font-size: 13px; color: var(--muted); opacity: .8; }

.cta-final { position: relative; padding: 140px 0; text-align: center; }
.cta-bg { position: absolute; inset: 0; background: url('/img/cta.jpg') center/cover no-repeat; background-color: #0d1a14; background-attachment: fixed; }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 10, .9), rgba(7, 11, 10, .95)); }
.cta-content { position: relative; }
.cta-content h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.cta-content p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 36px; }
.cta-note { font-size: 12.5px; color: var(--muted); margin-top: 20px; }

footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer-grid h4 { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a, .footer-grid li { color: var(--text); font-size: 14.5px; transition: .2s; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* A animação de entrada só existe quando o JavaScript roda: a classe `js` é
 * posta pelo próprio script. Sem essa trava, um erro de script ou um leitor sem
 * JS receberia a página inteira em opacity:0 — ou seja, em branco. */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; background: rgba(7, 11, 10, .98); flex-direction: column; gap: 0; padding: 16px 24px 24px; border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: .3s; align-items: flex-start; }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .eco-grid, .vm-grid, .info-grid { grid-template-columns: 1fr; }
  .float-card { left: 12px; bottom: -20px; }
  .footer-grid { grid-template-columns: 1fr; }
  /* O iOS ignora background-attachment:fixed e amplia a imagem no lugar. */
  .cta-bg { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card .pulse::after { animation: none; }
  .btn-primary:hover, .feature-card:hover, .value-card:hover, .vm-card:hover { transform: none; }
}
