/* Neste generasjon nettsider, /nettside (sak 27025, 2026-10-25). Siden er selv en demo på hva vi lager.
   Mørk hero med en linje som dekoder seg og en illustrasjon av en nettside som jobber: en besøkende sender skjemaet, og
   hendelsene kommer inn én etter én. Illustrasjonen er merket, ikke klikkbar, og står stille med redusert bevegelse.
   Effektene lenger ned (ord som glir opp, markeringstusj, lys på kortene, ringer som fylles, A+ som stemples inn) styres av
   nettside.js. De skjulte starttilstandene gjelder bare når skriptet har lagt .ns-klar på <html>, så uten skript vises alt. */

@property --p { syntax: "<number>"; inherits: false; initial-value: 100; }

.ns-hero { position: relative; overflow: hidden; overflow: clip; isolation: isolate; padding: 9.5rem 0 5.5rem; }
@media (max-width: 991.98px) { .ns-hero { padding: 8rem 0 3.5rem; } }
.ns-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(45% 60% at 78% 45%, rgba(82,140,255,.18), transparent 70%), radial-gradient(35% 45% at 92% 90%, rgba(255,61,139,.14), transparent 70%), radial-gradient(30% 40% at 6% 12%, rgba(255,181,71,.1), transparent 70%); }
.ns-hero .ns-stov { filter: blur(.7px); }
.ns-hero > .container { position: relative; z-index: 1; }
.ns-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255,181,71); margin: 0 0 1rem; }
.ns-h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5rem; }
.ns-lead { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 33rem; margin: 0 0 2rem; }

/* Linjen under tittelen: alle frasene ligger usynlige i samme rute, så bredden er den lengste og ingenting flytter seg.
   nettside.js skriver teksten som på en skrivemaskin i .ns-skriv oppå. Uten skript vises den første frasen. */
.ns-som { font-size: clamp(1.25rem, 2.3vw, 1.7rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: rgba(255,255,255,.92); margin: 0 0 1.3rem; }
@media (max-width: 399.98px) { .ns-som { font-size: 1.1rem; } } /* det lengste budskapet holder seg på linjen med «som» også på 360 px */
.ns-roter { display: inline-grid; vertical-align: bottom; }
.ns-frase { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transition: opacity .2s;
    background: linear-gradient(90deg, rgb(255,181,71), rgb(255,106,61) 45%, rgb(255,61,139)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ns-frase.vis { opacity: 1; }
.ns-skriv { grid-area: 1 / 1; white-space: nowrap; }
.ns-skriv b { font-weight: inherit; background: linear-gradient(90deg, rgb(255,181,71), rgb(255,106,61) 45%, rgb(255,61,139)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ns-skriv i { display: inline-block; width: 3px; height: .95em; margin-left: 3px; vertical-align: -.1em; border-radius: 1px; background: rgb(255,106,61); animation: ns-blink 1.05s steps(1) infinite; }
.ns-skriv.skriver i { animation: none; } /* markøren blinker ikke mens den skriver */
@keyframes ns-blink { 50% { opacity: 0; } }

/* Bevis under knappene */
.ns-bevis { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem .9rem; margin-top: 1.6rem; padding: .5rem .9rem .5rem .5rem; border-radius: 99px;
    font-size: .85rem; color: rgba(255,255,255,.85); text-decoration: none; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: background .25s; }
main .ns-hero a.ns-bevis { color: rgba(255,255,255,.88); } main .ns-hero a.ns-bevis:hover, main .ns-hero a.ns-bevis:focus { color: rgb(255,255,255); } /* slår main .bg-primary a:not(.btn) i bundle.css */
@media (max-width: 575.98px) { .ns-bevis { border-radius: 16px; } }
.ns-bevis:hover, .ns-bevis:focus { color: rgb(255,255,255); text-decoration: none; background: rgba(255,255,255,.12); }
.ns-bevis b { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: .35rem; border-radius: 50%; font-size: .72rem; vertical-align: middle; }
.ns-bevis-100 { color: rgb(110,231,183); box-shadow: inset 0 0 0 3px rgb(52,211,153); }
.ns-bevis-a { color: rgb(20,26,44); background: rgb(110,231,183); }
.ns-bevis-pil { color: rgb(255,181,71); }

/* ---- Illustrasjonen: nettleser med en bedriftsside, peker som sender skjemaet, og hendelser som kommer inn ---- */
.ns-demo { --rx: 3deg; --ry: -6deg; position: relative; max-width: 560px; margin: 0 auto; pointer-events: none; user-select: none;
    transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 991.98px) { .ns-demo { margin-top: 2.5rem; --ry: 0deg; --rx: 0deg; } }
.ns-demo::before { content: ""; position: absolute; inset: 10% -4% -6% 8%; z-index: -1; border-radius: 40px; filter: blur(50px); opacity: .5;
    background: radial-gradient(circle at 30% 40%, rgba(82,140,255,.6), transparent 60%), radial-gradient(circle at 75% 70%, rgba(255,106,61,.5), transparent 60%); }
.ns-vindu { border-radius: 14px; overflow: hidden; background: rgb(250,251,253); color: rgb(31,41,55); box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.12); }
.ns-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; background: rgb(236,239,245); }
.ns-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgb(243,154,143); }
.ns-bar i:nth-child(2) { background: rgb(246,206,120); } .ns-bar i:nth-child(3) { background: rgb(140,214,150); }
.ns-url { margin-left: .6rem; padding: .15rem .7rem; border-radius: 99px; font-size: .68rem; color: rgb(100,110,125); background: rgb(255,255,255); }
.ns-tag { margin-left: auto; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(120,128,140); }
.ns-side { position: relative; padding: 16px 18px 20px; }
.ns-nav { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.ns-logo { width: 46px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgb(255,106,61), rgb(255,61,139)); }
.ns-nav span { width: 34px; height: 6px; border-radius: 3px; background: rgb(214,219,228); }
.ns-nav span:last-child { margin-left: auto; width: 54px; height: 16px; border-radius: 8px; background: rgb(31,41,55); }
.ns-topp { display: grid; grid-template-columns: 1.3fr 1fr; gap: .9rem; align-items: center; margin-bottom: .9rem; }
.ns-tittel b { display: block; height: 13px; border-radius: 6px; background: rgb(31,41,55); margin-bottom: .45rem; }
.ns-tittel b + b { width: 70%; }
.ns-tittel i { display: block; height: 6px; border-radius: 3px; background: rgb(214,219,228); margin-top: .4rem; }
.ns-tittel i + i { width: 85%; }
.ns-bilde { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(140deg, rgb(82,140,255), rgb(122,60,255) 55%, rgb(255,61,139)); }
/* Skjemaet den besøkende fyller ut */
.ns-skjema { display: grid; grid-template-columns: 1fr 1fr auto; gap: .45rem; align-items: center; padding: 11px; border-radius: 10px; background: rgb(255,255,255); box-shadow: 0 0 0 1px rgb(228,232,239); }
.ns-felt { height: 22px; border-radius: 6px; background: rgb(243,245,249); box-shadow: inset 0 0 0 1px rgb(222,227,235); }
.ns-send { width: 54px; padding: 5px 0; text-align: center; border-radius: 6px; font-size: .68rem; font-weight: 700; color: rgb(255,255,255); background: rgb(255,106,61); }
/* Hendelsene som kommer inn */
.ns-hendelser { position: absolute; right: -64px; top: 13%; display: grid; gap: .5rem; width: 230px; }
@media (max-width: 1199.98px) { .ns-hendelser { right: -24px; } }
@media (max-width: 575.98px) {
    .ns-hendelser { right: -6px; width: 196px; top: 20%; gap: .4rem; }
    .ns-hendelser .ns-hendelse { padding: .4rem .55rem; } .ns-hendelse small { display: none; } .ns-hendelser .ns-prikk { width: 22px; height: 22px; border-radius: 7px; }
}
.ns-hendelse { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border-radius: 12px; font-size: .74rem; line-height: 1.3; color: rgb(255,255,255);
    background: rgba(20,26,44,.92); box-shadow: 0 14px 32px -14px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.12); }
.ns-hendelse b { display: block; font-size: .78rem; }
.ns-hendelse small { color: rgba(255,255,255,.62); }
.ns-prikk { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.ns-prikk svg { width: 14px; height: 14px; fill: none; stroke: rgb(255,255,255); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ns-h1-ikon { background: rgb(255,106,61); } .ns-h2-ikon { background: rgb(82,140,255); } .ns-h3-ikon { background: rgb(52,211,153); } .ns-h4-ikon { background: rgb(160,80,255); }
/* Pekeren ligger i siden og er forankret til Send-knappen (midten er 56 px fra høyre og 41 px fra bunnen), så den treffer i alle bredder */
.ns-peker { position: absolute; width: 22px; height: 22px; right: 38px; bottom: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.ns-peker svg { width: 100%; height: 100%; }
.ns-klikk { position: absolute; width: 30px; height: 30px; right: 41px; bottom: 26px; border-radius: 50%; border: 2px solid rgb(255,106,61); opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
    .ns-peker { animation: ns-peker 12s ease-in-out infinite; }
    .ns-klikk { animation: ns-klikk 12s ease-out infinite; }
    .ns-send { animation: ns-send 12s ease-in-out infinite; }
    .ns-hendelse { opacity: 0; transform: translateX(16px); }
    .ns-hendelse:nth-child(1) { animation: ns-h1 12s cubic-bezier(.2,.8,.2,1) infinite; }
    .ns-hendelse:nth-child(2) { animation: ns-h2 12s cubic-bezier(.2,.8,.2,1) infinite; }
    .ns-hendelse:nth-child(3) { animation: ns-h3 12s cubic-bezier(.2,.8,.2,1) infinite; }
    .ns-hendelse:nth-child(4) { animation: ns-h4 12s cubic-bezier(.2,.8,.2,1) infinite; }
}
/* Pekeren kommer inn over innholdet, klikker Send, og trekker seg tilbake */
@keyframes ns-peker { 0%, 4% { transform: translate(-170px, -110px); } 18%, 24% { transform: none; } 36%, 100% { transform: translate(-90px, -150px); } }
@keyframes ns-klikk { 0%, 19% { opacity: 0; transform: scale(.4); } 20% { opacity: .9; transform: scale(.6); } 27%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ns-send { 0%, 19%, 24%, 100% { background: rgb(255,106,61); } 20%, 22% { background: rgb(204,74,21); } }
@keyframes ns-h1 { 0%, 22% { opacity: 0; transform: translateX(16px); } 26%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ns-h2 { 0%, 38% { opacity: 0; transform: translateX(16px); } 42%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ns-h3 { 0%, 54% { opacity: 0; transform: translateX(16px); } 58%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ns-h4 { 0%, 70% { opacity: 0; transform: translateX(16px); } 74%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ns-peker, .ns-klikk { display: none; } .ns-demo { transform: none; } }

/* ---- Overskrifter som glir opp ord for ord (ordene pakkes inn av nettside.js) ---- */
[data-reveal="fx"] { transition-duration: .3s; }
.ns-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.ns-w > * { display: inline-block; transition: transform .9s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 55ms), opacity .6s ease calc(var(--i, 0) * 55ms); }
.ns-klar .ns-fx:not(.is-visible) .ns-w > * { transform: translateY(108%); opacity: 0; }

/* ---- Markeringstusj bak nøkkelord ---- */
.ns-merk { padding: 0 .12em; margin: 0 -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
    background: linear-gradient(100deg, rgba(255,181,71,.55), rgba(255,106,61,.38)) no-repeat 0 82% / 100% .42em; transition: background-size 1.1s cubic-bezier(.65,0,.35,1) .25s; }
.ns-klar .ns-merk:not(.ns-inn) { background-size: 0 .42em; }
.ns-mork .ns-merk { background-image: linear-gradient(100deg, rgba(255,181,71,.45), rgba(255,61,139,.4)); }

/* ---- Kort med ikon: lyset følger musen, og ikonet tegnes når kortet kommer inn ---- */
.ns-kort { position: relative; overflow: hidden; height: 100%; padding: 1.6rem 1.5rem; border-radius: 14px; background: rgb(255,255,255);
    box-shadow: 0 0 0 1px rgba(17,24,39,.06), 0 18px 40px -30px rgba(17,24,39,.4); transition: opacity .7s, transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.ns-kort::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0), rgba(255,106,61,.13), rgba(255,61,139,.06) 40%, transparent 70%); }
.ns-kort:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(255,106,61,.28), 0 26px 50px -30px rgba(204,74,21,.55); }
.ns-kort:hover::before { opacity: 1; }
.ns-kort > * { position: relative; }
.ns-kort h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.ns-kort p { margin: 0; color: rgb(75,85,99); }
.ns-ikon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: .9rem; color: rgb(204,74,21);
    background: linear-gradient(135deg, rgba(255,181,71,.22), rgba(255,61,139,.14)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.ns-kort:hover .ns-ikon { transform: scale(1.08) rotate(-4deg); }
.ns-ikon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ns-ikon svg * { stroke-dasharray: 80; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.65,0,.35,1) .35s; }
.ns-klar .ns-kort:not(.is-visible) .ns-ikon svg * { stroke-dashoffset: 80; }

/* ---- «Målt, ikke lovet»: ekte målinger av dops.no ---- */
.ns-malt { position: relative; overflow: hidden; overflow: clip; isolation: isolate; color: rgb(255,255,255); background: rgb(17,19,31); }
.ns-malt::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(40% 70% at 15% 20%, rgba(52,211,153,.12), transparent 70%), radial-gradient(40% 70% at 90% 80%, rgba(255,61,139,.12), transparent 70%); }
.ns-malt .lead { color: rgba(255,255,255,.8); }
.ns-malt-rad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 2.5rem 0 2rem; }
@media (max-width: 991.98px) { .ns-malt-rad { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .ns-malt-rad { grid-template-columns: repeat(2, 1fr); } }
.ns-maling { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1.4rem .8rem; border-radius: 16px; text-align: center;
    background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.ns-maling small { font-size: .82rem; line-height: 1.3; color: rgba(255,255,255,.75); }
.ns-ring { --p: 100; position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(rgb(52,211,153) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); transition: --p 1.5s cubic-bezier(.33,1,.68,1); }
.ns-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgb(17,19,31); }
.ns-ring span { position: relative; font-size: 1.6rem; font-weight: 800; color: rgb(110,231,183); font-variant-numeric: tabular-nums; }
.ns-klar .ns-malt-rad:not(.ns-inn) .ns-ring { --p: 0; }
.ns-maling:nth-child(2) .ns-ring { transition-delay: .12s; } .ns-maling:nth-child(3) .ns-ring { transition-delay: .24s; } .ns-maling:nth-child(4) .ns-ring { transition-delay: .36s; }
/* A+ stemples inn etter ringene */
.ns-skjold { position: relative; width: 92px; height: 92px; display: grid; place-items: center; transition: transform .45s cubic-bezier(.3,1.6,.5,1) 1.3s, opacity .2s 1.3s; }
.ns-skjold svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ns-skjold span { position: relative; font-size: 1.7rem; font-weight: 800; color: rgb(17,19,31); margin-top: -4px; }
.ns-skjold::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgb(110,231,183); opacity: 0; }
.ns-klar .ns-malt-rad:not(.ns-inn) .ns-skjold { transform: scale(1.7) rotate(-12deg); opacity: 0; }
.ns-klar .ns-malt-rad.ns-inn .ns-skjold::after { animation: ns-stempel .9s ease-out 1.55s; }
@keyframes ns-stempel { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(1.5); } }
.ns-fart { display: inline-block; margin: 0 0 1rem; padding: .6rem 1rem; border-radius: 12px; font-size: 1rem;
    background: rgba(52,211,153,.1); box-shadow: inset 0 0 0 1px rgba(52,211,153,.3); }
.ns-fart[hidden] { display: none; }
.ns-fart::before { content: ""; display: inline-block; vertical-align: middle; margin: -2px .6rem 0 0; width: 9px; height: 9px; border-radius: 50%; background: rgb(52,211,153); box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.ns-fart b { color: rgb(110,231,183); }
.ns-kilde { font-size: .85rem; color: rgba(255,255,255,.6); margin: 0; }
.ns-malt .ns-kilde a { color: rgb(255,255,255); text-decoration: underline; }

/* ---- Forrige generasjon → neste: det gamle strekes over, pilen spretter, det nye kommer fram ---- */
.ns-par { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.ns-par li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: rgb(255,255,255);
    box-shadow: 0 0 0 1px rgba(17,24,39,.06), 0 12px 30px -24px rgba(17,24,39,.4); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1); }
.ns-gammel { position: relative; justify-self: start; color: rgb(120,128,140); }
.ns-gammel::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; border-radius: 2px; background: rgba(204,74,21,.75); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.ns-ny { font-weight: 700; color: rgb(31,41,55); transition: color .6s, opacity .6s; }
.ns-pil { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: rgb(255,255,255); background: linear-gradient(135deg, rgb(255,106,61), rgb(255,61,139)); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.ns-pil svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ns-klar .ns-par:not(.is-visible) li { opacity: 0; transform: translateX(-18px); }
.ns-klar .ns-par:not(.is-visible) .ns-gammel::after { transform: scaleX(0); }
.ns-klar .ns-par:not(.is-visible) .ns-pil { transform: scale(0); }
.ns-klar .ns-par:not(.is-visible) .ns-ny { opacity: 0; }
.ns-par li:nth-child(1) { --d: 0s; } .ns-par li:nth-child(2) { --d: .15s; } .ns-par li:nth-child(3) { --d: .3s; }
.ns-par li:nth-child(4) { --d: .45s; } .ns-par li:nth-child(5) { --d: .6s; } .ns-par li:nth-child(6) { --d: .75s; }
.ns-par li { transition-delay: var(--d); }
.ns-par .ns-gammel::after { transition-delay: calc(var(--d) + .45s); }
.ns-par .ns-pil { transition-delay: calc(var(--d) + .8s); }
.ns-par .ns-ny { transition-delay: calc(var(--d) + .95s); }
@media (max-width: 575.98px) { .ns-par li { grid-template-columns: 1fr; gap: .4rem; text-align: left; } .ns-pil { rotate: 90deg; } }

/* ---- Bildet i CTA: en lysstripe glir over når det kommer inn ---- */
.ns-glans { position: relative; overflow: hidden; border-radius: .5rem; }
.ns-glans::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.38) 48%, rgba(255,240,220,.14) 52%, transparent 70%) 160% 0 / 250% 100% no-repeat; }
.ns-klar .ns-glans.ns-inn::after { animation: ns-glans 1.8s cubic-bezier(.45,0,.2,1) .2s forwards; }
@keyframes ns-glans { to { background-position: -60% 0; } }

/* ---- Fremdriftslinjen øverst ---- */
.ns-fremdrift { position: fixed; left: 0; top: 0; right: 0; z-index: 1100; height: 3px; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, rgb(255,181,71), rgb(255,106,61), rgb(255,61,139), rgb(122,60,255)); }
