/* Fontes hospedadas no próprio site (variáveis, subconjunto latino; licença OFL em /assets/fonts).
   Sem Google Fonts: o visitante não envia o IP a terceiros só para carregar a fonte. */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-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: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/outfit-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;
}

/* beerXP — site institucional.
   Tokens da marca (docs/design-system.md v2): XP sempre âmbar #F6A821; nunca hex solto fora daqui. */

:root {
  --bg-dark: #141210;
  --bg-cream: #fffdf8;
  --surface: #fbf2df;
  --line: #e8dcc4;
  --line-dark: #3a2e20;
  --ink: #2a1e12;
  --ink-soft: #4a3f33;
  --brown: #4a3418;
  --text-cream: #fff6e3;
  --muted: #6e6355;
  --muted-2: #8a7b66;
  --muted-dark: #c9bfb2;
  --muted-dark-2: #9c9184;
  --amber: #f6a821;
  --amber-hover: #ffc14d;
  --amber-text: #c87e1b;
  --tier-1: #c8bcac;
  --tier-2: #c68c4b;
  --tier-3: #e09414;
  --tier-6: #1c1510;
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--amber-text); text-decoration: none; }
a:hover { color: var(--amber); }
a:focus-visible, .btn:focus-visible, .store:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-cream); color: var(--ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--font-mono); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 700; z-index: 50; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 20; background: rgba(20, 18, 16, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); }
.header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-cream); }
.brand:hover { color: var(--text-cream); }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.brand-name b, .xp { color: var(--amber); font-weight: inherit; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted-dark); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text-cream); }
.nav a.btn { color: var(--ink); }
/* Celular: uma linha só (marca, idioma, Entrar). Os links de seção saem; a página é curta e o
   cabeçalho é fixo, então três linhas comeriam metade da tela. */
@media (max-width: 720px) {
  .header .wrap { flex-wrap: nowrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .nav { gap: 10px; flex-wrap: nowrap; }
  .nav a:not(.lang):not(.btn) { display: none; }
  .nav a.btn { padding: 8px 16px; font-size: 14px; }
  .nav a { white-space: nowrap; }
  .brand-name { font-size: 20px; }
}
@media (max-width: 360px) {
  .header .wrap { gap: 8px; }
  .nav { gap: 6px; }
  .brand svg { width: 28px; height: auto; }
  .brand-name { font-size: 18px; }
  .nav a.lang { padding: 4px 8px 4px 6px; gap: 6px; }
  .nav a.btn { padding: 7px 12px; gap: 6px; }
}

/* ── Botões ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: var(--ink); font-size: 15px; font-weight: 700; border-radius: 999px; padding: 10px 20px; }
.btn:hover { background: var(--amber-hover); color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; padding: 12px 24px 12px 18px; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-top { font-size: 11px; font-weight: 600; }
.store-name { font-size: 18px; font-weight: 800; }
.store--light { background: var(--text-cream); color: var(--ink); }
.store--light .store-top { color: var(--muted); }
.store--dark { background: var(--ink); color: var(--text-cream); }
.store--dark .store-top { color: var(--muted-dark); }
a.store--light:hover { background: #fff; color: var(--ink); }
a.store--dark:hover { background: var(--bg-dark); color: var(--text-cream); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { background: var(--bg-dark); color: var(--text-cream); overflow: hidden; }
.hero .wrap { padding-top: 72px; padding-bottom: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; }
.hero-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 28px; padding-bottom: 88px; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 14px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 span { color: var(--amber); }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted-dark); max-width: 520px; text-wrap: pretty; }
.hero-note { font-size: 15px; color: var(--muted-dark-2); }
.hero-note a { color: var(--amber); font-weight: 700; }
.hero-note a:hover { color: var(--amber-hover); }

.hero-visual { flex: 0 1 420px; display: flex; justify-content: center; position: relative; min-width: 320px; }
.hero-disc { position: absolute; left: 50%; border-radius: 50%; }
.hero-disc--big { bottom: -140px; width: 560px; height: 560px; margin-left: -280px; background: var(--ink); }
.hero-disc--glow { bottom: -60px; width: 400px; height: 400px; margin-left: -200px; background: var(--amber); opacity: 0.16; }
.phone-clip { position: relative; width: 330px; height: 600px; overflow: hidden; }
.phone-scale { width: 393px; transform: scale(0.84); transform-origin: top left; }
.phone { position: relative; width: 393px; height: 852px; border-radius: 48px; overflow: hidden; background: var(--bg-cream); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.12); display: flex; flex-direction: column; }
.phone-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 126px; height: 37px; border-radius: 24px; background: #000; z-index: 3; }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 21px 34px 8px; font-family: -apple-system, system-ui, sans-serif; font-weight: 600; font-size: 17px; color: #000; }
.phone-status svg { display: block; }
.phone-home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 139px; height: 5px; border-radius: 100px; background: rgba(0, 0, 0, 0.25); }
.app-bar { padding: 12px 20px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.app-bar .brand-name { font-size: 20px; color: var(--ink); }
.app-level { margin-left: auto; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--amber); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.app-feed { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex: none; }
.avatar--amber { background: var(--amber); color: var(--ink); }
.avatar--dark { background: var(--ink); color: var(--text-cream); }
.avatar--tan { background: var(--tier-2); color: var(--ink); }
.post-who { display: flex; flex-direction: column; }
.post-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.post-name .lv { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--amber); }
.post-when { font-size: 12px; color: var(--muted-2); }
.xp-chip { margin-left: auto; font-family: var(--font-mono); font-size: 12px; font-weight: 600; background: var(--amber); color: var(--ink); border-radius: 999px; padding: 3px 10px; }
.post-photo { width: 100%; height: 150px; border-radius: 12px; background: linear-gradient(135deg, var(--amber) 0%, var(--tier-3) 45%, var(--brown) 100%); }
.post-beer { display: flex; align-items: center; gap: 10px; }
.post-beer-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.post-beer-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.post-beer-sub { font-size: 11px; color: var(--muted-2); }
.post-rating { font-size: 14px; font-weight: 700; color: var(--amber-text); }
.post-text { font-size: 14px; color: var(--ink); line-height: 1.45; }
.post-tags { display: flex; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 12px; }
.tag--plain { background: var(--text-cream); border: 1px solid var(--line); color: var(--muted); }
.tag--new { background: var(--ink); color: var(--amber); }
.levelup { position: absolute; left: -8px; top: 150px; display: flex; align-items: center; gap: 10px; background: var(--ink); border: 1px solid var(--line-dark); border-radius: 16px; padding: 12px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.levelup-text { display: flex; flex-direction: column; line-height: 1.2; }
.levelup-top { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark-2); }
.levelup-title { font-size: 15px; font-weight: 700; color: var(--text-cream); }

/* ── Como funciona ──────────────────────────────────────── */
.how { background: var(--amber); }
.how .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--amber); background: var(--ink); border-radius: 999px; padding: 6px 12px; }
.step-body { display: flex; flex-direction: column; gap: 4px; }
.step-title { font-size: 20px; font-weight: 800; }
.step-text { font-size: 15px; line-height: 1.45; color: var(--brown); }

/* ── Seções ─────────────────────────────────────────────── */
.section-anchor { scroll-margin-top: 72px; }
.features .wrap { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 96px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.feature { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.feature--reverse { flex-wrap: wrap-reverse; }
.feature-shot { flex: 1 1 420px; aspect-ratio: 4 / 3; min-height: 280px; min-width: 0; }
.feature-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.feature-tag { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--amber-text); }
.feature h3 { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.feature p { font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; padding-left: 0; margin: 0; list-style: none; }
.tier { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 6px 14px; color: var(--ink); }
.tier--1 { background: var(--tier-1); }
.tier--2 { background: var(--tier-2); }
.tier--3 { background: var(--tier-3); }
.tier--4 { background: var(--amber); }
.tier--5 { background: var(--brown); color: var(--text-cream); border: 2px solid var(--amber); padding: 4px 12px; }
.tier--6 { background: var(--tier-6); color: var(--amber); border: 2px solid var(--amber); padding: 4px 12px; }

/* Espaço reservado para print/foto: troque por <img> quando houver arte final. */
.shot { width: 100%; height: 100%; border-radius: 22px; background: var(--surface); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted-2); font-size: 14px; }
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-art { height: 64px; display: flex; align-items: center; gap: 6px; }
.card h3 { font-size: 22px; font-weight: 800; }
.card p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.icon-box { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.avatars { display: flex; align-items: center; }
.avatars .avatar { width: 48px; height: 48px; font-size: 15px; border: 3px solid var(--surface); }
.avatars .avatar + .avatar { margin-left: -12px; }

/* ── Por que ────────────────────────────────────────────── */
.why { background: var(--bg-dark); color: var(--text-cream); }
.why .wrap { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 56px; }
.why-head { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.why-title { flex: 1 1 460px; display: flex; flex-direction: column; gap: 14px; }
.why .kicker { color: var(--amber); }
.why-intro { flex: 1 1 360px; font-size: 18px; line-height: 1.6; color: var(--muted-dark); text-wrap: pretty; }
.why-photo { aspect-ratio: 21 / 8; min-height: 240px; }
.why .shot { background: var(--ink); border-color: var(--line-dark); color: var(--muted-dark-2); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.pillar { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--amber); padding-top: 24px; }
.pillar h3 { font-size: 22px; font-weight: 800; }
.pillar p { font-size: 16px; line-height: 1.6; color: var(--muted-dark); }

/* ── Baixar ─────────────────────────────────────────────── */
.download { background: var(--amber); }
.download .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.download-copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.download h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.download p { font-size: 18px; line-height: 1.5; color: var(--brown); }
.download-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.download-link { font-size: 16px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.download-link:hover { color: var(--brown); }

/* ── Páginas legais ─────────────────────────────────────── */
.legal-hero { background: var(--bg-dark); color: var(--text-cream); }
.legal-hero .inner { max-width: 820px; margin: 0 auto; padding: 72px 24px 56px; display: flex; flex-direction: column; gap: 16px; }
.back { font-size: 14px; font-weight: 600; color: var(--muted-dark-2); }
.back:hover { color: var(--amber); }
.legal-hero h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.updated { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--muted-dark-2); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.legal-tabs a { font-size: 14px; font-weight: 700; border-radius: 999px; padding: 8px 16px; border: 1px solid var(--line-dark); color: var(--muted-dark); background: transparent; }
.legal-tabs a:hover { color: var(--text-cream); }
.legal-tabs a[aria-current="page"] { background: var(--amber); color: var(--ink); }
.article { max-width: 820px; width: 100%; margin: 0 auto; padding: 56px 24px 96px; display: flex; flex-direction: column; gap: 36px; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.article .intro { font-size: 19px; color: var(--ink); text-wrap: pretty; }
.article section { display: flex; flex-direction: column; gap: 10px; }
.article h2 { font-size: 24px; font-weight: 800; color: var(--ink); }
.article ul, .article ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article strong { color: var(--ink); }
.article a { font-weight: 700; }
.article .small { font-size: 15px; color: var(--muted); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; color: var(--ink); }
/* Marcador de pendência jurídica: o deploy de produção falha enquanto existir (scripts/check.sh --release). */
.todo-legal { background: #ffe58a; color: #5a3b00; padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--bg-dark); color: var(--muted-dark); border-top: 1px solid var(--line-dark); }
.footer .wrap { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.footer-brand .brand-name { font-size: 26px; color: var(--text-cream); }
.footer-brand span:last-child { font-size: 15px; color: var(--muted-dark-2); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .kicker { font-size: 11px; color: var(--muted-dark-2); }
.footer-col a { color: var(--text-cream); font-size: 15px; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-dark); padding-top: 24px; font-size: 13px; color: var(--muted-dark-2); }
.age { display: inline-flex; align-items: center; gap: 10px; }
.age-badge { font-family: var(--font-mono); font-weight: 700; color: var(--ink); background: var(--amber); border-radius: 999px; padding: 2px 8px; }

/* ── 404 ────────────────────────────────────────────────── */
.notfound { flex: 1; background: var(--bg-dark); color: var(--text-cream); display: flex; align-items: center; justify-content: center; text-align: center; padding: 96px 24px; }
.notfound .inner { display: flex; flex-direction: column; gap: 20px; align-items: center; max-width: 520px; }
.notfound h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em; }
.notfound p { color: var(--muted-dark); font-size: 18px; }

.phone-icons { display: flex; gap: 7px; align-items: center; }

/* Seletor de idioma (PT/EN) */
.nav a.lang { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 12px 5px 8px; color: var(--muted-dark); }
.nav a.lang:hover { color: var(--text-cream); border-color: var(--muted-dark-2); }

/* Bandeiras em SVG por código de país (nunca emoji) */
.flag { display: block; flex: none; width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }

/* ── Micro-animações (CSS puro, sem JS) ─────────────────────────────────────
   Melhoria progressiva: sem suporte a animation-timeline (ex.: Firefox) a página fica estática e
   completa. Tokens de motion do app (docs/design-system.md): fast 120ms, base 240ms, celebrate
   600ms, curva (0.2, 0, 0, 1). `celebrate` (mola) só no chip de level-up, como no app — nunca como
   isca. Reduced motion: só um fade de 120ms. Usa as propriedades `translate`/`scale` (e não
   `transform`) para não brigar com os efeitos de hover. */
:root {
  --motion-fast: 120ms;
  --motion-base: 240ms;
  --motion-celebrate: 600ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-celebrate: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop-in { from { opacity: 0; translate: -12px 0; scale: 0.82; } to { opacity: 1; translate: 0 0; scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-visual { animation: fade var(--motion-fast) linear both; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Interação (hover/foco) */
  .btn, .store, .card, .download-link, .nav a, .legal-tabs a {
    transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard),
      color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard);
  }
  .btn:hover, a.store:hover { transform: translateY(-2px); }
  .card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(42, 30, 18, 0.1); }

  /* Entrada do hero (ao carregar) */
  .hero-copy > * { animation: rise var(--motion-base) var(--ease-standard) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .hero-visual { animation: rise var(--motion-base) var(--ease-standard) 120ms both; }
  .levelup { animation: pop-in var(--motion-celebrate) var(--ease-celebrate) 700ms both; }

  /* Rolagem */
  @supports (animation-timeline: view()) {
    @keyframes reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
    @keyframes pop { from { opacity: 0; scale: 0.9; } to { opacity: 1; scale: 1; } }
    @keyframes drift { to { translate: 0 -48px; } }
    @keyframes header-shadow { to { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); } }
    @keyframes xp-fill { to { transform: scaleX(1); } }

    /* Blocos entram ao aparecer na tela */
    .section-head, .feature-copy, .feature-shot, .why-head, .why-photo, .pillar, .card, .download-copy, .download-cta {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
    /* Escalonamento dentro de grupos */
    .card:nth-child(2), .pillar:nth-child(2) { animation-range: entry 12% entry 52%; }
    .card:nth-child(3), .pillar:nth-child(3) { animation-range: entry 19% entry 59%; }
    .tier { animation: pop linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .tier:nth-child(2) { animation-range: entry 4% entry 59%; }
    .tier:nth-child(3) { animation-range: entry 8% entry 63%; }
    .tier:nth-child(4) { animation-range: entry 12% entry 67%; }
    .tier:nth-child(5) { animation-range: entry 16% entry 71%; }
    .tier:nth-child(6) { animation-range: entry 20% entry 75%; }

    /* Celular do hero sobe devagar enquanto a página rola */
    .phone-clip { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 700px; }

    /* Cabeçalho ganha sombra ao rolar; a linha âmbar é uma barra de XP que enche com a rolagem */
    .header { animation: header-shadow linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    .header::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -1px;
      width: 100%;
      height: 2px;
      background: var(--amber);
      transform: scaleX(0);
      transform-origin: left;
      animation: xp-fill linear both;
      animation-timeline: scroll(root);
    }
  }
}

/* ── Seção de IA ────────────────────────────────────────────────────────── */
.ai { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai .wrap { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 56px; }
.ai .card { background: var(--bg-cream); }
.ai-note { max-width: 680px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.ai-note a { font-weight: 700; }

/* ── Ilustração do mapa (seção "Perto de você") ─────────────────────────── */
.map-mock { position: relative; width: 100%; height: 100%; min-height: 280px; border-radius: 22px; overflow: hidden; background: var(--ink); border: 1px solid var(--line-dark); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-card { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; background: var(--bg-cream); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.map-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.map-card-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.map-card-sub { font-size: 12px; color: var(--muted-2); }
.map-card-chip { font-size: 12px; font-weight: 700; background: var(--ink); color: var(--amber); border-radius: 999px; padding: 6px 14px; flex: none; }

/* ── Ilustração do Passaporte (baseada no ui-spec da aba Passaporte) ─────── */
.feature-shot--auto { aspect-ratio: auto; min-height: 0; }
.passport-mock { width: 100%; background: var(--bg-cream); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 48px rgba(42, 30, 18, 0.1); }
.pp-head { display: flex; align-items: center; gap: 18px; }
.pp-ring { position: relative; width: 96px; height: 96px; flex: none; }
.pp-ring svg { display: block; }
.pp-ring-score { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 19px; font-weight: 700; color: var(--ink); }
.pp-head-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pp-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.pp-title { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pp-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pp-stat b { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--ink); }
.pp-stat span { font-size: 11px; color: var(--muted-2); }
.pp-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-pill { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 7px 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.pp-pill--on { background: var(--ink); border-color: var(--ink); color: var(--text-cream); }
.pp-beer { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.pp-beer-img { width: 56px; height: 56px; border-radius: 12px; flex: none; background: linear-gradient(135deg, var(--amber) 0%, var(--tier-3) 45%, var(--brown) 100%); }
.pp-beer-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pp-beer-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.pp-beer-sub { font-size: 12px; color: var(--muted); }
.pp-beer-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted-2); }
.pp-beer-rate { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.pp-beer-rate b { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--amber-text); }
.pp-beer-rate span { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.flag--sm { width: 18px; height: 12px; border-radius: 2px; }
.pp-next { border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pp-next-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted-2); }
.pp-next-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--ink); }
.pp-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.pp-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pp-bar-fill { display: block; width: 70%; height: 100%; border-radius: 999px; background: var(--amber); transform-origin: left; }
.pp-next-sub { font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .pp-stat b { font-size: 16px; } .pp-title { font-size: 19px; } }

/* Anel e barra enchem conforme o bloco entra na tela (XP, nunca celebração) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes ring-fill { from { stroke-dasharray: 0 264; } to { stroke-dasharray: 190 264; } }
    @keyframes bar-fill { from { scale: 0 1; } to { scale: 1 1; } }
    .pp-ring-fill { animation: ring-fill linear both; animation-timeline: view(); animation-range: entry 15% entry 75%; }
    .pp-bar-fill { animation: bar-fill linear both; animation-timeline: view(); animation-range: entry 25% entry 85%; }
  }
}

/* ── Ilustração do drink-in (baseada no formulário do app) ───────────────── */
.drinkin-mock { width: 100%; background: var(--bg-cream); border: 1px solid var(--line); border-radius: 22px; padding: 14px 22px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 48px rgba(42, 30, 18, 0.1); }
.dm-grabber { align-self: center; width: 44px; height: 5px; border-radius: 999px; background: var(--line); }
.dm-beer { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.dm-beer-img { width: 48px; height: 48px; border-radius: 12px; flex: none; background: linear-gradient(135deg, var(--amber) 0%, var(--tier-3) 45%, var(--brown) 100%); }
.dm-beer-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dm-beer-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.dm-beer-sub { font-size: 12px; color: var(--muted); }
.dm-field { display: flex; flex-direction: column; gap: 8px; }
.dm-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.dm-score { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--amber); }
.dm-mugs { display: flex; gap: 10px; }
.mug { display: block; flex: none; opacity: 0.55; }
.mug--on { opacity: 1; }
.dm-notes { min-height: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.dm-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-photo, .dm-place { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 9px 16px; border: 1px solid var(--line); color: var(--ink); background: var(--bg-cream); }
.dm-place { background: var(--surface); }
.dm-cta { text-align: center; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--amber); border-radius: 999px; padding: 13px 20px; }

/* ── Ilustração "Por que beerXP" (brinde) ───────────────────────────────── */
.why-art { width: 100%; height: 100%; min-height: 240px; border-radius: 22px; overflow: hidden; background: var(--ink); border: 1px solid var(--line-dark); }
.why-art svg { display: block; width: 100%; height: 100%; }
.spark { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes clink-l { from { translate: -34px 0; } to { translate: 0 0; } }
    @keyframes clink-r { from { translate: 34px 0; } to { translate: 0 0; } }
    @keyframes spark-in { from { opacity: 0; scale: 0.3; } to { opacity: 1; scale: 1; } }
    .glass--l { animation: clink-l linear both; animation-timeline: view(); animation-range: entry 20% entry 85%; }
    .glass--r { animation: clink-r linear both; animation-timeline: view(); animation-range: entry 20% entry 85%; }
    .spark { animation: spark-in linear both; animation-timeline: view(); animation-range: entry 70% entry 100%; }
  }
}

/* Celular: os respiros de desktop (112/96px por seção) viram rolagem demais numa tela estreita.
   Fica no fim do arquivo para vencer as regras base de cada seção (mesma especificidade). */
@media (max-width: 720px) {
  .hero .wrap { padding-top: 40px; gap: 32px; }
  .hero-copy { gap: 22px; padding-bottom: 0; }
  .how .wrap { padding-top: 28px; padding-bottom: 28px; gap: 24px; }
  .features .wrap, .why .wrap, .ai .wrap { padding-top: 64px; padding-bottom: 64px; }
  .features .wrap { gap: 40px; }
  .why .wrap, .ai .wrap { gap: 36px; }
  .feature { gap: 32px; }
  .why-head { gap: 28px; }
  .pillars { gap: 28px; }
  .download .wrap { padding-top: 56px; padding-bottom: 56px; gap: 28px; }
  .footer .wrap { padding-top: 40px; padding-bottom: 32px; gap: 28px; }
  .legal-hero .inner { padding: 40px 24px 32px; }
  .article { padding: 36px 24px 56px; gap: 28px; }
  .notfound { padding: 64px 24px; }
}

/* Celulares estreitos (320–360px): o mock do hero tinha largura mínima de 320px e passava da tela. */
@media (max-width: 360px) {
  .hero-visual { min-width: 0; flex-basis: 100%; }
  .phone-clip { width: 272px; height: 500px; }
  .phone-scale { transform: scale(0.69); }
}

/* ── Voltar ao topo ─────────────────────────────────────── */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 15; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28); }
.to-top:hover { background: var(--amber-hover); color: var(--ink); }
.to-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--text-cream), 0 8px 20px rgba(0, 0, 0, 0.28); }
@media (min-width: 721px) { .to-top { right: 28px; bottom: 28px; width: 48px; height: 48px; } }
/* Só aparece depois de rolar um pouco (e some do teclado e do leitor de tela enquanto está no topo,
   por causa do visibility). Sem animation-timeline (ex. Firefox) o botão fica sempre visível. */
@supports (animation-timeline: scroll()) {
  @keyframes to-top-show { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
  .to-top { animation: to-top-show linear both; animation-timeline: scroll(root); animation-range: 400px 560px; }
}
