/* Double Check Studio — estilo do site. Valores do sistema de marca (P38). Só tema claro.
   Versão 2 (conversa 73, P94): barra verde em todas as páginas, menu ☰ no telemóvel, página inicial curta e centrada. */
/* Tipos de letra alojados no próprio site (sem Google Fonts). Ficheiros do Fontsource, licença OFL (ver assets/fonts/LICENSE-*). */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --forest: #12372A; --forest-deep: #0C2A20; --amber: #F2B544; --sage: #BFD8C8; --mint: #DDEAE1;
  --paper: #F4F8F5; --white: #FFFFFF; --ink-soft: #2F4A3E; --ink-muted: #4A6357; --line-dark: #2E5545;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-md: 10px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --bg: var(--paper); --top-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--forest); } /* o que o Safari mostrar por trás da página ao mudar de página fica verde como a barra, não branco */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--paper); color: var(--ink-soft); font: 400 16px/24px var(--sans); }
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; color: inherit; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.top :focus-visible, .menu :focus-visible, .head :focus-visible, .hero :focus-visible, .final :focus-visible, .foot :focus-visible, .game-done :focus-visible { outline-color: var(--amber); }
section[id] { scroll-margin-top: var(--top-h); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.nw { white-space: nowrap; }
.center h2, .center .intro { margin-left: auto; margin-right: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--amber); color: var(--forest); padding: 10px 16px; border-radius: var(--r-pill); z-index: 40; font-weight: 600; }
.skip:focus { top: 10px; color: var(--forest); }

h1, h2, h3 { font-family: var(--display); color: var(--forest); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.dot { color: var(--amber); }
.label { font: 600 12px/16px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.lead { font-size: 19px; line-height: 29px; max-width: 30em; margin: 18px auto 0; }
.intro { font-size: 18px; line-height: 28px; max-width: 36em; margin-top: 14px; }
.fine { margin-top: 18px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.after { margin-top: 32px; }
.text-link { font-weight: 600; }
.text-btn { background: none; border: 0; padding: 10px 12px; min-height: 44px; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--forest); cursor: pointer; }

/* Botões e pílulas */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 2px solid transparent; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; text-align: center; transition: background-color .2s, color .2s, translate .2s var(--ease); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--forest); color: var(--paper); }
.btn-primary:hover { background: var(--forest-deep); color: var(--paper); }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--mint); }
.btn-light { background: var(--paper); color: var(--forest); }
.btn-light:hover { background: var(--white); color: var(--forest-deep); }
.btn-amber { background: var(--amber); color: var(--forest); }
.btn-amber:hover { background: #F6C566; color: var(--forest-deep); }
@media (hover: hover) { .btn:hover { translate: 0 -2px; } .btn:active { translate: 0 0; } }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--r-pill); font: 600 14px/1 var(--sans); }
.pill-amber { background: var(--amber); color: var(--forest); }
.pill-out { border: 1px solid var(--sage); color: var(--paper); font-weight: 500; }
.pill-dark { background: var(--forest); color: var(--paper); min-height: 26px; font-size: 13px; }

/* Marca */
.mark { color: var(--forest); }
.mark-gap { stroke: var(--bg); }
.lockup { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); white-space: nowrap; }
.lockup .mark { width: 32px; height: 32px; flex: none; }
.lockup-text { font: 700 19px/1 var(--display); letter-spacing: -0.04em; white-space: nowrap; }
.lockup-studio { font-weight: 500; color: var(--ink-muted); }

/* Barra de cima (verde em todas as páginas) */
.top { position: sticky; top: 0; z-index: 30; background: var(--forest); --bg: var(--forest); }
/* No iPhone, ao tocar num link com a barra do Safari recolhida, o Safari volta a abrir a barra e, por um instante, mostra o conteúdo por cima da barra verde.
   Este prolongamento verde, fora do ecrã em uso normal, tapa essa faixa: parece só a barra a crescer. */
.top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 160px; background: var(--forest); pointer-events: none; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: var(--top-h); }
.top .lockup, .top .mark { color: var(--paper); }
.top .lockup-studio { color: var(--sage); }
.brand { text-decoration: none; margin-right: auto; min-height: 44px; display: flex; align-items: center; }
.links { display: flex; gap: 20px; }
.links a { font: 500 15px/1 var(--sans); text-decoration: none; color: var(--mint); padding: 12px 0; white-space: nowrap; }
.links a:hover { color: var(--paper); text-decoration: underline; }
.lang { position: relative; display: flex; flex: none; padding: 3px; border: 1px solid var(--sage); border-radius: var(--r-pill); }
.lang a { position: relative; z-index: 1; width: 40px; min-height: 36px; display: flex; align-items: center; justify-content: center; font: 600 14px/1 var(--sans); text-decoration: none; color: var(--paper); border-radius: var(--r-pill); transition: color .25s; }
.lang a[aria-current] { color: var(--forest); }
.lang-thumb { position: absolute; top: 3px; left: 3px; width: 40px; height: 36px; border-radius: var(--r-pill); background: var(--paper); transition: translate .25s var(--ease); }
.lang[data-lang="en"] .lang-thumb { translate: 40px 0; }
.lang.go-en .lang-thumb { translate: 40px 0; } .lang.go-pt .lang-thumb { translate: 0 0; }
.lang.go-en a[lang="en"], .lang.go-pt a[lang="pt-PT"] { color: var(--forest); }
.lang.go-en a[lang="pt-PT"], .lang.go-pt a[lang="en"] { color: var(--paper); }
.top-cta { white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--paper); color: var(--forest); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .ico-close, .menu-btn[aria-expanded="true"] .ico-menu { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }

/* Menu ☰ */
.menu { position: fixed; top: var(--top-h); left: 0; right: 0; bottom: 0; z-index: 29; background: var(--forest); color: var(--paper); overflow-y: auto; text-align: center; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); }
.menu[hidden] { display: none; }
.js .menu:not([hidden]) { animation: fadein .2s ease both; }
.menu nav { max-width: 480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.menu li { border-bottom: 1px solid var(--line-dark); }
.menu a { color: var(--paper); text-decoration: none; }
.m-sec a { min-height: 66px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; }
.m-t { font: 700 23px/29px var(--display); letter-spacing: -0.02em; }
.m-s { font-size: 14px; line-height: 20px; color: var(--sage); }
.m-more { margin: 20px 0 4px; font: 600 12px/16px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }
.m-pages a { min-height: 56px; display: flex; align-items: center; justify-content: center; font: 700 20px/26px var(--display); letter-spacing: -0.01em; }
.m-social { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.m-social a { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--sage); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; }
.ico-out { width: 14px; height: 14px; color: var(--sage); }
.m-cta { margin-top: auto; padding-top: 24px; }
.m-cta .btn { width: 100%; }
@keyframes fadein { from { opacity: 0; } }

/* Barra de baixo (só telemóvel) */
.bar { display: none; }

/* Página inicial */
.hero { position: relative; overflow: hidden; background: var(--forest); --bg: var(--forest); color: var(--mint); padding: 56px 0 64px; text-align: center; }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero .label { color: var(--sage); }
.hero h1 { color: var(--paper); max-width: 13em; }
.hero .lead { color: var(--mint); }
.hero-mark { position: absolute; right: max(-60px, calc(50% - 640px)); top: -20px; opacity: 0.12; pointer-events: none; }
.hero-mark .mark { width: 300px; color: var(--paper); }
.who { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; text-align: left; }
.who img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sage); flex: none; }
.who p { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; color: var(--sage); }
.who strong { font-size: 16px; line-height: 22px; color: var(--paper); font-weight: 600; }
.who a { color: var(--amber); font-weight: 600; padding: 2px 0; text-decoration: none; }
.who a:hover { text-decoration: underline; color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.hero-cta { margin-top: 24px; width: 100%; max-width: 360px; }
.hero-cta .btn { width: 100%; }
.try-link { display: inline-block; margin-top: 10px; padding: 10px 4px; color: var(--amber); font-weight: 600; font-size: 15px; }
.try-link:hover { color: var(--amber); }

.band { padding: 64px 0; }
.band-mint { background: var(--mint); --bg: var(--mint); }

/* Casos reais */
.band-cases { padding: 64px 0 48px; text-align: center; }
.swipe { display: none; margin-top: 4px; font-size: 14px; color: var(--ink-muted); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.cases > li { display: flex; }
.case { width: 100%; background: var(--white); border: 1px solid var(--sage); border-radius: var(--r-lg); padding: 24px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; text-align: center; }
.case blockquote p { font: 500 18px/27px var(--display); letter-spacing: -0.01em; color: var(--forest); }
.case figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.case figcaption strong { color: var(--forest); font-weight: 600; }

/* Jogo «Experimenta» */
.band-try { padding: 24px 0 0; }
#how.band { padding-top: 56px; }
.game { position: relative; background: var(--mint); --bg: var(--mint); border-radius: var(--r-xl); padding: 32px 20px; text-align: center; max-width: 560px; margin: 0 auto; }
.game h2 { font-size: clamp(26px, 3.4vw, 32px); }
.game-intro p { margin-top: 10px; }
.game-start { margin-top: 18px; }
.game-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--sage); background: var(--white); color: var(--forest); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.game-x[hidden] { display: none; }
.game-x svg { width: 18px; height: 18px; }
.game-on { margin-top: 16px; }
.game-on[hidden], .game-intro[hidden] { display: none; }
.game-tap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; font-size: 14px; }
.shop { margin-top: 14px; background: var(--white); border: 1px solid var(--sage); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; text-align: left; color: var(--ink-soft); }
.shop-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; white-space: nowrap; }
.shop-top strong { color: var(--forest); font-size: 15px; }
.shop-top span { font-size: 13px; color: var(--ink-muted); }
.shop-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.spot { position: relative; width: 100%; background: transparent; border: 0; padding: 6px 0; cursor: pointer; text-align: left; color: inherit; }
.shop-total { border-top: 1px solid var(--mint); padding-top: 10px; font-weight: 600; color: var(--forest); font-size: 16px; }
.spot::after { content: ""; position: absolute; inset: -4px -8px; border: 3px solid var(--amber); border-radius: 10px; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.spot[aria-pressed="true"]::after { opacity: 1; transform: none; }
.shop-pay::after { border-radius: var(--r-pill); inset: -6px; }
.shop-field { display: grid; gap: 6px; }
.shop-field label { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.shop-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--sage); border-radius: var(--r-md); background: var(--paper); font: 400 16px/1 var(--sans); color: var(--forest); }
.g-cp-msg { font-size: 13px; color: var(--ink-soft); }
.shop-pay { min-height: 48px; border-radius: var(--r-pill); background: #C9D3CD; color: var(--ink-muted); font-weight: 600; text-align: center; padding: 0; }
.tks { display: grid; gap: 10px; margin-top: 12px; }
.tk { background: var(--white); border: 1px solid var(--sage); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: rise .35s var(--ease) both; }
.tk[hidden] { display: none; }
.tk .pill { min-height: 24px; font-size: 12px; }
.tk-t { font-weight: 600; color: var(--forest); font-size: 15px; line-height: 22px; }
.tk-f { font-size: 14px; line-height: 20px; }
.game-give { margin-top: 6px; }
.game-give[hidden] { display: none; }
.game-done { margin-top: 12px; background: var(--forest); color: var(--paper); border-radius: var(--r-lg); padding: 18px; animation: rise .35s var(--ease) both; }
.game-done[hidden] { display: none; }
.game-done-a { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.game-done .text-btn { color: var(--sage); }
@keyframes rise { from { opacity: 0; translate: 0 12px; } }

/* Como funciona (passos) */
.stepper { position: relative; width: 260px; height: 56px; margin: 28px auto 20px; display: flex; justify-content: space-between; align-items: center; }
.st-track, .st-fill { position: absolute; left: 24px; top: 26px; height: 3px; border-radius: 3px; }
.st-track { right: 24px; background: var(--mint); }
.st-fill { width: 0; background: var(--forest); transition: width .45s var(--ease); }
.stepper[data-step="1"] .st-fill { width: 106px; } .stepper[data-step="2"] .st-fill { width: 212px; }
.st { position: relative; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 2px solid var(--sage); background: var(--white); color: var(--forest); font: 700 20px/1 var(--display); cursor: pointer; transform: scale(.92); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.st.done { background: var(--sage); border-color: var(--sage); }
.st[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); transform: scale(1.1); }
.st-panel { background: var(--white); border: 1px solid var(--sage); border-radius: var(--r-lg); min-height: 236px; padding: 24px 20px; display: grid; align-items: center; }
.sp { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.js .sp:not([hidden]) { animation: rise .4s var(--ease) both; }
.sp[hidden] { display: none; }
/* os três passos ocupam a mesma célula: a caixa fica com a altura do mais comprido e não salta */
.js .st-panel > .sp { grid-area: 1 / 1; }
.js .sp[hidden] { display: flex; visibility: hidden; }
.sp h3 { font-size: 22px; line-height: 28px; }
.sp p { max-width: 30em; }
.sp .btn, .sp .text-link { margin-top: 4px; }
.sp .text-link { min-height: 44px; display: inline-flex; align-items: center; }
html:not(.js) .sp[hidden] { display: flex; margin-top: 20px; }
html:not(.js) .stepper, html:not(.js) .st-next { display: none; }

/* Preços (acordeão) */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; align-items: start; }
.plan { background: var(--white); border: 1px solid var(--sage); border-radius: var(--r-lg); overflow: hidden; }
.plan-btn { width: 100%; padding: 20px 18px 14px; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--forest); }
.plan-btn .pill { min-height: 24px; font-size: 12px; margin-bottom: 4px; }
.plan-name { font: 700 22px/28px var(--display); letter-spacing: -0.01em; }
.plan-count { font-size: 14px; color: var(--ink-muted); }
.chev { width: 22px; height: 22px; color: var(--forest); transition: transform .3s var(--ease); flex: none; }
[aria-expanded="true"] > .chev, [aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc { display: grid; grid-template-rows: 1fr; }
.js .acc { grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.js .acc.open { grid-template-rows: 1fr; }
.acc > div { overflow: hidden; min-height: 0; }
.js .acc > div { visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s linear .35s; }
.js .acc.open > div { visibility: visible; opacity: 1; transition: opacity .35s ease .05s, visibility 0s; }
.plan-body { border-top: 1px solid var(--mint); padding: 14px 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.plan-body > p { font-weight: 600; color: var(--forest); } /* a frase de cada plano destaca-se da lista */
.plan-body ul { display: grid; gap: 6px; color: var(--forest); font-size: 15px; }
.plan-body .btn { width: 100%; margin-top: 6px; }

/* Bloco final */
.band-final { padding: 56px 0 72px; }
.final { background: var(--forest); color: var(--mint); border-radius: var(--r-xl); padding: 36px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final h2 { color: var(--paper); font-size: clamp(26px, 3.4vw, 34px); }
.final .btn { min-width: min(100%, 320px); }
.final-mail { font-size: 14px; color: var(--sage); }
.final-mail a { color: var(--paper); }

/* Páginas próprias: faixa verde no topo */
.head { background: var(--forest); --bg: var(--forest); color: var(--mint); padding: 20px 0 48px; text-align: center; }
.head-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.head h1 { color: var(--paper); font-size: clamp(34px, 5vw, 52px); }
.head-p { font-size: 18px; line-height: 28px; max-width: 32em; }
.back { align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none; }
.back:hover { color: var(--paper); text-decoration: underline; }
.back .ico { width: 18px; height: 18px; }
.head-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sage); }
.creds { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.prose { margin-top: 18px; display: grid; gap: 14px; font-size: 17px; line-height: 27px; }
.rules { margin-top: 24px; display: grid; gap: 12px; }
.rules li { background: var(--white); border: 1px solid var(--sage); border-radius: var(--r-lg); padding: 20px; }
.rule-t { font: 700 19px/25px var(--display); color: var(--forest); letter-spacing: -0.01em; margin-bottom: 4px; }

/* Perguntas */
.band-faq { padding-top: 40px; }
.qa-group { margin-top: 28px; }
.qa-group:first-child { margin-top: 0; }
.qa-group .label { text-align: center; }
.qa { background: var(--white); border: 1px solid var(--sage); border-radius: var(--r-lg); overflow: hidden; margin-top: 10px; }
.qa h3 { font: inherit; }
.qa-btn { position: relative; width: 100%; min-height: 60px; padding: 16px 48px; background: none; border: 0; cursor: pointer; font: 600 16px/23px var(--sans); color: var(--forest); text-align: center; }
.qa-btn .chev { position: absolute; right: 14px; top: 50%; margin-top: -11px; }
.qa .acc p { border-top: 1px solid var(--mint); padding: 14px 20px 20px; font-size: 15px; line-height: 23px; text-align: center; }

/* Formulário de pedido */
.band-form { padding-top: 40px; }
.form { background: var(--white); border: 1px solid var(--sage); border-radius: var(--r-xl); padding: 28px; display: grid; gap: 20px; max-width: 600px; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font: 600 15px/22px var(--sans); color: var(--forest); }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--ink-muted); }
.help { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
input[type=text], input[type=email], input[type=url], textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--ink-muted); border-radius: var(--r-md); background: var(--white); color: var(--forest); font: 400 16px/24px var(--sans); }
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--forest); outline-offset: 1px; border-color: var(--forest); }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt-card { position: relative; cursor: pointer; }
.opt-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-card span { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px; border: 1px solid var(--sage); border-radius: 14px; background: var(--white); text-align: center; transition: background .2s, color .2s, border-color .2s; }
.opt-card strong { font-size: 15px; color: var(--forest); transition: color .2s; }
.opt-card small { font-size: 12px; color: var(--ink-muted); transition: color .2s; }
.opt-card input:checked + span { background: var(--forest); border-color: var(--forest); }
.opt-card input:checked + span strong { color: var(--paper); }
.opt-card input:checked + span small { color: var(--sage); }
.opt-card input:focus-visible + span { outline: 3px solid var(--forest); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.submit .btn { width: 100%; }
.send .spin { display: none; width: 20px; height: 20px; animation: spin .8s linear infinite; }
.send.sending .spin { display: block; }
.send.sending { pointer-events: none; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }
.band-form .center { margin-top: 10px; font-size: 14px; color: var(--ink-muted); }

/* Obrigado: o símbolo desenha-se */
.head-thanks { padding: 56px 0 72px; }
.thanks-mark .mark { width: 112px; color: var(--paper); }
@keyframes draw { from { stroke-dashoffset: 1; opacity: 0; } 3% { opacity: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } 65% { transform: scale(1.3); } to { transform: scale(1); } }
.mark-draw path, .hero-mark path { stroke-dasharray: 1; animation: draw .5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.mark-draw path:nth-of-type(1), .hero-mark path:nth-of-type(1) { animation-duration: .8s; animation-delay: .3s; }
.mark-draw path:nth-of-type(2), .hero-mark path:nth-of-type(2) { animation-duration: .4s; animation-delay: 1.05s; }
.mark-draw path:nth-of-type(3), .mark-draw path:nth-of-type(4), .hero-mark path:nth-of-type(3), .hero-mark path:nth-of-type(4) { animation-delay: 1.35s; }
.mark-draw circle, .hero-mark circle { transform-box: fill-box; transform-origin: center; animation: pop .45s var(--ease) 1.8s both; }

/* Abertura da página inicial: entra linha a linha */
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise .7s var(--ease) both; }
  .hero-in > :nth-child(2) { animation-delay: .08s; } .hero-in > :nth-child(3) { animation-delay: .18s; }
  .hero-in > :nth-child(4) { animation-delay: .28s; } .hero-in > :nth-child(5) { animation-delay: .36s; }
  .hero-in > :nth-child(6) { animation-delay: .44s; } .hero-in > :nth-child(7) { animation-delay: .5s; }
}

/* Seta para voltar ao topo: aparece depois de descer um ecrã */
.to-top { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 19; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 2px solid var(--paper); background: var(--forest); color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .25s, translate .25s var(--ease); }
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top[hidden] { display: none; }
.menu-open .to-top { display: none; }

/* Passagem entre páginas do site (Safari e Chrome recentes): a barra de cima fica parada e o resto troca com um esbatido curto.
   Disfarça o salto que o browser do telemóvel mostra enquanto carrega a página seguinte. Browsers antigos ignoram isto. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
  .top { view-transition-name: dcs-top; }
  .bar { view-transition-name: dcs-bar; }
}

/* Rodapé */
.foot { background: var(--forest-deep); --bg: var(--forest-deep); color: var(--sage); padding: 48px 0 32px; font-size: 15px; text-align: center; }
.foot a { color: var(--paper); }
.foot .lockup, .foot .mark { color: var(--paper); }
.foot .lockup-studio { color: var(--sage); display: inline; } /* no rodapé há espaço: o «studio» aparece sempre */
/* Rodapé compacto: tudo ao centro, links lado a lado em linhas que partem sozinhas quando não cabem. */
.foot-in { display: grid; justify-items: center; gap: 18px; }
.foot-brand .lockup { justify-content: center; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.foot-row a { padding: 4px 0; }
.foot-legal { font-size: 13px; gap: 2px 18px; }
@media (max-width: 560px) { .foot-row .foot-mail { flex-basis: 100%; text-align: center; } } /* no telemóvel o email fica numa linha e Instagram e LinkedIn juntos por baixo */
.foot-legal a { color: var(--sage); }
.foot-fine { width: 100%; margin-top: 6px; padding-top: 18px; border-top: 1px solid rgba(191, 216, 200, 0.25); font-size: 13px; line-height: 20px; }

/* Páginas de texto (legais, notas, 404) */
.band-doc { padding-top: 40px; }
.doc > :first-child { margin-top: 0; }
.notes .note:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 22px; line-height: 28px; letter-spacing: -0.01em; margin-top: 40px; }
.doc > p, .doc > ul { margin-top: 14px; max-width: 42em; }
.doc.center > p { margin-left: auto; margin-right: auto; }
.doc ul { display: grid; gap: 10px; }
.doc ul li { padding-left: 18px; position: relative; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
.doc strong { color: var(--forest); font-weight: 600; }
.doc .intro { max-width: 34em; }
/* Páginas de texto longo (legais e notas): títulos e datas ao centro, como a faixa verde; parágrafos à esquerda para se lerem bem. */
.doc h2, .notes .label, .notes .fine { text-align: center; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Página de ligações (biografia das redes) */
.bare { background: var(--mint); --bg: var(--mint); }
.linkpage { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 48px 0; text-align: center; }
.linkpage .wrap { max-width: 440px; }
.link-mark .mark { width: 96px; margin: 0 auto 12px; }
.link-name { font-size: 40px; letter-spacing: -0.04em; margin-bottom: 10px; }
.link-list { display: grid; gap: 12px; margin-top: 28px; }
.link-list .btn { width: 100%; min-height: 56px; }
.bare .btn-ghost:hover { background: var(--paper); }

/* Notas (P40) */
.notes .note { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--sage); scroll-margin-top: 96px; }
.notes .note h2 { margin-top: 8px; font-size: 28px; line-height: 34px; }
.notes .note > p { margin-top: 14px; max-width: 42em; }
.notes .note .fine a { overflow-wrap: anywhere; }

/* Computador grande: menu de topo à vista, sem ☰ */
@media (max-width: 1180px) {
  .links { display: none; }
  .menu-btn { display: flex; }
}
@media (min-width: 1181px) { .menu { display: none !important; } }

/* Telemóvel e tablet */
@media (max-width: 820px) {
  :root { --top-h: 60px; }
  /* Telemóvel: as secções ficam mais juntas. As regras com duas classes garantem que estes valores ganham ao «.band» geral. */
  .band { padding: 40px 0; }
  .band.band-cases { padding: 40px 0 16px; }
  .band.band-try { padding: 16px 0 0; }
  #how.band { padding-top: 32px; }
  .band.band-faq, .band.band-form, .band.band-doc { padding-top: 32px; }
  .hero { padding: 36px 0 44px; }
  .hero-mark { right: -80px; top: -24px; }
  .hero-mark .mark { width: 280px; }
  .top-cta { display: none; }
  .swipe { display: block; }
  .cases { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -20px 0; padding: 0 24px 10px; scrollbar-width: none; }
  .cases::-webkit-scrollbar { display: none; }
  .cases > li { flex: 0 0 min(300px, 82%); scroll-snap-align: center; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .foot { padding-bottom: 88px; } /* espaço para a seta de voltar ao topo não tapar o texto */
  /* barra de baixo: preço e pedido sempre à mão */
  .has-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .has-bar .bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; min-height: 84px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--sage); align-items: center; justify-content: space-between; gap: 12px; }
  .bar p { display: flex; flex-direction: column; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
  .bar strong { font: 700 18px/24px var(--display); color: var(--forest); }
  .bar .btn { min-height: 48px; padding: 0 20px; white-space: nowrap; }
  .menu-open .bar { display: none; }
  .has-bar .to-top { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .cases { margin: 18px -16px 0; padding: 0 20px 10px; }
  .lockup-text { font-size: 18px; }
  .lockup .mark { width: 28px; height: 28px; }
  .top-in { gap: 8px; }
  .form { padding: 20px; }
  .game { padding: 28px 16px; }
  .lead { font-size: 18px; line-height: 28px; }
}
@media (max-width: 380px) {
  .lockup-studio { display: none; }
}

/* Experimenta: carregar em «Pagar» sem código postal destaca o campo (sem sombras, só contorno âmbar) */
#g-cp.need { outline: 3px solid var(--amber); outline-offset: 1px; animation: nudge .3s ease 2; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
@media (prefers-reduced-motion: reduce) { #g-cp.need { animation: none; } }
