/* =========================================================
   PROSESS – NordPair
   ========================================================= */

:root {
    --bg-primary: #04060d;
    --bg-secondary: #0a0d1a;
    --bg-card: rgba(15, 19, 32, 0.5);
    --bg-card-hover: rgba(20, 26, 44, 0.65);
    --bg-input: rgba(8, 11, 22, 0.6);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-tertiary: rgba(255, 255, 255, 0.45);

    --accent: #5b8cff;
    --accent-glow: rgba(91, 140, 255, 0.5);
    --accent-soft: rgba(91, 140, 255, 0.08);

    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul { list-style: none; }

/* Active link i header */
.site-header__link--active {
    color: var(--text-primary) !important;
    position: relative;
}

.site-header__link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 100% !important;
    height: 1px;
    background: var(--accent);
}

/* =========================================================
   BAKGRUNNS-EFFEKTER
   ========================================================= */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 140, 255, 0.15), transparent),
        linear-gradient(180deg, #04060d 0%, #06091a 50%, #04060d 100%);
    z-index: -3;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: rgba(91, 140, 255, 0.3);
    top: 10%;
    right: -10%;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: rgba(60, 100, 200, 0.2);
    bottom: 20%;
    left: -10%;
}

/* =========================================================
   FELLES CONTAINER
   ========================================================= */
.process-page {
    padding-top: 120px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
    padding-bottom: 60px;
}

/* =========================================================
   REVEAL-ANIMASJON
   ========================================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   HERO
   ========================================================= */
.process-hero {
    padding: 40px 0 80px;
    position: relative;
    overflow: hidden;
}

.process-hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 380px;
}

.process-hero__content {
    position: relative;
    z-index: 2;
}

.process-hero__eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 28px;
    padding: 7px 16px;
    background: rgba(91, 140, 255, 0.06);
    border: 1px solid rgba(91, 140, 255, 0.25);
    border-radius: 999px;
}

.process-hero__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.process-hero__title-accent {
    background: linear-gradient(135deg, #5b8cff 0%, #7ba2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Hindrer at descenders klippes av gradient-clip */
    display: inline-block;
    padding-bottom: 0.08em;
    padding-right: 0.12em;
}

.process-hero__text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 480px;
}

/* DEKORATIV LYS-EFFEKT (lyss-stråler i blå) */
.process-hero__visual {
    position: relative;
    height: 100%;
    min-height: 380px;
    pointer-events: none;
}

.process-hero__beam {
    position: absolute;
    top: 50%;
    right: -5%;
    width: 110%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(91, 140, 255, 0.4) 30%,
        rgba(91, 140, 255, 0.95) 70%,
        rgba(120, 165, 255, 1) 100%);
    transform-origin: right center;
    transform: rotate(-18deg);
    box-shadow: 0 0 30px rgba(91, 140, 255, 0.5),
                0 0 60px rgba(91, 140, 255, 0.3);
    animation: beam-pulse 4s ease-in-out infinite;
}

.process-hero__beam--2 {
    top: 56%;
    transform: rotate(-12deg);
    opacity: 0.6;
    animation-delay: 0.5s;
}

.process-hero__beam--3 {
    top: 62%;
    transform: rotate(-8deg);
    opacity: 0.4;
    animation-delay: 1s;
}

.process-hero__beam-glow {
    position: absolute;
    top: 50%;
    right: 0;
    width: 60%;
    height: 300px;
    transform: translateY(-50%);
    background:
        radial-gradient(ellipse 40% 60% at 30% 50%, rgba(91, 140, 255, 0.25), transparent 70%),
        radial-gradient(ellipse 30% 40% at 60% 60%, rgba(91, 140, 255, 0.15), transparent 70%);
    filter: blur(20px);
}

@keyframes beam-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* =========================================================
   TIMELINE / ACCORDION
   ========================================================= */
.process-timeline {
    position: relative;
    margin: 40px 0 80px;
}

/* Den vertikale linja som forbinder tallene */
.process-timeline__rail {
    position: absolute;
    left: 75px; /* Sentrer på tall-sirkelen */
    top: 75px;
    bottom: 75px;
    width: 1px;
    z-index: 1;
    pointer-events: none;
}

.process-timeline__rail-track {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(91, 140, 255, 0.3) 0%,
        rgba(91, 140, 255, 0.15) 50%,
        rgba(91, 140, 255, 0.05) 100%);
}

.process-timeline__rail-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(91, 140, 255, 1) 0%,
        rgba(91, 140, 255, 0.8) 100%);
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 0.1s linear;
    box-shadow: 0 0 12px rgba(91, 140, 255, 0.8);
}

.process-timeline__list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ENKELT STEG */
.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: border-color 0.4s ease,
                background 0.4s ease,
                box-shadow 0.4s ease;
}

.process-step:hover {
    border-color: rgba(91, 140, 255, 0.2);
    background: var(--bg-card-hover);
}

.process-step.is-open {
    border-color: rgba(91, 140, 255, 0.35);
    background: rgba(20, 26, 44, 0.7);
    box-shadow:
        0 0 0 1px rgba(91, 140, 255, 0.15),
        0 12px 32px rgba(91, 140, 255, 0.12);
}

/* RAD MED INNHOLD */
.process-step__row {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 24px 24px;
    display: grid;
    grid-template-columns: 64px 64px 200px 1fr auto;
    align-items: center;
    gap: 24px;
    text-align: left;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: padding-left 0.3s ease;
}

.process-step__row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

/* === TALL-SIRKEL === */
.process-step__number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(91, 140, 255, 0.06);
    border: 1.5px solid rgba(91, 140, 255, 0.4);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.4s ease,
                background 0.4s ease,
                box-shadow 0.4s ease,
                transform 0.4s ease;
}

.process-step:hover .process-step__number,
.process-step.is-open .process-step__number {
    background: rgba(91, 140, 255, 0.12);
    border-color: rgba(91, 140, 255, 0.7);
    box-shadow: 0 0 24px rgba(91, 140, 255, 0.4);
}

.process-step__number-text {
    position: relative;
    z-index: 2;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Pulserende ring rundt tall (når åpen) */
.process-step__number-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(91, 140, 255, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.process-step.is-open .process-step__number-pulse {
    opacity: 1;
    animation: number-pulse 2s ease-out infinite;
}

@keyframes number-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* === IKON === */
.process-step__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(91, 140, 255, 0.06);
    border: 1px solid rgba(91, 140, 255, 0.18);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.4s ease,
                border-color 0.4s ease,
                transform 0.4s ease;
}

.process-step:hover .process-step__icon {
    background: rgba(91, 140, 255, 0.12);
    border-color: rgba(91, 140, 255, 0.35);
    transform: scale(1.05);
}

.process-step.is-open .process-step__icon {
    background: linear-gradient(135deg, rgba(91, 140, 255, 0.18), rgba(91, 140, 255, 0.08));
    border-color: rgba(91, 140, 255, 0.5);
}

/* === TITTEL === */
.process-step__title {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

/* === LEAD-TEKST === */
.process-step__lead {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-tertiary);
    font-weight: 300;
    margin: 0;
    max-width: 540px;
}

/* === CHEVRON === */
.process-step__chevron {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease;
}

.process-step:hover .process-step__chevron {
    background: rgba(91, 140, 255, 0.1);
    border-color: rgba(91, 140, 255, 0.3);
    color: var(--accent);
}

.process-step.is-open .process-step__chevron {
    transform: rotate(180deg);
    background: rgba(91, 140, 255, 0.15);
    border-color: rgba(91, 140, 255, 0.4);
    color: var(--accent);
}

/* === UTVIDET INNHOLD === */
.process-step__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step__content-inner {
    padding: 0 24px 28px 152px; /* Tilpasses så det stilles til høyre for tall+ikon */
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 0;
}

.process-step__details {
    min-width: 0;
}

.process-step__details-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.process-step__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.process-step__list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    font-weight: 300;
}

.process-step__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(91, 140, 255, 0.1);
    border: 1px solid var(--accent);
}

.process-step__list li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

/* === META (varighet) === */
.process-step__meta {
    padding: 18px 20px;
    background: rgba(91, 140, 255, 0.04);
    border: 1px solid rgba(91, 140, 255, 0.15);
    border-radius: 12px;
}

.process-step__meta-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.process-step__meta-value {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* =========================================================
   AVSLUTTENDE CTA
   ========================================================= */
.process-cta {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    padding: 40px 48px;
    margin: 60px 0 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    overflow: hidden;
}

/* Lys-stråler nederst */
.process-cta__rays {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background:
        radial-gradient(ellipse 50% 100% at 50% 100%, rgba(91, 140, 255, 0.18), transparent 70%),
        radial-gradient(ellipse 20% 100% at 25% 100%, rgba(91, 140, 255, 0.08), transparent 70%),
        radial-gradient(ellipse 20% 100% at 75% 100%, rgba(91, 140, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.process-cta__content {
    position: relative;
    z-index: 1;
}

.process-cta__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.process-cta__text {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 300;
}

.process-cta__btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b8cff, #4170e8);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
    box-shadow:
        0 0 0 1px rgba(91, 140, 255, 0.5),
        0 10px 32px rgba(91, 140, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.process-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(91, 140, 255, 0.6),
        0 14px 40px rgba(91, 140, 255, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.process-cta__btn svg {
    transition: transform 0.3s ease;
}

.process-cta__btn:hover svg {
    transform: translateX(4px);
}

/* =========================================================
   RESPONSIV
   ========================================================= */
@media (max-width: 1100px) {
    .process-page {
        padding-left: 32px;
        padding-right: 32px;
    }

    .process-hero__container {
        gap: 40px;
    }

    .process-step__row {
        grid-template-columns: 56px 56px 180px 1fr auto;
        gap: 20px;
    }

    .process-step__number {
        width: 56px;
        height: 56px;
    }

    .process-step__icon {
        width: 48px;
        height: 48px;
    }

    .process-step__content-inner {
        padding-left: 124px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .process-timeline__rail {
        left: 60px;
    }
}

@media (max-width: 900px) {
    .process-hero__container {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: 0;
    }

    .process-hero__visual {
        min-height: 200px;
        order: -1;
    }

    .process-step__row {
        grid-template-columns: 48px 1fr auto;
        gap: 16px;
        padding: 20px;
    }

    .process-step__icon {
        display: none;
    }

    .process-step__title {
        font-size: 18px;
        grid-column: 2;
    }

    .process-step__lead {
        grid-column: 2;
        font-size: 13px;
        margin-top: 4px;
    }

    .process-step__chevron {
        grid-row: 1;
        grid-column: 3;
        align-self: start;
        margin-top: 4px;
    }

    .process-step__number {
        width: 48px;
        height: 48px;
        grid-row: 1 / span 2;
    }

    .process-step__number-text {
        font-size: 15px;
    }

    .process-step__content-inner {
        padding: 20px 20px 24px;
    }

    .process-timeline__rail {
        left: 44px;
        top: 60px;
        bottom: 60px;
    }

    .process-cta {
        padding: 32px 28px;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .process-cta__btn {
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .process-page {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .process-hero {
        padding: 20px 0 60px;
    }

    .process-step__row {
        padding: 18px 16px;
        gap: 14px;
    }

    .process-step__number {
        width: 44px;
        height: 44px;
    }

    .process-timeline__rail {
        left: 38px;
    }

    .process-step__title {
        font-size: 17px;
    }

    .process-step__content-inner {
        padding: 18px 16px 22px;
    }

    .process-cta {
        padding: 28px 22px;
    }
}

/* =========================================================
   TILGJENGELIGHET
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}