/* Landing page do cliente (CLI landing-page, 28/11).
   Fiel ao mockup da Design (vupth-docs/fontes/client/Landing page — Cliente-html.zip).
   Cores: só o tokens.json (tema claro) — o teste landingPage.test.ts confere cada hex.
   Fontes servidas daqui (woff2 com só o latino): o CSP do /* (public/_headers) só aceita a nossa origem. */

@font-face { font-family: 'Archivo'; font-weight: 800; font-style: normal; font-display: swap; src: url('fonts/archivo-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/dmmono-500.woff2') format('woff2'); }

:root {
  /* tokens.json → cor.<nome>.claro */
  --green: #9FE870;
  --onGreen: #163300;
  --forest: #163300;
  --forestSoft: #223D0D;
  --greenTint: #E2F6D5;
  --background: #FFFFFF;
  --surface: #F3F5F1;
  --textPrimary: #163300;
  --textSecondary: #454745;

  --titulo: 'Archivo', system-ui, sans-serif;
  --texto: 'Inter', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--textPrimary); font-family: var(--texto); min-width: 0; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
a { color: var(--textPrimary); }
a:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.topo a:focus-visible, .hero a:focus-visible, .rodape a:focus-visible { outline-color: var(--green); }

.caixa { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Topo */
.topo { background: var(--forest); }
.topo__linha { padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; }
.marca img { width: 34px; height: 28px; }
.marca span { font-family: var(--titulo); font-weight: 800; font-size: 24px; letter-spacing: -0.8px; color: var(--background); }
.topo__parceiro { font-size: 15px; font-weight: 600; color: var(--green); min-height: 48px; display: inline-flex; align-items: center; }

/* Hero */
.hero { background: var(--forest); color: var(--background); }
.hero__linha { padding-top: 40px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__texto { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.selo { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--greenTint); color: var(--forest); font-size: 14px; font-weight: 600; }
.hero h1 { font-family: var(--titulo); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 0.98; letter-spacing: -1.5px; text-wrap: balance; }
.realce { color: var(--green); }
.hero__sub { max-width: 34rem; font-size: 1.2rem; line-height: 1.5; color: var(--greenTint); }
.hero__nota { font-size: 14px; color: var(--greenTint); }

/* Botões */
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.botoes--centro { justify-content: center; }
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: 999px; font-family: var(--titulo); font-weight: 800; font-size: 18px; text-decoration: none; text-align: center; }
.botao--verde { background: var(--green); color: var(--onGreen); }
.botao--forest { background: var(--forest); color: var(--green); }
.botao--contorno-claro { padding: 0 28px; border: 2px solid var(--green); color: var(--background); }
.botao--contorno-escuro { padding: 0 28px; border: 2px solid var(--forest); color: var(--forest); }
.botao:hover { filter: brightness(1.06); }

/* iPhone (o app é só Android): "Usar no navegador" vira o destaque e o aviso aparece. */
.aviso-iphone { display: none; font-size: 15px; font-weight: 600; color: var(--green); }
.aviso-iphone--escuro { color: var(--forest); }
.ios .aviso-iphone { display: block; }
.ios .botoes .js-navegador { order: -1; }
.ios .hero .js-navegador { background: var(--green); color: var(--onGreen); border-color: var(--green); }
.ios .hero .js-baixar { background: transparent; color: var(--background); border: 2px solid var(--green); }
.ios .final .js-navegador { background: var(--forest); color: var(--green); border-color: var(--forest); }
.ios .final .js-baixar { background: transparent; color: var(--forest); border: 2px solid var(--forest); }

/* DEC-256 (porta aberta): o iPhone vê que a App Store vem aí — selo, não link. */
.em-breve { margin: 0; }
.selo-loja { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--greenTint); color: var(--greenTint); font-size: 14px; font-weight: 600; cursor: default; }
.selo-loja--escuro { border-color: var(--forest); color: var(--forest); }

/* Celular do hero (provisório: vira print real quando o André mandar) */
.hero__celular { flex: 0 1 300px; display: flex; justify-content: center; min-width: 0; }
.celular { width: 280px; height: 560px; border: 10px solid var(--forestSoft); border-radius: 44px; background: var(--green); color: var(--onGreen); padding: 36px 22px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.celular__topo { display: flex; flex-direction: column; gap: 4px; }
.celular__nome { font-family: var(--titulo); font-weight: 800; font-size: 20px; letter-spacing: -0.6px; }
.celular__loja { font-size: 13px; }
.celular__meio { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.celular__tempo { font-family: var(--mono); font-weight: 500; font-size: 76px; line-height: 0.9; letter-spacing: -4px; }
.celular__titulo { font-family: var(--titulo); font-weight: 800; font-size: 22px; letter-spacing: -0.6px; }
.celular__rodape { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.celular__linha { display: flex; justify-content: space-between; }
.celular__botao { margin-top: 6px; min-height: 44px; border-radius: 999px; background: var(--forest); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--titulo); font-weight: 800; font-size: 15px; }
.mono { font-family: var(--mono); font-weight: 500; }

/* Blocos */
.bloco { background: var(--background); }
.bloco--surface { background: var(--surface); }
.bloco__coluna { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.bloco__cabeca { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }
.bloco h2 { font-family: var(--titulo); font-weight: 800; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -1px; text-wrap: balance; }
.bloco__titulo { max-width: 40rem; }
.bloco__cabeca p { max-width: 36rem; font-size: 1.1rem; line-height: 1.55; color: var(--textSecondary); }

.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cartao { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cartao--surface { background: var(--surface); }
.cartao--branco { background: var(--background); }
.cartao--vantagem { gap: 14px; }
.cartao h3 { font-family: var(--titulo); font-weight: 800; font-size: 22px; letter-spacing: -0.6px; }
.cartao--vantagem h3 { font-size: 20px; letter-spacing: -0.5px; }
.cartao p { font-size: 16px; line-height: 1.55; color: var(--textSecondary); }
.cartao svg { color: var(--forest); }
.passo__num { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--onGreen); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 500; font-size: 18px; }

.chips-espera { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--onGreen); }
.chip--verde { background: var(--green); }
.chip--tint { background: var(--greenTint); }

.categorias { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.categorias__rotulo { font-size: 15px; font-weight: 600; margin-right: 4px; }
.categorias__lista { display: contents; list-style: none; }
.chip--categoria { padding: 10px 18px; background: var(--background); font-size: 15px; }

/* Chamada final */
.final { background: var(--green); color: var(--onGreen); }
.final__coluna { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.final h2 { max-width: 36rem; font-family: var(--titulo); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.02; letter-spacing: -1.2px; text-wrap: balance; }

/* Rodapé */
.rodape { background: var(--forest); color: var(--greenTint); }
.rodape__linha { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }
.marca--rodape img { width: 24px; height: 20px; }
.marca--rodape span { font-size: 18px; letter-spacing: 0; }
.rodape__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.rodape__links a { color: var(--greenTint); min-height: 48px; display: inline-flex; align-items: center; }
.rodape__links .rodape__email { color: var(--green); }

/* Mobile first de quem chega pelo QR do cartão: uma coluna, botões na largura toda. */
@media (max-width: 600px) {
  .hero__linha { gap: 40px; padding-bottom: 64px; }
  .hero__texto { flex-basis: 100%; }
  .botoes { flex-direction: column; width: 100%; }
  .botao { width: 100%; }
  .bloco__coluna, .final__coluna { padding-top: 64px; padding-bottom: 64px; }
  .final__coluna .botoes { align-items: stretch; }
  .rodape__links { flex-direction: column; gap: 0; }
  /* DEC-258: no celular, nenhum texto abaixo de 16 px (o celular desenhado no hero é imagem, role="img"). */
  .selo, .hero__nota, .aviso-iphone, .selo-loja, .chip, .chip--categoria, .categorias__rotulo, .rodape__linha, .topo__parceiro { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
