/* Página de vendas da GENJUTSU COMMUNITY: mesma base da biblioteca (app.css + hub.css),
   com o conversor de câmbio como peça central e as provas por país. */

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
main { position: relative; z-index: 1; }
img { max-width: 100%; }
.topo { z-index: 20; }
.marca { text-decoration: none; color: inherit; }
.btn-topo {
  font: 700 13px var(--corpo); color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 10px; white-space: nowrap;
  background: linear-gradient(180deg, #ff5148, var(--sangue) 60%, #9f1015); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 18px rgba(208, 24, 30, .3);
}

.secao { max-width: 1120px; margin: 0 auto; padding: 72px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.secao h2 { font: 800 clamp(26px, 4.2vw, 40px)/1.12 var(--titulo); margin: 10px 0 10px; text-wrap: balance; }
.secao h2 em, .v-hero h1 em, .oferta h2 em {
  font-style: normal; font-weight: 900; color: var(--osso); display: inline-block;
  text-shadow: 0 1px 0 #ffd9d6, 0 2px 0 #f2a8a3, 0 3px 0 #d8565a, 0 4px 0 #a51219, 0 0 24px rgba(255, 60, 60, .5);
}
.cabeca { max-width: 680px; margin-bottom: 26px; }
.cabeca p, .cambio-texto p { color: var(--texto-2); margin: 0; }

/* ---------- Abertura ---------- */
.v-hero { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 56px max(16px, env(safe-area-inset-left)) 34px; }
.v-hero .hub-olho { width: 120px; height: 120px; }
.v-hero h1 { font: 800 clamp(36px, 7vw, 72px)/1.04 var(--titulo); margin: 4px 0 0; max-width: 15ch; text-wrap: balance; }
.v-sub { color: var(--texto-2); max-width: 60ch; margin: 0; font-size: 16.5px; }
.v-acoes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 10px; }
.v-acoes .btn-fantasma { text-decoration: none; padding: 14px 18px; border-radius: 12px; }
.btn-grande {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; color: #fff;
  font: 700 17px var(--corpo); padding: 16px 24px; border-radius: 14px;
  background: linear-gradient(180deg, #ff5148, var(--sangue) 60%, #9f1015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 32px rgba(208, 24, 30, .45);
  transition: transform .15s, box-shadow .25s;
}
.btn-grande small { font: 500 12px var(--mono); padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .25); }
.btn-grande:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 40px rgba(208, 24, 30, .65); }
.btn-grande:active { transform: scale(.97); }
.btn-grande.largo { width: 100%; }
.paises-linha { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.paises-linha span { font: 500 12px var(--mono); padding: 5px 10px; border-radius: 99px; border: 1px solid var(--vidro-borda); background: var(--vidro); color: var(--texto-2); }

/* Faixa de resultados correndo */
.faixa { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--vidro-borda); background: rgba(208, 24, 30, .06); padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.faixa-trilho { display: flex; gap: 34px; width: max-content; padding-left: 34px; }
.faixa-trilho span { font: 500 13px var(--mono); color: var(--texto-2); white-space: nowrap; }
.faixa-trilho span::before { content: "❯ "; color: var(--brasa); }
.faixa-trilho b { color: var(--osso); font-weight: 700; }

/* ---------- Câmbio ---------- */
.cambio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.conversor { padding: 22px; display: grid; gap: 10px; border-color: rgba(255, 74, 58, .35); box-shadow: var(--sombra), 0 0 60px rgba(208, 24, 30, .18); }
.conv-linha { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--vidro-borda); }
.conv-rotulo { font: 500 12px var(--mono); color: var(--texto-2); letter-spacing: .08em; text-transform: uppercase; }
.conv-valor { font: 800 clamp(30px, 5vw, 46px)/1.1 var(--titulo); font-variant-numeric: tabular-nums; color: var(--osso); white-space: nowrap; }
.conv-valor i { font-style: normal; color: var(--brasa); }
.conv-linha.destaque { border-color: rgba(255, 74, 58, .6); background: linear-gradient(180deg, rgba(208, 24, 30, .18), rgba(0, 0, 0, .3)); }
.conv-linha.destaque .conv-valor { text-shadow: 0 0 26px rgba(255, 60, 60, .55); }
.conv-seta { display: flex; align-items: center; gap: 10px; justify-content: center; }
.conv-seta span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--sangue); box-shadow: 0 0 18px rgba(255, 60, 60, .5); }
.conv-seta small { font: 500 12px var(--mono); color: var(--texto-2); }
.conv-provas { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.conv-provas button { padding: 0; border: 1px solid var(--vidro-borda); border-radius: 10px; overflow: hidden; background: #000; height: 64px; }
.conv-provas button:hover { border-color: var(--brasa); }
.conv-provas img { height: 100%; width: auto; display: block; }
.conv-provas span { font: 500 12px var(--mono); color: var(--texto-2); }

/* ---------- Provas por país ---------- */
.paises { margin-bottom: 18px; }
.mural { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.mural figure { margin: 0; display: grid; gap: 10px; }
.mural button { padding: 0; border: 1px solid var(--vidro-borda); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--sombra); transition: transform .2s, border-color .2s, box-shadow .2s; }
.mural button:hover { transform: translateY(-3px); border-color: rgba(255, 74, 58, .6); box-shadow: var(--sombra), 0 18px 40px rgba(208, 24, 30, .25); }
.mural img { display: block; width: 100%; height: auto; }
.mural figcaption { font-size: 14px; color: var(--texto-2); }
.mural figcaption b { color: var(--osso); }

/* ---------- Caminho ---------- */
.trilha { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: passo; }
.trilha li { position: relative; counter-increment: passo; padding: 18px 18px 18px 64px; border-radius: 16px; background: var(--vidro); border: 1px solid var(--vidro-borda); display: grid; gap: 4px; }
.trilha li::before {
  content: counter(passo); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font: 700 15px var(--mono); color: #fff; background: linear-gradient(180deg, #ff5148, var(--sangue) 60%, #9f1015); box-shadow: 0 0 16px rgba(255, 60, 60, .35);
}
.trilha b { font: 800 17px var(--titulo); }
.trilha span { color: var(--texto-2); font-size: 14px; }

/* ---------- Dentro ---------- */
#dentro .card { cursor: default; }
#dentro .card p { -webkit-line-clamp: unset; }
.destaque-card { border-color: rgba(255, 74, 58, .5); box-shadow: var(--sombra), 0 0 40px rgba(208, 24, 30, .2); }

/* ---------- Pra quem ---------- */
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lado { padding: 22px; border-radius: 18px; border: 1px solid var(--vidro-borda); background: var(--vidro); }
.lado ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lado li { padding-left: 26px; position: relative; }
.sim li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-weight: 700; }
.nao .linha-terminal { color: var(--texto-2); }
.nao li { color: var(--texto-2); }
.nao li::before { content: "✕"; position: absolute; left: 0; color: var(--texto-2); }

/* ---------- Oferta ---------- */
.oferta { max-width: 520px; margin: 0 auto; padding: 34px 28px 28px; display: grid; justify-items: center; gap: 12px; text-align: center; position: relative; overflow: hidden;
  border-color: rgba(255, 74, 58, .45); box-shadow: var(--sombra), 0 0 80px rgba(208, 24, 30, .25); }
.oferta::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(208, 24, 30, .3), transparent); pointer-events: none; }
.hub-olho.pequeno { width: 64px; height: 64px; }
.oferta h2 { font: 800 30px/1.1 var(--titulo); margin: 0; }
.preco { display: flex; align-items: baseline; gap: 4px; font-family: var(--titulo); }
.preco small { font-size: 20px; color: var(--texto-2); }
.preco b { font-size: 76px; line-height: 1; color: var(--osso); text-shadow: 0 0 30px rgba(255, 60, 60, .5); }
.preco span { font-size: 18px; color: var(--texto-2); }
.inclui { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; text-align: left; width: 100%; }
.inclui li { padding-left: 28px; position: relative; }
.inclui li::before { content: "❯"; position: absolute; left: 6px; color: var(--brasa); font-family: var(--mono); }
.miudo { margin: 0; font-size: 13px; color: var(--texto-2); }
.miudo.nxt { padding-top: 10px; border-top: 1px dashed var(--vidro-borda); width: 100%; }
.miudo b { color: var(--texto); }

/* ---------- Dúvidas ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--vidro-borda); border-radius: 14px; background: var(--vidro); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 700 20px var(--mono); color: var(--brasa); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--texto-2); }

/* ---------- Rodapé, barra fixa e zoom ---------- */
.rodape { position: relative; z-index: 1; max-width: 760px; margin: 80px auto 0; padding: 30px max(16px, env(safe-area-inset-left)) 110px; text-align: center; display: grid; justify-items: center; gap: 10px; border-top: 1px solid var(--vidro-borda); }
.rodape img { border-radius: 10px; }
.rodape p { margin: 0; font-size: 13px; color: var(--texto-2); }
.barra-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--fundo) 85%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--vidro-borda);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: none; }
.barra-cta a { display: block; text-align: center; color: #fff; text-decoration: none; font-weight: 700; padding: 13px; border-radius: 12px; background: linear-gradient(180deg, #ff5148, var(--sangue) 60%, #9f1015); }
.barra-cta.visivel { transform: none; }
.zoom { border: 1px solid var(--vidro-borda); border-radius: 18px; padding: 0; background: var(--fundo-2); color: var(--texto); max-width: min(92vw, 560px); max-height: 92vh; overflow: auto; }
.zoom::backdrop { background: rgba(5, 2, 3, .82); backdrop-filter: blur(4px); }
.zoom img { display: block; width: 100%; height: auto; background: #fff; }
.zoom p { margin: 0; padding: 12px 16px 16px; font-size: 14px; color: var(--texto-2); }
.zoom .fechar { position: absolute; top: 10px; right: 10px; margin: 0; }

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .faixa-trilho { animation: corre 38s linear infinite; }
  .faixa:hover .faixa-trilho { animation-play-state: paused; }
  .revela { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--atraso, 0s); }
  .revela.visto { opacity: 1; transform: none; }
  .v-hero > * { animation: sobe .8s cubic-bezier(.2, .8, .2, 1) backwards; }
  .v-hero > :nth-child(2) { animation-delay: .08s; }
  .v-hero > :nth-child(3) { animation-delay: .16s; }
  .v-hero > :nth-child(4) { animation-delay: .24s; }
  .v-hero > :nth-child(5) { animation-delay: .32s; }
  .v-hero > :nth-child(6) { animation-delay: .4s; }
  .conv-seta span { animation: troca 2.4s ease-in-out infinite; }
  .conversor.contando .conv-linha.destaque { animation: acende 1.8s ease-out; }
  .mural:not([hidden]) figure { animation: sobe .55s cubic-bezier(.2, .8, .2, 1) backwards; }
  .mural figure:nth-child(2) { animation-delay: .07s; }
  .mural figure:nth-child(3) { animation-delay: .14s; }
  .mural figure:nth-child(4) { animation-delay: .21s; }
  .mural figure:nth-child(5) { animation-delay: .28s; }
  .trilha.visto li::before { animation: pulso-passo .6s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--n) * .12s); }
  .oferta .btn-grande { animation: chama 2.6s ease-in-out infinite; }
  .oferta .hub-olho .olho-mangekyo { animation: gira-olho 6s linear infinite; }
}
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } }
@keyframes corre { to { transform: translateX(-50%); } }
@keyframes troca { 0%, 40%, 100% { transform: rotate(0); } 60%, 80% { transform: rotate(180deg); } }
@keyframes acende { 0% { box-shadow: 0 0 0 rgba(255, 60, 60, 0); } 40% { box-shadow: 0 0 50px rgba(255, 60, 60, .55); } 100% { box-shadow: 0 0 0 rgba(255, 60, 60, 0); } }
@keyframes pulso-passo { from { transform: scale(.4); opacity: 0; } }
@keyframes chama { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 32px rgba(208, 24, 30, .45); } 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 48px rgba(255, 60, 60, .8); } }

@media (max-width: 860px) {
  .cambio { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .trilha { grid-template-columns: minmax(0, 1fr); }
  .duas { grid-template-columns: minmax(0, 1fr); }
  .barra-cta { display: block; }
}
@media (max-width: 600px) {
  .secao { padding-top: 56px; }
  .v-hero { padding-top: 34px; }
  .v-hero .hub-olho { width: 92px; height: 92px; }
  .v-acoes { flex-direction: column; width: 100%; }
  .v-acoes > * { width: 100%; }
  .btn-topo { padding: 8px 11px; font-size: 12px; }
  .marca span { font-size: 17px; }
  .preco b { font-size: 64px; }
  .oferta { padding: 28px 18px 22px; }
  .conv-provas span { display: none; }
}

/* Mural de alunos em colunas, pra os prints de alturas diferentes se encaixarem */
.mural.alunos { display: block; columns: 4 220px; column-gap: 16px; }
.mural.alunos figure { break-inside: avoid; margin-bottom: 18px; }
#dentro .destaque-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 22px; align-content: start; }
#dentro .destaque-card .cena { grid-row: 1 / span 5; }
@media (max-width: 860px) { #dentro .destaque-card { display: flex; } }
.mural.aprovadas { display: block; columns: 4 200px; column-gap: 16px; }
.mural.aprovadas figure { break-inside: avoid; margin-bottom: 18px; }
.mural.aprovadas button { background: #111; }
