/* ============================================
   ATR — ESCADA DE CONSCIÊNCIA (Home v3)
   Componentes novos da narrativa em degraus.
   Constrói sobre simple.css + institucional.css.
   ============================================ */

/* ===== DEGRAU 1→2 — O ESPELHO (beats) ===== */
.mirror-list {
    max-width: 780px;
    margin: 0 auto;
}

.mirror-beat {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.mirror-beat:last-of-type {
    border-bottom: none;
}

.mirror-beat__num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-subtle);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
}

.mirror-beat h4 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.mirror-beat p {
    line-height: 1.75;
    color: var(--gray-light);
}

.mirror-close {
    text-align: center;
    margin-top: 48px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.6;
}

.mirror-close .gold {
    color: var(--gold);
}

/* ===== DEGRAU 2 — AS CAMADAS (layer stack) ===== */
.layer-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.layer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.layer:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

/* leve "escadinha" pra sugerir camadas empilhadas ao longo do tempo */
.layer:nth-child(2) { margin-left: 10px; }
.layer:nth-child(3) { margin-left: 20px; }
.layer:nth-child(4) { margin-left: 30px; }
.layer:nth-child(5) { margin-left: 40px; }

.layer__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.layer__icon svg {
    width: 17px;
    height: 17px;
    stroke: var(--gray);
}

.layer__who {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.3;
}

.layer__piece {
    margin-left: auto;
    color: var(--gray-dark);
    font-size: 0.85rem;
    text-align: right;
    flex-shrink: 1;
    min-width: 0;
}

.layer--missing {
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px dashed rgba(212, 175, 55, 0.5);
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.layer--missing:hover {
    transform: none;
    border-color: var(--gold);
}

.punch-box {
    margin-top: 8px;
    padding: 20px 24px;
    border-left: 3px solid var(--gold);
    background: var(--gold-subtle);
    border-radius: 0 12px 12px 0;
}

.punch-box p {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.55;
    margin: 0;
}

/* ===== DEGRAU 3a — POR QUE NADA DISSO RESOLVEU ===== */
.whynot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.whynot-card {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 22px;
    transition: border-color 0.25s ease;
}

.whynot-card:hover {
    border-color: rgba(255, 107, 107, 0.4);
}

.whynot-card h4 {
    font-size: 0.98rem;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.whynot-card h4::before {
    content: '\2715';
    color: #ff6b6b;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.whynot-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.65;
    margin: 0;
}

.whynot-close {
    text-align: center;
    margin-top: 44px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.whynot-close .gold {
    color: var(--gold);
}

/* ===== DEGRAU 3b — O RETRATO (mock do DRE) ===== */
.dre-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dre-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 10px 14px;
    border-radius: 9px;
    background: var(--black-card);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.dre-row:hover {
    transform: translateX(3px);
    border-color: var(--border-hover);
}

.dre-row__label {
    color: var(--gray-light);
    min-width: 0;
    flex-shrink: 1;
}

.dre-row__val {
    margin-left: auto;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    flex-shrink: 0;
}

.dre-row__flag {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--ui-amber, #E8C961);
    background: rgba(232, 201, 97, 0.12);
    border: 1px solid rgba(232, 201, 97, 0.3);
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dre-row--hot {
    border-color: rgba(232, 201, 97, 0.55);
    background: rgba(232, 201, 97, 0.06);
}

.dre-row--hot:hover {
    border-color: var(--ui-amber, #E8C961);
}

.dre-row--total {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.06);
}

.dre-row--total .dre-row__val {
    color: var(--ui-green, #22C55E);
}

.dre-note {
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--gray);
    line-height: 1.5;
}

.dre-note b {
    color: var(--gold);
}

/* ===== DEGRAU 4 — ENTREGÁVEL ===== */
.deliver-box {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 32px 36px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
}

.deliver-box h4 {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.deliver-box ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.deliver-box li {
    padding: 0 0 0 30px;
    position: relative;
    color: var(--gray-light);
    line-height: 1.65;
}

.deliver-box li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 700;
}

.deliver-box li strong {
    color: var(--white);
}

.promise-punch {
    text-align: center;
    margin: 40px auto 0;
    max-width: 640px;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.5;
}

.promise-punch .gold {
    color: var(--gold);
}

/* ===== DEGRAU 4 — JORNADA MINI (4 estações) ===== */
.journey-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.journey-step {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-step:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.journey-step--free {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.08);
}

.journey-step__badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gold-subtle);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 14px;
}

.journey-step h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.journey-step p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--gray);
    margin: 0;
}

/* ===== COMO FUNCIONA — TABELA "VOCÊ × NÓS" (dias 1–7) ===== */
.vxn {
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.vxn__head {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    background: var(--black-elevated);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
}

.vxn__head > div {
    padding: 14px 22px;
}

.vxn__row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    border-top: 1px solid var(--border);
    background: var(--black-card);
}

.vxn__row > div {
    padding: 20px 22px;
    font-size: 0.92rem;
    color: var(--gray-light);
    line-height: 1.65;
}

.vxn__row > div + div {
    border-left: 1px solid var(--border);
}

.vxn__day {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
}

.vxn__none {
    color: var(--gray-dark);
    font-style: italic;
}

.vxn-close {
    text-align: center;
    margin-top: 40px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.6;
}

.vxn-close .gold {
    color: var(--gold);
}

/* ===== AGENDAR — O QUE ACONTECE DEPOIS ===== */
.after-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.after-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.after-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-subtle);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.after-step p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--gray-light);
    margin: 0;
}

.after-step b {
    color: var(--white);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .journey-mini {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .vxn__head {
        display: none;
    }

    .vxn__row {
        grid-template-columns: 1fr;
    }

    .vxn__row > div + div {
        border-left: none;
        border-top: 1px dashed var(--border);
    }

    .vxn__row > div[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.66rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--gold);
        font-weight: 700;
        margin-bottom: 4px;
    }
}

@media (max-width: 768px) {
    .mirror-beat {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 0;
    }

    .layer:nth-child(2),
    .layer:nth-child(3),
    .layer:nth-child(4),
    .layer:nth-child(5) {
        margin-left: 0;
    }

    /* Layer cards: allow wrapping on mobile */
    .layer {
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 14px 16px;
    }

    .layer__piece {
        font-size: 0.78rem;
        flex-basis: 100%;
        text-align: left;
        margin-left: 0;
        padding-left: 50px; /* alinha com o texto após o ícone */
    }

    /* DRE rows: stack flag + value on second line */
    .dre-row {
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    .dre-row--hot {
        flex-wrap: wrap;
    }

    .dre-row--hot .dre-row__label {
        flex-basis: 100%;
    }

    .dre-row__flag {
        font-size: 0.6rem;
        order: 1;
    }

    .dre-row--hot .dre-row__val {
        order: 2;
        margin-left: auto;
    }

    .journey-mini {
        grid-template-columns: 1fr;
    }

    .deliver-box {
        padding: 24px 20px;
    }
}
