/* NoLapis Planos v1.2 — tipografia e cores do kit Elementor (Figtree) */

.nlp-planos {
    --nlp-brand: var(--e-global-color-primary, #552e4c);
    --nlp-accent: var(--e-global-color-accent, #e46353);
    --nlp-text: var(--e-global-color-text, #272727);
    --nlp-muted: #67748e;
    --nlp-border: #e9ecef;
    --nlp-font: var(--e-global-typography-text-font-family, "Figtree"), system-ui, sans-serif;
    --nlp-text-size: var(--e-global-typography-text-font-size, 18px);
    --nlp-heading-size: var(--e-global-typography-secondary-font-size, 28px);
    --nlp-label-size: var(--e-global-typography-f4a0bab-font-size, 16px);

    color: var(--nlp-text);
    font-family: var(--nlp-font);
    font-size: var(--nlp-text-size);
    font-weight: 400;
    line-height: 1.6;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 0 2.5rem;
}

/* Incorporado no Elementor: não compete com hero/rodapé da página */
.nlp-planos--somente-tabela {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Hero — alinhado aos headings Elementor da página */
.nlp-hero {
    text-align: center;
    padding: 2rem 1.25rem 2.25rem;
    margin-bottom: 0.35rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #faf5f9 0%, #ffffff 42%, #f8fafc 100%);
    border: 1px solid #ece6ea;
    box-shadow: 0 8px 32px rgba(85, 46, 76, 0.06);
}

.nlp-hero__eyebrow {
    margin: 0 0 0.65rem;
    font-size: var(--nlp-label-size);
    font-weight: 500;
    line-height: 1.5;
    color: var(--nlp-muted);
}

.nlp-hero__title {
    margin: 0 0 0.75rem;
    font-family: var(--nlp-font);
    font-size: clamp(1.65rem, 3vw, var(--nlp-heading-size));
    font-weight: 600;
    line-height: 1.25;
    color: var(--nlp-brand);
}

.nlp-hero__lead {
    margin: 0 auto;
    max-width: 680px;
    font-size: var(--nlp-text-size);
    line-height: 1.6;
    color: var(--nlp-text);
    opacity: 0.92;
}

.nlp-hero__sync {
    margin: 0.85rem auto 0;
    max-width: 520px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--nlp-muted);
}

/* Panel */
.nlp-panel {
    background: none;
    border: none;
    border-radius: 1rem;
    padding: 0;
    box-shadow: none;
    margin-bottom: 2rem;
    overflow: visible;
}

.nlp-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.15rem;
    padding: 0.75rem 0.9rem;
    background: none;
    border: none;
    border-radius: 0.75rem;
}

.nlp-toolbar__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nlp-muted);
}

.nlp-period-toggle {
    display: flex;
    background: #f1f3f5;
    border-radius: 2rem;
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--nlp-border);
}

.nlp-period-toggle button {
    flex: 1;
    border: 0;
    border-radius: 2rem;
    padding: 0.5rem 0.9rem;
    font-family: var(--nlp-font);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--nlp-muted);
    background: transparent;
    cursor: pointer;
}

.nlp-period-toggle button.is-active {
    background: linear-gradient(195deg, var(--nlp-brand) 0%, #6d3a62 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(85, 46, 76, 0.28);
}

.nlp-period-hint {
    margin: 0.55rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #525f7f;
    text-align: right;
}

/* Grid 4 colunas */
.nlp-plans-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 1.1rem;
    overflow: visible;
}

@media (min-width: 768px) {
    .nlp-plans-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .nlp-plans-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.nlp-plans-col {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    padding-top: 0.9rem;
}

/* Card */
.nlp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    margin-top: 0;
    border: 2px solid transparent;
    border-radius: 0.85rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    background: #e6e6e6;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Badge na coluna — não desloca o card em relação aos demais */
.nlp-plans-col > .nlp-card__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    background: var(--nlp-accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.38rem 0.8rem;
    border-radius: 2rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(228, 99, 83, 0.4);
}

.nlp-card--destaque {
    border-color: rgba(85, 46, 76, 0.35);
    box-shadow: 0 10px 28px rgba(85, 46, 76, 0.14);
}

@media (hover: hover) {
    .nlp-plans-col:hover .nlp-card {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }
}

.nlp-card--trial {
    border-color: rgba(13, 148, 136, 0.25);
}

.nlp-card__hero {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.15rem 1.15rem;
    color: #fff;
    border-radius: 0.85rem 0.85rem 0 0;
}

.nlp-card__hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.nlp-card__eyebrow {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-bottom: 0.3rem;
}

.nlp-card__title {
    margin: 0 0 0.3rem;
    font-family: var(--nlp-font);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}

.nlp-card__subtitle {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
    opacity: 0.9;
    color: #fff;
}

.nlp-card__price-wrap {
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.nlp-card__price {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.nlp-card__price-suffix {
    font-size: 0.85rem;
    font-weight: 500;
}

.nlp-card__billing {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    line-height: 1.4;
    opacity: 0.85;
}

.nlp-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.75rem 0.7rem 0.95rem;
    background: #e6e6e6;
    border-radius: 0 0 0.85rem 0.85rem;
    overflow: hidden;
}

.nlp-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-bottom: 0.55rem;
    margin-bottom: 0.45rem;
    border-bottom: 1px solid var(--nlp-border);
}

.nlp-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.35;
    color: #2d6a4f;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 0.35rem;
    padding: 0.28rem 0.48rem;
}

.nlp-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    margin-bottom: 0.85rem;
}

.nlp-feature-group {
    background: rgba(230, 230, 230, 0.3);
    border: 1px solid var(--nlp-border);
    border-radius: 0.45rem;
    overflow: hidden;
}

.nlp-feature-group__title {
    margin: 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #5e6e82;
    background: #fff;
    border-bottom: 1px solid var(--nlp-border);
}

.nlp-feature-group__list {
    margin: 0;
    padding: 0.2rem 0.28rem 0.28rem;
    list-style: none;
}

.nlp-feature {
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    align-items: start;
    gap: 0.3rem;
    padding: 0.32rem 0.28rem;
    font-size: 0.85rem;
    line-height: 1.1;
    color: #525f7f !important;
}

.nlp-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    font-size: 0.5rem;
    font-weight: 700;
}

.nlp-feature--on .nlp-feature__icon {
    background: #d1fae5;
    color: #059669;
}

.nlp-feature--off .nlp-feature__icon {
    background: #fee2e2;
    color: #dc2626;
    opacity: 0.8;
}

.nlp-feature__label {
    color: #525f7f;
}

.nlp-feature--off .nlp-feature__label {
    color: #525f7f;
    text-decoration: line-through;
    text-decoration-color: rgba(82, 95, 127, 0.45);
}

.nlp-feature__qtd {
    display: inline-block;
    margin-left: 0.15rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--nlp-muted);
    background: #e9ecef;
    border-radius: 0.2rem;
    padding: 0.04rem 0.25rem;
}

.nlp-card__footer {
    margin-top: auto;
}

.nlp-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.7rem 0.85rem;
    border-radius: 2rem;
    font-family: var(--nlp-font);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.nlp-btn--primary {
    background: linear-gradient(195deg, var(--nlp-brand) 0%, #3f2340 100%);
    color: #fff !important;
    border: 0;
}

.nlp-btn--primary:hover {
    background: linear-gradient(195deg, var(--nlp-accent) 0%, #9b414e 55%, var(--nlp-brand) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(228, 99, 83, 0.3);
}

.nlp-btn--trial {
    background: #fff;
    color: var(--nlp-brand) !important;
    border: 2px solid var(--nlp-brand);
}

.nlp-btn--trial:hover {
    background: var(--nlp-brand) !important;
    color: #fff !important;
}

.nlp-btn--outline {
    background: #fff;
    color: var(--nlp-brand) !important;
    border: 1px solid var(--nlp-brand);
}

.nlp-btn--outline:hover {
    background: var(--nlp-brand) !important;
    color: #fff !important;
}

/* Consultivo — fora da grade de 4 */
.nlp-consultivo {
    margin-bottom: 2rem;
}

.nlp-consultivo__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #f5f0f5 0%, #fff 100%);
    border: 1px solid #e8dce6;
}

.nlp-consultivo__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nlp-brand);
    margin-bottom: 0.25rem;
}

.nlp-consultivo__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--nlp-brand);
}

.nlp-consultivo__desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--nlp-muted);
    max-width: 58ch;
}

.nlp-consultivo .nlp-btn {
    width: auto;
    min-width: 200px;
}

/* FAQ */
.nlp-faq {
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.nlp-faq__title {
    text-align: center;
    margin: 0 0 1rem;
    font-size: var(--nlp-heading-size);
    font-weight: 600;
    line-height: 1.25;
    color: var(--nlp-brand);
}

.nlp-faq__item {
    border: 1px solid var(--nlp-border);
    border-radius: 0.5rem;
    margin-bottom: 0.45rem;
    background: #fff;
    padding: 0.15rem 0.8rem;
}

.nlp-faq__item summary {
    cursor: pointer;
    font-size: var(--nlp-label-size);
    font-weight: 600;
    line-height: 1.45;
    padding: 0.6rem 0;
}

.nlp-faq__item p {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--nlp-muted);
}

.nlp-avisos {
    max-width: 900px;
    margin: 0 auto;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--nlp-muted);
}

.nlp-avisos p {
    margin: 0 0 0.3rem;
}

.nlp-planos--erro {
    padding: 1.15rem;
    border-radius: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    text-align: center;
}

/* Elementor às vezes corta overflow dos containers pai */
.elementor-widget-shortcode:has(#nolapis-planos),
.elementor-element:has(#nolapis-planos) {
    overflow: visible !important;
}

@media (max-width: 767px) {
    .nlp-planos {
        --nlp-heading-size: 24px;
        --nlp-text-size: 16px;
    }

    .nlp-toolbar {
        justify-content: stretch;
    }

    .nlp-period-hint {
        text-align: center;
    }

    .nlp-plans-col {
        padding-top: 0.9rem;
    }

    .nlp-consultivo .nlp-btn {
        width: 100%;
    }
}
