/* Primeiros passos · boas-vindas, tours guiados, ajuda por página e página #/comecar.
   Editorial (pocas.pt): branco, oliva #35382E, vermelho #702F2F, Gilda Display + Arimo, linhas finas, ícones de contorno. */

/* ---------- Boas-vindas ---------- */
.onb-bv { position: fixed; inset: 0; z-index: 400; background: #fff; display: flex; align-items: stretch; justify-content: center; animation: onbEntra .35s ease both; overflow-y: auto; }
.onb-bv.sair { animation: onbSai .25s ease both; }
@keyframes onbEntra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes onbSai { to { opacity: 0; } }
.onb-bv-in { width: min(980px, 100%); display: grid; grid-template-rows: auto 1fr auto; padding: max(24px, env(safe-area-inset-top)) 32px max(24px, env(safe-area-inset-bottom)); gap: 24px; }
.onb-bv-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--linha, #E6E6E6); padding-bottom: 14px; }
.onb-marca { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); text-transform: uppercase; letter-spacing: .14em; font-size: 15px; color: #35382E; }
.onb-marca .ico { width: 20px; height: 20px; }
.onb-bv-slide { align-self: center; max-width: 720px; animation: onbSlide .4s ease both; }
@keyframes onbSlide { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.onb-bv-ico .ico { width: 64px; height: 64px; stroke-width: 1.1; color: #35382E; margin-bottom: 18px; }
.onb-bv-slide .kicker { margin-bottom: 10px; }
.onb-bv-slide h1 { font-family: var(--serif); text-transform: uppercase; font-size: clamp(30px, 5vw, 52px); line-height: 1.04; letter-spacing: .01em; margin: 0 0 18px; color: #1A1A1A; }
.onb-bv-x { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: #35382E; max-width: 640px; margin: 0 0 26px; }
.onb-trio { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.onb-trio span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #4A4A4A; }
.onb-trio .ico, .onb-lista .ico { width: 18px; height: 18px; color: #35382E; flex: none; }
.onb-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.onb-lista li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; padding-bottom: 12px; border-bottom: 1px solid #F0EFEB; }
.onb-bv-rod { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--linha, #E6E6E6); padding-top: 16px; flex-wrap: wrap; }
.onb-pontos { display: flex; gap: 8px; }
.onb-pontos button { width: 26px; height: 3px; border: 0; padding: 0; background: #D9D8D2; cursor: pointer; transition: background .2s, width .2s; }
.onb-pontos button.ativo { background: #35382E; width: 42px; }
.onb-bv-bts { display: flex; gap: 10px; flex-wrap: wrap; }

/* Demonstração do ditado */
.onb-demo { display: flex; gap: 24px; align-items: flex-start; }
.onb-mic { width: 96px; height: 96px; border-radius: 50%; border: 1px solid #35382E; background: #fff; color: #35382E; display: grid; place-items: center; flex: none; cursor: pointer; transition: transform .15s; }
.onb-mic .ico { width: 34px; height: 34px; }
.onb-mic:hover { transform: scale(1.04); }
.onb-mic.ouvir { border-color: #702F2F; color: #702F2F; animation: onbPulso 1.4s infinite; }
@keyframes onbPulso { 0% { box-shadow: 0 0 0 0 rgba(112,47,47,.35); } 70% { box-shadow: 0 0 0 18px rgba(112,47,47,0); } 100% { box-shadow: 0 0 0 0 rgba(112,47,47,0); } }
.onb-demo-t { flex: 1; min-width: 0; }
.onb-transcricao { font-family: var(--serif); font-size: 19px; line-height: 1.5; min-height: 58px; color: #1A1A1A; margin: 0 0 12px; }
.onb-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.onb-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #35382E; border-bottom: 1px solid #C9C9C4; padding: 4px 0; animation: onbEntra .35s ease both; }
.onb-chip b { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin-right: 2px; }
.onb-chip .ico { width: 14px; height: 14px; }
.onb-tel { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.onb-tel-ecra { width: 240px; display: flex; justify-content: space-between; align-items: end; padding: 12px 14px; border: 1px solid #35382E; border-radius: 22px; }
.onb-tel-b .ico { width: 20px; height: 20px; color: #4A4A4A; }
.onb-tel-c { width: 46px; height: 46px; border-radius: 50%; background: #35382E; color: #fff; display: grid; place-items: center; transform: translateY(-10px); }
.onb-tel-c .ico { width: 22px; height: 22px; }

/* ---------- Tour ---------- */
.onb-veu { position: fixed; inset: 0; z-index: 380; background: transparent; }
.onb-veu.deixar { pointer-events: none; }
.onb-veu.sem-alvo { background: rgba(20,20,18,.42); }
.onb-foco { position: fixed; z-index: 381; pointer-events: none; border-radius: 4px; box-shadow: 0 0 0 9999px rgba(20,20,18,.46); outline: 1px solid rgba(255,255,255,.9); transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease; }
.onb-foco.sem-alvo { display: none; }
.onb-cartao { position: fixed; z-index: 382; background: #fff; border: 1px solid #E6E6E6; border-radius: 2px; padding: 18px 20px 16px; box-shadow: 0 12px 36px rgba(0,0,0,.14); transition: left .28s ease, top .28s ease, opacity .16s; max-height: calc(100vh - 24px); overflow: auto; }
.onb-cartao.a-mudar { opacity: .35; }
.onb-c-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.onb-c-n { font-size: 11px; letter-spacing: .12em; color: #8A8A8A; }
.onb-c-barra { height: 2px; background: #EEEDE8; margin-bottom: 14px; }
.onb-c-barra i { display: block; height: 100%; background: #35382E; transition: width .3s; }
.onb-c-ico .ico { width: 26px; height: 26px; color: #35382E; margin-bottom: 6px; }
.onb-cartao h3 { font-family: var(--serif); text-transform: uppercase; font-size: 19px; letter-spacing: .02em; margin: 0 0 6px; }
.onb-cartao p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: #333; }
.onb-cartao kbd, .onb-atalhos kbd { font-family: var(--sans); font-size: 11px; border: 1px solid #C9C9C4; border-bottom-width: 2px; border-radius: 3px; padding: 1px 6px; color: #35382E; background: #fff; }
.onb-c-faca { display: flex; gap: 8px; align-items: flex-start; color: #35382E !important; border-left: 2px solid #35382E; padding-left: 10px; }
.onb-c-faca .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.onb-c-bts { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Botão "?" junto ao título */
.onb-ajuda { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 10px; vertical-align: middle; border: 1px solid #C9C9C4; border-radius: 50%; background: transparent; color: #8A8A8A; cursor: pointer; transition: color .15s, border-color .15s; padding: 0; }
.onb-ajuda .ico { width: 15px; height: 15px; }
.onb-ajuda:hover, .onb-ajuda:focus-visible { color: #35382E; border-color: #35382E; }
.ico.inline { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- Página Primeiros passos ---------- */
.onb-cab { align-items: flex-end; }
.onb-cab .kicker .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.onb-cab-bts { display: flex; gap: 10px; flex-wrap: wrap; }
.onb-prog { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 26px 0 30px; border-top: 1px solid var(--linha, #E6E6E6); border-bottom: 1px solid var(--linha, #E6E6E6); margin-bottom: 30px; }
.onb-prog-anel { position: relative; width: 132px; height: 132px; }
.onb-anel { width: 132px; height: 132px; transform: rotate(-90deg); }
.onb-anel circle { fill: none; stroke-width: 3; }
.onb-anel .fundo { stroke: #EEEDE8; }
.onb-anel .valor { stroke: #35382E; stroke-linecap: round; transition: stroke-dashoffset .9s ease; }
.onb-prog-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.onb-prog-n b { font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1; }
.onb-prog-n b small { font-size: 18px; color: #4A4A4A; }
.onb-prog-n span { font-size: 12px; color: #8A8A8A; margin-top: 4px; }
.onb-prog-t h2 { font-family: var(--serif); text-transform: uppercase; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; }
.onb-copo { position: relative; height: 3px; background: #EEEDE8; margin-top: 16px; overflow: hidden; border-radius: 2px; }
.onb-copo i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #35382E, #702F2F); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.onb-prog.brinde .onb-copo i { animation: onbVerter 1.6s ease both; }
@keyframes onbVerter { from { width: 0; } }
.onb-prog.brinde .onb-anel .valor { stroke: #702F2F; }
.onb-grelha { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 44px; }
.onb-grelha2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 44px; }
.onb-lista-p, .onb-tours { list-style: none; margin: 8px 0 0; padding: 0; }
.onb-lista-p li, .onb-tours li { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #F0EFEB; }
.onb-p-ico .ico { width: 22px; height: 22px; color: #35382E; }
.onb-lista-p li.feito .onb-p-ico .ico { color: #3E6B4A; }
.onb-lista-p li.feito b { color: #8A8A8A; text-decoration: line-through; text-decoration-color: #C9C9C4; }
.onb-p-t, .onb-tours li > div { display: grid; gap: 2px; min-width: 0; }
.onb-p-quando, .onb-dur { color: #3E6B4A; display: inline-flex; align-items: center; gap: 4px; }
.onb-dur { color: #8A8A8A; }
.onb-p-quando .ico { width: 12px; height: 12px; }
.onb-atalhos { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 10px 0 0; align-items: center; }
.onb-atalhos dt { white-space: nowrap; }
.onb-atalhos dd { margin: 0; font-size: 14px; color: #4A4A4A; }
.onb-guias details { border-bottom: 1px solid #F0EFEB; }
.onb-guias summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 0; font-weight: 700; font-size: 14px; }
.onb-guias summary::-webkit-details-marker { display: none; }
.onb-guias summary::after { content: "+"; margin-left: auto; color: #8A8A8A; font-weight: 400; font-size: 18px; }
.onb-guias details[open] summary::after { content: "−"; }
.onb-guias summary .ico { width: 18px; height: 18px; color: #35382E; flex: none; }
.onb-guias details p { margin: 0 0 16px 30px; color: #333; line-height: 1.6; font-size: 14px; max-width: 760px; }
.onb-glos { margin: 8px 0 0; }
.onb-glos dt { font-family: var(--serif); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; margin-top: 14px; }
.onb-glos dd { margin: 4px 0 0; color: #4A4A4A; font-size: 14px; line-height: 1.55; }
.onb-mini { display: grid; gap: 4px; min-width: 140px; }
.onb-mini .onb-copo { margin-top: 0; }
.onb-mini span { font-size: 12px; color: #4A4A4A; }
.onb-rodape { margin: 30px 0 10px; }

@media (max-width: 980px) {
  .onb-grelha, .onb-grelha2 { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .onb-bv-in { padding-left: 20px; padding-right: 20px; }
  .onb-bv-ico .ico { width: 48px; height: 48px; }
  .onb-demo { flex-direction: column; align-items: center; text-align: center; }
  .onb-chips { justify-content: center; }
  .onb-bv-rod { flex-direction: column-reverse; align-items: stretch; }
  .onb-bv-bts .b { flex: 1; justify-content: center; }
  .onb-pontos { justify-content: center; }
  .onb-prog { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .onb-lista-p li, .onb-tours li { grid-template-columns: 28px 1fr; }
  .onb-lista-p li .b, .onb-tours li .b { grid-column: 1 / -1; justify-content: center; }
  .onb-cartao { left: 12px !important; right: 12px; width: auto !important; }
  .onb-cab-bts .b { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .onb-bv, .onb-bv-slide, .onb-chip, .onb-cartao, .onb-foco, .onb-copo i, .onb-anel .valor { animation: none !important; transition: none !important; }
}
@media print { .onb-ajuda, .onb-veu, .onb-foco, .onb-cartao { display: none !important; } }
