/* ==========================================================================
   Røed Solutions – stilark
   Én fil, ingen rammeverk. Farger, skrift og mål styres fra :root.
   ========================================================================== */

:root {
  --bg: #fbfaf8;
  --surface: #fff;
  --ink: #0e0f12;
  --ink-2: #3a3d45;
  --muted: #6b6f78;
  --line: #e7e4df;
  --line-2: #f0ede9;
  --accent: #d9301a;      /* «Røed» → rød. Mørk nok til tekst på lys bakgrunn (WCAG AA). */
  --accent-hi: #ff4a2e;   /* lysere rød, bare til pynt */
  --accent-soft: #fdece8;
  --green: #1f9d63;
  --radius: 24px;
  --shadow: 0 1px 2px rgb(14 15 18 / .04), 0 16px 40px -16px rgb(14 15 18 / .16);
  --shadow-lg: 0 2px 6px rgb(14 15 18 / .05), 0 32px 64px -24px rgb(14 15 18 / .3);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
  --kryss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  interpolate-size: allow-keywords;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
address { font-style: normal; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 1.35rem + 3.4vw, 3.75rem); }
p { text-wrap: pretty; }

:is(h1, h2) em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -.015em;
  line-height: .9;
}

::selection { background: rgb(217 48 26 / .16); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 16px; }

.eyebrow {
  display: flex; align-items: center; gap: .6em;
  font: 500 .78rem/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span { color: var(--accent); }

/* ---------- Toppmeny ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 16px 0;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: 1180px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgb(14 15 18 / .07); border-radius: 999px;
  background: rgb(255 255 255 / .72);
  box-shadow: 0 12px 32px -20px rgb(14 15 18 / .35);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
}
.nav-simple { grid-template-columns: 1fr auto; }

.brand {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -.025em; text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.brand span span { color: var(--muted); font-weight: 500; }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: .94rem; color: var(--ink-2); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: rgb(14 15 18 / .05); color: var(--ink); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.lang { /* språkknappen NO / EN */
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink); text-decoration: none;
  font: 500 .74rem/1 var(--mono); letter-spacing: .04em; transition: border-color .2s;
}
.lang:hover { border-color: var(--ink); }

/* Burgermeny – vises bare på mobil. De to strekene blir til et kryss. */
.burger {
  display: none; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer;
}
.burger span {
  grid-area: 1 / 1; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink);
  transition: translate .35s var(--ease), rotate .35s var(--ease);
}
.burger span:first-child { translate: 0 -3.5px; }
.burger span:last-child { translate: 0 3.5px; }
.nav.open .burger span { translate: 0 0; }
.nav.open .burger span:first-child { rotate: 45deg; }
.nav.open .burger span:last-child { rotate: -45deg; }
.nav-cta, .nav-meta { display: none; }

/* ---------- Knapper ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 1rem/1 var(--font); letter-spacing: -.01em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .92rem; }
.btn-dark {
  background: var(--ink); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 10px 24px -12px rgb(14 15 18 / .7);
}
.btn-dark:hover { background: #26282f; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: #cfcac3; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f4f2ef; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; isolation: isolate; padding-top: clamp(56px, 8vw, 104px); } /* z-index: menyene i «Prøv selv» skal ligge over innholdet under */
.hero::before {
  content: ""; position: absolute; inset: -140px 0 0; z-index: -1;
  background:
    linear-gradient(rgb(14 15 18 / .05) 1px, transparent 1px) center top / 64px 64px,
    linear-gradient(90deg, rgb(14 15 18 / .05) 1px, transparent 1px) center top / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 10%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 10%, #000 35%, transparent 80%);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); box-shadow: 0 1px 2px rgb(14 15 18 / .04);
  font-size: .88rem; color: var(--ink-2);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); animation: pulse 2s infinite; }

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.6rem, 1.1rem + 5.6vw, 5rem);
  line-height: 1; letter-spacing: -.05em;
}
.hero h1 em { display: block; color: var(--accent); }
.lead {
  max-width: 36em; margin-top: 26px;
  font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* «Prøv selv» i hero: hvert rødt ord åpner sin egen meny, og «Send» fyller ut kontaktskjemaet. */
.brief {
  position: relative; max-width: 920px; margin: clamp(44px, 6vw, 72px) auto 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: 28px;
  background: var(--surface); box-shadow: var(--shadow-lg);
  animation: rise 1s var(--ease) .32s both;
}
.brief-label {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.brief-label span { padding: 6px 10px; border-radius: 999px; white-space: nowrap; background: var(--accent-soft); color: var(--accent); }
.brief-text {
  margin-top: 22px;
  font-size: clamp(1.6rem, .9rem + 2.6vw, 2.75rem); font-weight: 600; line-height: 1.32; letter-spacing: -.035em;
}
.pick {
  position: relative; display: inline-block; margin: 0; padding: 0 .95em 0 .12em;
  border: 0; border-bottom: 2px dashed rgb(217 48 26 / .45); border-radius: 0;
  background: none; color: var(--accent);
  font: italic 400 1.12em/1.1 var(--serif); letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.pick::after { /* pil ned som snur seg når menyen er åpen */
  content: ""; position: absolute; right: .2em; top: 50%; width: .3em; height: .3em; margin-top: -.24em;
  border: solid currentColor; border-width: 0 .06em .06em 0; rotate: 45deg;
  transition: rotate .35s var(--ease), translate .35s var(--ease);
}
.pick:hover { border-bottom-color: var(--accent); }
.pick[aria-expanded="true"] {
  border-bottom-style: solid; border-bottom-color: var(--accent);
  border-radius: .18em .18em 0 0; background: var(--accent-soft);
}
.pick[aria-expanded="true"]::after { rotate: 225deg; translate: 0 .14em; }

/* Menyen som faller ned fra ordet. Plasseres av scriptet, med en liten pil opp mot ordet. */
.dropdown {
  position: absolute; z-index: 5; min-width: 270px; max-width: calc(100% - 24px); width: max-content;
  margin: 0; padding: 6px;
  border: 1px solid var(--line); border-radius: 20px; background: #fff;
  box-shadow: 0 2px 6px rgb(14 15 18 / .06), 0 28px 64px -20px rgb(14 15 18 / .38);
  transform-origin: var(--caret, 50%) 0;
  animation: menu-in .35s var(--ease);
}
.dropdown::before {
  content: ""; position: absolute; top: -7px; left: var(--caret, 50%); width: 12px; height: 12px;
  translate: -50% 0; rotate: 45deg;
  border: solid var(--line); border-width: 1px 0 0 1px; border-radius: 3px 0 0 0; background: #fff;
}
.dropdown legend {
  float: left; width: 100%; padding: 12px 14px 10px;
  font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.dropdown label {
  position: relative; clear: both; display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; border-radius: 14px;
  font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer; transition: background-color .15s, color .15s;
  animation: drop .35s var(--ease) both;
}
.dropdown label:nth-of-type(2) { animation-delay: 30ms; }
.dropdown label:nth-of-type(3) { animation-delay: 60ms; }
.dropdown label:nth-of-type(4) { animation-delay: 90ms; }
.dropdown label:nth-of-type(5) { animation-delay: 120ms; }
.dropdown label:nth-of-type(6) { animation-delay: 150ms; }
.dropdown label:hover { background: var(--bg); }
.dropdown input { position: absolute; opacity: 0; pointer-events: none; }
.dropdown i {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink-2);
  transition: background-color .2s, border-color .2s, color .2s, rotate .3s var(--ease);
}
.dropdown i svg { width: 16px; height: 16px; }
.dropdown label:hover i { border-color: #d6d1ca; rotate: -6deg; }
.dropdown span::first-letter { text-transform: uppercase; }
.dropdown label:has(:checked) { background: var(--accent-soft); color: var(--accent); }
.dropdown label:has(:checked) i { border-color: var(--accent); background: var(--accent); color: #fff; }
.dropdown label:has(:checked)::after {
  content: ""; flex: none; width: 16px; height: 16px; margin-left: auto; background: currentColor;
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}
.dropdown label:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.brief-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.brief-foot a { font-size: .98rem; color: var(--muted); text-underline-offset: 4px; }
.brief-foot a:hover { color: var(--ink); }

/* Telefon på app-kortet */
.phone {
  width: 15.5em; height: 31em; padding: .5em;
  border-radius: 2.6em; background: var(--ink);
  box-shadow: var(--shadow-lg), inset 0 0 0 .15em #2b2d34;
}
.screen {
  position: relative; display: flex; flex-direction: column;
  height: 100%; padding: 3em 1.1em 1.1em;
  border-radius: 2.1em; background: #fff; overflow: hidden;
}
.island {
  position: absolute; top: .65em; left: 50%; translate: -50% 0;
  width: 4.4em; height: 1.25em; border-radius: 1em; background: var(--ink);
}
.sbar {
  position: absolute; top: .78em; left: 1.5em; right: 1.35em;
  display: flex; justify-content: space-between; align-items: center;
}
.sbar b { font-size: .64em; }
.sbar i {
  width: 1.35em; height: .68em; padding: .08em;
  border: .09em solid var(--ink); border-radius: .22em;
  background: linear-gradient(90deg, var(--ink) 70%, transparent 0) content-box;
}
.app-kicker { font-size: .66em; font-weight: 600; color: var(--accent); }
.app-title { font-size: 1.3em; font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
.app-label {
  margin-top: 1.2em; font-size: .62em; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
/* ---------- Løpende tekst ---------- */
.marquee {
  margin-top: clamp(64px, 8vw, 104px);
  padding: 22px 0; overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); font-weight: 500; letter-spacing: -.025em;
  color: var(--ink-2);
}
.marquee li::after { content: "/"; margin-inline: 1.1em; font-family: var(--mono); font-weight: 400; color: var(--accent); }

/* ---------- Seksjoner ---------- */
.section { padding-block: clamp(80px, 9vw, 128px); }
.head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end;
  gap: 24px 72px; margin-bottom: clamp(44px, 5vw, 72px);
}
.head .eyebrow { grid-column: 1 / -1; }
.head-lead { max-width: 30em; font-size: 1.125rem; color: var(--muted); }

/* ---------- Tjenester (bento) ---------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "web  web  app"
    "shop sys  app"
    "ops  cta  cta";
}
.c-web { grid-area: web; }
.c-app { grid-area: app; }
.c-shop { grid-area: shop; }
.c-sys { grid-area: sys; }
.c-ops { grid-area: ops; }
.c-cta { grid-area: cta; }

.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: #dcd8d2; box-shadow: var(--shadow); }
.card::after { /* lys som følger musepekeren (se script nederst i index.html) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(255 74 46 / .07), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::after { opacity: 1; }
.card-body { padding: 24px 26px 26px; }
.card h3 { font-size: 1.3rem; letter-spacing: -.025em; }
.card-body p { margin-top: 8px; font-size: 1rem; color: var(--muted); }

/* Illustrasjonene på kortene måles også i em og skaleres med kortets bredde. */
.visual {
  container-type: inline-size;
  flex: 1; display: grid; place-items: center;
  padding: 36px 20px;
  border-bottom: 1px solid var(--line-2);
  background:
    radial-gradient(rgb(14 15 18 / .08) 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(#fcfbf9, #f4f2ee);
  overflow: hidden;
}
.v { position: relative; width: calc(var(--w) * 1em); font-size: min(16px, 92cqw / var(--w)); }

/* Nettsider: samme side på tre skjermer */
.v-web { --w: 35; height: 18.5em; }
.v-tags { position: absolute; top: 0; left: 0; display: flex; flex-wrap: wrap; gap: .5em; font-size: .8em; }
.v-tags span {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .45em .9em .45em .7em;
  border: 1px solid var(--line); border-radius: 99em;
  background: #fff; box-shadow: 0 2px 8px -2px rgb(14 15 18 / .08); font-weight: 500;
}
.v-tags span::before {
  content: ""; width: 1em; height: 1em; background: var(--accent);
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}
@container (max-width: 420px) { .v-tags { display: none; } .v-web { height: 15em; } }
.dev { position: absolute; bottom: 0; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.dev-desk { left: 0; width: 23.5em; height: 14.5em; border: 1px solid var(--line); border-radius: .8em; }
.dev-desk::before { content: ""; display: block; height: 1.3em; border-bottom: 1px solid var(--line-2); background: #f8f6f3; }
.dev-tab { left: 18.5em; width: 10.5em; height: 13.5em; border: .45em solid var(--ink); border-radius: 1.2em; }
.dev-pho { left: 28.3em; width: 6.5em; height: 12em; border: .38em solid var(--ink); border-radius: 1.1em; }
.sk { display: grid; gap: .45em; padding: .8em; grid-template-areas: "n" "img" "h" "p" "q" "b"; }
.dev-desk .sk {
  grid-template: "n n" auto "h img" auto "p img" auto "q img" auto "b img" 1fr / 1fr 1fr;
  column-gap: 1em; padding: 1em 1.2em;
}
.sk i { display: block; height: .45em; border-radius: .25em; background: #ebe8e3; }
.sk .n { grid-area: n; margin-bottom: .6em; background: linear-gradient(90deg, var(--ink) 0 1.3em, transparent 0 60%, #ebe8e3 0); }
.sk .h { grid-area: h; width: 92%; height: .9em; background: var(--ink); }
.sk .p { grid-area: p; }
.sk .q { grid-area: q; width: 70%; }
.sk .b { grid-area: b; align-self: start; width: 4.2em; height: 1.3em; margin-top: .35em; border-radius: 99em; background: var(--accent); }
.sk .img { grid-area: img; height: 4.2em; border-radius: .5em; background: linear-gradient(145deg, #ffc9b5, #ff6a4a 55%, #d9301a); }
.dev-desk .sk .img { height: auto; min-height: 7.5em; }
.dev-pho .sk { gap: .38em; padding: 1em .5em .5em; }
.dev-pho .sk .img { height: 3.4em; }
.dev-pho .sk .b { width: 100%; }

/* Apper: stempelkort-app for en kafé */
.v-app { --w: 17; display: grid; justify-items: center; gap: 1.1em; }
.v-os { display: flex; gap: .45em; font-size: .78em; }
.v-os span { padding: .4em .85em; border: 1px solid var(--line); border-radius: 99em; background: #fff; font-weight: 500; }
.v-app .phone { width: 14em; height: 28em; }
.v-app .screen { padding-top: 2.8em; }
.stamp { margin-top: .9em; padding: .9em; border-radius: 1em; background: var(--ink); color: #fff; }
.stamp-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .72em; }
.stamp-top b { font-size: 1.25em; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35em; margin-top: .7em; }
.stamps i { aspect-ratio: 1; border: .1em dashed rgb(255 255 255 / .35); border-radius: 50%; }
.stamps .on { border: 0; background: var(--accent-hi); }
.stamps .on::after {
  content: ""; display: block; height: 100%; background: #fff;
  -webkit-mask: var(--check) center / 55% no-repeat; mask: var(--check) center / 55% no-repeat;
}
.stamp p { margin-top: .7em; font-size: .6em; color: rgb(255 255 255 / .65); }
.menu { display: grid; gap: .45em; margin: .5em 0 0; padding: 0; list-style: none; }
.menu li { display: flex; align-items: center; gap: .6em; padding: .45em; border: 1px solid var(--line-2); border-radius: .8em; }
.menu i { flex: none; width: 2.1em; height: 2.1em; border-radius: .6em; background: var(--c); }
.menu span { flex: 1; font-size: .72em; font-weight: 600; line-height: 1.25; }
.menu small { display: block; font-weight: 500; color: var(--muted); }
.menu b {
  display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: .85em;
}
.tabbar { display: flex; justify-content: space-around; margin: auto -1.1em -1.1em; padding: .8em 0 1em; border-top: 1px solid var(--line-2); }
.tabbar i { width: 1.1em; height: 1.1em; border-radius: .35em; background: #dcd8d2; }
.tabbar .on { background: var(--accent); }

/* Nettbutikk */
.v-shop { --w: 18; display: grid; place-items: center; }
.product {
  width: 13.5em; padding: .6em;
  border: 1px solid var(--line); border-radius: 1.2em;
  background: #fff; box-shadow: var(--shadow-lg);
}
.product-img {
  position: relative; display: grid; place-items: center; height: 9.5em;
  border-radius: .8em; background: radial-gradient(circle at 50% 40%, #fff3ef, #fbe0d8);
}
.product-img svg { width: 6em; height: 6em; transition: transform .5s var(--ease); }
.c-shop:hover .product-img svg { transform: scale(1.06) rotate(-3deg); }
.badge {
  position: absolute; top: .6em; left: .6em; padding: .25em .6em; border-radius: 99em;
  background: var(--ink); color: #fff; font-size: .62em; font-weight: 600;
}
.product-info { display: flex; justify-content: space-between; align-items: center; padding: .8em .35em .6em; }
.product-name { font-size: .85em; font-weight: 600; }
.product-price { font-size: .75em; color: var(--muted); }
.swatches { display: flex; gap: .35em; }
.swatches i { width: .9em; height: .9em; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgb(14 15 18 / .1); }
.swatches i:first-child { box-shadow: 0 0 0 .15em #fff, 0 0 0 .27em var(--c); }
.product-btn {
  display: block; padding: .75em; border-radius: 99em;
  background: var(--ink); color: #fff; text-align: center; font-size: .72em; font-weight: 600;
}
.cart {
  position: absolute; top: -1em; right: -.4em;
  display: flex; align-items: center; gap: .4em; padding: .5em .7em;
  border: 1px solid var(--line); border-radius: 99em;
  background: #fff; box-shadow: var(--shadow); font-size: .75em; font-weight: 600;
}
.cart svg { width: 1.2em; height: 1.2em; }
.cart b {
  display: grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: 99em;
  background: var(--accent); color: #fff; font-size: .85em;
}

/* Systemer og integrasjoner */
.v-sys { --w: 22; height: 13em; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lines path {
  fill: none; stroke: #cbc6bf; stroke-width: 1.5; stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke; animation: flow 1s linear infinite;
}
.hub {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 4.4em; height: 4.4em;
  border-radius: 1.2em; background: var(--ink);
  box-shadow: var(--shadow-lg), 0 0 0 .5em rgb(217 48 26 / .08);
}
.hub svg { width: 2.2em; height: 2.2em; }
.node {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  display: flex; align-items: center; gap: .45em; padding: .45em .85em .45em .6em;
  border: 1px solid var(--line); border-radius: 99em;
  background: #fff; box-shadow: 0 4px 12px -4px rgb(14 15 18 / .12);
  font-size: .86em; font-weight: 500; white-space: nowrap;
}
.node svg { flex: none; width: 1.15em; height: 1.15em; color: var(--accent); }

/* Drift og vedlikehold */
.v-ops { --w: 21; }
.status-card { padding: 1.1em; border: 1px solid var(--line); border-radius: 1.1em; background: #fff; box-shadow: var(--shadow-lg); }
.status-head { display: flex; justify-content: space-between; align-items: center; font-size: .85em; font-weight: 600; }
.ok {
  display: inline-flex; align-items: center; gap: .45em; padding: .3em .7em; border-radius: 99em;
  background: #e8f6ee; color: #177a4c; font-size: .82em;
}
.ok::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 .2em rgb(31 157 99 / .2); }
.bars { display: flex; align-items: flex-end; gap: .2em; height: 2.4em; margin-top: 1em; }
.bars i { flex: 1; height: 100%; border-radius: .15em; background: #34b27b; }
.bars .warn { height: 70%; background: #f2a93b; }
.status-foot { display: flex; justify-content: space-between; margin-top: .6em; font-size: .66em; color: var(--muted); }
.status-list {
  display: grid; gap: .5em; margin: .9em 0 0; padding: .9em 0 0;
  border-top: 1px solid var(--line-2); list-style: none; font-size: .72em;
}
.status-list li { display: flex; align-items: center; gap: .5em; }
.status-list li::before {
  content: ""; width: 1.1em; height: 1.1em; background: var(--green);
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}

/* «Noe helt annet?» */
.c-cta { justify-content: flex-end; border-color: var(--accent); background: var(--accent); color: #fff; }
.c-cta:hover { border-color: var(--accent); }
.c-cta::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .16), transparent 45%); }
.c-cta .card-body { position: relative; z-index: 1; padding: clamp(28px, 4vw, 44px); }
.c-cta h3 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.04em; }
.c-cta .card-body p { max-width: 26em; margin-top: 12px; font-size: 1.06rem; color: rgb(255 255 255 / .85); }
.c-cta .btn { margin-top: 28px; }
.cta-mark {
  position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px;
  color: rgb(255 255 255 / .12); transition: rotate .6s var(--ease);
}
.c-cta:hover .cta-mark { rotate: -8deg; }

/* ---------- Prosjekter ----------
   Kortene legger seg oppå hverandre som en kortstokk når du scroller (bare på PC). */
.cases { display: grid; gap: 28px; }
.case {
  position: sticky; top: 96px;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 32px;
  min-height: min(640px, calc(100svh - 136px));
  padding: clamp(28px, 4.5vw, 64px); border-radius: 32px; overflow: hidden;
  box-shadow: 0 -16px 48px -24px rgb(14 15 18 / .35);
}
.case:nth-child(2) { top: 112px; }
.case:nth-child(3) { top: 128px; }
.case-knips { background: radial-gradient(90% 80% at 85% 20%, #2a2723, transparent 70%), #0e0e10; color: #f4f2ed; }
.case-bjorni { background: radial-gradient(80% 90% at 80% 10%, #fff6d8, transparent 60%), linear-gradient(160deg, #e3f1ff, #c7e2ff); color: #0f2640; }

.case-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.case-meta span {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 999px;
  font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.case-meta .live::before, .case-meta .soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c77b; }
.case-meta .soon::before { background: #f2a93b; }
.case h3 { margin-top: 24px; font-size: clamp(2.8rem, 1.8rem + 3.6vw, 5.25rem); line-height: .95; letter-spacing: -.05em; }
.case-knips h3 { font: italic 400 clamp(3.4rem, 2rem + 4.6vw, 6.5rem)/.9 var(--serif); letter-spacing: -.02em; }
.case-bjorni h3 { font-weight: 700; color: #1d5fd6; }
.case-lead { margin-top: 14px; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); font-weight: 500; letter-spacing: -.02em; }
.case-body { max-width: 30em; margin-top: 12px; opacity: .75; }
.case-facts { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; font-size: .98rem; }
.case-facts li { display: flex; align-items: center; gap: 10px; }
.case-facts li::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor; opacity: .85;
  -webkit-mask: var(--check) center / 13px no-repeat; mask: var(--check) center / 13px no-repeat;
}
.case-btn { margin-top: 30px; background: #f4f2ed; color: #0e0e10; }
.case-btn:hover { background: #fff; }
.case-btn svg { width: 14px; height: 14px; }
.case-btn:hover svg { transform: translate(2px, -2px); }

/* Telefonene: den midterste foran, de to andre vippet ut til sidene. Vifter seg ut når du holder over. */
.case-visual { position: relative; display: grid; place-items: center; }
.devices { display: flex; align-items: center; justify-content: center; }
.device {
  flex: none; width: clamp(128px, 14.5vw, 222px); margin: 0; padding: 6px; border-radius: 36px;
  background: #0a0a0b; box-shadow: 0 34px 64px -26px rgb(0 0 0 / .6), inset 0 0 0 1.5px rgb(255 255 255 / .12);
  transition: rotate .6s var(--ease), translate .6s var(--ease), scale .6s var(--ease);
}
.device img { display: block; width: 100%; height: auto; border-radius: 30px; }
.device:nth-child(1) { rotate: -7deg; translate: 42px 26px; scale: .88; }
.device:nth-child(2) { position: relative; z-index: 2; }
.device:nth-child(3) { rotate: 7deg; translate: -42px 26px; scale: .88; }
.case:hover .device:nth-child(1) { rotate: -11deg; translate: 18px 34px; }
.case:hover .device:nth-child(2) { translate: 0 -8px; }
.case:hover .device:nth-child(3) { rotate: 11deg; translate: -18px 34px; }
.mascot {
  position: absolute; z-index: 3; left: 0; bottom: -4%; width: clamp(110px, 12vw, 180px); height: auto;
  filter: drop-shadow(0 18px 22px rgb(15 38 64 / .28));
  animation: bob 4.5s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -10px; rotate: -4deg; } }

@media (max-width: 960px) {
  .case { position: relative; top: auto !important; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .case-visual { margin-top: 8px; }
  .devices { width: min(100%, 560px); }
  .device { width: 37%; border-radius: 24px; padding: 4px; }
  .device img { border-radius: 20px; }
  .device:nth-child(1) { margin-right: -7%; translate: 0 14px; }
  .device:nth-child(3) { margin-left: -7%; translate: 0 14px; }
  .case:hover .device:nth-child(1), .case:hover .device:nth-child(3) { translate: 0 14px; }
}

/* ---------- Prosess ---------- */
.steps {
  position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
  margin: 0; padding: 48px 0 0; list-style: none;
}
.steps::before, .steps::after {
  content: ""; position: absolute; z-index: -1; top: 9px; left: 0; right: 0; height: 2px;
  border-radius: 2px; background: var(--line);
}
.steps::after { background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transform-origin: left; }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -48px; left: 0;
  width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 4px, var(--bg) 4.5px);
  box-shadow: 0 0 0 6px var(--bg);
}
.step-num { display: block; font: italic 400 3.25rem/1 var(--serif); color: var(--accent); }
.step h3 { margin-top: 20px; font-size: 1.3rem; letter-spacing: -.025em; }
.step p { margin-top: 10px; font-size: 1rem; color: var(--muted); }

/* ---------- Om oss ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 7vw, 112px); }
.about h2 { margin-top: 20px; }
.about-text > p:not(.eyebrow) { max-width: 32em; margin-top: 24px; font-size: 1.125rem; color: var(--muted); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.values li { position: relative; padding-left: 36px; font-size: .98rem; color: var(--muted); }
.values li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); }
.values li::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 12px; height: 12px; background: var(--accent);
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}
.values strong { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }

.chat {
  justify-self: center; width: 100%; max-width: 460px;
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg); rotate: 1.5deg;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); background: #fcfbfa; }
.chat-head img { width: 40px; height: 40px; }
.chat-head strong { display: block; font-size: .98rem; line-height: 1.3; }
.chat-head small { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat-body { display: grid; gap: 10px; padding: 24px 20px 28px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: .95rem; line-height: 1.45; }
.msg.me { justify-self: end; border-bottom-right-radius: 6px; background: var(--ink); color: #fff; }
.msg.them { justify-self: start; border-bottom-left-radius: 6px; background: #f1efeb; }
.typing { display: flex; gap: 5px; padding: 15px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a968f; animation: typing 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

/* ---------- Spørsmål og svar ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(40px, 6vw, 96px); }
.faq-intro { position: sticky; top: 120px; }
.faq-intro h2 { margin-top: 20px; }
.faq-intro p:not(.eyebrow) { margin-top: 20px; color: var(--muted); }
.faq-intro a { color: var(--ink); text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 1.15rem; font-weight: 500; letter-spacing: -.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%;
  background:
    linear-gradient(var(--ink) 0 0) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink) 0 0) center / 1.5px 12px no-repeat;
  transition: rotate .3s var(--ease), border-color .2s;
}
.faq-list summary:hover::after { border-color: var(--ink); }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { padding: 0 56px 26px 0; color: var(--muted); }
/* Myk åpning der nettleseren støtter det – ellers åpnes den bare vanlig. */
.faq-list details::details-content {
  block-size: 0; overflow-y: clip;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }

/* ---------- Kontakt ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 72px);
  padding: clamp(28px, 5.5vw, 72px);
  border-radius: 32px; background: var(--ink); color: #fff;
}
.contact::before {
  content: ""; position: absolute; z-index: -1; left: -300px; top: -420px; width: 800px; height: 800px;
  background: radial-gradient(closest-side, rgb(255 74 46 / .42), transparent);
}
.contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 0% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 0% 0%, #000, transparent 75%);
}
.contact .eyebrow { color: rgb(255 255 255 / .55); }
.contact .eyebrow span { color: var(--accent-hi); }
.contact h2 { margin-top: 20px; }
.contact h2 em { color: var(--accent-hi); }
.contact-intro > p:not(.eyebrow) { max-width: 30em; margin-top: 20px; font-size: 1.125rem; color: rgb(255 255 255 / .7); }
.contact-links { display: grid; gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.contact-links :is(a, p) { display: inline-flex; align-items: center; gap: 14px; font-size: 1.1rem; font-weight: 500; text-decoration: none; }
.contact-links span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .08);
  transition: background-color .2s, border-color .2s;
}
.contact-links a:hover span { border-color: var(--accent-hi); background: var(--accent); }
.contact-links svg { width: 20px; height: 20px; }

.form {
  display: grid; gap: 18px; align-self: start;
  padding: clamp(22px, 3vw, 32px); border-radius: 22px;
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6);
}
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend, .field > span { display: block; margin-bottom: 8px; padding: 0; font-size: .9rem; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips span {
  display: block; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; transition: background-color .2s, border-color .2s, color .2s;
}
.chips label:hover span { border-color: #cfcac3; }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #faf9f7; color: inherit; font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 124px; resize: vertical; }
.field :is(input, textarea)::placeholder { color: #a19c95; }
.field :is(input, textarea):hover { border-color: #d3cec7; }
.field :is(input, textarea):focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgb(14 15 18 / .07); }
.field :is(input, textarea):user-invalid { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(217 48 26 / .1); }
.form .btn { --h: 54px; width: 100%; }
.form-note { font-size: .85rem; text-align: center; color: var(--muted); }
.form-note a { color: var(--ink); }
.hidden { display: none; }

/* ---------- Bunntekst ---------- */
.footer { padding-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px; }
.footer-brand p { max-width: 22em; margin-top: 16px; font-size: .98rem; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-title { margin-bottom: 14px; font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-cols a, .footer-cols address { display: block; padding: 4px 0; font-size: .98rem; color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.footer-giant {
  margin-top: clamp(24px, 4vw, 48px);
  font-size: min(14vw, 190px); font-weight: 600; line-height: .76; letter-spacing: -.065em;
  text-align: center; white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, #e3dfd8 30%, rgb(227 223 216 / 0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Undersider (takk, 404, personvern) ---------- */
.simple { display: grid; place-items: center; min-height: calc(100svh - 150px); padding: 64px 0 96px; text-align: center; }
.simple .wrap > * { animation: rise 1s var(--ease) both; }
.simple .wrap > :nth-child(2) { animation-delay: .08s; }
.simple .wrap > :nth-child(3) { animation-delay: .16s; }
.simple .wrap > :nth-child(4) { animation-delay: .24s; }
.simple .eyebrow { justify-content: center; }
.simple h1 { margin-top: 24px; font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem); line-height: 1; letter-spacing: -.05em; }
.simple h1 em { display: block; color: var(--accent); }
.simple .wrap > p:not(.eyebrow) { max-width: 32em; margin: 24px auto 0; font-size: 1.125rem; color: var(--muted); }
.done {
  display: grid; place-items: center; width: 76px; height: 76px; margin-inline: auto;
  border-radius: 24px; background: var(--accent); color: #fff;
  box-shadow: 0 18px 40px -14px rgb(217 48 26 / .7);
}
.done svg { width: 36px; height: 36px; }
/* Rive-feiringen ligger oppå haken og tar over når den er klar (klikk for mer konfetti). */
.feiring { position: relative; z-index: 2; width: 76px; margin-inline: auto; }
.feiring canvas {
  position: absolute; left: 50%; top: 50%; width: 320px; height: 320px; translate: -50% -50%;
  opacity: 0; cursor: pointer; transition: opacity .2s;
}
.feiring canvas.rive-klar { opacity: 1; }
.feiring:has(canvas.rive-klar) .done { visibility: hidden; }

.prose { max-width: 44rem; padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 128px); }
.prose h1 { margin-top: 20px; font-size: clamp(2.3rem, 1.5rem + 3vw, 3.5rem); letter-spacing: -.045em; }
.prose h2 { margin-top: 44px; font-size: 1.35rem; letter-spacing: -.02em; }
.prose p { margin-top: 14px; color: var(--ink-2); }
.prose .updated { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.prose a { color: var(--accent); text-underline-offset: 3px; }

.footer-mini { padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer-mini a { color: var(--ink-2); }

/* ---------- Animasjoner ---------- */
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes menu-in { from { opacity: 0; scale: .95; translate: 0 -6px; } }
@keyframes drop { from { opacity: 0; translate: 0 -6px; } }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgb(255 74 46 / .55); } to { box-shadow: 0 0 0 9px rgb(255 74 46 / 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flow { to { stroke-dashoffset: -8; } }
@keyframes typing { 0%, 60%, 100% { opacity: .45; translate: 0 0; } 30% { opacity: 1; translate: 0 -4px; } }
@keyframes reveal { from { opacity: 0; translate: 0 36px; } }
@keyframes fill { from { scale: 0 1; } }
@keyframes fill-y { from { scale: 1 0; } }

/* Innhold glir inn når du scroller – bare i nettlesere som støtter det, og bare hvis brukeren tåler bevegelse. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    .msg { animation: reveal linear both; animation-timeline: view(); animation-range: entry 30% cover 30%; }
    .steps::after { animation: fill linear both; animation-timeline: view(); animation-range: entry 100% cover 50%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Mindre skjermer ---------- */
@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "web  web"
      "app  shop"
      "app  sys"
      "ops  cta";
  }
}

@media (max-width: 960px) {
  .about, .faq, .contact { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .chat { rotate: 0deg; }
}

@media (max-width: 860px) {
  .head { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 44px; padding: 0 0 0 48px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: top; animation-name: fill-y; }
  .step::before { top: 4px; left: -48px; }
}

@media (max-width: 960px) {
  .nav-inner { position: relative; grid-template-columns: 1fr auto; gap: 8px; }
  .burger { display: grid; }
  /* Lenkene blir en meny som faller ned under toppmenyen */
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    display: grid; padding: 10px; counter-reset: nav;
    border: 1px solid rgb(14 15 18 / .07); border-radius: 26px;
    background: #fff; box-shadow: var(--shadow-lg);
    transform-origin: top right;
    opacity: 0; visibility: hidden; scale: .96; translate: 0 -8px;
    transition: opacity .25s, scale .4s var(--ease), translate .4s var(--ease), visibility 0s .4s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; scale: 1; translate: 0 0; transition-delay: 0s; }
  .nav.open .nav-links > * { animation: rise .5s var(--ease) both; }
  .nav.open .nav-links > :nth-child(2) { animation-delay: .04s; }
  .nav.open .nav-links > :nth-child(3) { animation-delay: .08s; }
  .nav.open .nav-links > :nth-child(4) { animation-delay: .12s; }
  .nav.open .nav-links > :nth-child(5) { animation-delay: .16s; }
  .nav.open .nav-links > :nth-child(6) { animation-delay: .2s; }
  .nav-links a {
    display: flex; align-items: baseline; gap: 14px; padding: 14px 12px; border-radius: 16px;
    font-size: 1.65rem; font-weight: 600; letter-spacing: -.035em; color: var(--ink);
  }
  .nav-links a:hover { background: var(--bg); }
  .nav-links a:not(.nav-cta)::before { counter-increment: nav; content: "0" counter(nav); font: 500 .75rem/1 var(--mono); color: var(--accent); }
  .nav-links a:not(.nav-cta)::after {
    content: ""; align-self: center; width: 18px; height: 18px; margin-left: auto; background: #b3aea7;
    -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
    transition: translate .25s var(--ease), background-color .2s;
  }
  .nav-links a:hover::after { translate: 3px 0; background: var(--accent); }
  .nav-links .nav-cta {
    display: flex; justify-content: center; margin-top: 8px; padding: 16px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 1.05rem; letter-spacing: -.01em;
  }
  .nav-links .nav-cta:hover { background: #26282f; }
  .nav-meta { display: block; padding: 14px 12px 6px; text-align: center; font-size: .85rem; color: var(--muted); }
}

@media (max-width: 520px) {
  .nav-end .btn { display: none; } /* «Ta kontakt» ligger i burgermenyen på små skjermer */
}

@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "web" "app" "shop" "sys" "ops" "cta"; }
}

@media (max-width: 560px) {
  .values, .field-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .faq-list details p { padding-right: 0; }
}

/* ---------- Rive-animasjoner (rive-laster.js) ----------
   Et lerret er skjult til første bilde er tegnet; da skjules HTML-versjonen under det.
   Uten JavaScript, eller med redusert bevegelse, vises bare HTML-versjonen. */
canvas[data-rive] { visibility: hidden; }
canvas.rive-klar { visibility: visible; }

.brand { position: relative; }
.brand canvas { position: absolute; left: 0; top: 50%; width: 30px; height: 30px; translate: 0 -50%; pointer-events: none; }
.brand:has(> canvas.rive-klar) > img { visibility: hidden; }

/* Merket på «Prøv selv»-kortet (finnes bare som animasjon) */
.brief-merke { position: absolute; z-index: 2; top: -84px; right: -60px; width: 188px; height: 188px; }

/* Tjenestekortene: lerretet dekker illustrasjonen med litt luft til skygger (mål i em, som illustrasjonen) */
.v-rive { position: absolute; pointer-events: none; }
.v-web .v-rive { left: -2em; bottom: -2.25em; width: 39em; height: 17.75em; }
.v-app .v-rive { left: -.5em; top: 2.096em; width: 18em; height: 31.25em; }
.v-shop .v-rive { left: -2em; top: -2em; width: 22em; height: 21.262em; }
.v-sys .v-rive { left: -2em; top: -2em; width: 26em; height: 17.5em; }
.v-ops .v-rive { left: -2em; top: -1em; width: 25em; height: 16.239em; }
.v:has(> .v-rive.rive-klar) > :not(canvas, .v-tags, .v-os) { visibility: hidden; }

/* Bjørni i live: glir over fra bildet */
.bjorni-rive {
  position: absolute; z-index: 3; left: 1%; bottom: -5%; width: clamp(96px, 10.5vw, 157px); aspect-ratio: 280 / 360;
  filter: drop-shadow(0 18px 22px rgb(15 38 64 / .28)); opacity: 0; transition: opacity .4s; cursor: pointer;
}
.bjorni-rive.rive-klar { opacity: 1; }
.mascot { transition: opacity .4s; }
.case-visual:has(> .bjorni-rive.rive-klar) > .mascot { opacity: 0; animation: none; }

@media (max-width: 720px) {
  .brief-merke { top: -64px; right: -10px; width: 120px; height: 120px; }
}
/* ---------- Egne sider (lages av kilde/bygg.py) ----------
   På undersidene er seksjonsoverskriften sidens h1, og rutenettet fra forsiden ligger øverst. */
.head h1, .about-text h1, .faq-intro h1, .contact h1 { font-size: clamp(2.6rem, 1.3rem + 4.6vw, 4.75rem); line-height: 1; letter-spacing: -.045em; }
.about h1, .faq-intro h1, .contact h1 { margin-top: 20px; }
.contact h1 em { color: var(--accent-hi); }
.underside { position: relative; isolation: isolate; }
.underside::before {
  content: ""; position: absolute; inset: -140px 0 auto; z-index: -1; height: 760px; pointer-events: none;
  background:
    linear-gradient(rgb(14 15 18 / .05) 1px, transparent 1px) center top / 64px 64px,
    linear-gradient(90deg, rgb(14 15 18 / .05) 1px, transparent 1px) center top / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 30%, transparent 78%);
}
.nav-links a[aria-current="page"] { background: rgb(14 15 18 / .06); color: var(--ink); }
.nav.open .nav-links > :nth-child(7) { animation-delay: .24s; }
.nav.open .nav-links > :nth-child(8) { animation-delay: .28s; }
.faq-list details a { color: var(--ink); text-underline-offset: 3px; }
.form legend small { font-weight: 400; color: var(--muted); }

/* Hakeliste og krysseliste (tjenester og gründer) */
.sjekk, .kryss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.sjekk li, .kryss li { position: relative; padding-left: 32px; color: var(--muted); }
.sjekk li::before, .kryss li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); }
.sjekk li::after, .kryss li::after {
  content: ""; position: absolute; left: 6px; top: calc(.15em + 6px); width: 10px; height: 10px; background: var(--accent);
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}
.kryss li::before { background: var(--line-2); }
.kryss li::after { left: 7px; top: calc(.15em + 7px); width: 8px; height: 8px; background: var(--muted); -webkit-mask-image: var(--kryss); mask-image: var(--kryss); }

/* Tjenester: hva du får */
.detaljer { border-top: 1px solid var(--line); }
.detalj {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px clamp(32px, 6vw, 96px);
  padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line);
}
.detalj h3 { display: flex; align-items: baseline; gap: 16px; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.04em; }
.detalj h3 span { font: italic 400 .8em/1 var(--serif); letter-spacing: 0; color: var(--accent); }
.detalj > div > p { max-width: 34em; font-size: 1.1rem; color: var(--ink-2); }

/* Kort med ikon (løfter og fordeler) */
.fordeler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fordeler.fire { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fordeler li {
  padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.fordeler li:hover { transform: translateY(-4px); border-color: #dcd8d2; box-shadow: var(--shadow); }
.fordel-ikon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.fordel-ikon svg { width: 24px; height: 24px; }
.fordeler h3 { margin-top: 22px; font-size: 1.3rem; letter-spacing: -.025em; }
.fordeler p { margin-top: 8px; font-size: 1rem; color: var(--muted); }

/* Avslutningen «Klar for å bygge noe sammen?» og gründerfeltet ligger tett på innholdet rundt */
.promo-seksjon, .cta-seksjon { padding-block: clamp(20px, 3vw, 40px); }
.cta-seksjon:last-child { padding-bottom: clamp(80px, 9vw, 128px); }
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; gap: 18px; text-align: center;
  padding: clamp(44px, 7vw, 96px) clamp(24px, 5vw, 64px); border-radius: 32px; background: var(--ink); color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -500px; width: 960px; height: 960px; translate: -50% 0;
  background: radial-gradient(closest-side, rgb(255 74 46 / .36), transparent);
}
.cta-band h2 em { color: var(--accent-hi); }
.cta-band > p { max-width: 30em; font-size: 1.125rem; color: rgb(255 255 255 / .72); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 14px; }
.cta-mail { font-weight: 500; text-underline-offset: 5px; text-decoration-color: rgb(255 255 255 / .35); }
.cta-mail:hover { text-decoration-color: var(--accent-hi); }

/* ---------- For gründere ---------- */
.promo {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(36px, 5vw, 72px);
  padding: clamp(28px, 5.5vw, 72px); border-radius: 32px; background: var(--accent); color: #fff;
}
.promo::before {
  content: ""; position: absolute; z-index: -1; right: -240px; top: -340px; width: 780px; height: 780px;
  background: radial-gradient(closest-side, rgb(255 255 255 / .2), transparent);
}
.promo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgb(255 255 255 / .08) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(255 255 255 / .08) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000, transparent 75%);
}
.promo .eyebrow, .promo .eyebrow span { color: #fff; }
.promo h2 { margin-top: 20px; font-size: clamp(2.1rem, 1.2rem + 2.9vw, 3.4rem); }
.promo h2 em { display: block; }
.promo-tekst > p:not(.eyebrow) { max-width: 34em; margin-top: 20px; font-size: 1.125rem; }
.promo .btn { margin-top: 32px; }

/* Eierskapskortet: kaken viser gründerens og vår andel (et eksempel) */
.eierkort {
  justify-self: center; width: min(100%, 340px); padding: 22px 22px 18px;
  border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: 0 2px 6px rgb(14 15 18 / .06), 0 32px 64px -28px rgb(14 15 18 / .45);
  rotate: 2deg; transition: rotate .6s var(--ease);
}
.promo:hover .eierkort { rotate: -1deg; }
.eierkort-topp { display: flex; justify-content: space-between; align-items: center; }
.eierkort-topp strong { font-size: 1.05rem; letter-spacing: -.02em; }
.eierkort-topp small {
  padding: 5px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent);
  font: 500 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.kake { position: relative; width: 168px; margin: 18px auto 16px; view-timeline-name: --kake; }
.kake svg { width: 100%; height: auto; rotate: -90deg; }
.kake circle { fill: none; stroke-width: 15; }
.kake .spor { stroke: var(--line-2); }
.kake .du { stroke: var(--ink); stroke-dasharray: 238.3 400; }                             /* 80 % av omkretsen, minus luft */
.kake .oss { stroke: var(--accent-hi); stroke-dasharray: 57.3 400; stroke-dashoffset: -241.3; } /* 20 % */
.kake-midt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.kake-midt b { font-size: 1.9rem; letter-spacing: -.04em; }
.kake-midt small { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); }
.eierkort-liste { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.eierkort-liste li { display: flex; align-items: center; gap: 10px; }
.eierkort-liste i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.eierkort-liste .oss i { background: var(--accent-hi); }
.eierkort-liste b { margin-left: auto; font-weight: 600; }
.eierkort-fot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: .88rem; color: var(--muted); }
.eierkort-fot b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green); }
.eierkort-fot b::before {
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}
@keyframes andel-inn { from { stroke-dasharray: 0 400; } }

.grunder-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.grunder-hero > * { animation: rise 1s var(--ease) both; }
.grunder-hero > :nth-child(2) { animation-delay: .12s; }
.grunder-tekst h1 { margin-top: 22px; font-size: clamp(2.8rem, 1.2rem + 5.6vw, 5.5rem); line-height: 1; letter-spacing: -.05em; }
.grunder-tekst h1 em { display: block; color: var(--accent); }
.ingress { max-width: 32em; margin-top: 26px; font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--muted); }
.knapper { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.grunder-hero .eierkort { width: min(100%, 380px); rotate: 3deg; }
.grunder-hero .kake .oss { animation: andel-inn 1.4s .5s var(--ease) both; }

.steps.fem { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }

.andel {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: 32px; background: var(--surface);
}
.andel-prosent { margin-top: 18px; font: italic 400 clamp(4.2rem, 2rem + 8vw, 8.5rem)/.9 var(--serif); letter-spacing: -.03em; white-space: nowrap; color: var(--accent); }
.andel-under { max-width: 18em; margin-top: 14px; color: var(--muted); }
.andel-tekst h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); }
.andel-tekst > p { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); }

.passer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.passer-kort { padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.passer-kort.nei { border-style: dashed; background: transparent; }
.passer-kort h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.passer-kort :is(.sjekk, .kryss) { grid-template-columns: 1fr; }
.passer-lenke { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.passer-lenke a { color: var(--ink); text-underline-offset: 3px; }

.lofter { display: grid; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.lofter li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.lofter li::before {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--accent-hi);
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .kake .oss { animation: andel-inn linear both; animation-timeline: --kake; animation-range: entry 30% cover 50%; }
    .grunder-hero .kake .oss { animation: andel-inn 1.4s .5s var(--ease) both; animation-timeline: auto; }
  }
}

@media (max-width: 1100px) {
  .fordeler.fire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.fem { grid-template-columns: 1fr; gap: 44px; padding: 0 0 0 48px; }
  .steps.fem::before, .steps.fem::after { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .steps.fem::after { transform-origin: top; animation-name: fill-y; }
  .steps.fem .step::before { top: 4px; left: -48px; }
}

@media (max-width: 960px) {
  .promo, .grunder-hero, .andel, .detalj, .passer, .fordeler { grid-template-columns: minmax(0, 1fr); }
  .promo .eierkort { justify-self: start; }
}

@media (max-width: 600px) {
  .fordeler.fire, .sjekk { grid-template-columns: minmax(0, 1fr); }
}