*, *::before, *::after { box-sizing: border-box; }

/* ── Hero ─────────────────────────────────────────────────── */

.lp-calc-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(36, 25, 55, 0.98) 0%, rgba(36, 25, 55, 0.98) 58%, rgba(31, 22, 48, 0.98) 100%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 18px);
    color: #ffffff;
    padding: 72px 0 88px;
    border-bottom: 1px solid rgba(36, 205, 188, 0.18);
}

.lp-calc-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #24cdbc 0%, rgba(36, 205, 188, 0) 42%);
}

.lp-calc-hero__inner {
    width: min(100% - 80px, 1020px);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lp-calc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    border-radius: 3px;
    background: #24cdbc;
    color: #052a39;
    padding: 5px 11px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.2s ease;
}

.lp-calc-hero__eyebrow:hover { background: #1fb8a9; }

.lp-calc-hero__line {
    width: 48px;
    height: 2px;
    background: #8f8a95;
    margin: 26px 0 22px;
}

.lp-calc-hero__title {
    max-width: 740px;
    margin: 0 0 18px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.05;
}

.lp-calc-hero__text {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ── Seção calculadora ────────────────────────────────────── */

.lp-calc-app {
    background: linear-gradient(180deg, #f7fafc 0%, #edf2f8 100%);
    padding: 64px 0 88px;
}

.lp-calc-app__inner {
    width: min(100% - 80px, 980px);
    margin: 0 auto;
}

/* ── Card com 2 colunas ───────────────────────────────────── */

.hec-card {
    border: 1px solid #dbe4ee;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(19, 39, 67, 0.12);
    overflow: hidden;
}

.hec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ── Coluna esquerda: formulário ─────────────────────────── */

.hec-form {
    padding: 40px 36px 44px;
    background: #f5f8fc;
    border-right: 1px solid #e3eaf1;
}

.hec-form__eyebrow {
    color: #24cdbc;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.hec-form__title {
    color: #1e2d3d;
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 32px;
}

/* campo */
.hec-field {
    margin-bottom: 22px;
}

.hec-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.hec-label__hint {
    color: #9ca3af;
    font-size: 0.74rem;
    font-weight: 500;
}

.hec-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d1d9e0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hec-input-wrap:focus-within {
    border-color: #24cdbc;
    box-shadow: 0 0 0 3px rgba(36, 205, 188, 0.14);
}

.hec-input-addon {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f0f4f8;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    user-select: none;
    border: 0;
}

.hec-input-addon--prefix { border-right: 1.5px solid #d1d9e0; }
.hec-input-addon--suffix { border-left:  1.5px solid #d1d9e0; }

.hec-input {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    border: 0;
    background: transparent;
    color: #1e2d3d;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    padding: 10px 14px;
    outline: none;
}

.hec-input::placeholder { color: #b0b8c4; font-weight: 400; }

/* botões rápidos de percentual */
.hec-quick-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.hec-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 8px;
    border: 1.5px solid #d1d9e0;
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.hec-quick-btn:hover {
    border-color: #24cdbc;
    background: #f0fffe;
    transform: translateY(-1px);
}

.hec-quick-btn.is-active {
    border-color: #24cdbc;
    background: #effffb;
}

.hec-quick-btn__pct {
    color: #1e2d3d;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.hec-quick-btn__desc {
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.hec-disclaimer {
    margin-top: 28px;
    color: #9ca3af;
    font-size: 0.78rem;
    line-height: 1.5;
}

/* ── Coluna direita: resultado ───────────────────────────── */

.hec-result {
    padding: 40px 36px 44px;
    display: flex;
    flex-direction: column;
}

.hec-result__eyebrow {
    color: #ff9900;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.hec-result__title {
    color: #1e2d3d;
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 24px;
}

/* destaque principal */
.hec-result__highlight {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f3f6fa;
    border: 1.5px solid #e3eaf1;
    margin-bottom: 28px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hec-result__big {
    color: #b0b8c4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 900;
    line-height: 1;
    transition: color 0.25s ease;
}

.hec-result__big.is-filled,
.hec-result__big.is-positive {
    color: #1ab89e;
}

.hec-result__highlight:has(.is-filled) {
    background: #effffb;
    border-color: rgba(36, 205, 188, 0.35);
}

/* linhas de breakdown */
.hec-result__rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.hec-result__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f4f8;
}

.hec-result__row:last-child { border-bottom: 0; }

.hec-result__row-label {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.hec-result__row-value {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.hec-result__row-value--accent { color: #24cdbc; }

/* linha de total */
.hec-result__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #241937 0%, #1a102e 100%);
}

.hec-result__total-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hec-result__total-value {
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 900;
}

.hec-result__total-value.is-positive { color: #5de8d4; }

/* ── Cards informativos ──────────────────────────────────── */

.lp-calc-info {
    background: #ffffff;
    border-top: 1px solid #e8edf4;
    padding: 60px 0 72px;
}

.lp-calc-info__inner {
    width: min(100% - 80px, 1020px);
    margin: 0 auto;
}

.lp-calc-info__heading {
    color: #2d3748;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 8px;
}

.lp-calc-info__sub {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 40px;
    max-width: 560px;
}

.lp-calc-info__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.lp-calc-info__card {
    border: 1px solid #e3eaf1;
    border-radius: 14px;
    background: #ffffff;
    padding: 26px 22px 24px;
    box-shadow: 0 8px 28px rgba(19, 39, 67, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lp-calc-info__card:hover {
    border-color: rgba(36, 205, 188, 0.4);
    box-shadow: 0 16px 38px rgba(19, 39, 67, 0.1);
    transform: translateY(-2px);
}

.lp-calc-info__icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #effffb;
    border: 1px solid rgba(36, 205, 188, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #24cdbc;
}

.lp-calc-info__card h3 {
    color: #374151;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
}

.lp-calc-info__card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ── CTA ─────────────────────────────────────────────────── */

.lp-calc-cta {
    background: linear-gradient(135deg, #241937 0%, #1a102e 100%);
    padding: 52px 0 56px;
    border-top: 1px solid rgba(36, 205, 188, 0.15);
}

.lp-calc-cta__inner {
    width: min(100% - 80px, 860px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.lp-calc-cta__text h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 10px;
}

.lp-calc-cta__text p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    max-width: 460px;
}

.lp-calc-cta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff9900 0%, #f08a00 100%);
    color: #ffffff;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(255, 153, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-calc-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(255, 153, 0, 0.38);
}

/* ── Responsivo ──────────────────────────────────────────── */

@media (max-width: 860px) {
    .lp-calc-hero__inner,
    .lp-calc-app__inner,
    .lp-calc-info__inner,
    .lp-calc-cta__inner { width: min(100% - 48px, 820px); }

    .hec-form,
    .hec-result { padding: 32px 28px 36px; }

    .lp-calc-info__grid { grid-template-columns: repeat(2, 1fr); }

    .lp-calc-cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 660px) {
    .hec-grid { grid-template-columns: 1fr; }

    .hec-form { border-right: 0; border-bottom: 1px solid #e3eaf1; }

    .lp-calc-hero { padding: 48px 0 64px; }

    .lp-calc-hero__inner,
    .lp-calc-app__inner,
    .lp-calc-info__inner,
    .lp-calc-cta__inner { width: min(100% - 32px, 540px); }

    .lp-calc-info__grid { grid-template-columns: 1fr; }

    .lp-calc-cta__btn { width: 100%; justify-content: center; }
}
