/*
    julekalender.simpledigital.dk: the Christmas palette from the Google Ads banners (Figma:
    Simple Agency Group → Julekampagne) — "It's so last Christmas" green, Automat pink and Stabilo
    yellow — and where the 3D cartoon graphics sit. The graphics are placeholders until the final
    hero and icons are in.
*/

.lp--julekalender {
    --lp-bg: #04342b;
    --lp-bg-alt: #034639;
    --lp-text: #ffffff;
    --lp-muted: rgba(255, 255, 255, 0.78);
    --lp-line: rgba(255, 255, 255, 0.22);
    --lp-surface: rgba(255, 255, 255, 0.035);
    --lp-highlight: #ecb8b8;
    --lp-highlight-text: #034639;
    --lp-signal: #faff7e;
    --lp-panel: #ecb8b8;
    --lp-panel-text: #04342b;
    --lp-button: #faff7e;
    --lp-button-text: #04342b;
}

/*
    Hero, after the Figma frame "bg" (1920x1300): the whole first screen under the header, with the
    text in its middle. The graphics are placed in container units (1cqw = 1 % of the hero's width),
    so they keep their sizes relative to each other at any width: two branches at the top, set
    differently so they do not read as one mirrored, and gifts along the bottom edge.
*/

.jk-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 73px);
    overflow: hidden;
    container-type: inline-size;
    margin-bottom: clamp(48px, 8vw, 128px);
    padding: clamp(48px, min(9cqw, 9svh), 140px) 0;
    text-align: center;
}

.jk-hero__decor img {
    position: absolute;
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.jk-hero__branch--left {
    left: -9cqw;
    top: -7.5cqw;
    width: 34cqw;
    transform: rotate(-16deg);
}

.jk-hero__branch--right {
    right: -4cqw;
    top: -6cqw;
    width: 24cqw;
    transform: rotate(12deg);
}

/* The faded snowflakes; the svg carries its own 20 % opacity. */
.jk-hero__flake--a {
    left: -4cqw;
    top: 14.7cqw;
    width: 12.5cqw;
    transform: rotate(-143deg);
}

.jk-hero__flake--b {
    left: 15cqw;
    top: 37.3cqw;
    width: 6.6cqw;
    transform: rotate(136deg) scaleX(-1);
}

.jk-hero__flake--c {
    right: -8.6cqw;
    top: 21.9cqw;
    width: 15.5cqw;
    transform: rotate(136deg) scaleX(-1);
}

.jk-hero__flake--d {
    left: 75.6cqw;
    top: 47.4cqw;
    width: 2.9cqw;
    transform: rotate(-143deg);
}

/* The gifts stand whole on the bottom edge of the first screen, a fifth smaller than in the frame. */
.jk-hero__gift-stack {
    left: -1.4cqw;
    bottom: 0;
    z-index: 2;
    width: 16.6cqw;
}

.jk-hero__gift-pink {
    right: -9cqw;
    bottom: 0;
    z-index: 2;
    width: 29.1cqw;
}

.jk-hero__gift-green {
    right: 10cqw;
    bottom: 0;
    z-index: 3;
    width: 13.3cqw;
}

.jk-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* "Deltag i" in the frame: Stabilo yellow, mono bold. */
.jk-hero__kicker {
    margin: 0 0 14px;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--lp-signal);
}

.jk-hero__title {
    max-width: 14ch;
    margin: 0 auto;
    font-size: clamp(40px, 4.6vw, 74px);
    letter-spacing: -0.033em;
    line-height: 1.1;
    text-wrap: balance;
}

/* On a narrow screen the gifts take up the bottom of the hero, so the text keeps clear of them. */
@media (max-width: 899px) {
    .jk-hero {
        padding-bottom: calc(26cqw + 32px);
    }
}

/* On a phone the gifts are twice the size, so they still read as gifts. */
@media (max-width: 639px) {
    .jk-hero {
        padding-bottom: calc(50cqw + 32px);
    }

    .jk-hero__gift-stack {
        left: -3cqw;
        width: 33cqw;
    }

    .jk-hero__gift-pink {
        right: -18cqw;
        width: 58cqw;
    }

    .jk-hero__gift-green {
        right: 22cqw;
        width: 27cqw;
    }
}

/* Two lines on desktop. */
@media (min-width: 900px) {
    .jk-hero__title {
        max-width: 22ch;
    }
}

/* "24 dage med gaver og overraskelser" in the frame: cream, mono bold. */
.jk-hero__subtitle {
    margin: 24px 0 0;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 700;
    line-height: 1.2;
    color: #f9eeda;
}

.jk-hero__lead {
    margin: 28px auto 0;
}

.jk-hero__actions {
    justify-content: center;
}

.jk-hero__signal {
    margin: 18px 0 0;
    font-size: 14px;
}

/* Demo: a flat gift leaning on the phone. */

.jk-demo-gift {
    position: absolute;
    left: -22%;
    bottom: 4%;
    z-index: 3;
    width: 46%;
    max-width: 180px;
    transform: rotate(-8deg);
    pointer-events: none;
}

/* Price: two gifts at the right of the price band, sitting across its top edge. The band moves
   down a little, so they stand clear of the section above. */

.lp-price:has(.jk-price-gifts) {
    margin-top: clamp(48px, 6vw, 96px);
}

.jk-price-gifts {
    position: absolute;
    right: var(--lp-gutter);
    top: calc(var(--lp-section-space) * -1);
    width: clamp(200px, 27vw, 400px);
    aspect-ratio: 340 / 250;
    transform: translateY(-60%);
    pointer-events: none;
}

.jk-price-gifts img {
    position: absolute;
    bottom: 0;
    height: auto;
}

.jk-price-gifts__stack {
    left: 0;
    width: 56%;
}

.jk-price-gifts__green {
    right: 0;
    z-index: 1;
    width: 50%;
}

/* Contact: a cream snowflake by the heading. */

.jk-contact-flake {
    display: none;
    width: 110px;
    margin-top: 40px;
    transform: rotate(12deg);
}

@media (min-width: 960px) {
    .jk-contact-flake {
        display: block;
    }
}

