/* Website v4 keeps the visual language of the main homepage while changing
   the story, section order, and comparison. */

.v4-home .hero h1 {
    max-width: 1200px;
}

.v4-home .hero-title-main {
    color: var(--text);
}

.v4-home .hero h1 .em {
    padding-bottom: 0.05em;
}

.v4-home .hero-sub {
    max-width: 850px;
    margin-bottom: 40px;
}

.hero-signal--eu {
    display: inline-flex;
    align-items: center;
    max-width: min(640px, calc(100vw - 32px));
    gap: 12px;
    text-align: left;
}

.hero-eu-stars {
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: rgba(16, 74, 175, 0.54);
    box-shadow: 0 0 20px rgba(32, 134, 240, 0.16);
}

.hero-eu-stars span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    margin: -2.5px;
    color: #ffe04b;
    font-size: 5px;
    line-height: 5px;
    text-align: center;
    transform: rotate(calc(var(--star) * 30deg)) translateY(-9px) rotate(calc(var(--star) * -30deg));
}

.v4-home .hero-ctas .btn-p,
.v4-home .hero-ctas .btn-s {
    min-width: 150px;
    justify-content: center;
}

/* Compact promise section */

.v4-home #production-gap-content {
    --section-pad-top: clamp(96px, 8vw, 128px);
    --section-pad-bottom: clamp(96px, 8vw, 128px);
}

.v4-home #production-gap-content .section-intro {
    margin-bottom: 58px;
}

.v4-home #production-gap-content .facts-heading {
    font-size: clamp(48px, 5.2vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.v4-home #production-gap-content .facts-sub {
    max-width: 760px;
}

/* V3 comparison table, restyled only with main's tokens. */

.comparison-v4 {
    max-width: 1180px;
}

.comparison-v4__heading {
    margin-bottom: 0;
}

.comparison-v4__heading h2 {
    font-size: clamp(42px, 4.5vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.comparison-v4__heading h2 span {
    color: transparent;
    background: linear-gradient(90deg, #d9f5ff 0%, #4d91dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.comparison-v4__heading > p {
    max-width: 760px;
    margin-top: 20px;
    color: rgba(244, 247, 255, 0.72);
    font-family: var(--font-body);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.68;
    text-align: center;
}

.comparison-head {
    display: grid;
    grid-template-columns: minmax(165px, 0.65fr) repeat(3, minmax(0, 1fr));
    overflow: hidden;
    margin-top: 62px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: rgba(8, 10, 14, 0.72);
}

.comparison-head__corner { padding: 22px; }

.comparison-head__option {
    position: relative;
    min-height: 112px;
    padding: 34px clamp(18px, 2.2vw, 32px) 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.comparison-head__option.is-featured {
    background: radial-gradient(circle at 90% 10%, rgba(84, 151, 240, 0.16), transparent 40%), rgba(38, 86, 151, 0.12);
    box-shadow: inset 0 2px #5ea6fa;
}

.comparison-head h3 {
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.comparison-head__option.is-featured h3 { color: #83b9ff; }

.comparison-head p {
    margin-top: 7px;
    color: var(--text-tertiary);
    font-size: 11px;
    line-height: 1.4;
}

.comparison-head__option.is-featured p { color: #75aff7; }

.comparison-table {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: rgba(8, 10, 14, 0.56);
}

.comparison-table__row {
    display: grid;
    grid-template-columns: minmax(165px, 0.65fr) repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table__row:last-child { border-bottom: 0; }

.comparison-table__label,
.comparison-table__cell {
    min-width: 0;
    padding: 17px clamp(18px, 2.2vw, 32px);
}

.comparison-table__label {
    display: flex;
    align-items: center;
    color: rgba(244, 247, 255, 0.86);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.42;
}

.comparison-table__cell {
    display: flex;
    align-items: center;
    gap: 9px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table__cell strong {
    color: rgba(225, 233, 244, 0.76);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.42;
}

.comparison-table__mark {
    display: inline-grid;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    place-items: center;
    border: 1px solid rgba(126, 146, 174, 0.2);
    border-radius: 50%;
    color: #65738a;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.comparison-table__mark.is-included {
    border-color: rgba(111, 181, 255, 0.64);
    background: rgba(61, 126, 216, 0.22);
    color: #a9d1ff;
    box-shadow: 0 0 15px rgba(65, 136, 228, 0.14);
}

.comparison-table__cell.is-featured { background: rgba(38, 86, 151, 0.12); }
.comparison-table__cell.is-featured strong { color: #8fc2ff; }

.comparison-mobile { display: none; }

.comparison-v4__actions {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

@media (max-width: 860px) {
    .comparison-desktop { display: none; }

    .comparison-mobile {
        display: grid;
        gap: 12px;
        margin-top: 46px;
    }

    .comparison-disclosure {
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 12px;
        background: rgba(9, 12, 17, 0.72);
    }

    .comparison-disclosure.is-featured {
        border-color: rgba(103, 166, 249, 0.48);
        background: radial-gradient(circle at 100% 0%, rgba(72, 135, 224, 0.12), transparent 40%), rgba(10, 18, 30, 0.86);
    }

    .comparison-disclosure summary {
        display: flex;
        min-height: 78px;
        padding: 17px 20px;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        list-style: none;
        cursor: pointer;
    }

    .comparison-disclosure summary::-webkit-details-marker { display: none; }
    .comparison-disclosure summary span { display: grid; gap: 3px; }
    .comparison-disclosure summary strong { font-size: 17px; }
    .comparison-disclosure.is-featured summary strong { color: #83b9ff; }

    .comparison-disclosure summary small {
        color: var(--text-tertiary);
        font-size: 12px;
    }

    .comparison-disclosure summary svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: #7caef0;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 180ms ease;
    }

    .comparison-disclosure[open] summary svg { transform: rotate(180deg); }
    .comparison-disclosure__body { padding: 0 20px 24px; }

    .comparison-disclosure dl {
        display: grid;
        grid-template-columns: minmax(140px, 0.42fr) 1fr;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .comparison-disclosure dt,
    .comparison-disclosure dd {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 12px;
        line-height: 1.5;
    }

    .comparison-disclosure dt {
        color: rgba(244, 247, 255, 0.84);
        font-weight: 600;
    }

    .comparison-disclosure dd {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .comparison-disclosure dd strong {
        color: rgba(225, 233, 244, 0.76);
        font-size: 11.5px;
        font-weight: 600;
    }

    .comparison-disclosure.is-featured dd strong { color: #8fc2ff; }
}

@media (min-width: 601px) and (max-width: 700px) {
    .v4-home .hero-signals {
        padding-left: 16px;
        padding-right: 16px;
    }

    .v4-home .hero-signal--eu {
        min-width: 0;
        max-width: 100%;
        font-size: 13px;
        line-height: 1.35;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .v4-home #production-gap-content {
        background-color: #1e1e22;
    }

    .v4-home .hero h1 {
        width: calc(100vw - 24px);
        max-width: 390px;
        padding-left: 0;
        padding-right: 0;
        font-size: clamp(29px, 9vw, 40px);
    }

    .v4-home .hero h1 br {
        display: none;
    }

    .v4-home .hero-title-main,
    .v4-home .hero h1 .em {
        display: block;
        max-width: none;
        white-space: nowrap;
    }

    .v4-home #production-gap-content .facts-heading,
    .comparison-v4__heading h2 {
        font-size: clamp(38px, 11vw, 48px);
    }

    .hero-signal--eu {
        align-items: flex-start;
        font-size: 10px;
        line-height: 1.5;
    }

    .comparison-disclosure dl { grid-template-columns: 1fr; }

    .comparison-disclosure dt {
        padding-bottom: 4px;
        border: 0;
    }

    .comparison-disclosure dd { padding-top: 0; }

}
