@media screen {
    html {
        scroll-behavior: smooth;
    }

    body {
        min-width: 320px;
        overflow-x: hidden;
        background: #f4f6f8;
        padding-bottom: 0;
    }

    .leaflet-responsive-page {
        background: #f4f6f8;
    }

    .leaflet-responsive-page .gh-navigation {
        flex: 0 0 auto;
        background: #fff;
    }

    .leaflet-stage {
        width: min(100%, 1240px);
        height: auto;
        margin: 0 auto;
        padding: 0 24px;
    }

    .leaflet-sheet {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
        background: var(--leaflet-paper);
        box-shadow: none;
        transform: none;
        transform-origin: initial;
    }

    .leaflet-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 40%);
        align-items: end;
        min-height: 460px;
        padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 72px) clamp(28px, 4vw, 56px);
        overflow: visible;
    }

    .leaflet-hero::after {
        width: min(36%, 420px);
    }

    .leaflet-hero-content {
        width: min(100%, 680px);
    }

    .leaflet-title {
        display: block;
        max-width: 680px;
        font-size: 38px;
        line-height: 1.16;
        overflow: visible;
        text-decoration: none;
        -webkit-box-orient: initial;
        -webkit-line-clamp: unset;
    }

    .leaflet-partner-label {
        margin: 18px 0 24px;
        font-size: clamp(20px, 2.5vw, 30px);
    }

    .leaflet-referral-row {
        position: relative;
        display: block;
        width: min(100%, 480px);
    }

    .leaflet-referral-box {
        position: relative;
        z-index: 1;
        width: min(100%, 340px);
        min-height: 0;
        padding: 18px 22px;
        border-radius: 8px;
        box-shadow: 0 16px 32px rgba(34, 45, 59, 0.1);
    }

    .leaflet-referral-box span {
        margin-bottom: 6px;
        font-size: 18px;
    }

    .leaflet-referral-box strong {
        max-width: 270px;
        font-size: clamp(28px, 4vw, 42px);
    }

    .blob-button.leaflet-blob {
        --blob-button-width: 220px;
        --blob-button-height: 48px;
        --blob-button-min-height: 40px;
        --blob-button-padding: 0 14px 0 17px;
        --blob-button-font-size: 14px;
        position: absolute;
        z-index: 2;
        top: -16px;
        left: 250px;
        margin: 0;
        width: 220px;
        height: 48px;
        min-width: 220px;
        min-height: 40px;
        padding: 0 14px 0 17px;
    }

    .leaflet-mobile-cta {
        display: none;
    }

    .leaflet-note {
        max-width: 600px;
        gap: 12px;
        margin: 22px 0 0;
        font-size: 16px;
    }

    .leaflet-note span {
        width: 22px;
        height: 22px;
        border-width: 2px;
        border-radius: 4px;
        font-size: 16px;
    }

    .leaflet-visual {
        position: relative;
        right: auto;
        bottom: auto;
        justify-self: end;
        align-self: end;
        width: min(100%, 410px);
        margin: 0 -20px -92px 0;
    }

    .leaflet-bonus {
        position: relative;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 24px;
        row-gap: 8px;
        padding: clamp(24px, 4vw, 42px) clamp(24px, 5vw, 72px);
        font-size: clamp(16px, 1.5vw, 19px);
    }

    .leaflet-bonus p,
    .leaflet-bonus ul {
        max-width: 65%;
    }

    .leaflet-bonus-badge {
        width: clamp(72px, 10vw, 112px);
    }

    .leaflet-bonus ul {
        margin-top: 8px;
        padding-left: 22px;
    }

    .leaflet-features {
        padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px) 0;
    }

    .leaflet-features h2 {
        margin-bottom: clamp(28px, 4vw, 44px);
        font-family: "ING display", "INGme", Arial, sans-serif;
        font-size: clamp(32px, 4.8vw, 58px);
    }

    .leaflet-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        height: auto;
    }

    .leaflet-feature-card {
        display: flex;
        min-height: 100%;
        flex-direction: column;
        border-radius: 20px;
        overflow: visible;
    }

    .leaflet-feature-media {
        position: relative;
        height: 165px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        overflow: visible;
    }

    .leaflet-feature-image.is-money {
        top: -54px;
        width: 92%;
        max-width: none;
        transform: translateX(-61%);
    }

    .leaflet-feature-image.is-piggybank {
        bottom: -28px;
        height: clamp(150px, 19vw, 220px);
        max-width: none;
    }

    .leaflet-feature-image.is-computer {
        bottom: -23px;
        height: clamp(160px, 20vw, 230px);
        max-width: none;
    }

    .leaflet-feature-copy {
        flex: 1;
        padding: 24px;
        font-size: 16px;
    }

    .leaflet-feature-copy h3 {
        margin-bottom: 12px;
        font-size: clamp(20px, 2vw, 25px);
    }

    .leaflet-feature-copy p {
        margin-bottom: 12px;
    }

    .leaflet-feature-copy ul {
        margin-bottom: 12px;
        padding-left: 20px;
    }

    .leaflet-bottom {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
        gap: clamp(28px, 5vw, 64px);
        align-items: center;
        padding: clamp(42px, 6vw, 78px) clamp(24px, 5vw, 72px) clamp(48px, 6vw, 82px);
        overflow: visible;
    }

    .leaflet-zero img {
        width: clamp(150px, 20vw, 230px);
        margin-bottom: 18px;
    }

    .leaflet-zero h2 {
        margin-bottom: 12px;
        font-size: clamp(28px, 3vw, 40px);
    }

    .leaflet-zero ul {
        padding-left: 22px;
        font-size: clamp(16px, 1.5vw, 19px);
    }

    .leaflet-zero li {
        margin-bottom: 8px;
    }

    .leaflet-card {
        min-height: 0;
        padding: clamp(26px, 3.5vw, 38px);
        border-radius: 8px;
        box-shadow: 0 18px 42px rgba(46, 46, 46, 0.13);
    }

    .leaflet-card h2 {
        margin-bottom: 16px;
        font-size: clamp(26px, 2.8vw, 36px);
    }

    .leaflet-card p {
        margin-bottom: 22px;
        font-size: 17px;
    }

    .leaflet-qr {
        width: clamp(150px, 18vw, 210px);
        height: clamp(150px, 18vw, 210px);
        margin-bottom: 22px;
    }

    .leaflet-qr img,
    .leaflet-qr canvas {
        width: 100% !important;
        height: 100% !important;
    }

    .leaflet-qr-error {
        max-width: 190px;
        font-size: 15px;
    }

    .leaflet-code {
        font-size: 20px;
    }

    .leaflet-code strong {
        max-width: 280px;
        margin-top: 8px;
        font-size: clamp(30px, 3.4vw, 42px);
    }

    .leaflet-status {
        margin-top: 16px;
        font-size: 15px;
    }

    .leaflet-actions {
        left: auto;
        right: 24px;
        bottom: 24px;
    }

    .leaflet-responsive-page #footer_section {
        margin-top: 0;
    }
}

@media screen and (max-width: 1024px) {
    .leaflet-stage {
        padding: 0;
    }

    .leaflet-sheet {
        box-shadow: none;
    }

    .leaflet-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 36px;
        overflow: hidden;
    }

    .leaflet-hero::after {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 112px;
    }

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

    .leaflet-referral-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
    }

    .leaflet-referral-box {
        width: 100%;
        flex: 0 0 auto;
    }

    .blob-button.leaflet-blob {
        display: none !important;
    }

    .leaflet-mobile-cta {
        display: inline-flex;
        position: relative;
        align-self: center;
        align-items: center;
        justify-content: center;
        gap: 8px;
        overflow: hidden;
        width: 220px;
        min-height: 38px;
        padding: 8px 14px;
        background: transparent;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.15;
        text-decoration: none;
    }

    .leaflet-mobile-cta::before {
        position: absolute;
        z-index: 0;
        inset: 0;
        background: #7428ff;
        clip-path: shape(from 89.52% 0.17%, line to 84.76% 0.17%, curve to 43.23% 1.91% with 67.68% -0.4%, curve to 5.75% 8.96% with 15.03% 4.51%, curve to 1.01% 19.23% with 2.47% 10.49%, curve to 0% 31.45% with 0.19% 24.19%, line to 0.27% 59.57%, curve to 1.78% 82.06% with 0.46% 73.73%, curve to 7.7% 93.61% with 3.65% 93.66%, line to 87.12% 100%, curve to 91.94% 99.49% with 90.89% 99.95%, curve to 95.44% 95.35% with 94.15% 98.67%, curve to 97.82% 83.08% with 96.93% 91.51%, curve to 99.27% 58.29% with 98.75% 74.24%, line to 99.79% 40.91%, curve to 99.1% 12.9% with 100.44% 21.79%, curve to 89.52% 0.17% with 96.95% -1.47%, close);
        content: "";
    }

    .leaflet-mobile-cta > * {
        position: relative;
        z-index: 1;
    }

    .leaflet-visual {
        justify-self: center;
        width: min(82vw, 360px);
        margin: 28px 0 0;
    }

    .leaflet-bonus {
        padding-top: 42px;
    }

    .leaflet-bonus p,
    .leaflet-bonus ul {
        max-width: none;
    }

    .leaflet-feature-grid,
    .leaflet-bottom {
        grid-template-columns: 1fr;
    }

    .leaflet-feature-image.is-piggybank {
        left: 50%;
        bottom: -12px;
        height: 185px;
        transform: translateX(-50%);
    }

    .leaflet-feature-image.is-computer {
        left: 50%;
        bottom: -23px;
        height: 240px;
        transform: translateX(-50%);
    }
}

@media print {
    .leaflet-responsive-page {
        display: block;
        min-height: 0;
    }

    .leaflet-responsive-page .gh-navigation,
    .leaflet-responsive-page #footer_section {
        display: none !important;
    }
}

@media screen and (max-width: 640px) {
    body {
        padding-bottom: 0;
    }

    .leaflet-hero,
    .leaflet-bonus,
    .leaflet-features,
    .leaflet-bottom {
        padding-left: 18px;
        padding-right: 18px;
    }

    .leaflet-title {
        display: -webkit-box;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
    }

    .leaflet-referral-box {
        width: 100%;
        flex-basis: 100%;
    }

    .leaflet-mobile-cta {
        width: min(100%, 220px);
    }

    .leaflet-bonus {
        display: block;
    }

    .leaflet-bonus-badge {
        display: block;
        margin: 0 auto 18px;
    }

    .leaflet-features h2 {
        text-align: left;
    }

    .leaflet-feature-copy {
        padding: 20px;
    }

    .leaflet-card {
        padding: 24px 18px;
    }

    .leaflet-actions {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        justify-content: center;
        gap: 8px;
    }

    .leaflet-action {
        max-width: none;
        min-height: 48px;
        padding: 12px 10px;
        flex: 1 1 0;
        justify-content: center;
        font-size: 15px;
    }
}
