/* Landing page do bear2me (/lp) — páginas ESTÁTICAS, sem build.
   Tokens: Figma "Landing page" (coleção LP · Cores). Página da comunidade usa
   a paleta do app (amarelo/mel); as de negócios (body.business) usam a paleta
   comercial (laranja/azul-marinho). Tema escuro pelo SO (não está no Figma). */

/* shortcut: as fontes são os TTF do próprio build do Flutter (~180 KB por peso);
   trocar por WOFF2 com subset se o carregamento da landing virar problema. */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url('/assets/assets/fonts/Montserrat-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('/assets/assets/fonts/Montserrat-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('/assets/assets/fonts/Montserrat-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('/assets/assets/fonts/Montserrat-ExtraBold.ttf') format('truetype'); }

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --bg-section: #F7F3EF;
  --bg-highlight: #F5EDDF;
  --bg-honey: #F3E6CE;
  --bg-footer: #F7F3EF;
  --band: #311C02;
  --frame: #311C02;
  --text: #4A4A4A;
  --text-strong: #311C02;
  --text-muted: #6F7276;
  --border: #E3E4E5;
  --orange: #D56300;
  --orange-text: #B35300;
  --yellow: #FEDD63;
  --brown: #623804;
  --action: #FEDC62;
  --action-text: #000000;
  --disabled: #C1C2C3;
  --error: #B00020;
  --error-border: #FF0000;
  --ok-bg: #E7F3E7;
  --ok-text: #005700;
  --warn-bg: #FEF3E2;
  --warn-border: #FDE68A;
  --field-bg: #FFFFFF;
  --card: #FFFFFF;
}
body.business {
  --bg-section: #EFEFF7;
  --bg-footer: #EFEFF7;
  --band: #16233F;
  --text: #1F2430;
  --text-strong: #16233F;
  --text-muted: #686E7B;
  --border: #ECECEC;
  --action: #D56300;
  --action-text: #FFFFFF;
  --chip: #E0E0EE;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E0E;
    --bg-section: #171513;
    --bg-highlight: #231E17;
    --bg-honey: #2A2218;
    --bg-footer: #121110;
    --band: #231503;
    --frame: #4A3A28;
    --text: #CFCBC6;
    --text-strong: #FFFFFF;
    --text-muted: #9A9DA1;
    --border: #2E2C2A;
    --orange-text: #F08A2E;
    --error: #FF8A9B;
    --ok-bg: #12301A;
    --ok-text: #9BE0A8;
    --warn-bg: #33270F;
    --warn-border: #6B5510;
    --field-bg: #1B1917;
    --card: #1B1917;
  }
  body.business {
    --bg: #0B101C;
    --bg-section: #111829;
    --bg-footer: #0B101C;
    --band: #16233F;
    --text: #C9CEDA;
    --text-strong: #FFFFFF;
    --text-muted: #8D94A3;
    --border: #26304A;
    --field-bg: #16203A;
    --card: #16203A;
    --chip: #26304A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.15; }
h1 { font-size: 36px; font-weight: 800; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }
.lead { font-size: 18px; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 8px; }
section { padding: 56px 0; }
.section-alt { background: var(--bg-section); }

/* Navegação */
.nav { background: var(--bg); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--brown); }
@media (prefers-color-scheme: dark) { .nav-links a:not(.btn) { color: var(--yellow); } }
body.business .nav { background: #000; }
body.business .nav-links a:not(.btn) { color: #C9CEDA; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo .emblem { width: 44px; height: 44px; }
.logo .wordmark { height: 24px; width: auto; }
.logo .wordmark.on-dark, body.business .nav .wordmark.on-light { display: none; }
body.business .nav .wordmark.on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  .logo .wordmark.on-light { display: none; }
  .logo .wordmark.on-dark { display: block; }
}
/* Cabeçalho claro dentro das páginas de negócios (formulário) */
body.business .nav.plain { background: var(--bg); }
body.business .nav.plain .nav-links a:not(.btn) { color: var(--text-strong); }
body.business .nav.plain .wordmark.on-light { display: block; }
body.business .nav.plain .wordmark.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  body.business .nav.plain .wordmark.on-light { display: none; }
  body.business .nav.plain .wordmark.on-dark { display: block; }
}
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .nav .btn { padding: 8px 14px; font-size: 14px; }
}
/* Tela estreita: nas páginas de negócios o cabeçalho leva link + botão, então fica só o emblema */
@media (max-width: 479px) { body.business .nav:not(.plain) .wordmark { display: none !important; } }
@media (max-width: 479px) {
  .nav .wordmark { height: 18px; }
  .nav .emblem { width: 36px; height: 36px; }
  .nav-links a:not(.btn) { white-space: normal; text-align: right; line-height: 1.25; }
}

/* Botões: desativado é cinza da plataforma com texto preto, nunca opacidade */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 12px; border: 2px solid transparent;
  font: 600 16px/1.25 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  background: var(--action); color: var(--action-text);
}
.btn-orange { background: var(--orange); color: #FFF; }
.btn-outline { background: transparent; color: var(--brown); border-color: var(--brown); }
@media (prefers-color-scheme: dark) { .btn-outline { color: var(--yellow); border-color: var(--yellow); } }
.on-band .btn-outline, body.business .btn-outline { color: #FFF; border-color: #FFF; }
body.business .btn-outline.on-page { color: var(--text-strong); border-color: var(--text-strong); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--disabled); color: #000; cursor: not-allowed; }
.btn-block { width: 100%; }

/* Hero da comunidade */
.hero { background: var(--bg-section); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--bg-honey); color: var(--brown); font-size: 12px; font-weight: 600; margin-bottom: 20px; }
@media (prefers-color-scheme: dark) { .pill { color: var(--yellow); } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-bottom: 24px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 12px; margin-bottom: 16px; }
.store-badge { display: inline-block; height: 48px; }
.store-badge img { height: 100%; width: auto; }
/* os PNG oficiais do Google Play foram recortados (vinham com margem transparente) */
.store-soon { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px dashed var(--text-muted); font-size: 14px; font-weight: 600; color: var(--text-muted); }
.phone { justify-self: center; width: 260px; aspect-ratio: 1 / 2; border: 10px solid var(--frame); border-radius: 36px; background: var(--bg-honey); display: grid; place-items: center; overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Cards */
.cards { display: grid; gap: 20px; margin-top: 32px; }
.card { background: var(--bg-highlight); border-radius: 24px; padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card.accent::before { content: ''; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--orange); margin-bottom: 14px; }
body.business .card { background: var(--card); }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: var(--text-strong); font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.about p { max-width: 760px; margin-top: 16px; font-size: 18px; }

/* Faixa escura */
.band { background: var(--band); color: #FFF; text-align: center; }
.band h2 { color: var(--yellow); margin-bottom: 16px; }
body.business .band h2, body.business .band h1 { color: #FFF; }
.band p { max-width: 720px; margin: 0 auto; font-size: 18px; }
.band .btn { margin-top: 24px; }

/* Chamada para negócios */
.cta-card { background: var(--bg-honey); border-radius: 24px; padding: 32px 24px; display: grid; gap: 24px; align-items: center; }
.cta-card h2 { margin-bottom: 12px; }

/* Rodapé */
footer { background: var(--bg-footer); padding: 40px 0 24px; font-size: 14px; }
.foot { display: grid; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.foot-links a { color: var(--text-strong); }
.age { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--text-muted); font-size: 12px; max-width: 380px; }
.age-badge { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--text-strong); color: var(--text-strong); font-size: 11px; font-weight: 800; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.lang-select { font: inherit; font-size: 12px; color: var(--text); background: var(--field-bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }

/* Negócios: hero */
.biz-hero { background: var(--band); color: #FFF; }
.biz-hero .wrap { display: grid; gap: 40px; align-items: center; }
.biz-hero h1 { color: #FFF; margin-bottom: 16px; }
.biz-hero .eyebrow { color: var(--yellow); }
.biz-hero .lead { color: #D9DDE7; max-width: 520px; margin-bottom: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Negócios: tópicos, assinatura, FAQ */
.checks { display: grid; gap: 24px; margin-top: 32px; list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 40px; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #FFF; font-size: 14px; font-weight: 700; }
.checks strong { display: block; color: var(--text-strong); }
.plan { background: var(--card); border-radius: 24px; padding: 24px; display: grid; gap: 24px; }
.plan h2 { margin-bottom: 12px; }
.tools { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.tools li { background: var(--bg-section); border-radius: 12px; padding: 12px 16px; }
.tools strong { display: block; color: var(--text-strong); }
.price { background: var(--band); color: #FFF; border-radius: 16px; padding: 24px; align-self: start; }
.price .value { font-size: 28px; font-weight: 800; line-height: 1.2; margin: 6px 0; overflow-wrap: anywhere; }
.price .btn { margin: 16px 0 12px; }
.price .small { color: #C9CEDA; }
.faq { max-width: 760px; margin: 24px auto 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 20px; font-weight: 700; color: var(--text-strong); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 12px; color: var(--orange-text); font-size: 20px; font-weight: 700; }
.faq details[open] { background: var(--bg-section); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 20px 16px; }

/* Formulário de pré-cadastro */
.form-page { background: var(--bg-section); }
.form-card { background: var(--card); border-radius: 24px; padding: 24px 20px; margin-top: 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
legend { padding: 0; font-size: 18px; font-weight: 700; color: var(--text-strong); margin-bottom: 12px; }
.field { margin-bottom: 20px; }
.field label, .sub-title { display: block; font-size: 14px; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=file]), .field select {
  width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--field-bg); color: var(--text-strong); font: inherit;
}
.field input::placeholder { color: var(--text-muted); }
.field [aria-invalid="true"] { border-color: var(--error-border); }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.err { font-size: 12px; font-weight: 600; color: var(--error); margin-top: 6px; }
.box { background: var(--bg-section); border-radius: 16px; padding: 16px; }
.box .field:last-child { margin-bottom: 0; }
.row { display: grid; gap: 0 12px; }
.or { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 12px; color: var(--text-muted); }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.drop { border: 2px dashed var(--text-strong); border-radius: 12px; padding: 20px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.drop.over { background: var(--bg-section); }
.drop .btn { margin: 12px 0 8px; }
.files { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-section); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.files .name { font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
.link-btn { background: none; border: 0; padding: 4px; font: inherit; font-size: 12px; font-weight: 700; color: var(--error); cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: #16233F; }
.check a { color: var(--orange-text); font-weight: 600; }
.alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--text-strong); }
.alert strong { display: block; }
.alert .btn { margin-top: 12px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 16px 0; }
.done .ok { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-text); font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.done ol { text-align: left; max-width: 420px; margin: 16px auto 24px; padding-left: 20px; }

/* Aviso de cookies de medição (só aparece com GA4/Pixel configurados) */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.consent .actions { margin-top: 12px; }
.consent .btn { padding: 8px 16px; font-size: 14px; }

@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  .lead { font-size: 20px; }
  section { padding: 80px 0; }
  .wrap { padding: 0 32px; }
  .hide-desktop { display: none !important; }
  .hero .wrap, .biz-hero .wrap { grid-template-columns: 1.4fr 1fr; }
  .phone { width: 300px; justify-self: end; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cta-card { grid-template-columns: 1fr auto; padding: 40px; }
  .foot { grid-template-columns: 1fr auto; }
  .checks { grid-template-columns: 1fr 1fr; }
  .plan { grid-template-columns: 1.8fr 1fr; padding: 32px; }
  .form-card { padding: 32px; }
  .row { grid-template-columns: 1fr 1fr; }
  body.business h1 { font-size: 44px; }
  .form-page h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
