/* Página inicial (20/nov/2026): repaginada em forma de jornada.
   Só o index.html carrega este arquivo; menu, rodapé, abas, galeria e FAQ continuam no style.css. */

/* ---------- topo ---------- */
.h-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(860px, calc(100svh - 64px));
  display: grid; align-items: center;
  padding: 72px max(16px, calc((100vw - var(--max)) / 2)) 140px;
  color: #f6f1f8;
  background: #120f16;
}
.h-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url(/assets/shots/typhlosion.webp) center 40% / cover no-repeat;
  filter: saturate(.85);
}
.h-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,11,18,.96) 0%, rgba(14,11,18,.86) 38%, rgba(14,11,18,.35) 70%, rgba(14,11,18,.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(22,19,26,0) 34%);
}
.h-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; }
.h-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-size: 14px; color: #e9e2ee; backdrop-filter: blur(6px);
}
.h-tag b { background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 10px; font: 700 13px/1.2 var(--display); letter-spacing: .04em; }
.h-hero h1 { font-size: clamp(44px, 6.4vw, 84px); margin: 22px 0 18px; color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.h-hero h1 em { font-style: normal; color: #ff5a64; }
.h-lead { font-size: clamp(17px, 1.6vw, 20px); color: #d9d0df; max-width: 33em; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.h-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); box-shadow: 0 4px 0 rgba(255,255,255,.18); background: rgba(14,11,18,.35); }
.h-checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: #cfc5d6; }
.h-checks li::before { content: "✓ "; color: #ff5a64; font-weight: 700; }

.h-star { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1; display: grid; place-items: center; }
.h-star::before {
  content: ""; position: absolute; inset: 8% 6% 14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,120,60,.45), rgba(226,51,64,.18) 60%, transparent);
  filter: blur(6px);
}
.h-star::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 9%; height: 9%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent);
}
.h-star img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }

/* números sobre a borda do topo */
.h-stats {
  position: relative; z-index: 2;
  max-width: var(--max); margin: -96px auto 0; padding: 0 16px;
}
.h-stats ul {
  list-style: none; margin: 0; padding: 8px;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}
.h-stats li { padding: 16px 14px; text-align: center; }
.h-stats li + li { border-left: 1px solid var(--line); }
.h-stats b { display: block; font: 700 clamp(26px, 3vw, 36px)/1 var(--display); color: var(--text); }
.h-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.3; }

.parade { margin-top: 40px; }

/* ---------- jornada ---------- */
.h-journey { display: grid; gap: 28px; counter-reset: etapa; }
.h-step {
  --tone: 226, 51, 64;
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
.h-step:nth-child(even) .h-step-art { order: -1; }
.h-step-text { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.h-step-n {
  font: 700 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  color: rgb(var(--tone)); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.h-step-n i {
  font-style: normal; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(var(--tone), .16); color: rgb(var(--tone)); font-size: 18px; letter-spacing: 0;
}
.h-step h3 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
.h-step-text > p { color: var(--muted); font-size: 17px; }
.h-step-text > p a, .h-more p a { color: rgb(var(--tone, 226, 51, 64)); }
.h-pills { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h-pills li {
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(var(--tone), .12); color: var(--text); border: 1px solid rgba(var(--tone), .28);
}
.h-link { margin-top: 22px; font-weight: 600; color: rgb(var(--tone)); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.h-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.h-step-art {
  position: relative; min-height: 380px; display: grid; place-items: center; padding: 28px;
  background:
    radial-gradient(60% 60% at 50% 55%, rgba(var(--tone), .34), transparent 70%),
    linear-gradient(160deg, rgba(var(--tone), .18), rgba(var(--tone), .04));
  border-left: 1px solid var(--line);
}
.h-step:nth-child(even) .h-step-art { border-left: 0; border-right: 1px solid var(--line); }
.h-step-art::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 12%; height: 7%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.42), transparent);
}
.h-mon { position: relative; z-index: 1; max-height: 330px; width: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }

/* etapa 1: iniciais + regiões */
.h-trio { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2%; width: 100%; }
.h-trio img { width: 31%; height: auto; filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); }
.h-trio img:nth-child(2) { width: 35%; transform: translateY(-6%); }
.h-trio img { transition: opacity .25s, transform .25s; }
.h-trio.trocando img { opacity: 0; transform: translateY(8px) scale(.96); }
.h-trio.trocando img:nth-child(2) { transform: translateY(-2%) scale(.96); }
.h-trio-nome {
  position: absolute; z-index: 2; left: 50%; bottom: 7%; transform: translateX(-50%);
  font: 700 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: rgb(var(--tone)); background: rgba(14,11,18,.55); border: 1px solid rgba(var(--tone), .4);
  padding: 7px 12px; border-radius: 999px;
}
@media (prefers-reduced-motion: reduce) { .h-trio img { transition: none; } }
.h-regions { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.h-reg {
  width: 100%; display: block; cursor: pointer; font: inherit; color: inherit;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px 4px; text-align: center;
  transition: border-color .15s, transform .15s, background .15s;
}
.h-reg:hover { border-color: rgba(var(--tone), .6); transform: translateY(-2px); }
.h-reg:focus-visible { outline: 2px solid rgb(var(--tone)); outline-offset: 2px; }
.h-reg[aria-pressed="true"] { border-color: rgb(var(--tone)); background: rgba(var(--tone), .14); }
.h-reg[aria-pressed="true"] span { color: rgb(var(--tone)); }
.h-regions span { display: block; font: 700 12px/1 var(--display); color: var(--muted); white-space: nowrap; }
.h-regions div { display: grid; grid-template-columns: repeat(3, 1fr); }
.h-regions img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; }

/* etapa 4: lendário sobre a estrutura */
.h-legend-art { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; place-items: center; }
.h-legend-art .h-place {
  position: absolute; left: 8%; bottom: 8%; width: 46%;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.35));
}
.h-legend-art .h-mon { margin-left: 30%; }

/* etapa 5: mecânicas (abas do style.css) */
.h-step-battle { grid-template-columns: 1.15fr .85fr; }
.h-step-battle .tabs { margin: 6px 0 22px; }
.h-step-battle .panel h4 { font: 700 26px/1.1 var(--display); margin: 0 0 10px; }
.h-step-battle .panel-num { font-size: 56px; margin: 0 0 8px; color: rgb(var(--tone)); }
.h-step-battle .tabs button[aria-selected="true"] { background: rgb(var(--tone)); }
.h-forms { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; align-self: stretch; align-content: center; }
.h-forms figure { margin: 0; text-align: center; }
.h-forms figure:first-child { grid-column: 1 / -1; }
.h-forms img { margin: 0 auto; max-height: 220px; width: auto; filter: drop-shadow(0 12px 16px rgba(0,0,0,.35)); }
.h-forms figure + figure img { max-height: 140px; }
.h-forms figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- mais coisas ---------- */
.h-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-more article {
  position: relative; padding: 24px 24px 22px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.h-more article:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.h-more h3 { font-size: 22px; margin: 14px 0 8px; }
.h-more p { color: var(--muted); font-size: 15.5px; }

.h-more code { font-size: 13.5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; }

/* ---------- complementos ---------- */
.h-addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-addons a {
  --tone: 226, 51, 64;
  display: block; text-decoration: none; padding: 26px 24px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(var(--tone), .18), rgba(var(--tone), .04)), var(--card);
  border: 1px solid rgba(var(--tone), .35);
  transition: transform .2s, border-color .2s;
}
.h-addons a:hover { transform: translateY(-3px); border-color: rgb(var(--tone)); }
.h-addons b { display: block; font: 700 24px/1.1 var(--display); color: rgb(var(--tone)); margin-bottom: 10px; }
.h-addons span { color: var(--muted); font-size: 15.5px; }
.h-addons a::after { content: "Baixar →"; display: block; margin-top: 16px; font-weight: 600; color: var(--text); }

/* ---------- lendários ---------- */
.h-legends {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
  scrollbar-width: thin;
}
.h-legends a {
  scroll-snap-align: start; text-decoration: none; display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.h-legends a:hover { border-color: var(--accent); transform: translateY(-3px); }
.h-legends figure { margin: 0; height: 190px; background: #1b1722; padding: 12px; }
.h-legends figure img { width: 100%; height: 100%; object-fit: contain; }

/* galeria em grade fixa (sem buraco das colunas) */
#galeria .gallery { columns: auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 210px; gap: 12px; }
#galeria .shot { margin: 0; height: 100%; }
#galeria .shot:first-child { grid-row: span 2; }
#galeria .shot img { height: 100%; object-fit: cover; }
#galeria .shot:nth-child(4) { grid-column: span 2; }
.h-legends div { padding: 14px 16px 16px; }
.h-legends b { display: block; font: 700 18px/1.15 var(--display); }
.h-legends span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.h-legends-foot { margin-top: 18px; }

/* ---------- celular ---------- */
.h-phone { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.h-phone-title { font-size: clamp(32px, 4vw, 48px); }
.h-phone-lead { margin-top: 14px; color: var(--muted); font-size: 18px; }
.h-vers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 26px; }
.h-ver {
  display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  text-align: left; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit;
  transition: border-color .15s, background .15s, transform .15s;
}
.h-ver:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-1px); }
.h-ver:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h-ver[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.h-ver-ico { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-2); }
.h-ver[aria-selected="true"] .h-ver-ico { background: var(--accent); }
.h-ver-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-ver[aria-selected="true"] .h-ver-ico svg { stroke: #fff; }
.h-ver b { font: 700 17px/1.1 var(--display); }
.h-ver small { font-size: 12.5px; color: var(--muted); line-height: 1.25; }
.h-vers .h-ver:last-child { grid-column: 1 / -1; }

.h-ver-caixa { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); min-height: 100%; }
.h-ver-para { font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.h-ver-painel h3 { font-size: clamp(32px, 3.6vw, 44px); margin: 10px 0 18px; }
.h-ver-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.h-ver-lista li { position: relative; padding-left: 28px; color: var(--text); }
.h-ver-lista li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e23340' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.h-ver-peso { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.h-ver-peso i { height: 8px; border-radius: 99px; background: var(--bg-2); position: relative; overflow: hidden; }
.h-ver-peso i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--accent); }
.h-ver-peso b { color: var(--text); font-weight: 600; }
.h-ver-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.h-ver-acoes .h-link { margin-top: 0; color: var(--accent); }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .h-hero { padding-bottom: 130px; }
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-star { width: min(78%, 400px); order: -1; margin-bottom: -10px; }
  .h-hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(14,11,18,.82) 30%, rgba(14,11,18,.7) 100%); }
  .h-stats ul { grid-template-columns: repeat(3, 1fr); }
  .h-stats li:nth-child(4) { border-left: 0; }
  .h-stats li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .h-step, .h-step-battle { grid-template-columns: 1fr; }
  .h-step .h-step-art, .h-step:nth-child(even) .h-step-art { order: -1; border: 0; border-bottom: 1px solid var(--line); min-height: 280px; }
  .h-mon { max-height: 240px; }
  .h-more { grid-template-columns: 1fr 1fr; }
  .h-addons { grid-template-columns: 1fr; }
  .h-phone { grid-template-columns: 1fr; gap: 24px; }
  .h-phone { align-items: stretch; }
}
@media (max-width: 640px) {
  .h-hero { padding-top: 40px; min-height: 0; }
  .h-hero h1 { font-size: 40px; }
  .h-cta .btn { flex: 1 1 auto; }
  .h-stats { margin-top: -84px; }
  .h-stats li { padding: 12px 6px; }
  .h-stats span { font-size: 12px; }
  .h-step-text { padding: 24px 20px 26px; }
  .h-regions { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .h-regions span { font-size: 10px; }
  .h-more { grid-template-columns: 1fr; }
  .h-step-battle .tabs button { font-size: 15px; padding: 10px 4px; }
  .h-legend-art .h-place { width: 52%; }
  .h-legends { grid-auto-columns: 74%; }
  .h-legends figure { height: 160px; }
  #galeria .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  #galeria .shot:first-child { grid-column: span 2; grid-row: span 2; }
  #galeria .shot:nth-child(4) { grid-column: span 2; }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .h-legends figure { background: #2a2431; }
}
