:root {
    --leaflet-orange: #ff6200;
    --leaflet-magenta: #d9008b;
    --leaflet-plum: #520027;
    --leaflet-ink: #2b2f35;
    --leaflet-muted: #5d404c;
    --leaflet-paper: #f6f1ee;
    --leaflet-blue: #eaf2fa;
    --leaflet-scale: 1;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #e4e4e4;
    color: var(--leaflet-ink);
    font-family: "INGme", Arial, sans-serif;
    line-height: 1.35;
}

a {
    color: inherit;
}

.leaflet-stage {
    width: 210mm;
    height: 297mm;
    margin: 24px auto;
}

.leaflet-sheet {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 96mm minmax(0, 1fr);
    width: 210mm;
    height: 297mm;
    overflow: hidden;
    background: var(--leaflet-paper);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.16);
}

.leaflet-sheet > * {
    min-height: 0;
}

.leaflet-hero {
    position: relative;
    z-index: 2;
    min-height: 0;
    padding: 9mm 5mm 4mm 5mm;
    overflow: visible;
    background: var(--leaflet-blue);
}

.leaflet-hero::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 51mm;
    height: 100%;
    background: var(--leaflet-orange);
    content: "";
}

.leaflet-hero-content {
    position: relative;
    z-index: 2;
    width: 128mm;
}

.leaflet-title {
    display: -webkit-box;
    max-width: 124mm;
    margin: 0;
    color: var(--leaflet-ink);
    font-family: "ING display", "INGme", Arial, sans-serif;
    font-size: 7.5mm;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.leaflet-partner-label {
    margin: 3.6mm 0 4.8mm;
    color: var(--leaflet-orange);
    font-size: 4.2mm;
}

.leaflet-referral-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.leaflet-referral-box {
    width: 69.8mm;
    min-height: 19.8mm;
    padding: 3mm 3.5mm 3.2mm;
    border-radius: 1.8mm;
    background: #fff;
    box-shadow: 0 5mm 12mm rgba(34, 45, 59, 0.08);
}

.leaflet-referral-box span {
    display: block;
    margin-bottom: 1mm;
    color: #4a4a4a;
    font-size: 4.3mm;
}

.leaflet-referral-box strong,
.leaflet-code strong {
    display: inline-block;
    color: var(--leaflet-magenta);
    font-family: "ING display", "INGme", Arial, sans-serif;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.leaflet-referral-box strong {
    max-width: 61mm;
    font-size: 6.8mm;
}

.leaflet-copyable-code {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    vertical-align: middle;
}

.leaflet-copy-code {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.leaflet-copy-code img {
    display: block;
    width: 24px;
    height: 24px;
}

.leaflet-copy-code:focus-visible {
    outline: 2px solid var(--leaflet-orange);
    outline-offset: 2px;
}

.blob-button.leaflet-blob {
    margin-top: -3mm;
    margin-left: -19mm;
}

.blob-button.leaflet-blob .blob-button__icon {
    height: 18px;
    margin-left: 4px;
    width: 18px;
}

.leaflet-note {
    display: flex;
    align-items: flex-start;
    gap: 2.4mm;
    margin: 4.4mm 0 0;
    color: var(--leaflet-plum);
    font-size: 3.1mm;
}

.leaflet-note span {
    display: grid;
    width: 3.8mm;
    height: 3.8mm;
    flex: 0 0 auto;
    place-items: center;
    border: 0.35mm solid var(--leaflet-orange);
    border-radius: 0.6mm;
    color: var(--leaflet-orange);
    font-family: Georgia, serif;
    font-size: 3.1mm;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.leaflet-visual {
    position: absolute;
    z-index: 1;
    right: 3mm;
    bottom: -12mm;
    width: 72mm;
    height: auto;
}

.leaflet-bonus {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 25mm 118mm;
    column-gap: 1mm;
    align-items: center;
    min-height: 0;
    padding: 5.5mm 8mm 4mm;
    background: #fff;
    color: var(--leaflet-plum);
    font-size: 3.1mm;
}

.leaflet-bonus-badge {
    grid-row: span 2;
    width: 20.8mm;
    height: auto;
    justify-self: center;
}

.leaflet-bonus p {
    margin: 0;
}

.leaflet-bonus ul {
    margin: 0.6mm 0 0;
    padding-left: 5mm;
}

.leaflet-features {
    min-height: 0;
    padding: 8mm 8mm 0;
    overflow: visible;
}

.leaflet-features h2 {
    margin: 0 0 6.8mm;
    color: var(--leaflet-plum);
    font-family: "INGme", Arial, sans-serif;
    font-size: 8.6mm;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.leaflet-features h2 span,
.leaflet-card h2 span,
.leaflet-zero h2 span {
    color: var(--leaflet-magenta);
}

.leaflet-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4mm;
    height: 71mm;
}

.leaflet-feature-card {
    overflow: visible;
    border-radius: 20px;
    background: #fff;
}

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

.leaflet-feature-media.is-yellow {
    background: #fff06a;
}

.leaflet-feature-media.is-lavender {
    background: #d9d8e8;
}

.leaflet-feature-media.is-blue {
    background: #b6e8fb;
}

.leaflet-feature-image {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: block;
    transform: translateX(-50%);
}

.leaflet-feature-image.is-money {
    width: 90%;
    transform: translateX(-62%);
    top: -46px;
    bottom: auto;
}

.leaflet-feature-image.is-piggybank {
    height: 125px;
    width: auto;
    bottom: -3mm;
    left: 0px;
    transform: none;
}

.leaflet-feature-image.is-computer {
    height: 150px;
    width: auto;
    left: 0;
    bottom: -15px;
    transform: none;
}

.leaflet-feature-copy {
    padding: 4.3mm 4mm 4.8mm;
    color: #191919;
    font-size: 2.85mm;
}

.leaflet-feature-copy h3 {
    margin: 0 0 2.8mm;
    font-family: "INGme", Arial, sans-serif;
    font-size: 3.8mm;
    line-height: 1.2;
}

.leaflet-feature-copy p {
    margin: 0 0 2.2mm;
}

.leaflet-feature-copy p:last-child {
    margin-bottom: 0;
}

.leaflet-feature-copy ul {
    margin: 0 0 2.2mm;
    padding-left: 3.8mm;
}

.leaflet-feature-copy li {
    margin-bottom: 0.45mm;
}

.leaflet-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70.5mm;
    gap: 12mm;
    align-items: end;
    min-height: 0;
    padding: 10mm 34mm 10mm 34mm;
    overflow: hidden;
}

.leaflet-zero {
    min-width: 0;
}

.leaflet-zero img {
    display: block;
    width: 54mm;
    height: auto;
    margin: 0 auto 2.6mm;
}

.leaflet-zero h2 {
    margin: 0 0 1.4mm;
    color: var(--leaflet-ink);
    font-family: "ING display", "INGme", Arial, sans-serif;
    font-size: 4.3mm;
    line-height: 1.12;
}

.leaflet-zero ul {
    margin: 0;
    padding-left: 4mm;
    color: #282828;
    font-size: 2.75mm;
}

.leaflet-zero li {
    margin-bottom: 0.8mm;
}

.leaflet-zero li::marker {
    color: var(--leaflet-orange);
}

.leaflet-card {
    min-height: 70mm;
    padding: 4.8mm 5.3mm;
    background: #fff;
    box-shadow: 0 5mm 10mm rgba(46, 46, 46, 0.13);
    color: #222;
    text-align: center;
}

.leaflet-card h2 {
    margin: 0 0 3mm;
    color: var(--leaflet-ink);
    font-family: "ING display", "INGme", Arial, sans-serif;
    font-size: 4.2mm;
    line-height: 1.12;
}

.leaflet-card p {
    margin: 0 0 3.6mm;
    color: #222;
    font-size: 3.1mm;
}

.leaflet-card a {
    color: var(--leaflet-orange);
    font-weight: 700;
    text-decoration: underline;
}

.leaflet-card a::after {
    content: " ↗";
}

.leaflet-qr {
    display: inline-grid;
    width: 30mm;
    height: 30mm;
    place-items: center;
    margin-bottom: 3.5mm;
    background: #fff;
}

.leaflet-qr img,
.leaflet-qr canvas {
    display: block;
    width: 30mm !important;
    height: 30mm !important;
}

.leaflet-qr-error {
    max-width: 40mm;
    color: #333;
    font-size: 3mm;
}

.leaflet-code {
    color: #4b4b4b;
    font-size: 4mm;
    line-height: 1.14;
}

.leaflet-code strong {
    max-width: 56mm;
    margin-top: 1.2mm;
    font-size: 6.4mm;
}

.leaflet-status {
    margin: 3mm 0 0;
    color: #555;
    font-size: 3mm;
}

.leaflet-status:empty {
    display: none;
}

.leaflet-status.is-error {
    color: #a30000;
}

.leaflet-actions {
    position: fixed;
    z-index: 1000;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 12px;
}

.leaflet-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--leaflet-orange);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    color: #fff;
    cursor: pointer;
    font: 700 16px/1 "INGme", Arial, sans-serif;
}

.leaflet-action img {
    display: block;
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.leaflet-action:hover {
    background: #e85900;
}

.leaflet-action:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 820px) {
    body {
        overflow-x: hidden;
        padding-bottom: 86px;
    }

    .leaflet-stage {
        width: calc(100vw - 16px);
        height: auto;
        min-height: 0;
        margin: 8px auto 96px;
    }

    .leaflet-sheet {
        transform: scale(var(--leaflet-scale));
        transform-origin: top left;
    }

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

    .leaflet-action {
        justify-content: center;
        min-height: 48px;
        max-width: 172px;
        padding: 12px 14px;
        flex: 1 1 0;
        white-space: nowrap;
    }

    .leaflet-action img {
        width: 20px;
        height: 20px;
    }
}

@page {
    size: A4 portrait;
    margin: 0;
}

@media print {
    html,
    body {
        width: 210mm;
        height: 297mm;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: var(--leaflet-paper);
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body > *:not(.leaflet-stage) {
        display: none !important;
    }

    .leaflet-stage,
    .leaflet-sheet {
        width: 210mm;
        height: 297mm !important;
        margin: 0;
        transform: none;
    }

    .leaflet-stage {
        position: relative;
        top: 0;
        left: 0;
        display: block;
        overflow: hidden;
        break-after: avoid;
        page-break-after: avoid;
    }

    .leaflet-sheet {
        overflow: hidden;
        box-shadow: none;
        min-height: 0;
    }

    body.is-safari-print .leaflet-stage {
        background: var(--leaflet-paper);
    }

    body.is-safari-print .leaflet-sheet {
        height: 297mm !important;
        transform: translateY(8mm) scaleY(0.95);
        transform-origin: top left;
    }

    .leaflet-title {
        line-height: 1.2;
        padding-bottom: 0.8mm;
        margin-bottom: -0.8mm;
    }

    .leaflet-actions {
        display: none !important;
    }
}
