/* =====================================================
   Nettsider — landingsside
   Bygget på Utenfra-designsystemet (tokens fra dev-2026.css)
   ===================================================== */

/* ---------- Hero ---------- */
.nw-hero {
    position: relative;
    background: var(--c-ink);
    color: #fff;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.nw-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(201, 166, 107, 0.08) 0%, rgba(201, 166, 107, 0) 60%);
    pointer-events: none;
}

.nw-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
}

.nw-hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

.nw-kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-amber);
    border: 1px solid rgba(201, 166, 107, 0.35);
    border-radius: 100px;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.75rem;
}

.nw-hero h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    line-height: 1.08;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.5rem;
}

.nw-hero h1 em {
    font-style: italic;
    color: var(--c-amber-light);
}

.nw-hero .nw-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.nw-hero .nw-lead strong {
    color: #fff;
    font-weight: 600;
}

.nw-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nw-trust li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.nw-trust li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--c-amber);
    font-weight: 700;
}

/* ---------- Skjemakort ---------- */
.nw-form-card {
    background: var(--c-paper);
    color: var(--c-ink);
    border-radius: 14px;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    position: relative;
}

.nw-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, var(--c-amber), var(--c-amber-light));
    border-radius: 0 0 3px 3px;
}

.nw-form-card h2 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.nw-form-card .nw-form-sub {
    font-size: 0.95rem;
    color: rgba(15, 15, 15, 0.6);
    margin-bottom: 1.5rem;
}

.nw-form-card label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 15, 15, 0.55);
    margin-bottom: 0.4rem;
}

.nw-form-card input[type="text"],
.nw-form-card input[type="email"],
.nw-form-card input[type="tel"] {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(15, 15, 15, 0.18);
    border-radius: 8px;
    background: #fff;
    color: var(--c-ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nw-form-card input:focus {
    outline: none;
    border-color: var(--c-amber);
    box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.25);
}

.nw-form-card .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
}

.nw-form-micro {
    font-size: 0.82rem;
    color: rgba(15, 15, 15, 0.5);
    margin-top: 0.9rem;
    text-align: center;
}

.nw-form-error {
    display: none;
    background: #fdecea;
    border: 1px solid #f5c6c0;
    color: #a83226;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
}

.nw-form-error.visible { display: block; }

.nw-form-success {
    text-align: center;
    padding: 2rem 0.5rem;
}

.nw-form-success .nw-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(201, 166, 107, 0.15);
    color: var(--c-amber);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.nw-form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.nw-form-success p {
    color: rgba(15, 15, 15, 0.6);
    font-size: 0.95rem;
    max-width: 22rem;
    margin: 0 auto;
}

/* Honeypot — skjult for mennesker */
.nw-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Priskort ---------- */
.nw-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.nw-price-card {
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.09);
    border-radius: 14px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nw-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(15, 15, 15, 0.1);
}

.nw-price-card.featured {
    background: var(--c-ink);
    color: #fff;
    border-color: var(--c-ink);
}

.nw-price-card.featured h3,
.nw-price-card.featured .nw-price {
    color: #fff;
}

.nw-price-card.featured .nw-price-desc {
    color: rgba(255, 255, 255, 0.72);
}

.nw-price-card.featured .btn-primary {
    background: var(--c-amber);
    color: var(--c-ink);
}

.nw-price-card .nw-price-tag {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-amber);
    margin-bottom: 0.9rem;
}

.nw-price-card h3 {
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.nw-price-card .nw-price {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.nw-price-card .nw-price small {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.6;
}

.nw-price-card .nw-price-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.72;
    margin-bottom: 1.4rem;
}

.nw-price-card .checklist {
    margin-bottom: 1.75rem;
    flex: 1;
}

.nw-price-card.featured .checklist li {
    color: rgba(255, 255, 255, 0.82);
}

.nw-price-card .btn {
    align-self: stretch;
    text-align: center;
}

/* ---------- Referanser ---------- */
.nw-ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.nw-ref-card {
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.09);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nw-ref-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(15, 15, 15, 0.1);
}

.nw-ref-card figure {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--c-paper-soft);
}

.nw-ref-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}

.nw-ref-card:hover figure img {
    transform: scale(1.03);
}

.nw-ref-body {
    padding: 1.6rem 1.6rem 1.8rem;
}

.nw-ref-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.nw-ref-body .nw-ref-type {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-amber);
    display: block;
    margin-bottom: 0.8rem;
}

.nw-ref-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(15, 15, 15, 0.68);
    margin: 0;
}

/* ---------- Systemer (mørk seksjon) ---------- */
.nw-systems {
    background: var(--c-ink);
    color: #fff;
}

.nw-systems .section-header-dev h2 { color: #fff; }
.nw-systems .section-header-dev p { color: rgba(255, 255, 255, 0.65); }

.nw-systems-intro {
    max-width: 46rem;
    margin: 0 auto 3.5rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.nw-systems-intro strong { color: var(--c-amber-light); font-weight: 600; }

.nw-sys-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.nw-sys-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.9rem 1.75rem;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.nw-sys-card:hover {
    border-color: rgba(201, 166, 107, 0.45);
    background: rgba(201, 166, 107, 0.05);
    transform: translateY(-3px);
}

.nw-sys-card .nw-sys-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(201, 166, 107, 0.14);
    color: var(--c-amber-light);
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
}

.nw-sys-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.nw-sys-card p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

.nw-sys-note {
    text-align: center;
    margin-top: 2.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
}

.nw-sys-note a {
    color: var(--c-amber-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Teknisk (under panseret) ---------- */
.nw-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.nw-tech-card {
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
    background: var(--c-paper-soft);
}

.nw-tech-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.nw-tech-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(15, 15, 15, 0.65);
    margin: 0;
}

/* ---------- FAQ ---------- */
.nw-faq {
    max-width: 46rem;
    margin: 0 auto;
}

.nw-faq details {
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.09);
    border-radius: 12px;
    margin-bottom: 0.9rem;
    overflow: hidden;
}

.nw-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nw-faq summary::-webkit-details-marker { display: none; }

.nw-faq summary::after {
    content: '+';
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--c-amber);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nw-faq details[open] summary::after { transform: rotate(45deg); }

.nw-faq .nw-faq-body {
    padding: 0 1.5rem 1.35rem;
    font-size: 0.97rem;
    line-height: 1.7;
    color: rgba(15, 15, 15, 0.68);
}

/* ---------- Responsivt ---------- */
@media (max-width: 1024px) {
    .nw-hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
    .nw-hero .nw-lead { max-width: none; }
    .nw-form-card { max-width: 30rem; }
    .nw-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .nw-sys-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nw-price-grid,
    .nw-ref-grid { grid-template-columns: 1fr; }
    .nw-sys-grid { grid-template-columns: 1fr; }
    .nw-tech-grid { grid-template-columns: 1fr; }
    .nw-form-card { max-width: none; }
    .nw-hero { padding-top: 3rem; }
}


/* ---------- Konsept-merke på referanse ---------- */
.nw-ref-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-ink);
    background: rgba(201, 166, 107, 0.25);
    border: 1px solid var(--c-amber);
    border-radius: 100px;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.8rem;
}

/* ---------- Metode (ansvar-seksjon) ---------- */
.nw-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.nw-method-card {
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.09);
    border-radius: 14px;
    padding: 2rem 1.9rem;
}

.nw-method-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(201, 166, 107, 0.16);
    color: var(--c-amber);
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.nw-method-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nw-method-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(15, 15, 15, 0.68);
    margin: 0;
}

.nw-method-note {
    text-align: center;
    font-size: 1.05rem;
    color: rgba(15, 15, 15, 0.65);
    max-width: 40rem;
    margin: 0 auto;
}

/* ---------- Kostnadsstripe (bygging/hosting/endringer) ---------- */
.nw-cost-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(15, 15, 15, 0.1);
}

.nw-cost-item h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-amber);
    margin-bottom: 0.5rem;
}

.nw-cost-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(15, 15, 15, 0.68);
    margin: 0;
}

.nw-ownership {
    text-align: center;
    font-size: 0.95rem;
    color: rgba(15, 15, 15, 0.6);
    max-width: 42rem;
    margin: 2.25rem auto 0;
}

/* ---------- Utvidelser (foto/video + systemer) ---------- */
.nw-ext-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.nw-ext-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 2.1rem 2rem;
    background: rgba(255, 255, 255, 0.025);
}

.nw-ext-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.7rem;
}

.nw-ext-card p {
    font-size: 0.97rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 1rem;
}

.nw-ext-card .checklist li {
    color: rgba(255, 255, 255, 0.78);
}


/* ---------- Responsivt for nye seksjoner ---------- */
@media (max-width: 1024px) {
    .nw-method-grid { grid-template-columns: 1fr; }
    .nw-cost-strip { grid-template-columns: 1fr; }
    .nw-ext-grid { grid-template-columns: 1fr; }
}


/* ---------- Kontrast- og mobiljusteringer ---------- */
.nw-hero .nw-lead {
    color: rgba(255, 255, 255, 0.84);
}

.nw-price-line {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1.5rem;
}

.nw-price-line strong {
    color: var(--c-amber-light);
}

/* Mørkere brødtekst på lyse flater */
.nw-method-card p,
.nw-cost-item p,
.nw-ref-body p,
.nw-faq .nw-faq-body {
    color: rgba(15, 15, 15, 0.78);
}

.section-header-dev p {
    color: rgba(26, 26, 26, 0.72);
}

.nw-price-tag,
.nw-cost-item h4,
.nw-ref-type,
.section-header-dev .overline {
    color: #a87f3d;
}

.nw-systems .section-header-dev .overline {
    color: var(--c-amber-light);
}

.nw-form-sub,
.nw-form-micro {
    color: rgba(15, 15, 15, 0.62);
}

/* Mer luft under headeren på mobil, så kicker ikke kolliderer med logo */
@media (max-width: 768px) {
    .nw-hero {
        padding-top: 6.5rem;
    }
}



/* =====================================================
   Hero: mockup + CTA (mobil)
   ===================================================== */
.nw-hero-cta,
.nw-hero-mock {
    display: none;
}

@media (max-width: 768px) {
    /* Sterkere varme i flaten på liten skjerm */
    .nw-hero::before {
        background: radial-gradient(circle, rgba(201, 166, 107, 0.16) 0%, rgba(201, 166, 107, 0) 62%);
    }

    .nw-hero-cta {
        display: inline-flex;
        margin-top: 2rem;
        margin-bottom: 2.25rem;
        width: 100%;
        justify-content: center;
    }

    /* Førsteutkast som visuelt bevis — skråstilt browser-kort */
    .nw-hero-mock {
        display: block;
        position: relative;
        margin: 1.5rem auto 0;
        max-width: 320px;
        background: #fff;
        border-radius: 14px;
        transform: rotate(-2deg);
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    }

    .nw-hero-mock-bar {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 10px 12px;
        background: #e9e6e0;
        border-radius: 14px 14px 0 0;
    }

    .nw-hero-mock-bar i {
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #c9c4bb;
    }

    .nw-hero-mock-bar b {
        margin-left: 8px;
        flex: 1;
        min-width: 0;
        font-weight: 500;
        font-size: 12px;
        color: #6b675f;
        background: #fff;
        border-radius: 6px;
        padding: 3px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nw-hero-mock img {
        display: block;
        width: 100%;
        border-radius: 0 0 14px 14px;
    }

    .nw-hero-mock-tag {
        position: absolute;
        bottom: -13px;
        right: 6px;
        background: var(--c-ink, #0f0f0f);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.18);
        font-size: 12.5px;
        font-weight: 500;
        padding: 7px 14px;
        border-radius: 999px;
        transform: rotate(2deg);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
        white-space: nowrap;
    }
}

/* Korte skjermer: mindre mockup så CTA-en holder seg i første viewport */
@media (max-width: 768px) and (max-height: 740px) {
    .nw-hero {
        padding-top: 3rem;
    }
    .nw-hero-mock {
        max-width: 265px;
        margin-top: 1.25rem;
    }
    .nw-hero-cta {
        margin-top: 1.5rem;
    }
}
