/* "Como funciona" em 4 passos (views/html/partials/how.html). Prefixo hw-. */
.hw { max-width: 1120px; margin: 0 auto; padding: 64px 20px 40px; font-family: 'Quicksand', sans-serif; color: #fff; }
.hw-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.hw-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid #262626; color: #9b9b9b; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hw-title { margin: 18px 0 12px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; color: #fff; }
.hw-title em { font-style: normal; color: #ff2d9b; }
.hw-sub { margin: 0; color: #9b9b9b; font-size: 16px; line-height: 1.55; text-wrap: balance; }

.hw-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
/* linha que liga os números */
.hw-steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 222px; height: 1px; background: repeating-linear-gradient(90deg, #3a3a3a 0 6px, transparent 6px 12px); }

.hw-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hw-mock { position: relative; width: 100%; height: 186px; border-radius: 20px; border: 1px solid #262626; background: #131313; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; box-sizing: border-box; }
.hw-num { position: relative; z-index: 1; width: 34px; height: 34px; margin: 20px 0 16px; display: grid; place-items: center; border-radius: 50%; background: #0d0d0d; border: 1.5px solid #ff2d9b; color: #ff2d9b; font-weight: 700; font-size: 15px; }
.hw-name { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #fff; }
.hw-text { margin: 0; max-width: 240px; color: #9b9b9b; font-size: 14px; line-height: 1.55; text-wrap: balance; }

/* 1. escolha: o destaque passa pelos três presentes */
.hw-chip { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 190px; height: 38px; padding: 0 14px; box-sizing: border-box; border-radius: 12px; border: 1px solid #2a2a2a; background: #191919; color: #cfcfcf; font-size: 13.5px; font-weight: 600; animation: hw-pick 6s infinite; }
.hw-chip:nth-child(2) { animation-delay: 2s; }
.hw-chip:nth-child(3) { animation-delay: 4s; }
.hw-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #4a4a4a; box-sizing: border-box; flex: none; }
@keyframes hw-pick {
    0%, 30% { border-color: #ff2d9b; background: #1f1219; color: #fff; }
    0%, 30% { box-shadow: 0 0 0 3px rgba(255, 45, 155, .1); }
    36%, 100% { border-color: #2a2a2a; background: #191919; color: #cfcfcf; box-shadow: none; }
}
.hw-chip .hw-dot { animation: hw-dot 6s infinite; animation-delay: inherit; }
@keyframes hw-dot { 0%, 30% { border-color: #ff2d9b; background: radial-gradient(circle, #ff2d9b 0 3.5px, transparent 4px); } 36%, 100% { border-color: #4a4a4a; background: none; } }

/* 2. personalize: nomes, fotos chegando e a música */
.hw-names { display: flex; align-items: center; gap: 8px; font-family: 'Playball', cursive; font-size: 26px; color: #fff; }
.hw-names b { color: #ff2d9b; font-family: 'Quicksand', sans-serif; font-size: 18px; }
.hw-thumbs { display: flex; gap: 6px; }
.hw-thumbs i { width: 34px; height: 42px; border-radius: 8px; background: linear-gradient(160deg, #3a2430, #1d1d1d); opacity: 0; transform: translateY(6px) scale(.9); animation: hw-photo 5s infinite; }
.hw-thumbs i:nth-child(1) { background: linear-gradient(160deg, #6b3a52, #2a1a22); }
.hw-thumbs i:nth-child(2) { background: linear-gradient(160deg, #3d4a63, #1c2230); animation-delay: .35s; }
.hw-thumbs i:nth-child(3) { background: linear-gradient(160deg, #6a5235, #2a2218); animation-delay: .7s; }
.hw-thumbs .hw-plus { display: grid; place-items: center; background: transparent; border: 1.5px dashed #3a3a3a; color: #6a6a6a; font-style: normal; font-size: 18px; opacity: 1; transform: none; animation: none; }
@keyframes hw-photo { 0% { opacity: 0; transform: translateY(6px) scale(.9); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.hw-song { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #1d1d1d; color: #cfcfcf; font-size: 12.5px; font-weight: 600; }
.hw-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.hw-eq i { width: 3px; border-radius: 2px; background: #ff2d9b; animation: hw-eq 1s ease-in-out infinite; }
.hw-eq i:nth-child(2) { animation-delay: -.3s; }
.hw-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes hw-eq { 0%, 100% { height: 4px; } 50% { height: 12px; } }

/* 3. pague e receba: QR que se monta e o aviso de aprovado */
.hw-qr { display: grid; grid-template-columns: repeat(3, 18px); gap: 4px; padding: 10px; border-radius: 12px; background: #fff; }
.hw-qr i { width: 18px; height: 18px; border-radius: 3px; background: #111; animation: hw-qr 4s infinite; }
.hw-qr i:nth-child(2), .hw-qr i:nth-child(4), .hw-qr i:nth-child(8) { background: #fff; box-shadow: inset 0 0 0 4px #111; }
.hw-qr i:nth-child(5) { background: #ff2d9b; }
.hw-qr i:nth-child(3n+2) { animation-delay: .15s; }
.hw-qr i:nth-child(3n) { animation-delay: .3s; }
@keyframes hw-qr { 0%, 8% { opacity: 0; transform: scale(.6); } 18%, 100% { opacity: 1; transform: none; } }
.hw-paid { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: #1b1b1b; border: 1px solid #262626; text-align: left; opacity: 0; transform: translateY(6px); animation: hw-paid 4s infinite; }
.hw-check { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #1f8a5b; color: #fff; font-size: 13px; font-weight: 700; }
.hw-paid b { display: block; font-size: 12.5px; }
.hw-paid small { display: block; color: #8a8a8a; font-size: 11px; }
@keyframes hw-paid { 0%, 35% { opacity: 0; transform: translateY(6px); } 45%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 4. surpreenda: a conversa acontecendo */
.hw-mock--send { align-items: stretch; justify-content: center; gap: 6px; padding: 16px 16px; }
.hw-bubble { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.35; text-align: left; opacity: 0; transform: translateY(6px); animation: hw-bubble 6s infinite; }
.hw-bubble--out { align-self: flex-end; background: #ff2d9b; color: #fff; border-bottom-right-radius: 4px; }
.hw-bubble--link { align-self: flex-end; background: #2a1a22; color: #ff9bd0; border-bottom-right-radius: 4px; animation-delay: .6s; text-decoration: underline; }
.hw-bubble--in { align-self: flex-start; background: #232323; color: #e6e6e6; border-bottom-left-radius: 4px; animation-delay: 1.8s; }
@keyframes hw-bubble { 0% { opacity: 0; transform: translateY(6px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* entrada ao rolar (nav.js adiciona .in) */
.hw-step[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.hw-step[data-reveal].in { opacity: 1; transform: none; }
.hw-step:nth-child(2) { transition-delay: .08s; }
.hw-step:nth-child(3) { transition-delay: .16s; }
.hw-step:nth-child(4) { transition-delay: .24s; }

.hw-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 44px; }
.hw-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 999px; background: linear-gradient(180deg, #ff2d9b, #e0177f); color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none; }
.hw-btn:hover { filter: brightness(1.06); }
.hw-cta small { color: #7d7d7d; font-size: 13px; }

@media (max-width: 960px) {
    .hw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
    .hw-steps::before { display: none; }
}
@media (max-width: 560px) {
    .hw { padding-top: 48px; }
    .hw-steps { grid-template-columns: 1fr; gap: 28px; max-width: 360px; margin: 0 auto; }
    .hw-step { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; text-align: left; }
    .hw-mock { grid-column: 1 / -1; height: 160px; margin-bottom: 14px; }
    .hw-num { margin: 0; grid-row: 2 / span 2; }
    .hw-name { margin-top: 4px; }
    .hw-text { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hw *, .hw-step[data-reveal] { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* prints reais em moldura de celular, cortados na parte de cima da tela */
.hw-shot { width: 100%; height: 300px; overflow: hidden; border-radius: 26px 26px 0 0; padding: 7px 7px 0; box-sizing: border-box; background: #0a0a0a; box-shadow: 0 0 0 1.5px #2a2a2a; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); max-width: 240px; }
.hw-shot img { display: block; width: 100%; height: auto; border-radius: 20px 20px 0 0; }
.hw-steps::before { top: 318px; }
@media (max-width: 560px) { .hw-shot { grid-column: 1 / -1; max-width: none; height: 260px; margin-bottom: 14px; } }

/* celular: carrossel, um passo por card (texto em cima, print inteiro embaixo) */
.hw-dots { display: none; }
@media (max-width: 560px) {
    .hw-head { margin-bottom: 28px; }
    .hw-steps { display: flex; gap: 12px; max-width: none; margin: 0 -20px; padding: 2px 20px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .hw-steps::-webkit-scrollbar { display: none; }
    .hw-step { flex: 0 0 82%; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto 1fr; column-gap: 12px; align-items: center; padding: 20px 20px 0; box-sizing: border-box; border: 1px solid #232323; border-radius: 24px; background: linear-gradient(180deg, #151515, #0f0f0f); overflow: hidden; scroll-snap-align: start; }
    .hw-step[data-reveal] { opacity: 1; transform: none; }
    .hw-num { grid-row: 1; grid-column: 1; margin: 0; }
    .hw-name { grid-row: 1; grid-column: 2; margin: 0; font-size: 19px; }
    .hw-text { grid-row: 2; grid-column: 1 / -1; margin-top: 10px; min-height: 3.1em; font-size: 14.5px; text-wrap: pretty; }
    .hw-shot { grid-row: 3; grid-column: 1 / -1; align-self: end; justify-self: center; width: 214px; max-width: none; height: 330px; margin: 20px 0 0; -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent); mask-image: linear-gradient(180deg, #000 86%, transparent); }
    .hw-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
    .hw-dots i { width: 6px; height: 6px; border-radius: 999px; background: #3a3a3a; transition: width .3s ease, background .3s ease; }
    .hw-dots i.on { width: 20px; background: #ff2d9b; }
    .hw-cta { margin-top: 30px; }
}
