:root {
  /* a faixa de nuvens do céu das janelas e do menu (repete-se a cada --tile) */
  --clouds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 200'%3E%3Cdefs%3E%3Cg id='c'%3E%3Cpath fill='%23fff' d='M2 38C0 26 10 20 22 22 26 8 42 4 54 10 64 0 84 4 88 18 104 16 114 26 110 38Z'/%3E%3Cpath fill='%23dfe9f5' d='M2 36H110V38C110 40 108 41 106 41H6C3 41 2 39 2 36Z'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23c' transform='translate(30 46) scale(1.5)' opacity='1'/%3E%3Cuse href='%23c' transform='translate(290 18) scale(0.75)' opacity='1'/%3E%3Cuse href='%23c' transform='translate(470 74) scale(1.15)' opacity='1'/%3E%3Cuse href='%23c' transform='translate(720 32) scale(0.9)' opacity='1'/%3E%3Cuse href='%23c' transform='translate(215 126) scale(0.6)' opacity='0.85'/%3E%3Cuse href='%23c' transform='translate(640 138) scale(0.5)' opacity='0.8'/%3E%3C/svg%3E");
  --ink: #15201a;
  --muted: #56655c;
  --line: #e2ebe3;
  --green: #5a9a3c;
  --green-d: #467c2c;
  --green-50: #eef7ea;
  --mint: #e1f4e7;
  --mint-2: #f4faf2;
  --blue: #1a6fd6;
  --blue-d: #1459b0;
  --night: 12, 28, 20;
  --wrap: 1200px; /* largura do conteúdo: o header e o hero usam a mesma, para ficarem alinhados */
  --font: "Manrope", system-ui, sans-serif;
  --radius: 28px;
  --shadow: 0 22px 44px -24px rgba(21, 32, 26, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 500 16px/1.6 var(--font); color: var(--ink); background: rgb(var(--night));
  -webkit-font-smoothing: antialiased;
}
/* Ecrã único: sem scroll na página (só em ecrãs muito baixos, para nada ficar cortado) */
@media (min-height: 540px) { html, body { overflow: hidden; } }

img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
p { margin: 0; }
em { font-style: normal; }
.hl-blue { color: var(--blue); }
.hl-green { color: var(--green); }
.hl-yellow { color: #ffd166; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 30px; border: 2px solid transparent; border-radius: 999px;
  font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-outline { border-color: var(--green); color: var(--green-d); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost {
  border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-android { background: rgba(21, 32, 26, .85); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-android:hover { background: #000; }
.btn-android img { filter: invert(1); }
.btn:disabled { background: #cfd8d1; color: #fff; cursor: not-allowed; transform: none; }

/* ---------- Etiqueta (eyebrow) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 7px 14px; border-radius: 999px; background: var(--green-50); color: var(--green-d);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow svg { width: 16px; height: 16px; color: var(--green); }
.eyebrow-light { background: rgba(255, 255, 255, .16); color: #fff; }
.eyebrow-light svg { color: #ffd166; }

/* ---------- Navbar ---------- */
/* Logótipo à esquerda, fora da barra; a barra ocupa o resto (a mesma largura do conteúdo, centrada) */
.site-header {
  position: fixed; inset: 16px 0 auto; z-index: 50; padding: 0 max(16px, (100% - var(--wrap)) / 2);
  display: flex; align-items: center; gap: 14px;
}
.nav-pill {
  /* só do tamanho do conteúdo (menus + Entrar) e centrada no ecrã; o logótipo fica à esquerda */
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: max-content; height: 72px; padding: 0 10px 0 18px;   /* (max-content: com left 50% os menus partiam linha em ecrãs de ~1024px) */
  display: flex; align-items: center; gap: 22px;
  background: rgba(60, 140, 240, .38); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .45);
}
.logo { position: relative; display: inline-flex; flex: none; align-items: center; text-decoration: none; }
.logo img { width: auto; height: 112px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .28)); }
.logo span { font-size: 24px; font-weight: 800; letter-spacing: -.035em; }
.nav { display: flex; gap: 2px; }
.nav a, .nav button {
  padding: 10px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #fff; text-decoration: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: background-color .2s, color .2s;
}
.nav a:hover, .nav button:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.nav-android { display: none; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.nav-android img { filter: invert(1); }
.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer;
}

/* ---------- Ecrã único (hero) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100svh; min-height: 560px; display: flex; flex-direction: column;
  padding-top: 120px; color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Escurece o lado esquerdo (onde está o texto); as personagens ficam visíveis */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--night), .8) 0%, rgba(var(--night), .58) 32%, rgba(var(--night), .1) 58%, rgba(var(--night), 0) 70%),
    linear-gradient(to top, rgba(var(--night), .54) 0%, rgba(var(--night), 0) 22%);
}
.hero-inner {
  flex: 1; min-height: 0;
  /* minmax(0, …): o tablet (largo) transborda para a esquerda em vez de encolher a coluna do texto */
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: 1fr auto; column-gap: 40px;
}
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding-bottom: 20px; }
.hero .eyebrow { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .eyebrow svg { color: #9be07a; }
.hero h1 { margin: 20px 0 16px; font-size: clamp(34px, min(5vw, 7.4vh), 66px); max-width: 13ch; text-wrap: balance; }
.hero .hl-blue { color: #7cc8ff; }
.hero .hl-green { color: #9be07a; }
.lead { max-width: 46ch; font-size: 18px; color: #e3eee6; }
/* com o véu mais claro, a sombra suave mantém o texto branco legível por cima do céu */
.hero h1, .lead { text-shadow: 0 2px 16px rgba(var(--night), .6), 0 1px 3px rgba(var(--night), .45); }
/* CTAs numa linha + botão Android centrado por baixo */
.hero-actions { display: inline-grid; justify-items: center; gap: 12px; margin-top: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Tablet (imagem): entra de baixo para cima e depois balança devagar */
.hero-phone { grid-column: 2; grid-row: 1 / -1; align-self: end; justify-self: end; margin: 0 -22vw -7vh 0; }
.handset {
  display: block; width: min(1080px, 71vw); height: auto;
  rotate: -8deg; transform-origin: 50% 100%; /* inclinação fixa; as animações usam transform */
  animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) .5s both, sway 8s ease-in-out 1.6s infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35));
}
@keyframes rise { from { opacity: 0; transform: translateY(70%); } }
/* Dois personagens do jogo a dizer adeus por trás do tablet (WebP animado em loop): aparecem depois dele */
.hero-phone { position: relative; }
.handset { position: relative; z-index: 1; }
.crew canvas {
  position: absolute; left: var(--x); bottom: var(--y); width: var(--w); height: auto; aspect-ratio: 3 / 5;
  cursor: grab; touch-action: none;   /* arrastar roda o boneco; um clique abre a roda de ações */
  animation: pop-up .8s cubic-bezier(.2, .8, .2, 1) var(--d) backwards;
}
@keyframes pop-up { from { opacity: 0; transform: translateY(45%); } }
/* posição (% da caixa do tablet), largura e atraso de cada um */
.crew .a { --x: -4.5%; --y: 18%; --w: 45%; --d: .2s; }
.crew .b { --x: 26%; --y: 24%; --w: 44%; --d: .45s; }
.crew.is-dragging canvas { cursor: grabbing; }
/* Roda de ações dos bonecos, como a do jogo: botões redondos brancos que saltam por cima da cabeça */
.crew-wheel { position: fixed; z-index: 60; width: 0; height: 0; }
.crew-wheel button {
  position: absolute; left: -33px; top: -140px; width: 66px; height: 66px; padding: 0;
  display: grid; place-items: center; align-content: center; gap: 2px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 22px rgba(10, 40, 90, .28);
  color: var(--ink); font-family: inherit; font-size: 11.5px; font-weight: 800; line-height: 1; cursor: pointer;
  transform: translateY(36px) scale(.4); opacity: 0; transition: transform .22s cubic-bezier(.3, 1.4, .6, 1), opacity .15s;
}
.crew-wheel.open button { transform: none; opacity: 1; }
.crew-wheel button span { display: grid; font-size: 26px; line-height: 1; color: var(--blue); }
.crew-wheel button:hover, .crew-wheel button:focus-visible { background: #fff; outline: 3px solid rgba(26, 111, 214, .35); }
/* o texto fica sempre à frente dos bonecos */
.hero-copy, .hero-foot { position: relative; z-index: 2; }
/* As estações da ilha (estacoes.js): borboletas e o que cai, por cima dos bonecos e do tablet, por baixo do texto */
.hero .season { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
/* o bloco do texto não tapa os bonecos (arrastar/clicar); os botões e links continuam a funcionar */
.hero-copy { pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
@keyframes sway {
  25% { transform: translateX(-8px) rotate(-1.5deg); }
  75% { transform: translateX(8px) rotate(1.5deg); }
}

.hero-foot {
  grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  padding: 14px 0 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; color: #a9c0b1;
}
.social { display: flex; gap: 8px; }
.social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background-color .2s; }
.social a:hover { background: rgba(255, 255, 255, .22); }
.social img { filter: invert(1); opacity: .9; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal a { text-decoration: none; }
.legal a:hover { color: #fff; }

/* ---------- Bottom sheet (menu móvel) ---------- */
.sheet {
  margin: auto 0 0; width: 100%; max-width: 100%; border: 0;
  border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  background: #fff; color: var(--ink);
}
.sheet::backdrop, .modal::backdrop { background: rgba(var(--night), .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* Abrir e fechar (motion): a janela salta numa mola — sobe, cresce, passa um pouco e assenta —; ao fechar encolhe e
   cai. Em baixo (bottom sheets) sobe com um pequeno ressalto e desce depressa. O fundo escurece e desfoca devagar */
.sheet[open] { animation: sheet-up .5s cubic-bezier(.2, .9, .25, 1); }
.sheet[open]::backdrop, .modal[open]::backdrop { animation: fade-in .35s ease-out; }
@keyframes sheet-up { 0% { transform: translateY(100%); } 70% { transform: translateY(-1.5%); } 100% { transform: none; } }
@keyframes sheet-down { to { transform: translateY(100%); } }
/* o menu no estilo das janelas: céu com as nuvens a passar, a tabuleta de madeira, os cartões */
.sheet { --line: #d3eabf; overflow: hidden; background: linear-gradient(#86c9ff 0, #bfe4ff 120px, #ffe8cb 230px, #fff6e6 320px, #f4fbee 100%); }
.sheet::before {
  --tile: 600px;
  content: ""; position: absolute; top: 4px; left: 0; width: calc(100% + var(--tile)); height: 133px; pointer-events: none;
  background: var(--clouds) 0 0 / var(--tile) 133px repeat-x; animation: clouds 110s linear infinite;
}
.sheet > * { position: relative; }
.sheet .eyebrow { display: table; margin: 2px auto 18px; }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .8); margin: 0 auto 14px; }
.sheet-nav { display: grid; gap: 10px; }
.sheet-nav > :not(.btn) {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid #f1e3c8; border-radius: 18px;
  background: #fffaf0; color: var(--ink); font-size: 17px; font-weight: 800; text-align: left; text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 4px rgba(110, 75, 30, .08), 0 14px 26px -14px rgba(110, 75, 30, .35);
}
.sheet-nav > :not(.btn):active { transform: translateY(1px); }
.sheet-nav > :not(.btn)::after { content: "›"; margin-left: auto; color: var(--green); font-size: 24px; line-height: 1; }
.sheet-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--mint-2); color: var(--green-d); }
.sheet-ic img { width: 18px; height: 18px; }
.sheet-nav .btn { margin-top: 8px; min-height: 54px; font-size: 17px; box-shadow: 0 4px 0 #2f6b22, 0 14px 22px -12px rgba(30, 80, 20, .6); }
.sheet-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 20px; font-size: 13px; }
.sheet-legal a { color: var(--muted); text-decoration: none; }

/* ---------- Janelas (modais) ---------- */
.modal {
  width: min(1080px, calc(100% - 32px)); max-width: none; max-height: calc(100svh - 48px);
  padding: 0; border: 0; border-radius: 32px; background: #fff; color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.modal[open] { animation: modal-in .6s cubic-bezier(.2, .9, .25, 1); }
@keyframes modal-in {
  0% { opacity: 0; transform: translateY(56px) scale(.86) rotate(-1.2deg); }
  45% { opacity: 1; }
  65% { transform: translateY(-6px) scale(1.012) rotate(.25deg); }
  100% { transform: none; }
}
/* Barra de altura 0 e sticky: o botão fechar fica sempre visível sem ocupar espaço */
.modal-bar { position: sticky; top: 0; z-index: 3; height: 0; }
.modal-bar button {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--mint-2); color: var(--ink); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4);
}
.modal-bar button:hover { background: var(--ink); color: #fff; }
.modal-body { padding: 60px 48px 210px; }

/* ---------- Janelas no estilo do jogo: céu com nuvens em cima, colinas e farol em baixo ---------- */
.modal {
  --line: #d3eabf;
  background: linear-gradient(#86c9ff 0, #bfe4ff 150px, #ffe8cb 270px, #fff6e6 380px, #f4fbee 580px) local;
}
.modal-bar button { background: #fff; }
.modal-body { position: relative; overflow-x: clip; } /* as nuvens dos cartões das pontas não criam scroll horizontal */
.modal-body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; pointer-events: none;
  /* O ilhéu do jogo (render three.js) a sair de um mar suave */
  background: url("assets/deco/ilheu-panorama.webp?v=1") center bottom / auto 100% no-repeat,
              linear-gradient(rgba(170, 225, 240, 0) 30%, #b9e6f2 85%);
}
/* Nuvens a passar devagar no céu do topo: uma faixa que se repete a cada --tile e desliza esse mesmo valor (loop sem salto) */
.modal-body::before {
  --tile: 900px;
  content: ""; position: absolute; z-index: -1; top: 6px; left: 0; width: calc(100% + var(--tile)); height: 200px; pointer-events: none;
  background: var(--clouds) 0 0 / var(--tile) 200px repeat-x;
  animation: clouds 110s linear infinite;
}
@keyframes clouds { to { transform: translateX(calc(-1 * var(--tile))); } }
.section-head { display: grid; justify-items: center; gap: 12px; max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2, .faq-side h2 { font-size: clamp(28px, 3.6vw, 44px); }
.section-head p, .faq-side p { font-size: 17px; color: var(--muted); }

/* Trailer */
.trailer {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px;
  display: grid; place-items: center; align-content: center; gap: 14px;
  background:
    radial-gradient(110% 60% at 25% 108%, #8fd16a 50%, transparent 51%),
    radial-gradient(80% 50% at 85% 112%, #6cbf55 50%, transparent 51%),
    radial-gradient(circle at 80% 22%, #fff6c8 0 6%, transparent 6.5%),
    linear-gradient(#7fb0ec, #d3e8ff);
}
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Capa do trailer: a miniatura do YouTube por baixo do botão de play */
.trailer-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trailer-play { position: relative; }
.trailer-play {
  width: 88px; height: 88px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: #fff; color: var(--green);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .35), 0 16px 30px -12px rgba(21, 32, 26, .5);
  transition: transform .2s;
}
.trailer-play svg { margin-left: 4px; }
.trailer-play:hover { transform: scale(1.06); }
.trailer-soon { padding: 6px 14px; border-radius: 999px; background: rgba(21, 32, 26, .35); color: #fff; font-size: 14px; font-weight: 700; }
.trailer.is-soon .trailer-play { cursor: default; }
.trailer.is-soon .trailer-play:hover { transform: none; }
.trailer:not(.is-soon) .trailer-soon { display: none; }

/* Bento de funcionalidades */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-lg { grid-column: span 2; flex-direction: row; gap: 8px; }
.card-lg .shot { flex: 1.35; aspect-ratio: auto; min-height: 240px; }
.card-lg .card-body { flex: 1; align-self: center; padding: 22px; }
.card-body { padding: 16px 10px 8px; }
.card-tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--green-50); color: var(--green-d); font-size: 12px; font-weight: 800;
}
.card h3 { margin-bottom: 8px; font-size: 21px; }
.card p { font-size: 15px; color: var(--muted); }
.shot {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px;
  background: linear-gradient(var(--s1), var(--s2));
}
/* Imagens reais do jogo nos cartões: zoom ligeiro ao passar o rato */
.shot img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .shot img { transform: scale(1.05); }
/* Para usar uma captura real: <img src="..."> dentro de .shot */
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Personagens */
.char-card { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 44px; align-items: center; }
.char-portrait { aspect-ratio: 1; overflow: hidden; border-radius: 26px; background: linear-gradient(160deg, var(--mint), #c6e9b4); }
.char-portrait svg, .char-list svg { width: 100%; height: 100%; }
.char-info { min-width: 0; }
.char-job { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.char-name { margin: 6px 0 14px; font-size: clamp(38px, 5vw, 58px); }
.char-desc { max-width: 44ch; font-size: 17px; color: var(--muted); }
.char-portrait, .char-text { transition: opacity .15s; }
.char-card.fading .char-portrait, .char-card.fading .char-text { opacity: 0; }
.char-picker { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.char-list { position: relative; min-width: 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.char-list button {
  flex: none; width: 56px; height: 56px; padding: 0; overflow: hidden; cursor: pointer;
  border: 3px solid transparent; border-radius: 50%; background: var(--mint-2);
  transition: border-color .2s, transform .2s;
}
.char-list button:hover { transform: translateY(-2px); }
.char-list button[aria-selected="true"] { border-color: var(--green); }
.char-arrow {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.char-arrow:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 24px; display: grid; justify-items: start; gap: 14px; }
.faq-side .btn { margin-top: 6px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s; }
.faq-list details[open] { border-color: var(--green); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; list-style: none; cursor: pointer; font-size: 17px; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23467c2c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s, background-color .25s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.faq-list details p { padding: 0 20px 20px; color: var(--muted); }
.faq-list details a { font-weight: 700; color: var(--green-d); }


/* Quem somos */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 24px; background: var(--mint-2); border: 1px solid var(--line); border-radius: 24px; }
.value-ic { width: 48px; height: 48px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--green); }
.value-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { margin-bottom: 6px; font-size: 19px; }
.value p { font-size: 15px; color: var(--muted); }
.modal-foot { display: flex; justify-content: center; margin-top: 32px; }

/* Cartões no estilo da arte do Viletopia: creme, tabuletas de madeira e títulos azuis */
.modal .card, .modal .value, .modal .faq-list details {
  background: #fffaf0; border-color: #f1dfbf;
  /* sombra em camadas: contacto curto + sombra larga e suave (sem transform no hover, senão as nuvens de trás passavam para a frente) */
  box-shadow: 0 2px 4px rgba(110, 75, 30, .08), 0 14px 28px -10px rgba(110, 75, 30, .22), 0 30px 50px -28px rgba(40, 90, 150, .28);
  transition: box-shadow .25s, border-color .2s;
}
.modal .card:hover, .modal .value:hover, .modal .faq-list details:hover {
  box-shadow: 0 3px 6px rgba(110, 75, 30, .1), 0 20px 36px -12px rgba(110, 75, 30, .28), 0 40px 64px -30px rgba(40, 90, 150, .34);
}
.modal .faq-list details[open] { border-color: var(--green); }
.modal .card-tag, .modal .eyebrow, .sheet .eyebrow {
  background: linear-gradient(#c88a55, #94582f); color: #fff3d6;
  border: 2px solid #6e3f22; border-radius: 8px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.modal .card h3 { color: #2a73d6; }
/* Etiqueta do cabeçalho = tabuleta de madeira: veios, dois pregos e um pouco torta */
.modal .eyebrow, .sheet .eyebrow {
  margin-bottom: 6px; padding: 9px 26px; border-radius: 10px; font-size: 13px; letter-spacing: .12em; rotate: -2deg;
  background:
    radial-gradient(circle at 11px 50%, #4a2914 0 2.5px, #e9b98a 3px 3.5px, transparent 4px),
    radial-gradient(circle at calc(100% - 11px) 50%, #4a2914 0 2.5px, #e9b98a 3px 3.5px, transparent 4px),
    repeating-linear-gradient(176deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 6px, rgba(0, 0, 0, .06) 6px 7px, transparent 7px 11px),
    linear-gradient(#d39a66, #9b5f34);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(0, 0, 0, .16), 0 4px 0 #6e3f22, 0 12px 18px -10px rgba(80, 40, 10, .55);
}
/* Título como um autocolante: contorno branco e sombra suave; a palavra em destaque com degradê */
.modal .section-head h2, .modal .faq-side h2 {
  letter-spacing: -.03em; line-height: 1.12;
  text-shadow: 0 0 1px #fff, 0 3px 0 #fff, 2px 2px 0 #fff, -2px 2px 0 #fff, 0 12px 24px rgba(40, 90, 150, .2);
}
.modal h2 em { text-shadow: none; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #fff); }
.modal h2 .hl-green { background-image: linear-gradient(#73c64c, #3d8a2a); }
.modal h2 .hl-blue { background-image: linear-gradient(#4aa3ff, #1a5fc4); }
.modal .section-head p { max-width: 560px; }
.modal .shot { border: 3px solid #fff; box-shadow: 0 6px 14px -8px rgba(120, 80, 30, .5); }
/* Nuvens (do jogo) e palmeira a sair por trás dos cartões: os cartões não criam stacking context,
   por isso z-index:-1 põe-nas atrás do fundo do cartão mas à frente do fundo da janela */
.modal .card, .modal .value { position: relative; }
.modal .card::before, .modal .value::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -64px; bottom: -24px; width: 192px; height: 72px;
  /* a mesma nuvem do topo das janelas; a sombra suave fá-la ver-se no fundo claro */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='56 30 118 45'%3E%3Cpath fill='%23fff' d='M60 70C58 58 68 52 80 54 84 40 100 36 112 42 122 32 142 36 146 50 162 48 172 58 168 70Z'/%3E%3Cpath fill='%23dfe9f5' d='M60 68H168V70C168 72 166 73 164 73H64C61 73 60 71 60 68Z'/%3E%3C/svg%3E") center bottom / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(80, 120, 170, .22));
}
.modal .card:nth-child(even)::before, .modal .value:nth-child(even)::before { left: auto; right: -64px; transform: scaleX(-1); }
.modal .card:first-child::after, .modal .value:nth-child(2)::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -14px; top: -58px; width: 88px; height: 122px;
  background: url("assets/deco/palmeira.webp?v=1") center bottom / contain no-repeat;
}
.modal .bento, .modal .values { gap: 30px; }

/* ---------- Motion ---------- */
.site-header { animation: header-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-bg { animation: kenburns 26s ease-in-out infinite alternate; }
.hero .eyebrow { animation: fade-up .6s .1s both; }
.hero h1 .w {
  display: inline-block;
  animation: word-in .7s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.25s + var(--i) * 70ms);
}
.lead { animation: fade-up .7s both; animation-delay: var(--after-title, 1.1s); }
.hero-actions { animation: fade-up .7s both; animation-delay: calc(var(--after-title, 1.1s) + .15s); }
.hero-foot { animation: fade-up .7s both; animation-delay: calc(var(--after-title, 1.1s) + .3s); }
@keyframes header-in { from { opacity: 0; transform: translateY(-24px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes word-in { from { opacity: 0; transform: translateY(.45em) rotate(3deg); filter: blur(6px); } }
@keyframes kenburns { to { transform: scale(1.07); } }

/* Janelas: tudo entra em cascata ao abrir. "backwards" (e não "both") para os cartões não
   ficarem com stacking context depois da animação, senão as nuvens passavam para a frente */
.modal[open] .section-head > *, .modal[open] .faq-side > * {
  animation: fade-up .5s backwards; animation-delay: calc(var(--vd, 0s) + .05s + var(--i, 0) * 60ms);
}
.modal[open] .bento > *, .modal[open] .values > *, .modal[open] .faq-list > *,
.modal[open] .char-card, .modal[open] .trailer, .modal[open] .modal-foot {
  animation: card-in .55s cubic-bezier(.2, .8, .2, 1) backwards;
  animation-delay: calc(var(--vd, 0s) + .15s + var(--i, 0) * 80ms);
}
/* Trepadeiras (trepadeiras.js): a janela só aparece depois de elas subirem do fundo do ecrã; ao fechar, sai primeiro */
.modal.vined { --vd: .55s; }
.modal.vined[open] { animation-delay: var(--vd); animation-fill-mode: backwards; }
.modal.closing[open] { animation: modal-out .26s cubic-bezier(.55, 0, .75, .1) forwards; }
.modal.closing[open]::backdrop { animation: fade-out .26s ease-in forwards; }
@keyframes modal-out {
  30% { transform: translateY(-6px) scale(1.01); }
  100% { opacity: 0; transform: translateY(44px) scale(.9) rotate(.8deg); }
}
/* A tabuleta de madeira cai do céu e fica a baloiçar no prego até parar (por cima da cascata do cabeçalho) */
.modal[open] .section-head > .eyebrow, .modal[open] .faq-side > .eyebrow {
  transform-origin: 50% -40px; animation: plank-in 1.1s cubic-bezier(.3, .7, .3, 1) backwards; animation-delay: calc(var(--vd, 0s) + .18s);
}
/* No menu do telemóvel: a tabuleta cai na mesma e as opções entram uma a uma */
.sheet[open] .eyebrow { transform-origin: 50% -40px; animation: plank-in 1.1s cubic-bezier(.3, .7, .3, 1) .1s backwards; }
.sheet[open] .sheet-nav > * { animation: card-in .5s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(.12s + var(--i, 0) * 55ms); }
@keyframes plank-in {
  0% { opacity: 0; translate: 0 -46px; rotate: -16deg; }
  35% { opacity: 1; translate: 0 0; rotate: 9deg; }
  55% { rotate: -7deg; } 72% { rotate: 3deg; } 86% { rotate: -3.5deg; } 100% { rotate: -2deg; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
/* A camada das trepadeiras: um popover do tamanho do ecrã, por cima da janela, que não apanha cliques */
.vines {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: none; overflow: hidden; pointer-events: none;
}
.vines canvas { display: block; width: 100%; height: 100%; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
/* Nuvens atrás dos cartões a deslizar e palmeira a balançar (translate/rotate não mexem no scaleX do espelho) */
.modal .card::before, .modal .value::before { animation: drift 6s ease-in-out infinite alternate; }
.modal .card::after, .modal .value::after { transform-origin: 50% 100%; animation: rustle 4s ease-in-out infinite alternate-reverse; }
@keyframes rustle { from { rotate: -3deg; } to { rotate: 3deg; } }
@keyframes drift { from { translate: -8px 0; } to { translate: 8px 0; } }

/* Ecrãs largos: conteúdo mais largo e o tablet a passar só um pouco do conteúdo, para a composição ficar centrada */
@media (min-width: 1600px) {
  :root { --wrap: 1440px; }
  .hero-phone { margin-right: -180px; }
}

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

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  /* Android: só o ícone redondo no header, junto ao Entrar (o botão do hero sai) */
  .nav-android { display: grid; }
  .btn-android { display: none; }
  /* tablet: os bonecos ficam à direita do texto, a espreitar por cima do tablet */
  .crew .a { --x: 30%; --y: 70%; --w: 43%; }
  .crew .b { --x: 48%; --y: 66%; --w: 45%; }
  /* sem os menus a barra fica só do tamanho do Entrar + ☰, encostada à direita (não uma pílula vazia) */
  .nav-pill { position: relative; left: auto; top: auto; translate: none; width: auto; flex: none; margin-left: auto; padding: 0 10px; }
  .hero { padding-top: 132px; }   /* tablet: o texto um pouco mais abaixo do header */
  .logo img { height: 92px; }
  .hero::after { background: linear-gradient(to bottom, rgba(var(--night), .5) 0%, rgba(var(--night), .3) 40%, rgba(var(--night), .05) 70%, rgba(var(--night), 0) 100%); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; } /* minmax(0): o tablet nunca alarga a coluna do texto */
  .hero-copy { align-self: start; padding-bottom: 0; }
  .hero-phone { grid-column: 1; grid-row: 2; margin: 0 -8vw 96px 0; }
  .handset { width: min(760px, 108vw); rotate: -6deg; }
  .hero-foot {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    flex-direction: column; align-items: center; gap: 8px; margin: 0;
    padding: 30px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 0; text-align: center;
    background: linear-gradient(to top, rgba(var(--night), .95) 55%, rgba(var(--night), 0));
  }
  .legal { justify-content: center; gap: 4px 14px; }
  .values { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .char-card { grid-template-columns: 1fr; gap: 20px; }
  .char-portrait { width: min(300px, 100%); justify-self: center; }
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .faq-side { position: static; }
}

/* Ecrãs baixos: menos texto para caber tudo sem scroll */
@media (max-height: 760px) {
  .lead { display: none; }
  .hero h1 { margin-bottom: 4px; }
}

@media (max-width: 600px) {
  .crew .a { display: none; }   /* só um boneco, do lado direito */
  .crew .b { --x: 35%; --y: 60%; --w: 49%; }
  .site-header { inset: 10px 0 auto; padding: 0 10px; }
  .nav-pill { height: 62px; padding: 0 6px 0 10px; gap: 8px; }
  .site-header { gap: 8px; }
  .logo img { height: 60px; }
  .btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .hero { padding-top: 96px; }
  .hero-bg { object-position: 46% 30%; }
  .hero h1 { margin: 14px 0 10px; font-size: clamp(28px, 8.4vw, 36px); }
  .lead { font-size: 15px; }
  .hero-actions { display: grid; margin-top: 20px; }
  .hero-ctas { flex-wrap: nowrap; width: 100%; }
  .hero-ctas .btn { flex: 1; padding: 0 12px; min-height: 50px; }
  .hero-phone { margin: 0 -30vw 84px 0; }
  .legal { font-size: 12px; }
  .hero-foot .social { order: 2; gap: 6px; }
  .social a { width: 28px; height: 28px; }
  .social img { width: 14px; height: 14px; }
  .handset { width: 130vw; }
  /* Modais viram bottom sheets nativos */
  .modal {
    width: 100%; max-height: 92svh; margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }
  .modal[open] { animation: sheet-up .55s cubic-bezier(.2, .9, .25, 1); }
  .modal.closing[open] { animation: sheet-down .26s cubic-bezier(.55, 0, .75, .1) forwards; }
  .modal-body { padding: 56px 18px 170px; }
  .modal-body::after { height: 140px; }
  .modal-body::before { --tile: 600px; height: 133px; background-size: var(--tile) 133px; }
  .bento { grid-template-columns: 1fr; }
  .card-lg { grid-column: auto; flex-direction: column; }
  .card-lg .shot { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .card-lg .card-body { padding: 16px 10px 8px; }
}

}

/* Telemóveis baixos: tablet mais pequeno para caber entre os botões e o rodapé */
@media (max-width: 600px) and (max-height: 720px) { .handset { width: 100vw; } }

@media (max-width: 600px) {
  .modal .card::before, .modal .value::before { left: -20px; bottom: -16px; width: 136px; height: 51px; }
  .modal .card:nth-child(even)::before, .modal .value:nth-child(even)::before { right: -20px; }
  .modal .card:first-child::after { right: -6px; top: -48px; width: 70px; height: 98px; }
  .modal .value:nth-child(2)::after { display: none; } /* numa só coluna ficava escondida atrás do 1.º cartão */
}
