/* BCK · páginas dos links (bck.app.br). Celular primeiro (390 px), sem rolagem lateral, toque de 44 px ou mais.
   Cores da marca; texto pequeno só em combinações com contraste AA (conferidas em web/README.md). */

:root {
  color-scheme: light;
  --verde: #1E5044;
  --verde-escuro: #173F35;
  --dourado: #C8A569;
  --dourado-escuro: #B38E44;
  --dourado-texto: #7A5C24;      /* dourado para texto pequeno no fundo claro (5,6:1) */
  --dourado-no-verde: #E6D7B5;   /* dourado para texto pequeno no verde (5,2:1 no ponto mais claro do degradê) */
  --fundo: #F6F4EF;
  --branco: #FFFFFF;
  --texto: #1A1D1B;
  --texto-2: #4E5651;            /* 6,4:1 no fundo */
  --borda: #E3DED3;
  --raio: 18px;
  --titulo: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --corpo: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--fundo);
  color: var(--texto);
  font: 400 16px/1.5 var(--corpo);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--dourado-escuro); outline-offset: 3px; border-radius: 6px; }

/* ── Topo verde com a marca e a vitrine (embalagem ou selo) que desce sobre o creme ── */
.topo {
  display: flow-root;
  background: var(--verde);
  background-image: radial-gradient(120% 90% at 50% 0%, #24604F 0%, var(--verde) 55%, var(--verde-escuro) 100%);
  padding: max(12px, env(safe-area-inset-top)) 20px 0;
  border-bottom: 1px solid rgba(200, 165, 105, 0.45);
}
.marca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  max-width: 440px;
  min-height: 44px;
  color: var(--dourado-no-verde);
  font: 700 11px/1 var(--titulo);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.marca img { width: 34px; height: 34px; }
.vitrine {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 22px auto -96px;
  height: 236px;
}
.vitrine .embalagem {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 14px 18px rgba(10, 30, 25, 0.28));
}
.vitrine .embalagem.caixa { height: 186px; }   /* caixa da Revélatte: mais larga, apoiada embaixo */
.vitrine .selo {
  width: 132px;
  height: 132px;
  align-self: flex-start;
  margin-top: 32px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 8px var(--fundo), 0 12px 24px rgba(10, 30, 25, 0.18);
  padding: 10px;
}
.topo.baixo .vitrine { height: 140px; margin-bottom: -86px; }

/* ── Conteúdo ── */
main {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 116px 20px 8px;
}
.topo.baixo + main { padding-top: 138px; }
.topo.baixo .marca img { display: none; }   /* o selo grande já é a marca */
.sobretitulo {
  margin: 0 0 8px;
  color: var(--dourado-texto);
  font: 700 12px/1.2 var(--titulo);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}
h1 {
  margin: 0;
  color: var(--verde);
  font: 800 28px/1.15 var(--titulo);
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
}
.texto {
  margin: 10px auto 0;
  max-width: 330px;
  color: var(--texto-2);
  text-align: center;
  text-wrap: pretty;
}

/* ── O código, como no adesivo do pacote ── */
.codigo-caixa {
  margin: 24px 0 0;
  padding: 18px 16px 16px;
  background: var(--branco);
  border: 1.5px dashed var(--dourado-escuro);
  border-radius: var(--raio);
  text-align: center;
}
.codigo-caixa .rotulo {
  margin: 0;
  color: var(--texto-2);
  font: 600 12px/1.2 var(--titulo);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.codigo {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin: 8px 0 14px;
  color: var(--texto);
  font: 700 34px/1.1 var(--titulo);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  -webkit-user-select: all;
  user-select: all;
  overflow-wrap: anywhere;
}

/* ── Botões ── */
.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font: 700 16px/1.2 var(--titulo);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.botao:active { transform: scale(0.98); }
.botao-cheio { background: var(--verde); color: var(--branco); margin-top: 16px; box-shadow: 0 6px 16px rgba(30, 80, 68, 0.22); }
.botao-cheio:hover { background: var(--verde-escuro); }
.botao-contorno { background: transparent; color: var(--verde); border: 1.5px solid var(--verde); min-height: 48px; }
.botao-contorno:hover { background: rgba(30, 80, 68, 0.06); }
.botao-contorno.feito { border-color: var(--dourado-escuro); color: var(--dourado-texto); }
.botao svg { width: 18px; height: 18px; flex: none; }
.aviso-copia { margin: 10px 0 0; color: var(--texto-2); font-size: 14px; }
.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Sem o app ── */
.sem-app {
  margin: 28px 0 0;
  padding: 20px 18px;
  background: rgba(200, 165, 105, 0.14);
  border-radius: var(--raio);
  text-align: center;
  scroll-margin-top: 16px;
  transition: box-shadow 0.3s ease;
}
.sem-app.destaque { box-shadow: 0 0 0 2px var(--dourado-escuro); }
.sem-app h2 { margin: 0; color: var(--verde); font: 700 18px/1.25 var(--titulo); }
.sem-app h2:focus { outline: none; }
.sem-app p { margin: 6px 0 0; color: var(--texto-2); }
.sem-app .nao-abriu { color: var(--texto); font-weight: 600; }
.lojas { display: grid; gap: 10px; margin-top: 14px; }
.lojas:empty { display: none; }
.botao-loja { background: var(--texto); color: var(--branco); }
.em-breve { font-weight: 500; }

/* ── Link que não bate ── */
.recado { margin-top: 24px; padding: 18px; background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); text-align: center; }
.recado p { margin: 0; color: var(--texto-2); }
.recado strong { display: block; text-wrap: balance; margin-bottom: 4px; color: var(--texto); font: 700 17px/1.3 var(--titulo); }

/* ── Rodapé ── */
.rodape {
  padding: 20px 20px max(16px, env(safe-area-inset-bottom));
  color: var(--texto-2);
  font-size: 13px;
  text-align: center;
}
.rodape a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; color: var(--verde); }

/* Copiar sem a área de transferência moderna (fallback) */
.fora-da-tela { position: fixed; top: 0; left: -9999px; opacity: 0; }

@media (max-width: 359px) {
  h1 { font-size: 25px; }
  .codigo { font-size: 29px; }
}
@media (min-width: 700px) {
  .vitrine { height: 262px; margin-bottom: -110px; }
  .topo:not(.baixo) + main { padding-top: 130px; }
  h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .botao, .sem-app { transition: none; }
}
