/* ===== Seção Principal ===== */
.pricing-section {
    width: 100%;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

/* ===== Cabeçalho ===== */
.pricing-header {
    text-align: center;
    max-width: 600px;
}

.pricing-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.pricing-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* ===== Wrapper / Container ===== */
.wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 10px;
}

.cards-container {
    height: 500px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
}

/* ===== Card Base ===== */
.card {
    width: 75px;
    min-width: 75px;
    border-radius: 1.5rem;
    background-size: cover;
    cursor: pointer;
    overflow: hidden;
    margin: 0 8px;
    display: flex;
    align-items: flex-end;
    transition: 0.65s cubic-bezier(0.28, -0.03, 0, 0.99);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

/* ===== Cores dos Cards ===== */
.card.card-purple {
    background: var(--azul-principal);
}

.card.card-green {
    background: var(--azul-terceiro);
}

.card.card-blue {
    background: var(--azul-principal);
}

.card.card-teal {
    background: var(--azul-terceiro);
}

.card.card-gold {
    background: var(--azul-principal);
}

/* ===== Linha interna do card ===== */
.card>.row {
    color: white;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    padding: 20px 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ===== Ícone (coluna colapsada) ===== */
.card>.row>.icon {
    min-width: 75px;
    width: 75px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 12px 10px;
    gap: 10px;
}

.card>.row>.icon svg {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.tab-name {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ===== Descrição (conteúdo expandido) ===== */
.card>.row>.description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    width: 440px;
    min-width: 440px;
    height: 460px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
    padding: 24px 28px 24px 10px;
    overflow: hidden;
}

/* ===== Cabeçalho da descrição ===== */
.desc-header h4 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    text-transform: none;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.tagline {
    line-height: 1.5;
    font-size: 16px;
    padding-top: 10px;
    font-weight: normal;
}

/* ===== Preço ===== */
.price-display {
    display: flex;
    align-items: baseline;
    gap: 3px;
    color: #fff;
}

.price-display sup {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.price-display .amount {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.price-display .period {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 2px;
}

/* Preço especial (Site Personalizado) */
.price-special {
    flex-direction: column;
    gap: 2px;
}

.price-old {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.price-new {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.price-new sup {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.price-new .amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.period-special {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* ===== Lista de features ===== */
.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.features-list li {
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
    font-size: 16px;
    font-weight: normal;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    top: 1px;
}

/* ===== Botão Selecionar ===== */
.btn-select {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    align-self: flex-start;
    backdrop-filter: blur(6px);
}

.btn-select:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
}

/* ===== Input (escondido) ===== */
input[type="radio"] {
    display: none;
}

/* ===== Estado expandido ===== */
input:checked+label {
    width: 520px;
    min-width: 520px;
}

/* especificidade 0,3,3 > 0,3,0 da regra base — necessário para vencer o opacity:0 */
input:checked+label>.row>.description {
    opacity: 1;
    transform: translateX(0);
}

input:checked+label>.row>.icon>.tab-name {
    opacity: 0;
    transition: opacity 0.15s;
}

/* ===== Scrollbar (wrapper) ===== */
.wrapper::-webkit-scrollbar {
    height: 5px;
}

.wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* ===== Responsivo - Mobile ===== */
@media (max-width: 768px) {

    .pricing-section {
        padding: 40px 16px;
        gap: 32px;
    }

    .pricing-header h3 {
        font-size: 1.7rem;
    }

    .cards-container {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    .card {
        width: 100% !important;
        min-width: unset !important;
        min-height: 70px;
        height: auto;
        margin: 8px 0;
        border-radius: 1rem;
        align-items: center;
    }

    .card>.row {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 0 !important;
        align-items: center !important; 
        text-align: center !important;
        width: 100% !important;
    }

    .card>.row>.icon {
        flex-direction: row;
        min-width: unset;
        width: 100%;
        justify-content: center; /* Centraliza o ícone e o nome */
        padding: 0 0 15px 0;
        gap: 10px;
    }

    .tab-name {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0;
    }

    /* Centralizar conteúdo no mobile */
    .card>.row>.description {
        width: 100% !important;
        min-width: unset !important;
        height: 0;
        opacity: 0;
        overflow: hidden;
        transform: none;
        padding: 0;
        gap: 0;
        transition: height 0.5s ease, opacity 0.3s ease 0.15s, padding 0.4s ease, gap 0.4s ease;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; 
        text-align: center !important;
    }

    .price-display {
        justify-content: center;
        margin: 10px 0;
    }

    .btn-select {
        align-self: center;
        margin-top: 10px;
    }

    .features-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Alinha os checks um embaixo do outro */
        width: fit-content;      /* Ocupa apenas a largura necessária */
        margin: 0 auto;         /* Centraliza o bloco da lista no card */
        padding: 0;
        gap: 8px;
    }

    .features-list li {
        padding-left: 25px;
        text-align: left;
        display: block;
        width: 100%;
        font-size: 15px;
    }

    .features-list li::before {
        left: 0;
        top: 2px;
    }

    input:checked+label>.row>.description {
        height: auto !important;
        opacity: 1 !important;
        padding: 0 0 40px 0 !important; /* Espaço extra para o botão não sumir */
        gap: 14px !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    input:checked+label {
        width: 100%;
        min-width: unset;
    }
}