/* ============================================================
   LUNCHPORTALEN — PRISER PAGE BLOCKS
   priser-page-blocks.css
   Prefix: pr-  (priser-specific, no conflicts with ls- or lp-)
============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
    --pr-bg:          #f6f3ed;
    --pr-text:        #111111;
    --pr-muted:       rgba(17, 17, 17, .64);
    --pr-gold:        #f5c518;
    --pr-gold-dark:   #a07c00;
    --pr-gold-glow:   rgba(245, 197, 24, .30);
    --pr-radius:      24px;
    --pr-radius-lg:   36px;
    --pr-shadow:      0 20px 60px rgba(0, 0, 0, .08);
    --pr-shadow-lift: 0 40px 120px rgba(0, 0, 0, .16);
    --pr-py:          clamp(60px, 7vw, 100px);
    --pr-gap:         20px;
}

/* ── Block grid wrapper — ingen gap mellom blokker ─────── */
.lp-block-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Layout ─────────────────────────────────────────────── */
.pr-inner {
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
}

/* ── Shared typography ──────────────────────────────────── */
.pr-eyebrow {
    margin: 0 0 14px;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--pr-gold-dark);
}

.pr-eyebrow--light {
    color: var(--pr-gold);
}

.pr-h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3.4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.048em;
    font-weight: 900;
    color: var(--pr-text);
}

.pr-lead {
    max-width: 660px;
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.72;
    color: var(--pr-muted);
    margin: 0 0 8px;
}

/* ── Scroll reveal ──────────────────────────────────────── */
.pr-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity   .6s cubic-bezier(.22, .8, .22, 1),
        transform .6s cubic-bezier(.22, .8, .22, 1);
    transition-delay: var(--delay, 0ms);
}

.pr-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pr-reveal-group > * {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity   .55s cubic-bezier(.22, .8, .22, 1),
        transform .55s cubic-bezier(.22, .8, .22, 1);
    transition-delay: calc(var(--i, 0) * 100ms);
}

.pr-reveal-group.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

@supports (animation-timeline: view()) {
    .pr-reveal,
    .pr-reveal-group > * {
        opacity: 1;
        transform: none;
        transition: none;
        animation: prFadeUp .65s ease both;
        animation-timeline: view();
        animation-range: entry 0% cover 26%;
    }
}

@keyframes prFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── Billing toggle ─────────────────────────────────────── */
.pr-billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 0;
}

.pr-billing-toggle__lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--pr-text);
}

.pr-billing-toggle__save {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 197, 24, .18);
    color: var(--pr-gold-dark);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.pr-toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .15);
    cursor: pointer;
    transition: background .22s ease;
    display: block;
}

.pr-toggle-track:has(input:checked) {
    background: var(--pr-gold);
}

.pr-toggle-track input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
}

.pr-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    transition: transform .22s cubic-bezier(.22, .8, .22, 1);
    pointer-events: none;
}

.pr-toggle-track:has(input:checked) .pr-toggle-thumb {
    transform: translateX(20px);
}

/* ── Alle seksjoner — samme bakgrunn, ingen gap ─────────── */
.pr-plans,
.pr-how-it-works,
.pr-features,
.pr-faq {
    background: var(--pr-bg);
    margin: 0;
    padding-block: var(--pr-py);
}

/* ── Plans section ──────────────────────────────────────── */
.pr-plans {
    position: relative;
    overflow: hidden;
}

.pr-plans::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 10%, rgba(245, 197, 24, .08) 0%, transparent 28%);
    pointer-events: none;
}

/* 2 kolonner — like høye */
.pr-plans__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pr-gap);
    align-items: stretch;
    max-width: 860px;
    margin-inline: auto;
    margin-top: clamp(36px, 5vw, 60px);
}

.pr-plans__footer {
    text-align: center;
    margin-top: 28px;
    font-size: .82rem;
    color: var(--pr-muted);
    letter-spacing: .02em;
}

/* ── Plan card — mørk og lik for begge ──────────────────── */
.pr-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 32px 32px;
    border-radius: var(--pr-radius);
    background: linear-gradient(145deg, #111 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .28s cubic-bezier(.22, .8, .22, 1),
                box-shadow .28s ease;
    will-change: transform;
}

.pr-plan:hover {
    transform: translateY(-6px);
    box-shadow:
        0 40px 120px rgba(0, 0, 0, .32),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* Featured — gull border */
.pr-plan--featured {
    border-color: rgba(245, 197, 24, .35);
    box-shadow:
        0 32px 100px rgba(0, 0, 0, .28),
        0 0 0 1px rgba(245, 197, 24, .20),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.pr-plan--featured:hover {
    box-shadow:
        0 48px 140px rgba(0, 0, 0, .36),
        0 0 0 1px rgba(245, 197, 24, .35),
        inset 0 1px 0 rgba(255, 255, 255, .10);
}

/* Plan badge */
.pr-plan__badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--pr-gold);
    color: #111;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Plan header — vokser for å holde knapp på linje */
.pr-plan__header {
    flex: 1 0 auto;
    margin-bottom: 24px;
    min-height: 72px;
}

.pr-plan__name {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.04em;
    color: #fff;
}

.pr-plan__desc {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .55);
}

/* Plan price — fast høyde så knapp alltid er på linje */
.pr-plan__price {
    margin-bottom: 24px;
    min-height: 96px;
}

.pr-plan__amount {
    display: block;
    font-size: clamp(2.4rem, 3.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -.05em;
    color: var(--pr-gold);
    line-height: 1;
    margin-bottom: 6px;
}

.pr-plan__unit {
    display: block;
    font-size: .8rem;
    color: rgba(255, 255, 255, .45);
    font-weight: 600;
    margin-bottom: 4px;
}

.pr-plan__month-est {
    display: block;
    font-size: .78rem;
    color: rgba(245, 197, 24, .70);
    font-weight: 700;
    margin-top: 2px;
}

.pr-plan__badge-save {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 197, 24, .18);
    color: var(--pr-gold);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .04em;
    transition: opacity .22s ease;
}

/* Plan CTA — gull for begge */
.pr-plan__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 999px;
    padding: 0 24px;
    margin-bottom: 28px;
    font-size: .96rem;
    font-weight: 900;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, #f5c518 0%, #ffd43b 100%);
    color: #111;
    border: none;
    box-shadow: 0 12px 36px rgba(245, 197, 24, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: transform .22s cubic-bezier(.22, .8, .22, 1),
                box-shadow .22s ease,
                filter .22s ease;
}

.pr-plan__cta:hover {
    transform: translateY(-3px) scale(1.022);
    box-shadow: 0 20px 56px rgba(245, 197, 24, .42), inset 0 1px 0 rgba(255, 255, 255, .75);
    filter: saturate(1.08) brightness(1.04);
    color: #111;
}

.pr-plan__cta:active {
    transform: translateY(0) scale(.98);
    transition-duration: .1s;
}

/* Plan features list */
.pr-plan__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 20px;
}

.pr-plan__features li {
    position: relative;
    padding-left: 24px;
    font-size: .88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .65);
}

.pr-plan__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--pr-gold);
    font-weight: 900;
    font-size: .82rem;
}

/* ── How It Works ───────────────────────────────────────── */
.pr-hiw-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--pr-gap);
    margin-top: clamp(36px, 5vw, 60px);
}

.pr-hiw-step {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--pr-radius);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .62);
    box-shadow: var(--pr-shadow);
    transition: transform .28s cubic-bezier(.22, .8, .22, 1),
                box-shadow .28s ease;
}

@supports (backdrop-filter: blur(1px)) {
    .pr-hiw-step {
        background: rgba(255, 255, 255, .55);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.pr-hiw-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--pr-shadow-lift);
}

.pr-hiw-step__number {
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .10em;
    color: var(--pr-gold-dark);
    margin-bottom: 14px;
}

.pr-hiw-step__title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--pr-text);
    line-height: 1.3;
}

.pr-hiw-step__body {
    margin: 0;
    font-size: .88rem;
    line-height: 1.6;
    color: var(--pr-muted);
}

/* ── Feature comparison table ───────────────────────────── */
.pr-feature-table {
    margin-top: clamp(36px, 5vw, 60px);
    border-radius: var(--pr-radius);
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, .07);
    background: rgba(255, 255, 255, .72);
}

@supports (backdrop-filter: blur(1px)) {
    .pr-feature-table {
        background: rgba(255, 255, 255, .55);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.pr-feature-table__head {
    display: grid;
    grid-template-columns: 1fr repeat(2, 160px);
    border-bottom: 1px solid rgba(17, 17, 17, .08);
    background: rgba(17, 17, 17, .03);
}

.pr-feature-table__col-label {
    padding: 16px 24px;
}

.pr-feature-table__col--plan {
    padding: 16px 8px;
    text-align: center;
    font-size: .82rem;
    font-weight: 900;
    color: var(--pr-text);
    letter-spacing: .02em;
}

.pr-feature-table__col--featured {
    background: rgba(245, 197, 24, .10);
    color: var(--pr-gold-dark);
    border-left: 2px solid rgba(245, 197, 24, .30);
    border-right: 2px solid rgba(245, 197, 24, .30);
}

.pr-feature-table__category {
    grid-column: 1 / -1;
    padding: 12px 24px 10px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .38);
    background: rgba(17, 17, 17, .02);
    border-top: 1px solid rgba(17, 17, 17, .06);
    border-bottom: 1px solid rgba(17, 17, 17, .04);
}

.pr-feature__row {
    display: grid;
    grid-template-columns: 1fr repeat(2, 160px);
    border-bottom: 1px solid rgba(17, 17, 17, .05);
    transition: background .15s ease;
}

.pr-feature__row:last-child {
    border-bottom: none;
}

.pr-feature__row:hover {
    background: rgba(17, 17, 17, .02);
}

.pr-feature__label {
    padding: 14px 24px;
    font-size: .9rem;
    color: var(--pr-text);
    line-height: 1.4;
}

.pr-feature__cell {
    padding: 14px 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-feature__cell--featured {
    background: rgba(245, 197, 24, .06);
    border-left: 2px solid rgba(245, 197, 24, .20);
    border-right: 2px solid rgba(245, 197, 24, .20);
}

.pr-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pr-gold);
    color: #111;
    font-size: .72rem;
    font-weight: 900;
}

.pr-dash {
    color: rgba(17, 17, 17, .22);
    font-size: 1.1rem;
    font-weight: 300;
}

.pr-feature__text {
    font-size: .84rem;
    font-weight: 700;
    color: var(--pr-text);
}

.pr-feature__text--featured {
    color: var(--pr-gold-dark);
}

/* ── FAQ ────────────────────────────────────────────────── */
.pr-faq__header {
    max-width: 560px;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.pr-faq__list {
    max-width: 780px;
    display: grid;
    gap: 0;
}

.pr-faq__item {
    border-bottom: 1px solid rgba(17, 17, 17, .08);
}

.pr-faq__item:first-child {
    border-top: 1px solid rgba(17, 17, 17, .08);
}

.pr-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    font-weight: 700;
    color: var(--pr-text);
    transition: color .18s ease;
}

.pr-faq__q:hover {
    color: var(--pr-gold-dark);
}

.pr-faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(17, 17, 17, .07);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    transition: transform .28s cubic-bezier(.22, .8, .22, 1),
                background .18s ease;
}

.pr-faq__icon::after {
    content: "+";
    display: block;
    font-weight: 900;
    line-height: 1;
}

.pr-faq__item.is-open .pr-faq__icon {
    transform: rotate(45deg);
    background: var(--pr-gold);
}

.pr-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .38s cubic-bezier(.22, .8, .22, 1);
}

.pr-faq__a p {
    margin: 0;
    padding: 0 0 22px;
    font-size: clamp(.95rem, 1vw, 1.06rem);
    line-height: 1.72;
    color: var(--pr-muted);
}

.pr-faq__q:focus-visible {
    outline: 3px solid var(--pr-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── CTA Band ───────────────────────────────────────────── */
.pr-cta-band {
    padding-block: var(--pr-py);
    margin: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(245, 197, 24, .14) 0%, transparent 32%),
        linear-gradient(145deg, #0e0e0e 0%, #1c1c1c 100%);
}

.pr-cta-band__card {
    padding: clamp(36px, 6vw, 88px);
    border-radius: var(--pr-radius-lg);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
}

@supports (backdrop-filter: blur(1px)) {
    .pr-cta-band__card {
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
}

.pr-cta-band__heading {
    margin: 0 auto 16px;
    font-size: clamp(2rem, 3.4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 900;
    color: #fff;
    max-width: 720px;
}

.pr-cta-band__text {
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: clamp(1rem, 1.15vw, 1.14rem);
    line-height: 1.66;
    color: rgba(255, 255, 255, .68);
}

.pr-cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.pr-cta-band__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    border-radius: 999px;
    padding: 0 32px;
    background: linear-gradient(135deg, #f5c518 0%, #ffd43b 100%);
    color: #111;
    border: 1px solid rgba(255, 255, 255, .48);
    box-shadow: 0 16px 40px var(--pr-gold-glow), inset 0 1px 0 rgba(255, 255, 255, .55);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform  .22s cubic-bezier(.22, .8, .22, 1),
        box-shadow .22s ease,
        filter     .22s ease;
}

.pr-cta-band__btn-primary:hover {
    transform: translateY(-3px) scale(1.022);
    box-shadow: 0 24px 64px rgba(245, 197, 24, .42), inset 0 1px 0 rgba(255, 255, 255, .75);
    filter: saturate(1.08) brightness(1.04);
}

.pr-cta-band__btn-primary:active {
    transform: translateY(0) scale(.98);
    transition-duration: .1s;
}

.pr-cta-band__btn-sec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 999px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .22s ease, transform .22s ease, border-color .22s ease;
}

.pr-cta-band__btn-sec:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .38);
    transform: translateY(-2px);
}

.pr-cta-band__trust {
    margin: 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .40);
    letter-spacing: .02em;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
    .pr-hiw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .pr-plans__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
        align-items: start;
    }

    .pr-plan__header {
        min-height: unset;
    }

    .pr-plan__price {
        min-height: unset;
    }

    .pr-feature-table__head,
    .pr-feature__row {
        grid-template-columns: 1fr repeat(2, 100px);
    }

    .pr-feature-table__col--plan,
    .pr-feature__cell {
        padding-inline: 4px;
        font-size: .76rem;
    }

    .pr-feature__label {
        padding-inline: 16px;
        font-size: .84rem;
    }
}

@media (max-width: 640px) {
    :root {
        --pr-py:  48px;
        --pr-gap: 14px;
    }

    .pr-inner {
        width: calc(100% - 28px);
    }

    .pr-plan {
        padding: 24px;
        border-radius: 20px;
    }

    .pr-feature-table {
        border-radius: 16px;
        overflow-x: auto;
    }

    .pr-feature-table__head,
    .pr-feature__row {
        grid-template-columns: 1fr repeat(2, 80px);
        min-width: 340px;
    }

    .pr-cta-band__actions {
        flex-direction: column;
    }

    .pr-cta-band__btn-primary,
    .pr-cta-band__btn-sec {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pr-hiw-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Accessibility ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration:        0.01ms !important;
        animation-iteration-count: 1      !important;
        transition-duration:       0.01ms !important;
    }

    .pr-reveal,
    .pr-reveal-group > * {
        opacity: 1;
        transform: none;
    }
}