/* Shared styles for the six product detail pages. */

.subpage {
    background: #071b56;
    color: #fff;
}

.subpage .navbar .logo a {
    display: block;
    line-height: 0;
}

.feature-hero {
    --hero-image: none;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 128px 0 72px;
    overflow: hidden;
    background-color: #07317e;
    background-image: var(--hero-image);
    background-repeat: no-repeat;
    background-position: 35% center;
    background-size: cover;
}

/* Keep title, description and CTA in one responsive content column. */

.feature-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.feature-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(620px, 48%);
    max-width: 620px;
    text-align: left;
}

.feature-hero h1 {
    margin: 0 0 22px;
    font-family: 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    font-size: clamp(37px, 3.2vw, 62px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: 0 3px 20px rgba(0, 20, 77, 0.35);
}

.feature-hero p {
    max-width: 610px;
    margin: 0 0 38px;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    font-size: clamp(18px, 1.2vw, 23px);
    line-height: 1.8;
}

.feature-hero .btn-hero {
    align-self: flex-start;
    min-width: 216px;
    padding: 13px 44px;
    margin-left: 0;
    margin-top: 24px;
    text-align: center;
}

.feature-content {
    position: relative;
    padding: clamp(74px, 6.25vw, 120px) 0 clamp(86px, 7.292vw, 140px);
    
    background-image: url('../img/subpages/shared/content-bg.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.feature-list {
    display: grid;
    gap: clamp(56px, 6.25vw, 120px);
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(42px, 5.208vw, 100px);
    min-height: 390px;
    padding: clamp(36px, 3.125vw, 60px);
}

.feature-row.is-framed {
    border: 1px solid rgba(111, 160, 255, 0.38);
    border-radius: 24px;
    background: rgba(6, 29, 102, 0.16);
    box-shadow: inset 0 0 32px rgba(73, 129, 255, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.feature-row.is-framed:hover,
.feature-content .feature-row.reveal-on-scroll.is-visible:hover {
    transform: translateY(-8px);
    border-color: rgba(111, 160, 255, 0.72);
    background: rgba(6, 29, 102, 0.28);
    box-shadow: 0 20px 60px rgba(0, 13, 72, 0.35), inset 0 0 32px rgba(73, 129, 255, 0.08);
}

.feature-row.is-framed .feature-visual img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.feature-row.is-framed:hover .feature-visual img {
    transform: scale(1.03);
    filter: brightness(1.04);
}

.feature-content .feature-row.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.feature-content .feature-row.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-content .feature-row.reveal-on-scroll:nth-child(1) {
    transition-delay: 0s;
}

.feature-content .feature-row.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.feature-content .feature-row.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.feature-row.is-reversed .feature-visual {
    order: 2;
}

.feature-row.is-reversed .feature-copy {
    order: 1;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.feature-visual img {
    display: block;
    width: 100%;
    max-width: 550px;
    max-height: 440px;
    object-fit: contain;
}

.feature-copy {
    min-width: 0;
}

.feature-copy h2 {
    margin: 0 0 25px;
    font-family: 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    font-size: clamp(29px, 2.083vw, 40px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.feature-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-family: 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 2;
    text-align: justify;
}

/* Result-payment page. */
.payment-intro {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding: clamp(52px, 4.167vw, 80px) clamp(42px, 4.167vw, 80px);
    overflow: hidden;
    border-radius: 48px;
    
    color: #172342;
    box-shadow: 0 22px 60px rgba(0, 13, 72, 0.22);
}

.payment-intro::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/subpages/payment/points.webp') center / cover no-repeat;
    pointer-events: none;
}

.payment-intro-content {
    position: relative;
    z-index: 1;
    width: min(610px, 56%);
}

.payment-eyebrow {
    margin: 0 0 5px;
    color: #2475ff;
    font-size: clamp(26px, 1.979vw, 37px);
    font-weight: 700;
    line-height: 1.3;
}

.payment-intro h2 {
    margin: 0 0 12px;
    font-size: clamp(29px, 2.167vw, 41px);
    line-height: 1.3;
}

.payment-subtitle {
    margin-bottom: 26px;
    color: #384562;
    font-size: clamp(17px, 1.094vw, 21px);
}

.payment-rule {
    margin: 20px 0;
}

.payment-rule p {
    margin: 0 0 10px;
    color: #26334e;
    font-size: clamp(16px, 1.042vw, 19px);
    line-height: 1.7;
}

.payment-rule p::before {
    content: '\2713';
    margin-right: 10px;
    color: #42cc7c;
    font-weight: 700;
}

.points-pill {
    display: inline-block;
    margin-left: 0;
    padding: 8px 18px;
    border-radius: 6px;
    background: #287cff;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(40, 124, 255, 0.22);
}

.payment-note {
    margin-top: 30px;
    color: #69738a;
    font-size: clamp(16px, 1.042vw, 19px);
    line-height: 1.7;
}

.scenario-section {
    margin-top: clamp(92px, 7.292vw, 140px);
}

.scenario-heading {
    text-align: center;
}

.scenario-heading img {
    display: block;
    width: min(650px, 70%);
    height: auto;
    margin: 0 auto;
}

.scenario-heading h2 {
    position: relative;
    margin: 0;
    font-size: clamp(37px, 3.2vw, 62px);
    line-height: 1.2;
}

.scenario-heading p {
    max-width: 850px;
    margin: 0px auto 52px;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(17px, 1.094vw, 21px);
    line-height: 1.9;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 1.563vw, 30px);
}

.scenario-card {
    overflow: hidden;
    
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 19, 82, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.scenario-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(0, 19, 82, 0.28);
}

.scenario-card img {
    display: block;
    width: 100%;
    aspect-ratio: 606 / 365;
    object-fit: cover;
    object-position: top;
}

.scenario-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    margin: 0;
    padding: 12px 10px;
    color: #30384a;
    font-size: clamp(16px, 1.094vw, 21px);
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.payment-highlight {
    color: #ffd43b;
    font-size: 1.35em;
    font-weight: 700;
}

/* Match the payment content width to the 1200px process panel below it. */
.subpage[data-page="payment"] .payment-content > .container {
    max-width: 1280px;
}

.subpage[data-page="payment"] .scenario-heading h2 {
    margin-top: 18px;
}

.subpage .footer-col:first-of-type h4 a {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .feature-hero {
        min-height: 100vh;
        background-position: 58% center;
    }

    .feature-hero-content {
        width: 54%;
    }

    .feature-hero .btn-hero {
        margin-left: 0;
    }

    .feature-row {
        min-height: 330px;
        padding: 36px;
    }

    .payment-intro {
        min-height: 500px;
    }

    .scenario-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 968px) {
    .feature-hero {
        align-items: flex-end;
        min-height: 100vh;
        padding: 110px 0 70px;
        background-position: 32% center;
    }

    .feature-hero-content {
        width: 72%;
    }

    .feature-hero .btn-hero {
        margin-left: 0;
    }

    .feature-list {
        gap: 52px;
    }

    .feature-row {
        gap: 28px;
        padding: 32px;
    }

    .payment-intro {
        min-height: 640px;
        padding: 44px 38px;
    }

    .payment-intro::after {
        background-position: center;
        background-size: cover;
        opacity: 0.6;
    }

    .payment-intro-content {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .feature-hero {
        min-height: 100vh;
        padding-bottom: 54px;
        background-position: 82% center;
    }

    .feature-hero-content {
        width: 100%;
    }

    .feature-hero h1 {
        font-size: 38px;
    }

    .feature-hero p {
        max-width: 520px;
        margin-bottom: 28px;
        font-size: 17px;
        line-height: 1.7;
    }

    .feature-hero .btn-hero {
        min-width: 186px;
        padding: 11px 36px;
        margin-left: 0;
        margin-top: 24px;
        transform: none;
    }

    .feature-content {
        padding: 64px 0 80px;
        background-position: center;
        background-size: cover;
    }

    .feature-row,
    .feature-row.is-reversed {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: 0;
        padding: 28px 24px 34px;
    }

    .feature-row.is-reversed .feature-visual,
    .feature-row.is-reversed .feature-copy {
        order: initial;
    }

    .feature-visual img {
        max-width: 430px;
        max-height: 320px;
    }

    .feature-copy h2 {
        margin-bottom: 16px;
        font-size: 28px;
    }

    .feature-copy p {
        font-size: 17px;
        line-height: 1.85;
        text-align: left;
    }

    .payment-intro {
        min-height: 700px;
        padding: 34px 24px;
        border-radius: 16px;
    }

    .payment-intro::after {
        background-size: cover;
        background-position: center;
        opacity: 0.66;
    }

    .scenario-heading img {
        width: 100%;
    }

    .scenario-heading p {
        margin: 28px auto 38px;
        font-size: 17px;
        text-align: left;
    }

    .scenario-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .scenario-card h3 {
        min-height: 62px;
        font-size: 15px;
    }

    .subpage .process-wrapper {
        padding: 24px 20px;
    }

    .subpage .process-title {
        font-size: 32px;
    }

    .subpage .process-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .feature-hero {
        min-height: 100vh;
    }

    .feature-hero h1 {
        font-size: 33px;
    }

    .feature-row {
        padding: 24px 20px 30px;
    }

    .payment-intro {
        min-height: 735px;
    }

    .payment-eyebrow {
        font-size: 25px;
    }

    .payment-intro h2 {
        font-size: 29px;
    }

    .points-pill {
        margin-left: 0;
    }

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