/* ======================================================
   INSTRUCOES PAGE – Black & White Theme
   ====================================================== */

/* ── HERO ─────────────────────────────────────────────── */
.instrucoes-hero {
    position: relative;
    padding-top: 67px;                    /* clear fixed header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    color: #fff;
}

/* Animated dot-grid background */
.hero-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 0;
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}

.hero-grid span {
    border: .5px solid rgba(255, 255, 255, .08);
    animation: gridPulse 4s ease-in-out infinite;
    animation-delay: calc(var(--d, 0) * 1s);
}

/* JS sets --d per span; fallback stagger via nth-child */
.hero-grid span:nth-child(odd)  { --d: 0.0; }
.hero-grid span:nth-child(even) { --d: 2.0; }
.hero-grid span:nth-child(3n)   { --d: 1.0; }
.hero-grid span:nth-child(5n)   { --d: 3.0; }
.hero-grid span:nth-child(7n)   { --d: 0.5; }
.hero-grid span:nth-child(11n)  { --d: 1.5; }
.hero-grid span:nth-child(13n)  { --d: 2.5; }

@keyframes gridPulse {
    0%, 100% { background: transparent; }
    50%      { background: rgba(255, 255, 255, .04); }
}

/* Soft radial glows */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: .25;
    pointer-events: none;
    z-index: 0;
}
.hero-glow--left  { top: -10%; left: -10%; background: #fff; }
.hero-glow--right { bottom: -10%; right: -10%; background: #888; }

/* Content */
.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    padding: 0 var(--spacing-md, 1.5rem);
}

.hero-eyebrow {
    font-size: .85rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 1rem;
    animation: fadeUp .8s ease both;
}

.hero-heading {
    font-family: var(--font-primary);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    animation: fadeUp .8s .15s ease both;
}

.hero-heading__highlight {
    display: inline-block;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .65);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: fadeUp .8s .3s ease both;
}

/* CTA arrow button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 2rem;
    border: 1.5px solid rgba(255, 255, 255, .3);
    border-radius: var(--radius-xl, 27px);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background .3s, border-color .3s, transform .3s;
    animation: fadeUp .8s .45s ease both;
}
.hero-cta:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .6);
    transform: translateY(-2px);
}
.hero-cta i {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

/* Wave divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}
.hero-wave svg { width: 100%; height: 120px; }

/* Shared entrance animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── PLATAFORMAS SECTION ──────────────────────────────── */
.instrucoes-plataformas {
    padding: var(--spacing-2xl, 4rem) 0;
    background: var(--color-bg-primary, #f5f5f7);
}

.instrucoes-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-md, 1.5rem);
}

/* ── TABS ROW ─────────────────────────────────────────── */
.platform-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: center;
    margin-bottom: var(--spacing-xl, 3rem);
    scroll-margin-top: 85px;   /* compensa o header fixo (67px) ao ancorar via #platform-tabs */
}

.platform-tab {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.25rem;
    border: 1.5px solid var(--color-border, #a4a4a4);
    border-radius: var(--radius-xl, 27px);
    background: var(--color-bg-secondary, #fff);
    color: var(--color-text-primary, #000);
    font-family: var(--font-primary);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}
.platform-tab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    flex-shrink: 0;
}
.platform-tab__icon svg,
.platform-tab__icon img {
    height: 100%;
    width: auto;
    display: block;
}
.platform-tab__icon i {
    font-size: 18px;
    line-height: 1;
}
/* Logos das Smart TVs têm altura maior (ícones horizontais) */
.platform-tab[data-platform="samsung"] .platform-tab__icon,
.platform-tab[data-platform="lg"] .platform-tab__icon,
.platform-tab[data-platform="roku"] .platform-tab__icon,
.platform-tab[data-platform="firestick"] .platform-tab__icon {
    height: 14px;
}
/* Inverte cores dos logos quando a tab fica ativa (fundo preto) */
.platform-tab--active[data-platform="samsung"] .platform-tab__icon img,
.platform-tab--active[data-platform="lg"] .platform-tab__icon img,
.platform-tab--active[data-platform="roku"] .platform-tab__icon img,
.platform-tab--active[data-platform="firestick"] .platform-tab__icon img {
    filter: invert(1);
}
.platform-tab:hover {
    border-color: #000;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.1));
    transform: translateY(-2px);
}
.platform-tab--active {
    background: #000;
    color: #fff;
    border-color: #000;
}
.platform-tab--active:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.15));
}

/* ── PANELS ───────────────────────────────────────────── */
.platform-panel {
    display: none;
    animation: panelIn .45s ease both;
}
.platform-panel--active {
    display: block;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.panel-title {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary, #000);
    margin-bottom: var(--spacing-lg, 2rem);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.panel-title__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    opacity: .75;
    flex-shrink: 0;
}
.panel-title__icon svg,
.panel-title__icon img {
    height: 100%;
    width: auto;
    display: block;
}
.panel-title__icon i {
    font-size: 22px;
    line-height: 1;
}

/* ── STEP LIST ────────────────────────────────────────── */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg, 18px);
    background: var(--color-bg-secondary, #fff);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.1));
    opacity: 0;
    animation: fadeUp .5s ease both;
    animation-delay: calc(var(--step-i) * .1s);
    transition: box-shadow .25s, transform .25s;
}
.step-item:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.15));
    transform: translateY(-2px);
}

.step-number {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    font-family: var(--font-primary);
}

.step-body {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text-primary, #000);
    padding-top: .35rem;
}
.step-body strong {
    color: #000;
}

/* Ícones / imagens embutidos no texto do passo ({{fa:...}}, {{fab:...}}, {{img:...}}) */
.step-body .step-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0 0.2em;
    line-height: 1;
}
.step-body .step-inline-icon i {
    font-size: 1.2em;
    opacity: 0.9;
}
.step-body .step-inline-img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.2em;
    height: 1.25em;
    width: auto;
    max-width: 28px;
    object-fit: contain;
    border-radius: 4px;
}
/* Print da loja / lista de resultados — guia visual no meio da frase */
.step-body .step-inline-img--screenshot {
    height: auto;
    max-height: 72px;
    max-width: min(100%, 200px);
    width: auto;
    margin: 0.35em 0.25em;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* ── TIP BAR ──────────────────────────────────────────── */
.panel-tip {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: var(--spacing-lg, 2rem);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md, 13px);
    background: rgba(0, 0, 0, .04);
    font-size: .9rem;
    color: var(--color-text-secondary, #888);
}
.panel-tip i { color: #000; font-size: 1.1rem; }
.panel-tip a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.panel-tip a:hover { opacity: .7; }


/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
    .instrucoes-hero { min-height: 90vh; }

    .hero-grid { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); }

    .hero-heading { font-size: clamp(2rem, 8vw, 2.8rem); }

    .platform-tabs { gap: .5rem; }
    .platform-tab {
        padding: .55rem 1rem;
        font-size: .8rem;
    }
    .platform-tab__label { display: none; }        /* icon-only on small screens */
    .platform-tab__icon { height: 22px; }
    .platform-tab__icon i { font-size: 22px; }

    .panel-title { font-size: 1.3rem; }

    .step-item { padding: 1rem 1.1rem; gap: .85rem; }
    .step-number { width: 32px; height: 32px; font-size: .85rem; }
    .step-body { font-size: .92rem; }
}

@media (max-width: 480px) {
    .instrucoes-hero { min-height: 80vh; }
    .hero-wave svg { height: 60px; }
}
