/* =========================================================
   Landing pages (Block Grid Landing Page)
   Styles scoped under .landing-page / .landing-header so
   nothing here leaks onto the rest of the site.
   ========================================================= */

:root {
    --landing-orange: var(--accent-color, #F65203);
    --landing-turkis: #35C4C4;
    --landing-dark: var(--dark-background-color, #1B3738);
    --landing-dark-2: #12262A;
    --landing-hero-dark: #0E1B1C;
    --landing-ink: #1C1C1B;
    --landing-muted: #6A728F;
    --landing-grey-bg: #F5F6F8;
    --landing-line: #E1E4EA;
    --landing-on-dark: #DCE3E3;
    --landing-dim: #8FA0A6;
}

/* ---- Typography & basics, scoped to landing pages only ---- */
.landing-page {
    color: var(--landing-ink);
}

    .landing-page .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 11px;
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: .19em;
        text-transform: uppercase;
        color: var(--landing-orange);
        margin-bottom: 20px;
    }

        .landing-page .eyebrow::before {
            content: "";
            width: 28px;
            height: 2px;
            background: currentColor;
        }

    .landing-page h1 {
        color: #fff;
        font-size: 62px;
        line-height: 1;
        font-weight: 700;
        letter-spacing: -.038em;
        max-width: 15ch;
        margin: 0;
    }

        .landing-page h1 em {
            font-family: inherit;
            font-weight: inherit;
            font-size: inherit;
            line-height: inherit;
            letter-spacing: inherit;
            font-style: normal;
            color: var(--landing-orange);
        }

    .landing-page h2 {
        font-size: 38px;
        line-height: 1.15;
        font-weight: 700;
        letter-spacing: -.02em;
        max-width: 20ch;
        margin: 0 0 8px;
    }

    .landing-page h3 {
        font-size: 21px;
        font-weight: 700;
        line-height: 1.3;
    }

    .landing-page .knap,
    .landing-page .cta-raekke .knap {
        display: inline-block;
        background: var(--landing-orange);
        color: #fff;
        font-weight: 700;
        font-size: 16px;
        padding: 14px 28px;
        border-radius: 5px;
        text-decoration: none;
    }

        .landing-page .knap:hover {
            color: #fff;
            background: color-mix(in srgb, var(--landing-orange), #000 12%);
        }

/* ---- Hero (always straight, never skewed) ---- */
.hero-landing {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 88px 0 56px;
    background: var(--landing-hero-dark);
}

    .hero-landing .bag {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

        .hero-landing .bag img,
        .hero-landing .bag video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: 70% 50%;
            opacity: .34;
            filter: saturate(.75) blur(1px);
        }

        .hero-landing .bag video {
            position: absolute;
            inset: 0;
            display: none;
        }

@media (min-width: 900px) {
    .hero-landing .bag video {
        display: block;
    }

        .hero-landing .bag video ~ img.plakat {
            opacity: 0;
        }
}

@media (prefers-reduced-motion: reduce) {
    .hero-landing .bag video {
        display: none !important;
    }
}

.hero-landing .slor {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, var(--landing-hero-dark) 5%, rgba(14,27,28,.90) 45%, rgba(14,27,28,.44) 100%);
}

.hero-landing .hero-rist {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 48px;
    align-items: center;
    padding-top: 32px;
}

.hero-landing .stor {
    font-size: 21px;
    line-height: 1.6;
    color: var(--landing-on-dark);
    max-width: 45ch;
    margin: 22px 0 0;
}

.hero-landing .cta-raekke {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-landing .cta-note {
    font-size: 15px;
    line-height: 1.5;
    color: var(--landing-dim);
    max-width: 30ch;
    padding-left: 22px;
    border-left: 1px solid rgba(255,255,255,.18);
    margin: 0;
}

.hero-landing .foto-beslag {
    position: relative;
    padding: 20px 0 0 20px;
}

    .hero-landing .foto-beslag::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 64%;
        height: 62%;
        border-left: 5px solid var(--landing-orange);
        border-top: 5px solid var(--landing-orange);
        border-radius: 16px 0 0 0;
        pointer-events: none;
    }

    .hero-landing .foto-beslag::after {
        content: "";
        position: absolute;
        right: -12px;
        bottom: -12px;
        width: 38%;
        height: 44%;
        border-right: 5px solid rgba(53,196,196,.55);
        border-bottom: 5px solid rgba(53,196,196,.55);
        border-radius: 0 0 16px 0;
        pointer-events: none;
    }

.hero-landing .hero-foto {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 0 24px 56px rgba(0,0,0,.5);
}

.hero-landing .appsource {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 44px 0 0;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;
    background: rgba(255,255,255,.04);
    width: fit-content;
}

    .hero-landing .appsource .ms {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 2px;
        width: 20px;
        height: 20px;
        flex: none;
    }

        .hero-landing .appsource .ms i:nth-child(1) {
            background: #F25022;
        }

        .hero-landing .appsource .ms i:nth-child(2) {
            background: #7FBA00;
        }

        .hero-landing .appsource .ms i:nth-child(3) {
            background: #00A4EF;
        }

        .hero-landing .appsource .ms i:nth-child(4) {
            background: #FFB900;
        }

    .hero-landing .appsource .t {
        font-size: 14.5px;
        line-height: 1.45;
        color: var(--landing-on-dark);
    }

        .hero-landing .appsource .t b {
            display: block;
            font-size: 15px;
            color: #fff;
            font-weight: 700;
        }

        .hero-landing .appsource .t a {
            color: var(--landing-turkis);
            text-decoration: none;
        }

@media (max-width: 980px) {
    .hero-landing .hero-rist {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .landing-page h1 {
        font-size: 44px;
    }
}

/* ---- Generic "skrå" (skewed) treatment for every non-hero block ---- */
.landing-page .landing-block {
    position: relative;
    margin-top: -28px;
}

    .landing-page .landing-block:first-of-type {
        margin-top: 0;
    }

.landing-page .landing-block-inner {
    position: relative;
    background: #fff;
    padding: 88px 0 112px;
    clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%);
}

.landing-page .landing-block:nth-of-type(even) .landing-block-inner {
    background: var(--landing-grey-bg);
}

.landing-page .landing-block.landing-block--in {
    /* reveal state toggled by landing.js */
}

.landing-page .landing-block-inner {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
}

.landing-page .landing-block--in .landing-block-inner {
    opacity: 1;
    transform: none;
}

@media (max-width: 760px) {
    .landing-page .landing-block-inner {
        padding: 56px 0 76px;
        clip-path: polygon(0 16px, 100% 0, 100% calc(100% - 16px), 0 100%);
    }

    .landing-page .landing-block {
        margin-top: -16px;
    }
}

/* ---- Sticky-scroll text+image block ---- */
.sticky-scroll .sticky-scroll-rist {
    display: grid;
    grid-template-columns: .84fr 1.16fr;
    gap: 64px;
    align-items: start;
    margin-top: 40px;
}

.sticky-scroll .skridt .t {
    padding: 72px 0;
    border-top: 1px solid var(--landing-line);
    opacity: .32;
    transition: opacity .4s;
}

    .sticky-scroll .skridt .t:first-child {
        border-top: none;
        padding-top: 0;
    }

    .sticky-scroll .skridt .t.aktiv {
        opacity: 1;
    }

    .sticky-scroll .skridt .t .n {
        position: relative;
        padding-top: 20px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .16em;
        color: var(--landing-orange);
        margin-bottom: 10px;
    }

        .sticky-scroll .skridt .t .n::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 48px;
            height: 4px;
            background: var(--landing-orange);
        }

    .sticky-scroll .skridt .t h3 {
        font-size: 27px;
        line-height: 1.2;
        letter-spacing: -.01em;
        margin-bottom: 12px;
    }

    .sticky-scroll .skridt .t p {
        color: var(--landing-muted);
        font-size: 16.5px;
        line-height: 1.65;
    }

        .sticky-scroll .skridt .t p + p {
            margin-top: 12px;
        }

    .sticky-scroll .skridt .t ul {
        list-style: none;
        margin: 18px 0 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .sticky-scroll .skridt .t li {
        font-size: 16px;
        padding-left: 20px;
        position: relative;
        line-height: 1.5;
    }

        .sticky-scroll .skridt .t li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 8px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--landing-orange);
        }

.sticky-scroll .panel {
    position: sticky;
    top: calc(50vh - 220px);
}

.sticky-scroll .ramme {
    position: relative;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid var(--landing-line);
    box-shadow: 0 22px 52px rgba(20,33,87,.16);
    background: #fff;
    aspect-ratio: 16 / 10;
    max-height: 400px;
}

    .sticky-scroll .ramme img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transform: scale(1.015);
        transition: opacity .5s, transform .7s;
    }

        .sticky-scroll .ramme img.vis {
            opacity: 1;
            transform: scale(1);
        }

.sticky-scroll .prik {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}

    .sticky-scroll .prik i {
        width: 24px;
        height: 3px;
        background: var(--landing-line);
        border-radius: 2px;
        transition: background .3s;
    }

        .sticky-scroll .prik i.aktiv {
            background: var(--landing-orange);
        }

@media (max-width: 980px) {
    .sticky-scroll .sticky-scroll-rist {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sticky-scroll .panel {
        position: static;
    }

    .sticky-scroll .skridt .t {
        padding: 40px 0;
    }
}

/* ---- Header invert (white -> CURABIS Grøn) on landing pages ---- */
.landing-header .header {
    background-color: var(--dark-background-color, #1B3738) !important;
    border-bottom-color: rgba(255,255,255,.12);
}

    .landing-header .header .navmenu > ul > li > a,
    .landing-header .header .nav-link,
    .landing-header .navmenu .nav-link {
        color: #fff !important;
    }

        .landing-header .header .navmenu > ul > li > a:hover,
        .landing-header .header .navmenu > ul > li > a.active {
            color: var(--landing-turkis) !important;
        }

    .landing-header .mobile-nav-toggle {
        color: #fff !important;
    }
