/* Bio do @priorizeviajar · PRIORIZE VIAJAR.
   Mesma mecânica do @criadoresporai (cartão por vez, barra enchendo em cima, botão fixo
   trocando junto), outra marca. A diferença é de linguagem, não de recolorir:

     Criadores        Priorize
     terracota escuro fundo nude claro
     Bebas condensada Gloock serif + palavra em Yellowtail
     canto reto       raio 28, botão pílula
     sem sombra       sombra suave
     texto SOBRE a    foto EM CIMA, texto num painel branco embaixo
     foto

   Valores vindos do sistema da Priorize (site/css/tokens.css). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

:root {
  --pv-tinta: var(--cor-terracota);
  --pv-fundo: var(--cor-nude);
  --pv-papel: #ffffff;
  --pv-raio: 18px;
  --pv-raio-l: 28px;
  --pv-sombra: 0 10px 30px rgba(127, 63, 42, .12);
  --pv-fio: rgba(127, 63, 42, .14);
}

body {
  margin: 0; background: var(--pv-fundo); color: var(--pv-tinta);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cor-areia); outline-offset: 3px; }

.folha {
  display: flex; flex-direction: column; min-height: 100svh;
  max-width: 460px; margin: 0 auto;
  padding: 20px 16px calc(100px + env(safe-area-inset-bottom));
}

/* a palavra em script: UMA por bloco, areia, levemente torta. Regra do manual. */
.script {
  font-family: "Yellowtail", cursive; font-weight: 400;
  font-size: 1.15em; line-height: .9; color: var(--cor-areia);
  display: inline-block; transform: rotate(-2deg); transform-origin: left bottom;
  padding-right: .08em;
}

/* ---------------- topo ---------------- */
.perfil { display: flex; align-items: center; gap: 12px; }
.perfil__foto {
  width: 54px; height: 54px; flex: none; border-radius: 50%;
  background: var(--pv-papel); box-shadow: var(--pv-sombra);
  display: grid; place-items: center;
}
.perfil__foto img { width: 34px; }
.perfil__dados { flex: 1; min-width: 0; }
.perfil__nome {
  margin: 0; font-family: "Gloock", Georgia, serif; font-weight: 400;
  font-size: 24px; line-height: 1.1; letter-spacing: -.015em;
}
.perfil__arroba { margin: 1px 0 0; font-size: 13px; font-weight: 500; opacity: .7; }
.topo__frase { margin: 14px 0 18px; font-size: 15px; line-height: 1.75; }

/* ---------------- barras ---------------- */
.barras { display: flex; gap: 5px; margin: 0 0 12px; }
.barra { flex: 1; height: 4px; border-radius: 999px; background: rgba(127,63,42,.16); overflow: hidden; cursor: pointer; }
.barra i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--cor-areia); }
.barra--feita i { width: 100%; }
.barra--ativa i { animation: encher var(--tempo, 7s) linear forwards; }
@keyframes encher { to { width: 100%; } }

/* ---------------- a vitrine ---------------- */
.trilho {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none;
}
.trilho::-webkit-scrollbar { display: none; }

.cartao {
  position: relative; flex: 0 0 86%; scroll-snap-align: center;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--pv-papel); border-radius: var(--pv-raio-l);
  box-shadow: var(--pv-sombra); border: 1px solid var(--pv-fio);
}
.cartao--fora { display: none; }

.cartao__moldura { position: relative; aspect-ratio: 4/3.2; overflow: hidden; }
.cartao__foto {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 8s linear;
}
.cartao--ativo .cartao__foto { transform: scale(1.13) translateY(-1.2%); }

/* a fita: o número que decide, sobre a foto */
.fita {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--cor-terracota); color: var(--cor-nude);
  font-size: 13px; font-weight: 600; line-height: 1.2;
  box-shadow: var(--pv-sombra);
}
.fita--clara { background: var(--pv-papel); color: var(--cor-terracota); }
.fita--verde { background: var(--cor-verde); color: #fff; }

.cartao__pe { padding: 16px 18px 20px; }
.cartao__rotulo {
  display: inline-flex; align-items: center; gap: .5em; margin: 0;
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .12em; color: var(--cor-verde);
}
.cartao__rotulo::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--cor-areia); flex: none; }
.cartao__titulo {
  margin: 8px 0 0; font-family: "Gloock", Georgia, serif; font-weight: 400;
  font-size: 31px; line-height: 1.06; letter-spacing: -.015em; text-wrap: balance;
}
.cartao__meta { margin: 8px 0 0; font-size: 13px; line-height: 1.45; opacity: .72; }

/* ---------------- lista ---------------- */
.lista { display: grid; gap: 9px; margin-top: auto; padding-top: 18px; }
.item {
  display: grid; grid-template-columns: 48px 1fr 18px; align-items: center; gap: 12px;
  width: 100%; padding: 9px 14px 9px 9px; text-align: left;
  background: var(--pv-papel); border: 1px solid var(--pv-fio);
  border-radius: var(--pv-raio); box-shadow: var(--pv-sombra);
}
.item--botao { grid-template-columns: 48px 1fr; }
.item:active { transform: scale(.99); }
.item img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.item__icone { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--cor-nude); }
.item__icone svg { width: 20px; height: 20px; }
.item b { display: block; font-family: "Gloock", Georgia, serif; font-weight: 400; font-size: 18px; line-height: 1.2; }
.item span { font-size: 12.5px; opacity: .7; }
.item svg { width: 18px; height: 18px; opacity: .5; }

/* ---------------- botão fixo ---------------- */
.acao {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, var(--pv-fundo) 62%, transparent);
}
.acao > * { max-width: 460px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  border: 2px solid var(--cor-terracota); background: var(--cor-terracota); color: var(--cor-nude);
  font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn--largo { display: flex; width: 100%; box-shadow: var(--pv-sombra); }
.btn--areia { background: var(--cor-areia); border-color: var(--cor-areia); color: var(--cor-terracota); }
.btn--curto { min-height: 0; padding: 9px 18px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .cartao__foto, .cartao--ativo .cartao__foto { transition: none; transform: scale(1.02); }
  .barra--ativa i { animation: none; width: 100%; }
}
