/* =========================================================
   ARTESA · BASE (reset + "casca" do app no celular)
   Mobile-first: no celular ocupa a tela toda; no computador vira um celular centralizado.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }   /* o que está escondido fica escondido, mesmo em .campo/.form (que usam display: grid) */
body {
  font-family: var(--f-texto); color: var(--texto); background: var(--fundo);
  font-size: 16px; line-height: 1.45; min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--destaque-texto); outline-offset: 2px; border-radius: 10px; }

/* a "casca" do app */
.app {
  max-width: 440px; min-height: 100vh; margin: 0 auto; position: relative;
  background: var(--fundo-app, var(--fundo)); padding-bottom: 96px;
}
@media (min-width: 520px) {
  body { background: var(--fundo-fora, #E9E4EA); }
  [data-modo="escuro"] body, body[data-modo="escuro"] { background: var(--fundo-fora, #0D0B0F); }
  .app { box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 20px 60px rgba(0,0,0,.18); }
}

/* topo de cada tela */
.topo-app {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 10px; background: var(--topo-fundo, color-mix(in srgb, var(--fundo) 88%, transparent)); color: var(--topo-texto, var(--texto));
  border-radius: var(--topo-raio, 0); box-shadow: var(--topo-sombra, none); margin-bottom: 6px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topo-app h1 { flex: 1; font-family: var(--f-titulo); font-weight: var(--peso-titulo); font-size: 21px; line-height: 1.15; }
.topo-app .sub { display: block; font-family: var(--f-texto); font-size: 12.5px; font-weight: 700; color: var(--topo-sub, var(--texto2)); }
.btn-topo {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--superficie); border: 1px solid var(--linha); color: var(--texto);
}
.btn-topo svg { width: 21px; height: 21px; }
.btn-topo.com-texto { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-weight: 800; font-size: 13.5px; }   /* botão do topo com nome (ex.: Personalizar) */
.btn-topo.com-texto svg { width: 18px; height: 18px; }

.conteudo { padding: 4px 14px 20px; display: grid; gap: 14px; }

/* menu de baixo (fixo, botões grandes) */
.navbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 40;
  width: min(100%, 440px); height: 76px; padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: var(--navbar-fundo, var(--superficie)); border-top: 1px solid var(--navbar-linha, var(--linha)); box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.navbar a { display: grid; justify-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--texto2); padding: 6px 0; min-height: 56px; }
.navbar a svg { width: 25px; height: 25px; }
.navbar a { position: relative; }
.navbar a.ativo { color: var(--destaque-texto); }
.navbar a.ativo:not(.central)::after { content: ""; position: absolute; top: -6px; left: 50%; width: 28px; height: 4px; margin-left: -14px; border-radius: 0 0 4px 4px; background: var(--destaque); }
.navbar a.central { margin-top: -26px; }
.navbar a.central .bolha {
  width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center;
  background: var(--destaque); color: var(--sobre-destaque); box-shadow: 0 8px 20px rgba(174, 55, 107, .30);
}
.navbar a.central svg { width: 28px; height: 28px; }

/* tipografia utilitária */
.titulo-secao { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.titulo-secao h2 { font-family: var(--f-titulo); font-weight: var(--peso-titulo); font-size: 18px; }
.titulo-secao a { font-size: 14px; font-weight: 800; color: var(--destaque-texto); }
.mao { font-family: var(--f-mao); font-weight: 700; }
.mudo { color: var(--texto2); }
.pequeno { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
