/* Secoke Marketplace: mesma linguagem "argila" do OFFER (PADROES.md). Mobile first. */
:root {
  --bg-page: #e9f2f9;
  --bg-card: #fbfdff;
  --bg-hover: #e1edf6;
  --accent: #0ea5e9;
  --accent-hover: #0b8fcc;
  --accent-light: #dcf1fc;
  --accent-text: #ffffff;
  --text-primary: #172330;
  --text-secondary: #46576a;
  --text-muted: #6b7c90;
  --border: #d6e2ec;
  --clay-out: rgba(38, 78, 118, .16);
  --clay-in-dark: rgba(38, 78, 118, .08);
  --clay-in-light: rgba(255, 255, 255, .95);
  --clay-shadow: 10px 10px 24px var(--clay-out), inset -6px -6px 12px var(--clay-in-dark), inset 6px 6px 12px var(--clay-in-light);
  --clay-shadow-sm: 5px 5px 12px var(--clay-out), inset -3px -3px 6px var(--clay-in-dark), inset 3px 3px 6px var(--clay-in-light);
  --clay-pressed: inset 3px 3px 7px var(--clay-out), inset -3px -3px 7px var(--clay-in-light);
  --raio: 26px;
  --footer-h: 32px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #111820; --bg-card: #1a232e; --bg-hover: #222d3a;
    --accent: #38bdf8; --accent-hover: #5cc9f9; --accent-light: #15303f; --accent-text: #08151e;
    --text-primary: #ecf1f6; --text-secondary: #b4bfcb; --text-muted: #8a98a8; --border: #2a3644;
    --clay-out: rgba(0, 0, 0, .5); --clay-in-dark: rgba(0, 0, 0, .3); --clay-in-light: rgba(255, 255, 255, .06);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg-page); color: var(--text-primary);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.55;
  padding-bottom: calc(var(--footer-h) + 12px);
}
h1, h2, h3 { font-family: 'Sora', 'DM Sans', sans-serif; line-height: 1.2; margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* topo */
.topo { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg-page) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topo-in { max-width: 1040px; margin: 0 auto; padding: .6rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text-primary); min-width: 0; }
.marca-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--clay-shadow-sm); }
.marca-logo svg { width: 22px; height: 22px; }
.marca-nome { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.marca-nome strong { font-weight: 800; }
.topo-nav { display: flex; gap: .2rem; }
.topo-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 700; font-size: .88rem; padding: .5rem .8rem; border-radius: 999px; white-space: nowrap; }
.topo-nav a:hover { background: var(--bg-hover); color: var(--text-primary); }
@media (max-width: 560px) { .topo-nav a:nth-child(2) { display: none; } .marca-nome { font-size: .95rem; } }
@media (max-width: 440px) { .topo-nav a:nth-child(3) { display: none; } .topo-in { padding-left: 14px; padding-right: 10px; } }

.pagina { max-width: 1040px; margin: 0 auto; padding: 1.4rem 16px 2rem; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: none; cursor: pointer; text-decoration: none; font-family: inherit; font-size: .92rem; font-weight: 700; line-height: 1.2; padding: .75rem 1.4rem; border-radius: 999px; min-height: 46px; background: var(--bg-card); color: var(--text-primary); box-shadow: var(--clay-shadow-sm); transition: box-shadow .12s ease, transform .12s ease, background .12s ease; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { background: var(--bg-hover); }
.btn:active { box-shadow: var(--clay-pressed); transform: translateY(1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 6px 6px 14px var(--clay-out), inset -4px -4px 8px rgba(0, 0, 0, .14), inset 4px 4px 8px rgba(255, 255, 255, .32); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-sm { min-height: 38px; padding: .5rem 1rem; font-size: .84rem; }
.btn-grande { min-height: 54px; padding: .9rem 1.8rem; font-size: 1rem; }

/* home */
.heroi { text-align: center; padding: 2.2rem 0 1.6rem; }
.selo { display: inline-block; margin: 0 0 .9rem; padding: .3rem .85rem; border-radius: 999px; background: var(--accent-light); color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.heroi h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; max-width: 22ch; margin: 0 auto .8rem; }
.sub { color: var(--text-secondary); max-width: 56ch; margin: 0 auto 1.4rem; font-size: 1.04rem; }

.secao { margin-top: 2.2rem; }
.secao h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: .9rem; }
.secao h3 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.secao p { color: var(--text-secondary); margin: 0 0 .8rem; max-width: 72ch; }

.grade-apps { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 680px) { .grade-apps { grid-template-columns: 1fr 1fr; } }
.cartao-app { background: var(--bg-card); border-radius: var(--raio); box-shadow: var(--clay-shadow); padding: 1.3rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.cartao-topo { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; min-width: 0; }
.cartao-icone { width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0; box-shadow: var(--clay-shadow-sm); }
.cartao-titulo { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.cartao-titulo h3 { font-size: 1.2rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.chip { display: inline-block; background: var(--accent-light); color: var(--accent); font-size: .74rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; }
.cartao-resumo { margin: 0; color: var(--text-secondary); flex: 1; }
.cartao-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .82rem; color: var(--text-muted); font-weight: 700; }
.cartao-acoes { display: flex; flex-wrap: wrap; gap: .7rem; }
.cartao-acoes .btn { flex: 1 1 140px; }

.passos { margin: 0 0 .8rem; padding-left: 1.3rem; color: var(--text-secondary); max-width: 72ch; }
.passos li { margin: .5rem 0; padding-left: .3rem; }
.passos li::marker { color: var(--accent); font-weight: 800; }
.passos strong { color: var(--text-primary); }
.nota { font-size: .9rem; color: var(--text-muted); }

/* página do app */
.voltar { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-muted); font-size: .86rem; font-weight: 700; text-decoration: none; margin-bottom: 1rem; min-height: 36px; }
.voltar svg { width: 16px; height: 16px; }
.voltar:hover { color: var(--accent); }
.app-topo { display: flex; gap: 1.4rem; align-items: flex-start; background: var(--bg-card); border-radius: var(--raio); box-shadow: var(--clay-shadow); padding: 1.5rem; }
.app-icone { width: 112px; height: 112px; border-radius: 28px; box-shadow: var(--clay-shadow-sm); flex-shrink: 0; }
.app-id { min-width: 0; }
.app-id h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; overflow-wrap: anywhere; }
.app-cat { margin: .3rem 0 .6rem; color: var(--text-muted); font-weight: 700; font-size: .88rem; }
.app-resumo { margin: 0 0 1rem; color: var(--text-secondary); max-width: 60ch; }
.app-acao { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem; }
.app-aviso { font-size: .84rem; color: var(--text-muted); font-weight: 700; }
@media (max-width: 560px) { .app-topo { flex-direction: column; align-items: center; text-align: center; padding: 1.2rem; } .app-acao { justify-content: center; } }

.fichas { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.1rem; }
@media (min-width: 760px) { .fichas { grid-template-columns: repeat(4, 1fr); } }
.ficha { background: var(--bg-card); border-radius: 18px; box-shadow: var(--clay-shadow-sm); padding: .9rem 1rem; min-width: 0; }
.ficha span { display: flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.ficha svg { width: 15px; height: 15px; flex-shrink: 0; }
.ficha strong { display: block; margin-top: .25rem; font-size: 1rem; overflow-wrap: anywhere; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ficha .mono { font-size: .8rem; }

.hash { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; background: var(--bg-card); border-radius: 18px; box-shadow: var(--clay-pressed); padding: .8rem 1rem; }
.hash > svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.hash code { flex: 1 1 260px; min-width: 0; font-size: .78rem; overflow-wrap: anywhere; color: var(--text-primary); }

.lista { margin: 0 0 .8rem; padding-left: 1.2rem; color: var(--text-secondary); max-width: 72ch; }
.lista li { margin: .35rem 0; }
.lista li::marker { color: var(--accent); }

.historico { display: grid; gap: 1rem; }
.versao { background: var(--bg-card); border-radius: 18px; box-shadow: var(--clay-shadow-sm); padding: 1rem 1.2rem; }
.versao header { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .4rem; }
.versao header span { color: var(--text-muted); font-size: .86rem; font-weight: 700; flex: 1; }
.versao .lista { margin-bottom: 0; }

/* rodapé fixo (PADROES.md §8.5) */
.footer-fixo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; background: var(--accent); color: var(--accent-text); text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .55rem 1rem; text-transform: uppercase; }
.footer-fixo a { color: inherit; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .footer-fixo, .topo { display: none; } }
