/* Bucks: o site público (página inicial, legais, apoio).
   A mesma paleta da app: fundo quase preto, um só acento lima, Figtree.
   A letra é servida daqui (fonts/), para o site não pedir nada a terceiros. */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/figtree-latin.woff2) format('woff2');
}

:root {
  --bg: #0B0B0C;
  --panel: #141416;
  --card: #1C1C1F;
  --card-2: #232327;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #FFFFFF;
  --muted: #B3B3B8;
  --dim: #85858D;
  --lime: #C8F560;
  --lime-ink: #0B0B0C;
  --lime-soft: rgba(200, 245, 96, 0.12);
  --coral: #FF6B5B;
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--lime-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Cabeçalho ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.wordmark { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; line-height: 1; }
.wordmark i { font-style: normal; color: var(--lime); }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.site-nav a:hover { color: var(--text); background: var(--card); }
.site-nav a.cta { color: var(--lime-ink); background: var(--lime); }
.site-nav a.cta:hover { background: #d6fb7c; }
@media (max-width: 720px) {
  .site-nav a:not(.cta) { display: none; }
  .site-nav a.cta { font-size: 14px; padding: 8px 14px; }
}

/* ---------- Botões e formulário ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s;
}
.btn:active { transform: scale(0.97); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #d6fb7c; }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--card-2); }
.btn[disabled] { opacity: .6; cursor: progress; }

.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; max-width: 560px; }
.waitlist input[type=email], .waitlist select {
  height: 52px; min-width: 0; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); padding: 0 20px; font-size: 16px; font-weight: 500;
}
.waitlist select { padding: 0 36px 0 18px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23B3B3B8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.waitlist input::placeholder { color: var(--dim); }
.waitlist input:focus, .waitlist select:focus { outline: none; border-color: var(--lime); }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 12px 0 0; font-size: 14px; color: var(--dim); max-width: 560px; }
.form-note a { color: var(--muted); }
.form-msg { margin: 12px 0 0; font-size: 15px; font-weight: 600; min-height: 0; max-width: 560px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--lime); }
.form-msg.err { color: var(--coral); }
@media (max-width: 560px) {
  .waitlist { grid-template-columns: minmax(0, 1fr) auto; }
  .waitlist input[type=email] { grid-column: 1 / -1; }
  .waitlist select { width: 100%; }
}

/* ---------- Telemóvel (moldura dos ecrãs) ---------- */
.phone {
  position: relative; width: 280px; aspect-ratio: 402 / 874;
  border-radius: 46px; padding: 9px; background: #1B1B1E;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09) inset, 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px #000;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }

/* ---------- Herói ---------- */
.hero { padding: 56px 0 24px; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: -64px 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 75% 35%, rgba(200,245,96,.13), transparent 70%),
              radial-gradient(40% 40% at 10% 10%, rgba(139,123,255,.10), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.eyebrow svg { flex: none; }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 20px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--lime); }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 32px; max-width: 30em; text-wrap: pretty; }
.hero-alt { margin: 20px 0 0; font-size: 15px; color: var(--dim); }
.hero-alt a { color: var(--text); font-weight: 600; }

.stack { position: relative; height: 640px; }
.stack .phone { position: absolute; top: 50%; left: 50%; }
.stack .p1 { transform: translate(-50%, -50%); z-index: 3; width: 290px; }
.stack .p2 { transform: translate(-112%, -46%) rotate(-7deg); z-index: 2; width: 250px; opacity: .92; }
.stack .p3 { transform: translate(12%, -46%) rotate(7deg); z-index: 1; width: 250px; opacity: .92; }
.stack-caption { text-align: center; font-size: 13px; color: var(--dim); margin: 8px 0 0; }

@media (max-width: 960px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stack { height: 520px; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); }
  .stack .p1 { width: 232px; }
  .stack .p2, .stack .p3 { width: 200px; }
  .stack .p2 { transform: translate(-118%, -46%) rotate(-7deg); }
  .stack .p3 { transform: translate(18%, -46%) rotate(7deg); }
}
@media (max-width: 420px) {
  .lede { font-size: 18px; }
  .stack { height: 480px; }
  .stack .p1 { width: 214px; }
  .stack .p2, .stack .p3 { width: 184px; }
}

/* ---------- Secções ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 0 48px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); margin: 0 0 12px; }
h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 800; margin: 0 0 12px; }
.section-head p, .feature p { color: var(--muted); margin: 0; text-wrap: pretty; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* As funcionalidades: texto e ecrã lado a lado, alternando. */
.features { display: grid; gap: 24px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 48px 56px; overflow: hidden;
}
.feature:nth-child(even) .feature-shot { order: -1; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot .phone { width: 260px; }
.feature-shot.pair { gap: 16px; }
.feature-shot.pair .phone { width: 220px; }
.feature-shot.pair .phone:last-child { margin-top: 48px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.feature li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--muted); font-size: 16px; }
.feature li::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--lime); margin: 9px 0 0 4px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--lime-ink); background: var(--lime); border-radius: 999px; padding: 3px 10px; margin: 0 0 16px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); padding: 32px 24px 0; gap: 28px; border-radius: 24px; }
  .feature:nth-child(even) .feature-shot { order: 0; }
  .feature-shot { max-height: 400px; overflow: hidden; align-items: flex-start; }
  .feature-shot .phone { width: 240px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .feature-shot.pair .phone { width: 180px; }
  .feature-shot.pair .phone:last-child { margin-top: 32px; }
}
@media (max-width: 400px) {
  .feature-shot.pair { gap: 10px; }
  .feature-shot.pair .phone { width: 150px; border-radius: 30px; padding: 6px; }
  .feature-shot.pair .phone img { border-radius: 25px; }
}

/* As promessas de privacidade. */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promise { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.promise .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--lime-soft); display: grid; place-items: center; margin: 0 0 20px; }
.promise h3 { font-size: 19px; margin: 0 0 8px; }
.promise p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .promises { grid-template-columns: minmax(0, 1fr); } .promise { padding: 24px; } }

/* O fecho com a lista de espera. */
.join {
  background: linear-gradient(135deg, #1E2410, #141416 60%); border: 1px solid rgba(200,245,96,.22);
  border-radius: 32px; padding: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
}
.join h2 { margin-bottom: 12px; }
.join p.sub { color: var(--muted); margin: 0 0 28px; }
.join .icon-big { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
@media (max-width: 860px) { .join { grid-template-columns: minmax(0, 1fr); padding: 36px 24px; border-radius: 24px; } .join .icon-big { display: none; } }

/* ---------- Rodapé ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 64px; color: var(--dim); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }

/* ---------- Páginas de texto (legais, apoio) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 24px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); margin-bottom: 12px; }
.doc .meta { color: var(--dim); margin: 0 0 40px; font-size: 15px; }
.doc h2 { font-size: 26px; margin: 48px 0 12px; letter-spacing: -0.02em; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: #D6D6DA; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin: 0 0 8px; }
.doc a { color: var(--lime); text-underline-offset: 3px; }
.doc strong { color: var(--text); }
.doc .box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 0 0 24px; }
.doc .box p:last-child, .doc .box ul:last-child, .doc .box ol:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: #D6D6DA; }
.doc th { color: var(--text); font-weight: 700; }
.ph { background: rgba(255, 181, 71, .16); color: #FFCB7A; border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.doc details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; margin: 0 0 10px; }
.doc summary { cursor: pointer; font-weight: 700; padding: 16px 0; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: '+'; color: var(--lime); font-size: 22px; line-height: 1; }
.doc details[open] summary::after { content: '\2212'; }
.doc details > *:not(summary) { margin-top: 0; }
.doc details[open] { padding-bottom: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; margin: 0 0 14px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 15px; display: grid; place-items: center; margin-top: 1px; }

/* ---------- Aparecer ao rolar (só com JS e sem movimento reduzido) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Tabelas no telemóvel: cada linha vira um bloco, para não espremer colunas. */
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { color: var(--text); margin-bottom: 4px; }
  .doc table.cols3 td:nth-child(3) { color: var(--dim); font-size: 14px; margin-top: 4px; }
  .doc table.cols3 td:nth-child(3)::before { content: 'Legal basis: '; }
}

/* O logo do Bucks (carteira-B + nome), 10-Out-2026 */
.wordmark .logo { display: block; height: 30px; width: auto; }
