/* Felles stil for www.skavernkonsult.no. Lys og mork modus, en skriftfamilie, lite bevegelse. */

:root {
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Lys modus */
    --paper: #F6F7F9;
    --surface: #FFFFFF;
    --surface-2: #EEF1F5;
    --ink: #14213D;
    --ink-soft: #3E4A63;
    --muted: #677189;
    --line: #DFE3EA;
    --brand: #2457C5;
    --brand-hover: #1C47A6;
    --brand-soft: #E6EDFB;
    --on-brand: #FFFFFF;
    --live: #D8402B;
    --ok: #15803D;
    --error: #C2271A;
    --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 8px 24px rgba(20, 33, 61, 0.06);

    --radius: 14px;
    --radius-small: 8px;
    --wrap: 1120px;
    --gutter: 24px;

    /* Navn fra den gamle stilen, slik at eksisterende skjemaer og innebygde stiler fortsatt virker */
    --bg-page: var(--paper);
    --bg-surface: var(--surface);
    --bg-surface-elevated: var(--surface);
    --bg-glass: var(--surface);
    --border-subtle: var(--line);
    --border-highlight: var(--brand-soft);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-soft);
    --text-muted: var(--muted);
    --brand-primary: var(--brand);
    --brand-primary-hover: var(--brand-hover);
    --brand-glow: var(--brand-soft);
    --radius-sm: var(--radius-small);
    --radius-md: var(--radius);
    --radius-lg: 20px;
    --radius-pill: 999px;
    --card-shadow: var(--shadow);
    --card-shadow-hover: var(--shadow);
    --font-main: var(--font);

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0D1424;
        --surface: #141D31;
        --surface-2: #1A2540;
        --ink: #E9EDF5;
        --ink-soft: #C3CADA;
        --muted: #9099AE;
        --line: #26324D;
        --brand: #7AA6FF;
        --brand-hover: #A1C0FF;
        --brand-soft: #1C2A4D;
        --on-brand: #0D1424;
        --live: #FF7A66;
        --ok: #4ADE80;
        --error: #FF8A7A;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --paper: #0D1424;
    --surface: #141D31;
    --surface-2: #1A2540;
    --ink: #E9EDF5;
    --ink-soft: #C3CADA;
    --muted: #9099AE;
    --line: #26324D;
    --brand: #7AA6FF;
    --brand-hover: #A1C0FF;
    --brand-soft: #1C2A4D;
    --on-brand: #0D1424;
    --live: #FF7A66;
    --ok: #4ADE80;
    --error: #FF8A7A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
}

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 750;
    text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p { text-wrap: pretty; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
/* Gamle sider bruker .container */
.container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    border-radius: var(--radius-small);
    z-index: 200;
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Topplinje ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 750;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin-right: auto;
    white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 550;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: var(--radius-small);
    transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--brand); }
/* Innlogging for menigheter skilles litt fra resten av menyen */
.site-nav .nav-login { margin-left: 8px; border: 1px solid var(--line); }
@media (max-width: 960px) {
    .site-nav .nav-login { margin: 8px 0 0; text-align: center; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }

/* Ikonet viser temaet man bytter til */
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-icon-moon { display: none; }
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px var(--gutter) 18px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .site-nav.is-open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        visibility: visible;
    }
    .site-nav a { padding: 12px 10px; font-size: 1rem; }
}
@media (max-width: 420px) {
    :root { --gutter: 16px; }
    .brand-suffix { display: none; }
}

/* ---------- Knapper ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 11px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 650;
    font-size: 0.98rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: 0.92rem; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Seksjoner ---------- */
main { display: block; }

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section + .section { padding-top: 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt + .section { padding-top: clamp(56px, 9vw, 104px); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 14px; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 600px; }

.page-head { padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { max-width: 820px; }
.page-head .lead { margin-top: 18px; }
.page-head .button-row { margin-top: 28px; }

/* ---------- Forside: hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.hero h1 { max-width: 640px; }
.hero .lead { margin-top: 20px; }
.hero .button-row { margin-top: 30px; }
.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
    font-size: 0.92rem;
    color: var(--muted);
}
.store-links a { color: var(--ink-soft); font-weight: 600; }

/* Tolkingen vist som tekst: det mest typiske for tjenesten */
.interpret {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: clamp(22px, 3vw, 32px);
}
.interpret-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 600;
}
.live-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--live); }
.live-badge::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: currentColor;
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.interpret-source {
    margin-top: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 1rem;
}
.interpret-source-label, .interpret-target-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--muted);
    margin-bottom: 6px;
}
.interpret-target { margin-top: 20px; min-height: 8.5em; }
.interpret-text {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--ink);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.interpret-text.is-changing { opacity: 0; transform: translateY(6px); }
.interpret-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
}
.lang-pill {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lang-pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Steg (ekte rekkefolge) ---------- */
.steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
    counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 750;
    margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }

/* ---------- Funksjonsliste (to kolonner, uten kortkit) ---------- */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px clamp(28px, 5vw, 64px);
    list-style: none;
    padding: 0;
}
.feature-list h3 { margin-bottom: 6px; font-size: 1.12rem; }
.feature-list p { color: var(--ink-soft); }
.feature-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Moduler pa funksjonssiden */
.module {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(20px, 4vw, 56px);
    padding: clamp(32px, 5vw, 48px) 0;
    border-top: 1px solid var(--line);
}
.module:first-child { border-top: 0; padding-top: 0; }
.module h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.module > div > p { color: var(--ink-soft); margin-top: 10px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.check-list li strong { color: var(--ink); }
.check-list li::before {
    content: "";
    position: absolute;
    left: 2px; top: 0.45em;
    width: 14px; height: 8px;
    border-left: 2.5px solid var(--brand);
    border-bottom: 2.5px solid var(--brand);
    transform: rotate(-45deg);
}

/* ---------- Skjermbilder ---------- */
.screens {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px var(--gutter) 22px;
    margin: 0 calc(var(--gutter) * -1);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.screens figure {
    flex: 0 0 auto;
    width: clamp(190px, 24vw, 240px);
    scroll-snap-align: start;
}
.screens img {
    width: 100%;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
}
.screens figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); }
.screens figcaption strong { display: block; color: var(--ink); font-size: 0.98rem; }

/* ---------- Priser ---------- */
.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.plan {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}
.plan.is-featured { border: 2px solid var(--brand); }
.plan-note { font-size: 0.85rem; font-weight: 650; color: var(--brand); margin-bottom: 8px; }
.plan h2 { font-size: 1.35rem; }
.plan > p { color: var(--ink-soft); margin-top: 8px; }
.plan-price { margin: 22px 0 4px; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.plan .check-list { margin-bottom: 26px; font-size: 0.98rem; }
.plan .button-row { margin-top: auto; }
.plan .button-row .btn { flex: 1 1 auto; }

.price-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.price-table th, .price-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-weight: 650; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }

.compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.compare > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.compare h3 { margin-bottom: 14px; }
.compare ul { padding-left: 20px; color: var(--ink-soft); display: grid; gap: 8px; }

/* ---------- Spørsmål og svar ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 36px 20px 0;
    font-weight: 650;
    font-size: 1.05rem;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 6px; top: 50%;
    width: 10px; height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 20px; max-width: 70ch; }

/* ---------- Avslutning ---------- */
.cta {
    background: var(--ink);
    color: var(--paper);
    border-radius: 22px;
    padding: clamp(32px, 6vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 24px;
    align-items: center;
}
.cta h2 { color: var(--paper); }
.cta p { color: color-mix(in srgb, var(--paper) 78%, transparent); margin-top: 10px; max-width: 560px; }
.cta .btn-primary { background: var(--paper); color: var(--ink); }
.cta .btn-primary:hover { background: color-mix(in srgb, var(--paper) 88%, var(--ink)); color: var(--ink); }
.cta .btn-secondary { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.cta .btn-secondary:hover { border-color: var(--paper); color: var(--paper); }

.note {
    background: var(--surface-2);
    border-radius: var(--radius);
    padding: 18px 20px;
    color: var(--ink-soft);
    font-size: 0.98rem;
}
.note strong { color: var(--ink); }

/* ---------- Skjema ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, label.field-label { font-weight: 600; font-size: 0.93rem; }
.field .optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea, .form-control {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus, .form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-status { min-height: 1.4em; font-weight: 600; margin-top: 12px; }
.form-status.success, .form-status.ok { color: var(--ok); }
.form-status.error { color: var(--error); }
.hp, .honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Bestilling pa forsiden (eksisterende markup og skript) ---------- */
.order-section { padding: clamp(56px, 9vw, 104px) 0; background: var(--surface); border-top: 1px solid var(--line); }
.order-section .section-header { max-width: 680px; margin-bottom: 28px; }
.order-section .section-header h2 { margin-bottom: 12px; }
.order-section .section-header p { color: var(--ink-soft); }
.section-tag { display: none; }
.tab-switcher {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: var(--surface-2);
    border-radius: 12px;
}
.tab-btn {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-weight: 650;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 9px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.tab-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(20px, 4vw, 36px);
}
.form-card h3 { margin: 6px 0 6px; }
.packages-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 26px; }
.package-card {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.package-card.selected { border-color: var(--brand); }
.package-header { display: flex; gap: 14px; align-items: flex-start; }
.package-title-wrap h3 { font-size: 1.12rem; margin: 0 0 4px; }
.package-title-wrap p { color: var(--ink-soft); font-size: 0.94rem; }
.custom-checkbox {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    border-radius: 7px;
    border: 2px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 2px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.package-card.selected .custom-checkbox { background: var(--brand); border-color: var(--brand); }
.package-card.selected .custom-checkbox::after {
    content: "";
    width: 10px; height: 6px;
    border-left: 2.5px solid var(--on-brand);
    border-bottom: 2.5px solid var(--on-brand);
    transform: rotate(-45deg) translate(1px, -1px);
}
.package-card .custom-checkbox svg { display: none; }
.package-config { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.package-config-group { margin-bottom: 14px; font-size: 0.94rem; }
.stepper-wrap { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.btn-step {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}
.btn-step:disabled { opacity: 0.4; cursor: default; }
.stepper-display { min-width: 86px; text-align: center; font-weight: 650; }
.package-price-line { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 0.95rem; }
.package-price-val { font-weight: 750; white-space: nowrap; }
.price-summary-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 28px;
}
.breakdown-row, .total-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.total-row { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; }
.total-price-large { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.form-grid-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-group { display: grid; gap: 6px; margin-bottom: 16px; }
.form-group label { font-weight: 600; font-size: 0.93rem; }

/* ---------- Tekstsider (hjelp, personvern, vilkar) ---------- */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 48px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.15rem; margin: 30px 0 10px; scroll-margin-top: 90px; }
.prose h4 { margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.prose strong { color: var(--ink); }
.prose .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.prose .note { margin: 20px 0; }
.prose section { scroll-margin-top: 90px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 92px; font-size: 0.94rem; }
.toc h2 { font-size: 0.95rem; margin: 0 0 10px; letter-spacing: 0; }
.toc ol, .toc ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Bunntekst ---------- */
.site-footer {
    margin-top: clamp(56px, 8vw, 96px);
    border-top: 1px solid var(--line);
    padding: 44px 0 28px;
    color: var(--ink-soft);
    font-size: 0.94rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 32px;
}
.footer-grid strong { color: var(--ink); display: block; margin-bottom: 8px; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid nav a { color: var(--ink-soft); text-decoration: none; }
.footer-grid nav a:hover { color: var(--brand); }
.footer-bottom { margin-top: 32px; color: var(--muted); font-size: 0.86rem; }

/* ---------- En samlet innlastning: hero og sidetopp kommer inn en gang ---------- */
.reveal { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal-2 { animation-delay: 0.08s; }
.reveal-3 { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
    .hero-grid, .module, .cta, .doc-layout { grid-template-columns: minmax(0, 1fr); }
    .plans { grid-template-columns: minmax(0, 1fr); }
    .feature-list.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
}
@media (max-width: 680px) {
    body { font-size: 1rem; }
    .steps, .feature-list, .feature-list.three, .compare, .packages-grid, .form-grid-2col { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .button-row .btn { flex: 1 1 auto; }
    .tab-switcher { display: flex; }
    .tab-btn { flex: 1 1 auto; padding: 10px 8px; }
    .interpret-target { min-height: 10em; }
}
