/* Página de escolha (neutra, para as rotas aparecerem). Assinatura Wantter só no rodapé. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --p: #F4F2EE; --t: #17171A; --a: #5E5E66; --l: #E0DDD6; --s: #FFFFFF; --mx: 980px; }
body { background: var(--p); color: var(--t); font: 16px/1.55 'Instrument Sans', system-ui, sans-serif; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--a); }
.lead { font-size: 17px; color: #36363C; max-width: 62ch; margin-top: 10px; }
.mini { font-size: 12px; color: var(--a); }
:focus-visible { outline: 3px solid #E6A92E; outline-offset: 2px; }

.capa, .bloco-pesq, .final, .rota { max-width: var(--mx); margin: 0 auto; padding: 0 16px; }
.capa { padding-top: 48px; padding-bottom: 28px; }
.capa h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 700; margin-top: 8px; max-width: 18ch; }
.passos { margin: 22px 0 0 20px; color: #36363C; display: grid; gap: 6px; max-width: 62ch; }

.bloco-pesq { padding-top: 12px; padding-bottom: 28px; }
.bloco-pesq > div, .bloco-pesq details, .bloco-pesq > p { background: var(--s); border: 1px solid var(--l); border-radius: 14px; padding: 18px; }
.bloco-pesq h2 { font-size: 22px; margin-bottom: 10px; }
.bloco-pesq > p { margin-bottom: 12px; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 12px; }
.duas h3 { font-size: 15px; margin-bottom: 6px; }
.duas ul, .refs { margin-left: 18px; display: grid; gap: 4px; font-size: 14.5px; }
details summary { cursor: pointer; font-weight: 600; }
.refs { margin-top: 10px; }

.grade { max-width: var(--mx); margin: 0 auto 8px; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.g-item { display: block; text-decoration: none; background: var(--s); border: 1px solid var(--l); border-radius: 12px; overflow: hidden; }
.g-item:hover { border-color: #9A978F; }
.g-img { display: block; aspect-ratio: 3 / 2; background-size: cover; background-position: center; }
.g-nome { display: block; padding: 8px 10px; font-weight: 600; font-size: 14px; }

.rota { padding-top: 56px; padding-bottom: 12px; border-top: 1px solid var(--l); margin-top: 40px; }
.rota h2 { font-size: clamp(28px, 5vw, 40px); margin-top: 4px; }
.rota h3 { font-size: 18px; margin-bottom: 8px; }
.logo-grande { margin-top: 20px; border-radius: 16px; overflow: hidden; border: 1px solid var(--l); }
.logo-grande img { display: block; width: 100%; height: auto; }
.origem { font-size: 14.5px; color: #36363C; margin-top: 12px; max-width: 70ch; }
.tamanhos { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; font-size: 14px; color: var(--a); }
.ico { display: inline-block; border-radius: 22%; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

.aval { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; flex-wrap: wrap; }
.aval > span { font-weight: 700; font-size: 14px; min-width: 88px; }
.aval button { font: 600 14px 'Instrument Sans', sans-serif; padding: 9px 14px; min-height: 44px; border-radius: 999px; border: 1.5px solid #CFCBC2; background: var(--s); cursor: pointer; color: var(--t); }
.aval button[aria-pressed="true"] { background: var(--t); color: #fff; border-color: var(--t); }

.ident { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-top: 32px; }
.ident-txt p { font-size: 14.5px; margin-bottom: 10px; }
.pal { display: flex; align-items: stretch; gap: 3px; margin-bottom: 6px; }
.pal-rot { width: 56px; font-size: 12px; font-weight: 600; color: var(--a); align-self: center; }
.pal-c { flex: 1; height: 44px; border-radius: 6px; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pal-c i { position: absolute; left: 0; right: 0; bottom: -17px; font: normal 10px 'Instrument Sans'; color: var(--a); text-align: center; overflow: hidden; white-space: nowrap; }
.pal:last-of-type { margin-bottom: 26px; }
.tema { margin-top: 8px; font: 600 14px 'Instrument Sans'; padding: 11px 16px; min-height: 44px; border-radius: 10px; border: 0; background: var(--t); color: #fff; cursor: pointer; }

/* app de exemplo: tudo vem dos tokens da rota */
.app { background: var(--bg); color: var(--txt); font-family: var(--corpo); border-radius: 28px; border: 7px solid #111; overflow: hidden; transition: background .3s, color .3s; }
.app-logo { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--linha); }
.app-logo img { border-radius: 9px; }
.app-logo b { font-family: var(--tit); font-size: 19px; font-weight: 700; }
.app .ico-escuro, .app[data-tema="escuro"] .ico-claro { display: none; }
.app[data-tema="escuro"] .ico-escuro { display: block; }
.app-corpo { padding: 16px; }
.app-sobre { font-size: 12px; color: var(--apoio); font-weight: 600; letter-spacing: .04em; }
.app-tit { font-family: var(--tit); font-size: 30px; font-weight: 700; line-height: 1.05; }
.app-apoio { font-size: 13px; color: var(--apoio); }
.app-card { background: var(--sup); border: 1px solid var(--linha); border-radius: 14px; padding: 14px; margin-top: 12px; }
.app-linha { display: flex; align-items: baseline; gap: 6px; }
.app-valor { font-family: var(--tit); font-size: 24px; }
.app-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip-u, .chip-t { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.chip-u { color: var(--alerta); }
.chip-t { color: var(--ok); }
.app-trilho { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 12px; }
.app-trilho i { height: 4px; border-radius: 2px; background: var(--linha); }
.app-trilho i.f { background: var(--ok); }
.app-trilho i.a { background: var(--dest); }
.app-aviso { font-size: 13.5px; margin-top: 10px; font-weight: 600; }
.app-btn { display: block; text-align: center; margin-top: 12px; padding: 13px; border-radius: 12px; background: var(--prim); color: var(--primTxt); font-weight: 700; font-family: var(--tit); }
.app-vazio { font-size: 13px; color: var(--apoio); margin-top: 14px; padding: 12px; border: 1px dashed var(--linha); border-radius: 12px; }
.app-nav { display: flex; justify-content: space-around; padding: 12px 0 14px; border-top: 1px solid var(--linha); font-size: 12px; color: var(--apoio); }
.app-nav b { color: var(--txt); }

.ling { margin-top: 32px; background: var(--s); border: 1px solid var(--l); border-radius: 16px; padding: 20px; }
.slogan { font-size: clamp(22px, 4vw, 30px); font-weight: 700; line-height: 1.2; }
.bordoes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.bordoes li { background: var(--p); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14.5px; }
.tom { font-size: 14.5px; color: #36363C; }
.vocab { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
.vocab caption { text-align: left; font-weight: 700; font-size: 14px; padding-bottom: 6px; }
.vocab th { text-align: left; font-weight: 500; color: var(--a); padding: 7px 10px 7px 0; border-top: 1px solid var(--l); width: 50%; }
.vocab td { font-weight: 700; padding: 7px 0; border-top: 1px solid var(--l); }

.veredito { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 14.5px; }
.veredito p { background: var(--s); border-left: 4px solid #17706B; border-radius: 8px; padding: 14px; }
.veredito p + p { border-left-color: #8E2A2E; }

.final { padding-top: 56px; padding-bottom: 40px; border-top: 1px solid var(--l); margin-top: 48px; }
.final h2 { font-size: 32px; margin-bottom: 18px; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.final label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; }
.final select, .final textarea, .final input { font: 16px 'Instrument Sans', sans-serif; padding: 11px 12px; border-radius: 10px; border: 1px solid #CFCBC2; background: var(--s); color: var(--t); min-height: 46px; }
.bloco-txt { margin-top: 14px; }
.enviar { margin-top: 18px; width: 100%; font: 700 17px 'Instrument Sans', sans-serif; padding: 15px; border-radius: 12px; border: 0; background: #14254A; color: #fff; cursor: pointer; min-height: 52px; }
.enviar[disabled] { opacity: .6; cursor: wait; }
.aviso { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #FBE9E7; color: #8E2A2E; font-weight: 600; }
.aviso.ok { background: #E2F0EE; color: #17706B; }
.assina { text-align: center; font-size: 12.5px; color: var(--a); padding: 24px 16px 40px; }
.assina a { text-decoration: none; }

@media (max-width: 760px) {
  .duas, .veredito, .tres { grid-template-columns: 1fr; }
  .grade { grid-template-columns: repeat(2, 1fr); }
  .ident { grid-template-columns: 1fr; }
  .app { max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) { .app { transition: none; } }
