/* Tidverk – nettside. Profil: se merkevare/tidverk/tidverk-profilmanual.pdf. Mobil først.
 * Runde former, to myke støttefarger (bare bakgrunner i illustrasjoner) og «fjær»-kurve på små bekreftelser.
 * Animasjonene er bare CSS og viser sluttbildet ved prefers-reduced-motion. */
@font-face { font-family: "Outfit"; src: url("../assets/fonter/outfit-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../assets/fonter/outfit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --blekk: #1C2230; --blekk-2: #262E40; --solgull: #E0A526; --kalk: #F5F2EA; --skifer: #5E6470;
  --hvit: #FFFFFF; --linje: #E2DED4;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bredde: 1120px; --gutter: 16px; --seksjon: 44px; --topp-h: 64px;
  --fs-liten: .875rem; --fs-brod: 1.0625rem;
  --fs-ingress: clamp(1.125rem, 1.05rem + .35vw, 1.25rem);
  --fs-h3: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  --fs-h2: clamp(1.45rem, 1.2rem + 1.1vw, 2.1rem);
  --fs-h1: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --trykk: 44px; --knapp-h: 52px;
  --r: 14px; --r-stor: 22px; --r-pille: 999px;
  --sol-lys: #FBEFD3; --salvie: #DCEBE3; --gronn: #6FB58F;
  --fjaer: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 24px; --seksjon: 56px; } }
@media (min-width: 900px) { :root { --topp-h: 72px; --seksjon: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topp-h) + 12px); }
body { margin: 0; background: var(--kalk); color: var(--blekk); font-family: var(--font); font-size: var(--fs-brod); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 12px; }
strong { font-weight: 600; }

/* Fokus: Blekk innerst + gull utenfor – synlig på både lys og mørk bakgrunn (WCAG 1.4.11) */
:focus-visible { outline: 3px solid var(--blekk); outline-offset: 2px; box-shadow: 0 0 0 6px var(--solgull); }
.sideslutt :focus-visible, .bunn :focus-visible, .sidetopp-mork :focus-visible { outline-color: var(--solgull); box-shadow: 0 0 0 6px var(--hvit); }

.bredde { max-width: var(--bredde); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.smal { max-width: 760px; }
.skjult { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hopp { position: absolute; left: -999px; top: 8px; background: var(--blekk); color: var(--hvit); padding: 10px 14px; z-index: 20; }
.hopp:focus { left: 8px; }

.ikon { width: 28px; height: 28px; flex: none; color: var(--blekk); }
.ikon-liten { width: 22px; height: 22px; }
@media (min-width: 900px) { .ikon { width: 32px; height: 32px; } }

/* Tekst */
.etikett { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--skifer);
  display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.etikett::before { content: ""; width: 28px; height: 3px; background: var(--solgull); flex: none; }
.etikett-lys { color: rgba(255,255,255,.8); }
.ingress { font-size: var(--fs-ingress); color: var(--skifer); max-width: 52ch; }
.liten { font-size: var(--fs-liten); color: var(--skifer); }
.tittel { font-size: var(--fs-h2); margin-bottom: 18px; }

/* Knapper og lenker */
.knapp { display: inline-flex; align-items: center; justify-content: center; min-height: var(--knapp-h); padding: 0 24px;
  background: var(--solgull); color: var(--blekk); font-weight: 600; text-decoration: none; border: 2px solid var(--solgull);
  transition: background .15s, border-color .15s; }
.knapp:hover { background: #EBB641; border-color: #EBB641; }
.knapp-sekundaer { background: transparent; border-color: var(--blekk); }
.knapp-sekundaer:hover { background: var(--blekk); color: var(--hvit); border-color: var(--blekk); }
.knapp-blokk { display: flex; width: 100%; }
.knapper { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.tekstlenke { display: inline-flex; align-items: center; gap: 8px; min-height: var(--trykk); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--solgull); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tekstlenke .ikon { width: 20px; height: 20px; color: currentColor; }
.tekstlenke-lys { color: var(--hvit); }

/* Topp og meny */
.topp { background: var(--hvit); border-bottom: 1px solid var(--linje); position: sticky; top: 0; z-index: 10; }
.topp-indre { display: flex; align-items: center; gap: 16px; min-height: var(--topp-h); }
.logo { display: inline-flex; align-items: center; min-height: var(--trykk); margin-right: auto; }
.logo img { width: 124px; }
.meny { list-style: none; margin: 0; padding: 0; }
.meny-pc, .knapp-topp { display: none; }

.meny-mobil > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: var(--trykk);
  padding: 0 14px; border: 2px solid var(--blekk); font-weight: 600; cursor: pointer; }
.meny-mobil > summary::-webkit-details-marker { display: none; }
.meny-lukk, .meny-mobil[open] .meny-apne { display: none; }
.meny-mobil[open] .meny-lukk { display: inline; }
.meny-mobil > nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--hvit); border-bottom: 1px solid var(--linje);
  box-shadow: 0 16px 32px rgba(28,34,48,.14); padding: 4px var(--gutter) 20px; display: grid; gap: 16px; }
.meny-mobil .meny a { display: flex; align-items: center; min-height: 56px; padding: 0 12px; border-bottom: 1px solid var(--linje);
  text-decoration: none; font-size: 1.0625rem; }
.meny-mobil .meny a[aria-current] { font-weight: 600; box-shadow: inset 4px 0 0 var(--solgull); }

@media (min-width: 900px) {
  .meny-mobil { display: none; }
  .logo img { width: 140px; }
  .meny-pc { display: block; }
  .meny-pc .meny { display: flex; gap: 24px; }
  .meny-pc .meny a { position: relative; display: flex; align-items: center; min-height: var(--topp-h); padding: 0 2px;
    text-decoration: none; font-size: .9375rem; color: var(--skifer); }
  .meny-pc .meny a:hover { color: var(--blekk); }
  .meny-pc .meny a[aria-current] { color: var(--blekk); font-weight: 600; }
  .meny-pc .meny a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--solgull); }
  .knapp-topp { display: inline-flex; min-height: var(--trykk); padding: 0 16px; font-size: .9375rem; margin-left: 8px; }
}

/* Seksjoner */
.seksjon { padding-block: var(--seksjon); }
.seksjon-tett { padding-block: calc(var(--seksjon) * .7); }
.seksjon-lys { background: var(--hvit); }
.to { display: grid; gap: 32px; align-items: center; }
.to-topp { align-items: start; }
.to > div { display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .to { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Runde former og litt sprett */
.knapp, .knapp-topp, .meny-mobil > summary { border-radius: var(--r-pille); }
.knapp { transition: background .15s, border-color .15s, transform .25s var(--fjaer); }
.knapp:hover { transform: translateY(-2px); }
.knapp:active { transform: scale(.97); }

/* Animasjonsfilmen på forsiden (deler/film.html): rådgiveren fører → arket fylles → sendt til regnskapsfører.
 * Uten tekst, så den er lik på alle språk. Én runde = --tre-tid, i takt med de tre stegene under. */
.film { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.film g, .film path, .film circle { transform-box: fill-box; transform-origin: center; }
.fl-a { animation: 4s ease-in-out infinite alternate fl-pust, var(--tre-tid) infinite fl-hopp; }
.fl-arm { transform-origin: 80% 100%; animation: var(--tre-tid) infinite both fl-arm; }
.fl-puls { animation: var(--tre-tid) infinite both fl-puls; }
.fl-chip { animation: var(--tre-tid) infinite both fl-chip; }
.fl-rad1 { animation: var(--tre-tid) infinite both fl-rad1; }
.fl-rad2 { animation: var(--tre-tid) infinite both fl-rad2; }
.fl-rad3 { animation: var(--tre-tid) infinite both fl-rad3; }
.fl-rad4 { animation: var(--tre-tid) infinite both fl-rad4; }
.fl-ark { animation: var(--tre-tid) infinite both fl-ark; }
.fl-brev { animation: var(--tre-tid) infinite both fl-brev; }
.fl-ok { animation: var(--tre-tid) infinite both fl-ok; }
.fl-b { transform-origin: 50% 100%; animation: var(--tre-tid) infinite both fl-b; }
.fl-damp { animation: 2.6s ease-in-out infinite fl-damp; }
/* Pengene: fra regnskapsføreren i en bue tilbake til rådgiveren, som gjør et lite hopp */
.fl-penger { animation: var(--tre-tid) infinite both fl-penger; }
.fl-p1 { --dx: 410px; --dy: 114px; }
.fl-p2 { --dx: 338px; --dy: 124px; animation-delay: .12s; }
.fl-p3 { --dx: 312px; --dy: 54px; animation-delay: .24s; }
.fl-p4 { --dx: 434px; --dy: 54px; animation-delay: .36s; }
@keyframes fl-penger { 0%, 84% { opacity: 0; translate: var(--dx) var(--dy); scale: .5; rotate: 0deg; } 85% { opacity: 1; translate: var(--dx) var(--dy); scale: .6; }
  89% { opacity: 1; translate: calc(var(--dx) * .5) calc(var(--dy) * .5 - 70px); scale: 1; rotate: 180deg; }
  93% { opacity: 1; translate: 0 0; scale: 1; rotate: 360deg; animation-timing-function: var(--fjaer); } 96% { opacity: 1; translate: 0 8px; rotate: 360deg; } 98%, 100% { opacity: 0; translate: 0 8px; rotate: 360deg; } }
@keyframes fl-hopp { 0%, 92%, 97%, 100% { transform: none; } 94.5% { transform: translateY(-9px); } }
@keyframes fl-pust { to { translate: 0 -2px; } }
@keyframes fl-arm { 0%, 4%, 11%, 100% { rotate: 0deg; } 7% { rotate: -9deg; } }
@keyframes fl-puls { 0%, 6% { opacity: 0; scale: .4; } 8% { opacity: 1; scale: .8; } 14%, 100% { opacity: 0; scale: 2; } }
@keyframes fl-chip { 0%, 9% { opacity: 0; scale: .3; translate: 0 10px; } 9.1% { animation-timing-function: var(--fjaer); } 14%, 21% { opacity: 1; scale: 1; translate: 0 0; }
  28% { opacity: 1; scale: .55; translate: 112px 72px; } 30%, 100% { opacity: 0; scale: .55; translate: 112px 72px; } }
@keyframes fl-rad1 { 0%, 29% { opacity: 0; translate: -10px 0; } 33%, 96% { opacity: 1; translate: 0 0; } 99%, 100% { opacity: 0; } }
@keyframes fl-rad2 { 0%, 37% { opacity: 0; translate: -10px 0; } 41%, 96% { opacity: 1; translate: 0 0; } 99%, 100% { opacity: 0; } }
@keyframes fl-rad3 { 0%, 45% { opacity: 0; translate: -10px 0; } 49%, 96% { opacity: 1; translate: 0 0; } 99%, 100% { opacity: 0; } }
@keyframes fl-rad4 { 0%, 53% { opacity: 0; } 57%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes fl-ark { 0%, 28%, 32%, 62%, 66%, 100% { scale: 1; } 30%, 64% { scale: 1.04; } }
@keyframes fl-brev { 0%, 63% { opacity: 0; scale: .6; translate: 0 0; } 63.1% { animation-timing-function: var(--fjaer); } 67% { opacity: 1; scale: 1; translate: 0 -14px; }
  70% { opacity: 1; scale: 1; translate: 0 -14px; } 77% { opacity: 1; scale: .6; translate: 187px 40px; } 79%, 100% { opacity: 0; scale: .6; translate: 187px 40px; } }
@keyframes fl-ok { 0%, 78% { opacity: 0; scale: .3; } 78.1% { animation-timing-function: var(--fjaer); } 83%, 96% { opacity: 1; scale: 1; } 99%, 100% { opacity: 0; scale: 1; } }
@keyframes fl-b { 0%, 78%, 86%, 100% { translate: 0 0; } 81% { translate: 0 -6px; } 84% { translate: 0 1px; } }
@keyframes fl-damp { 0% { opacity: 0; translate: 0 3px; } 40% { opacity: .8; } 100% { opacity: 0; translate: 0 -5px; } }

/* Helt (forsiden): tekst + animasjonsfilmen */
.helt { padding: 28px 0 12px; overflow: clip; }
.helt-indre { display: grid; gap: 12px; }
.helt-tekst { display: grid; gap: 16px; align-content: center; }
.helt h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem); }
.helt-figur { --tre-tid: 10s; position: relative; isolation: isolate; display: grid; place-items: center; padding: 12px 0; }
.helt-figur::before, .helt-figur::after, .anim::before, .anim::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.helt-figur::before, .anim::before { width: 300px; height: 300px; background: var(--sol-lys); top: 6%; left: 50%; margin-left: -210px; animation: 14s ease-in-out infinite alternate svev; }
.helt-figur::after, .anim::after { width: 190px; height: 190px; background: var(--salvie); bottom: 10%; left: 50%; margin-left: 30px; animation: 11s ease-in-out infinite alternate svev2; }
@keyframes svev { to { transform: translate(18px, 14px) scale(1.06); } }
@keyframes svev2 { to { transform: translate(-14px, -18px) scale(.94); } }
@media (min-width: 900px) {
  .helt { padding: 56px 0 40px; }
  .helt-indre { grid-template-columns: 6fr 5fr; gap: 40px; align-items: center; }
}

/* Sidetopp (undersider) */
.sidetopp { padding: 36px 0 8px; }
.sidetopp h1 { margin-bottom: 14px; }
.sidetopp-mork { background: var(--blekk); color: var(--hvit); padding-bottom: 40px; }
.sidetopp-mork .ingress { color: rgba(255,255,255,.86); }
@media (min-width: 900px) { .sidetopp { padding-top: 64px; } .sidetopp-mork { padding-bottom: 56px; } }

/* 1–2–3: tre kort som spiller etter tur (--tre-tid per runde) */
.tre { --tre-tid: 10s; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tre-kort { background: var(--kalk); border: 2px solid transparent; border-radius: var(--r-stor); padding: 18px; display: grid; gap: 10px; align-content: start;
  animation: var(--tre-tid) infinite both; }
.tre-kort:nth-child(1) { animation-name: kort1; }
.tre-kort:nth-child(2) { animation-name: kort2; }
.tre-kort:nth-child(3) { animation-name: kort3; }
@keyframes kort1 { 0%, 1%, 31%, 100% { border-color: transparent; } 3%, 29% { border-color: var(--solgull); } }
@keyframes kort2 { 0%, 30%, 63%, 100% { border-color: transparent; } 32%, 61% { border-color: var(--solgull); } }
@keyframes kort3 { 0%, 62%, 97%, 100% { border-color: transparent; } 64%, 95% { border-color: var(--solgull); } }
.tre-kort h3 { display: flex; gap: 10px; align-items: center; font-size: var(--fs-h3); margin-top: 4px; }
.tre-nr { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blekk); color: var(--hvit); font-size: .9375rem; flex: none; }
.tre-kort > p { color: var(--skifer); }
@media (min-width: 760px) { .tre { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

/* Fordeler (kort med ikon) */
.fordeler { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fordeler li { background: var(--hvit); border: 1px solid var(--linje); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.fordeler h2, .fordeler h3 { font-size: var(--fs-h3); }
.fordeler p { color: var(--skifer); }
.fordeler .knapp { margin-top: 6px; }
.fordeler .ikon, .funk .ikon { transition: transform .35s var(--fjaer); }
.fordeler li:hover .ikon, .funk li:hover .ikon { transform: rotate(-8deg) scale(1.12); }
@media (min-width: 700px) { .fordeler { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .fordeler-to { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Steg (Kom i gang) */
.steg { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: steg; }
.steg li { counter-increment: steg; display: grid; grid-template-columns: 32px 1fr; gap: 4px 16px; }
.steg li::before { content: counter(steg); grid-row: span 2; font-weight: 600; font-size: 14px; color: var(--hvit); background: var(--blekk);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.steg h2, .steg h3 { font-size: var(--fs-h3); align-self: center; }
.steg p { color: var(--skifer); grid-column: 2; }
@media (min-width: 900px) {
  .steg { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; }
  .steg li { grid-template-columns: 1fr; }
  .steg li::before { grid-row: auto; }
  .steg p { grid-column: 1; }
}

/* Funksjoner: fliser med ikon, tittel og én kort linje */
.funk { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.funk li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 16px; background: var(--hvit); border: 1px solid var(--linje); border-radius: var(--r); align-content: start; }
.funk .ikon { grid-row: span 2; }
.funk h3 { font-size: 1.0625rem; align-self: center; }
.funk p { color: var(--skifer); font-size: 1rem; line-height: 1.45; }
@media (min-width: 640px) { .funk { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .funk { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Lister og merknad */
.sjekk { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sjekk li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.sjekk .ikon { width: 22px; height: 22px; margin-top: 2px; }
.merknad { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-top: 20px; padding: 14px 16px;
  background: var(--hvit); border-left: 4px solid var(--solgull); border-radius: var(--r); font-size: 1rem; }
.seksjon-lys .merknad { background: var(--kalk); }
.merknad .ikon { width: 24px; height: 24px; }
.under { margin-top: 18px; }

/* Pris */
.pakker { display: grid; gap: 14px; }
.prisboks { background: var(--hvit); border: 1px solid var(--linje); border-top: 4px solid var(--solgull); border-radius: var(--r); padding: 24px; display: grid; gap: 8px; }
.prisboks-anbefalt { border-color: var(--blekk); box-shadow: inset 0 0 0 1px var(--blekk); }
.pris-tall { font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem); font-weight: 600; line-height: 1; }
.pris-tall span { font-size: 1.1rem; color: var(--skifer); font-weight: 400; }
@media (min-width: 760px) { .pakker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

/* Spørsmål og svar */
details:not(.meny-mobil) { border-bottom: 1px solid var(--linje); }
details:not(.meny-mobil) summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 52px; }
details:not(.meny-mobil) p { color: var(--skifer); padding: 0 0 16px; max-width: 65ch; }

/* Sideslutt – felles nederst på alle sider */
.sideslutt { background: var(--blekk); color: var(--hvit); padding-block: 48px; }
.sideslutt-indre { display: grid; gap: 24px; }
.sideslutt h2 { font-size: var(--fs-h2); margin-bottom: 10px; }
.sideslutt p { color: rgba(255,255,255,.86); max-width: 52ch; }
.sideslutt-knapper { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
@media (min-width: 900px) {
  .sideslutt { padding-block: 56px; }
  .sideslutt-indre { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
}

/* Bunn */
.bunn { background: var(--blekk-2); color: rgba(255,255,255,.82); padding-block: 28px; font-size: 15px; }
.bunn-indre { display: grid; gap: 18px; }
.bunn-merke { display: grid; gap: 10px; }
.bunn-merke img { width: 112px; }
.bunn-lenker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.bunn-lenker a { display: flex; align-items: center; min-height: var(--trykk); text-decoration: none; }
.bunn-lenker a:hover { text-decoration: underline; text-decoration-color: var(--solgull); }
.bunn-lenker a[aria-current] { color: var(--hvit); font-weight: 600; }
@media (min-width: 900px) { .bunn-indre { grid-template-columns: auto 1fr; align-items: center; } .bunn-lenker { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; } }

/* Tekstside (personvernerklæring) */
.tekstside { display: grid; gap: 12px; }
.tekstside h2 { font-size: 1.25rem; margin-top: 16px; }
.tekstside p { max-width: 68ch; }

/* Språkvelger (verktoy/bygg-nettside.js): i toppen på PC, i mobilmenyen på mobil */
.sprakvelger { display: none; gap: 12px; font-size: .875rem; }
.sprakvelger a, .sprakvelger-mobil a { color: var(--skifer); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--trykk); }
.sprakvelger a:hover, .sprakvelger-mobil a:hover { color: var(--blekk); text-decoration: underline; text-decoration-color: var(--solgull); }
.sprakvelger-mobil { display: flex; gap: 20px; margin: 0; padding: 0 12px; font-size: .9375rem; }
@media (min-width: 900px) { .sprakvelger { display: inline-flex; margin-left: 8px; } }

/* ---------- Samtaleklokken: telefon med Action-knapp (--anim-tid per runde) ---------- */
@property --anim-t { syntax: "<integer>"; inherits: true; initial-value: 0; }
@property --anim-m { syntax: "<integer>"; inherits: true; initial-value: 0; }
@property --anim-s { syntax: "<integer>"; inherits: true; initial-value: 0; }
.anim { --anim-tid: 16s; margin: 0; display: grid; justify-items: center; gap: 18px; position: relative; isolation: isolate; }
section:has(.anim) { overflow-x: clip; }
.anim-steg { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; font-size: var(--fs-liten); font-weight: 600; }
.anim-steg li { border-radius: var(--r-pille); padding: 6px 12px; border: 1px solid var(--linje); background: var(--hvit); color: var(--skifer); animation: var(--anim-tid) infinite both; }
.anim-steg li:nth-child(1) { animation-name: steg1; }
.anim-steg li:nth-child(2) { animation-name: steg2; }
.anim-steg li:nth-child(3) { animation-name: steg3; }
@keyframes steg1 { 0%, 4%, 18%, 100% { background: var(--hvit); color: var(--skifer); border-color: var(--linje); } 6%, 16% { background: var(--solgull); color: var(--blekk); border-color: var(--solgull); } }
@keyframes steg2 { 0%, 17%, 54%, 100% { background: var(--hvit); color: var(--skifer); border-color: var(--linje); } 19%, 52% { background: var(--solgull); color: var(--blekk); border-color: var(--solgull); } }
@keyframes steg3 { 0%, 53%, 95%, 100% { background: var(--hvit); color: var(--skifer); border-color: var(--linje); } 55%, 93% { background: var(--solgull); color: var(--blekk); border-color: var(--solgull); } }

/* Telefonen med Action-knapp */
.tlf { position: relative; width: 230px; aspect-ratio: 9 / 18.5; background: var(--blekk); border-radius: 38px; padding: 9px;
  box-shadow: 0 30px 60px rgba(28,34,48,.25); }
.tlf::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: #000; border-radius: 12px; z-index: 3; }
.tlf-knapp { position: absolute; left: -4px; top: 92px; width: 4px; height: 26px; border-radius: 3px 0 0 3px; background: #3A4256; animation: var(--anim-tid) infinite both trykkKnapp; }
.tlf-trykk { position: absolute; left: -22px; top: 85px; width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--solgull); background: rgba(224,165,38,.18); opacity: 0; animation: var(--anim-tid) infinite both trykkRing; }
.tlf-hint { position: absolute; right: calc(100% + 26px); top: 93px; white-space: nowrap; font-size: .8125rem; font-weight: 600; color: var(--blekk); opacity: 0; animation: var(--anim-tid) infinite both trykkHint; }
.tlf-hint::after { content: " →"; color: var(--solgull); }
.tlf-skjerm { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: var(--kalk); }
.tlf-lag { position: absolute; inset: 0; padding: 52px 16px 20px; display: grid; align-content: start; gap: 10px; }

.tlf-ring { inset: 0 0 auto; padding: 48px 10px 0; animation: var(--anim-tid) infinite both ring; }
.tlf-ring > div { display: flex; gap: 10px; align-items: center; background: var(--blekk-2); color: var(--hvit); border-radius: 16px; padding: 10px 12px; }
.tlf-ring .ikon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #3BA55C; color: var(--hvit); animation: .5s infinite alternate ringRist; }
.tlf-ring strong { display: block; font-size: .8125rem; line-height: 1.2; }
.tlf-ring small { font-size: .75rem; opacity: .75; }

.tlf-klokke { justify-items: center; text-align: center; padding-top: 96px; animation: var(--anim-tid) infinite both klokke; }
.tk-etikett { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--skifer); display: flex; gap: 6px; align-items: center; }
.tk-etikett::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D9534F; animation: 1s infinite alternate blink; }
.tk-tid { font-size: 2.6rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1;
  --anim-m: max(0, calc((var(--anim-t) - 30) / 60)); --anim-s: calc(var(--anim-t) - var(--anim-m) * 60);
  counter-reset: m var(--anim-m) s var(--anim-s); animation: var(--anim-tid) infinite both teller; }
.tk-tid::after { content: counter(m, decimal-leading-zero) ":" counter(s, decimal-leading-zero); }
.tk-knapp { margin-top: 18px; display: inline-block; padding: 12px 20px; background: var(--solgull); color: var(--blekk); font-weight: 600; font-size: .9375rem; animation: var(--anim-tid) infinite both stoppKnapp; }

.tlf-fort { align-content: center; padding: 20px 14px; animation: var(--anim-tid) infinite both fort; }
.tlf-kort { background: var(--hvit); border: 1px solid var(--linje); border-top: 3px solid var(--solgull); padding: 16px 14px; display: grid; gap: 4px; box-shadow: 0 10px 24px rgba(28,34,48,.12); }
.tlf-kort .ikon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--blekk); color: var(--hvit); margin-bottom: 6px; }
.tlf-kort strong { font-size: 1.35rem; line-height: 1.1; }
.tlf-kort span { font-size: .8125rem; color: var(--skifer); line-height: 1.35; }

@keyframes ring { 0% { transform: translateY(-110%); opacity: 1; } 4%, 15% { transform: none; opacity: 1; } 18%, 100% { transform: translateY(-110%); opacity: 0; } }
@keyframes ringRist { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes trykkKnapp { 0%, 7%, 15%, 53%, 61%, 100% { transform: none; background: #3A4256; box-shadow: none; } 8%, 14%, 54%, 60% { transform: translateX(2px); background: var(--solgull); box-shadow: 0 0 0 4px rgba(224,165,38,.35); } }
@keyframes trykkRing { 0%, 6%, 52% { opacity: 0; transform: scale(.5); } 8%, 54% { opacity: 1; transform: scale(.85); } 11%, 57% { opacity: 1; transform: scale(1.1); } 14%, 60% { opacity: 1; transform: scale(.9); } 17%, 63%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes trykkHint { 0%, 2%, 50% { opacity: 0; transform: translateX(-6px); } 4%, 15%, 52%, 61% { opacity: 1; transform: none; } 18%, 64%, 100% { opacity: 0; } }
@keyframes klokke { 0%, 14% { opacity: 0; transform: scale(.96); } 17%, 61% { opacity: 1; transform: none; } 64%, 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes teller { 0%, 17% { --anim-t: 0; } 54%, 100% { --anim-t: 751; } }
@keyframes stoppKnapp { 0%, 55%, 62%, 100% { transform: none; filter: none; } 57%, 60% { transform: scale(.92); filter: brightness(.85); } }
@keyframes blink { from { opacity: 1; } to { opacity: .25; } }
/* Telefonen: rister litt når den ringer, kortet spretter inn, små konfettiprikker */
.tlf { border-radius: 42px; animation: var(--anim-tid) infinite both rist; }
@keyframes rist { 0%, 1% { transform: none; } 2%, 4%, 6% { transform: rotate(-2deg); } 3%, 5%, 7% { transform: rotate(2deg); } 8%, 100% { transform: none; } }
.tlf-ring > div { border-radius: 20px; }
.tk-knapp { border-radius: var(--r-pille); }
.tlf-kort { border-radius: 18px; border-top: 0; position: relative; }
@keyframes fort { 0%, 62% { opacity: 0; transform: translateY(30px) scale(.9); } 62.1% { animation-timing-function: var(--fjaer); } 67%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
.tlf-kort::after { content: ""; position: absolute; left: 30px; top: 28px; width: 6px; height: 6px; border-radius: 50%; opacity: 0;
  box-shadow: -24px -20px 0 var(--solgull), 26px -22px 0 #6FB58F, 40px -4px 0 var(--solgull), -30px -2px 0 #6FB58F, 4px -32px 0 var(--blekk), 60px -16px 0 var(--solgull);
  animation: var(--anim-tid) infinite both konfetti; }
@keyframes konfetti { 0%, 65% { opacity: 0; transform: scale(.3); } 66% { opacity: 1; } 72% { opacity: 1; transform: scale(1.5); } 78%, 100% { opacity: 0; transform: scale(1.8); } }

/* Smal skjerm: telefonen litt mindre og flyttet mot høyre, så «Action-knappen →» og trykket synes */
@media (max-width: 640px) {
  .tlf { width: 205px; left: 58px; }
  .tlf-knapp { top: 84px; }
  .tlf-trykk { top: 77px; }
  .tlf-hint { top: 85px; right: calc(100% + 22px); font-size: .75rem; }
  .tlf-lag { padding-top: 46px; }
  .tlf-klokke { padding-top: 80px; }
  .tk-tid { font-size: 2.3rem; }
  .tlf-ring strong { font-size: .75rem; }
  .tlf-ring > div { gap: 8px; padding: 9px 10px; }
}
@media (max-width: 370px) { .tlf { width: 190px; left: 54px; } }
/* Redusert bevegelse: ingen animasjon, sluttbildet vises */
@media (prefers-reduced-motion: reduce) {
  .knapp, .fordeler .ikon, .funk .ikon { transition: none; }
  .knapp:hover, .fordeler li:hover .ikon, .funk li:hover .ikon { transform: none; }
  .film *, .helt-figur::before, .helt-figur::after, .tre-kort, .anim, .anim *, .anim::before, .anim::after, .anim *::before, .anim *::after { animation: none !important; }
  .fl-puls, .fl-chip, .fl-brev, .fl-penger { opacity: 0; }
  .tlf-ring, .tlf-klokke, .tlf-trykk, .tlf-hint { opacity: 0; }
  .tlf-fort { opacity: 1; }
  .anim-steg li:nth-child(3) { background: var(--solgull); color: var(--blekk); border-color: var(--solgull); }
}

/* Forsiden: bransjevalget er det første man møter */
.velg-sporsmaal { font-size: var(--fs-h3); font-weight: 600; margin-bottom: -4px; }
.velg { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.velg-kort { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; min-height: 76px; padding: 14px 16px;
  background: var(--hvit); border: 2px solid var(--blekk); border-radius: var(--r); color: var(--blekk); text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s; }
.velg-kort:hover, .velg-kort:focus-visible { background: var(--sol-lys); transform: translateY(-2px); box-shadow: 0 6px 0 var(--solgull); }
.velg-tekst { display: grid; gap: 2px; }
.velg-tekst strong { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.velg-tekst span { color: var(--skifer); font-size: 1rem; line-height: 1.35; }
.velg-kort .ikon:last-child { width: 22px; height: 22px; transition: transform .2s; }
.velg-kort:hover .ikon:last-child { transform: translateX(4px); }
@media (min-width: 900px) { .velg-kort { min-height: 84px; padding: 16px 20px; } }
@media (prefers-reduced-motion: reduce) { .velg-kort, .velg-kort .ikon:last-child { transition: none; } .velg-kort:hover { transform: none; } }

/* Stripe: ett sidespor før sideslutten (ett budskap, én lenke) */
.stripe-seksjon { padding-top: 0; }
.stripe { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 16px 18px; background: var(--hvit); border: 1px solid var(--linje); border-left: 4px solid var(--solgull); border-radius: var(--r); }
.stripe .ikon { width: 24px; height: 24px; }
.under-tittel { margin-top: -6px; margin-bottom: 18px; }
/* Regneeksempel som tall, ikke fotnote */
.regn { display: grid; gap: 6px 24px; align-items: center; margin-top: 22px; padding: 20px; background: var(--blekk); color: var(--hvit); border-radius: var(--r); }
.regn p { margin: 0; }
.regn-tall { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); font-weight: 600; color: var(--solgull); line-height: 1; white-space: nowrap; }
.regn-tekst { color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.5; }
.regn-tekst strong { color: var(--hvit); }
@media (min-width: 760px) { .regn { grid-template-columns: auto 1fr; padding: 24px 28px; } }
/* Telefonmodellen tar mindre plass på mobil */
@media (max-width: 700px) { .anim .tlf { width: 170px; border-radius: 30px; } }
