/* =========================================================
   VOKTEN — designsystem
   Mørkt tema som standard. Semantiske tokens.
   ========================================================= */

:root {
  /* --- rå palett --- */
  --night-900: #08100E;
  --night-800: #0B1412;
  --night-700: #10201C;
  --night-600: #142B25;
  --night-500: #1B3A31;

  --emerald: #3DDC97;
  --emerald-soft: #7BEBBB;
  --emerald-deep: #1E9C68;
  --brass: #C9A227;
  --brass-soft: #E4C566;

  --bone: #F3F0E9;
  --bone-dim: #C8CFCA;
  --bone-mute: #9BA9A3;

  /* --- semantiske tokens --- */
  --bg: var(--night-800);
  --bg-alt: var(--night-700);
  --bg-deep: var(--night-900);
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(61, 220, 151, .32);

  --text: var(--bone);
  --text-dim: var(--bone-dim);
  --text-mute: var(--bone-mute);
  --accent: var(--emerald);
  --accent-ink: #04140D;
  --brass-accent: var(--brass);
  --danger: #FF8A7A;

  /* --- form --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .28);
  --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, .70);
  --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, .85);
  --shadow-glow: 0 0 0 1px rgba(61, 220, 151, .18), 0 24px 60px -28px rgba(61, 220, 151, .35);

  /* --- typografi --- */
  --font-display: "Space Grotesk", "Sora", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Manrope", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(.82rem, .78rem + .18vw, .92rem);
  --step-0: clamp(1rem, .96rem + .22vw, 1.09rem);
  --step-1: clamp(1.14rem, 1.06rem + .38vw, 1.32rem);
  --step-2: clamp(1.4rem, 1.24rem + .72vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.5vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.7rem + 3vw, 4.4rem);

  /* --- layout --- */
  --wrap: 1180px;
  --wrap-narrow: 820px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --topbar-h: 76px;

  /* --- bevegelse --- */
  --spring: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================
   Reset / base
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

a {
  color: var(--accent);
  text-decoration-color: rgba(61, 220, 151, .35);
  text-underline-offset: .22em;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--emerald-soft); text-decoration-color: currentColor; }

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

::selection { background: rgba(61, 220, 151, .28); color: #fff; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .7rem 1.2rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s var(--spring);
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: var(--accent-ink); }

/* Filmkorn — gir dybde uten bilde */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  position: relative;
  z-index: 2;
  padding-block: var(--section-y);
}
.section--problem { background: linear-gradient(180deg, transparent, var(--bg-alt) 22%, var(--bg-alt) 78%, transparent); }
.section--demo { background: radial-gradient(120% 60% at 50% 0%, rgba(61, 220, 151, .07), transparent 62%); }
.section--packages { background: linear-gradient(180deg, transparent, var(--bg-alt) 18%, var(--bg-alt) 82%, transparent); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
  flex: none;
}

.section__title { font-size: var(--step-3); max-width: 20ch; }
.section__lead {
  margin-top: 1.15rem;
  max-width: 58ch;
  color: var(--text-dim);
  font-size: var(--step-1);
  line-height: 1.6;
}

.grad {
  background: linear-gradient(100deg, var(--emerald) 0%, var(--emerald-soft) 40%, var(--brass-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mark { color: var(--accent); }
.only-desktop { display: none; }
@media (min-width: 700px) { .only-desktop { display: initial; } }

/* =========================================================
   Knapper
   ========================================================= */

.btn {
  --btn-bg: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--btn-bg);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgba(61, 220, 151, .65);
}
.btn--primary:hover {
  background: var(--emerald-soft);
  color: var(--accent-ink);
  box-shadow: 0 16px 40px -14px rgba(61, 220, 151, .8);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--sm { padding: .62rem 1.15rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

.btn__spinner { display: none; width: 17px; height: 17px; }
.btn.is-loading { pointer-events: none; opacity: .82; }
.btn.is-loading .btn__spinner {
  display: block;
  border: 2px solid rgba(4, 20, 13, .28);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding-block: .5rem;
}
.link-arrow svg { width: 20px; height: 20px; transition: transform .35s var(--spring); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover svg { transform: translateX(5px); }

/* =========================================================
   Topbar
   ========================================================= */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  transition: height .35s var(--spring), background-color .35s var(--ease),
              backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-compact {
  height: 60px;
  background: rgba(8, 16, 14, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -.02em;
  margin-right: auto;
}
.brand__mark { width: 30px; height: 30px; flex: none; transition: transform .5s var(--spring); }
.brand:hover { color: var(--text); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }

.nav__list { display: flex; align-items: center; gap: .3rem; }
.nav__list a {
  display: block;
  padding: .5rem .78rem;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__list a:hover, .nav__list a.is-current { color: var(--text); background: var(--surface); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--spring), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

@media (max-width: 940px) {
  .topbar__cta { display: none; }
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: var(--topbar-h) 0 auto;
    background: rgba(8, 16, 14, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 1.6rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .35s var(--spring), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__list a { padding: .9rem .4rem; font-size: var(--step-0); border-bottom: 1px solid var(--border); border-radius: 0; }
}

/* =========================================================
   1. Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--topbar-h) + 3.5rem) 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: -10% -5% 0; z-index: 0; pointer-events: none; }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.hero__glow--a {
  width: 62vw; height: 62vw; max-width: 780px; max-height: 780px;
  right: -12%; top: -14%;
  background: radial-gradient(circle, rgba(61, 220, 151, .26), transparent 62%);
}
.hero__glow--b {
  width: 48vw; height: 48vw; max-width: 620px; max-height: 620px;
  left: -14%; bottom: -18%;
  background: radial-gradient(circle, rgba(201, 162, 39, .16), transparent 65%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 220, 151, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 220, 151, .055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(120% 90% at 50% 25%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 25%, #000 20%, transparent 72%);
  will-change: transform;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__title { font-size: var(--step-4); font-weight: 700; letter-spacing: -.035em; }
.hero__lead {
  margin-top: 1.4rem;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: var(--step-1);
  line-height: 1.6;
}
.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.hero__proof {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  color: var(--text-mute);
  font-size: var(--step--1);
}
.hero__proof li { display: flex; align-items: center; gap: .5rem; }
.hero__proof span { color: var(--accent); font-size: .55em; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  translate: -50% 0;
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 3px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* --- 3D-motiv --- */
.hero__scene { perspective: 1200px; perspective-origin: 50% 45%; }
.scene__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--spring);
  will-change: transform;
}
.scene__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.scene__layer svg { width: 100%; height: 100%; }

.scene__layer--shadow {
  width: 62%;
  height: 22%;
  inset: auto 0 6%;
  margin-inline: auto;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .62), transparent 70%);
  filter: blur(18px);
  transform: translateZ(-40px);
}
.scene__layer--map { transform: translateZ(10px) scale(1.04); }
.scene__layer--pins { transform: translateZ(34px); }
.scene__layer--shield {
  transform: translateZ(70px) scale(.6);
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .6));
}
.scene__layer--card {
  transform: translateZ(102px) translate(28%, 24%) scale(.62);
  place-items: end;
}

.pin { animation: pinFloat 5s var(--ease) infinite; transform-origin: center bottom; }
.pin--2 { animation-delay: -1.6s; }
.pin--3 { animation-delay: -3.2s; }
@keyframes pinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.star { animation: starPulse 3.4s var(--ease) infinite; transform-origin: 130px 218px; }
@keyframes starPulse {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.08); }
}

.float-card {
  width: 240px;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(20, 43, 37, .95), rgba(11, 20, 18, .95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  font-size: .82rem;
  animation: cardFloat 6.5s var(--ease) infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-card__top { display: flex; align-items: center; gap: .5rem; color: var(--text-mute); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dot--live { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: livePulse 2.2s infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}
.float-card__stars { color: var(--brass); letter-spacing: .12em; font-size: 1.05rem; margin-top: .45rem; }
.float-card__meta { color: var(--text-dim); margin-top: .1rem; }
.float-card__meta strong { color: var(--text); font-size: 1.05rem; font-family: var(--font-display); }
.float-card__bar { margin-top: .7rem; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.float-card__bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--emerald-deep), var(--emerald)); border-radius: 3px; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: calc(var(--topbar-h) + 2.5rem) 4rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__scene { max-width: 400px; margin-inline: auto; width: 100%; perspective: none; }
  /* Forenklet 3D på mobil: flat, ingen tilt, ingen dybde */
  .scene__stage { transform: none !important; transition: none; }
  .scene__layer--card { display: none; }
  .scene__layer--shield { transform: scale(.58); }
  .scene__layer--map { transform: none; }
  .scene__layer--pins { transform: none; }
  .scroll-hint { display: none; }
}

/* =========================================================
   2. Problemet
   ========================================================= */

.problem-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
.stat-card {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.stat-card__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}
.stat-card__num .vs { font-size: .32em; color: var(--text-mute); font-weight: 500; letter-spacing: 0; vertical-align: middle; margin-inline: .25em; }
.count--dim { color: var(--brass); }
.stat-card h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.stat-card p { color: var(--text-dim); font-size: var(--step--1); line-height: 1.65; }

.pull-quote {
  margin-top: clamp(2.5rem, 5vw, 3.6rem);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--text);
  padding-left: clamp(1rem, 2vw, 1.6rem);
  border-left: 2px solid var(--brass);
  max-width: 34ch;
}

/* =========================================================
   3. Tjenester
   ========================================================= */

.cards {
  margin-top: clamp(2.5rem, 5vw, 3.8rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: start;
}
.card {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(61, 220, 151, .09);
  border: 1px solid rgba(61, 220, 151, .18);
  margin-bottom: 1.3rem;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: var(--step-2); margin-bottom: .7rem; }
.card > p { color: var(--text-dim); font-size: var(--step--1); line-height: 1.7; }
.card em { color: var(--text); font-style: normal; font-weight: 700; }

.ticks { margin-top: 1.15rem; display: grid; gap: .55rem; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--step--1);
  color: var(--text-dim);
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 11px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.trust-box {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-top: 1.4rem;
  padding: .95rem 1.05rem;
  border-radius: var(--r-md);
  background: rgba(201, 162, 39, .07);
  border: 1px solid rgba(201, 162, 39, .26);
  color: var(--brass-soft);
}
.trust-box svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.trust-box p { font-size: .86rem; line-height: 1.55; color: var(--text-dim); }
.trust-box strong { color: var(--brass-soft); font-weight: 700; }

/* =========================================================
   4. Live demo
   ========================================================= */

.demo-tabs {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: inline-flex;
  padding: 5px;
  gap: 3px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: .62rem 1.35rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.demo-tab:hover { color: var(--text); }
.demo-tab.is-active { color: var(--accent-ink); }
.demo-tabs__pill {
  position: absolute;
  z-index: 1;
  top: 5px; left: 5px;
  height: calc(100% - 10px);
  border-radius: var(--r-pill);
  background: var(--accent);
  box-shadow: 0 6px 18px -8px rgba(61, 220, 151, .9);
  transition: transform .45s var(--spring), width .45s var(--spring);
}

.demo-stage {
  margin-top: 2rem;
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 4vw, 3.4rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(90% 70% at 30% 0%, rgba(61, 220, 151, .10), transparent 60%),
    linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-stage:focus-visible { outline-offset: 6px; }

.demo-scene {
  position: relative;
  perspective: 1600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: end;
  gap: clamp(1rem, 3vw, 2.5rem);
}

/* --- Laptop --- */
.device--laptop { transform-style: preserve-3d; }
.laptop {
  transform: rotateX(9deg) rotateY(-11deg) rotateZ(1.5deg);
  transform-style: preserve-3d;
  transition: transform 1s var(--spring);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6));
}
.demo-scene:hover .laptop { transform: rotateX(5deg) rotateY(-6deg) rotateZ(.5deg); }
.laptop__screen {
  border-radius: 14px 14px 4px 4px;
  padding: 9px 9px 12px;
  background: linear-gradient(160deg, #253a34, #101d19);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.laptop__base {
  height: 14px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #22332e, #16241f);
  border: 1px solid rgba(255, 255, 255, .09);
  border-top: 0;
  margin-inline: -2.5%;
  width: 105%;
  display: grid;
  place-items: center;
}
.laptop__notch { width: 62px; height: 4px; border-radius: 0 0 5px 5px; background: rgba(255, 255, 255, .14); }

/* --- Demo-nettsiden --- */
.site {
  --demo: var(--accent);
  --demo-ink: #04140D;
  --demo-bg: #0E1A17;
  border-radius: 7px;
  overflow: hidden;
  background: var(--demo-bg);
  font-size: clamp(.52rem, 1.05vw, .72rem);
  line-height: 1.45;
  transition: background-color .6s var(--ease);
}
.site__bar {
  display: flex; align-items: center; gap: .8em;
  padding: .55em .9em;
  background: rgba(0, 0, 0, .32);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site__dots { display: flex; gap: .35em; }
.site__dots i { width: .55em; height: .55em; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.site__url {
  font-size: .82em;
  color: var(--text-mute);
  background: rgba(255, 255, 255, .06);
  padding: .18em .9em;
  border-radius: 99px;
}
.site__nav {
  display: flex; align-items: center; gap: 1em;
  padding: .85em 1.3em;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site__logo { display: flex; align-items: center; gap: .5em; font-family: var(--font-display); font-weight: 700; font-size: 1.15em; letter-spacing: -.02em; }
.site__logomark {
  width: 1.5em; height: 1.5em;
  border-radius: .42em;
  background: var(--demo);
  display: grid; place-items: center;
  color: var(--demo-ink);
  font-size: .8em;
  font-weight: 700;
  transition: background-color .5s var(--ease);
}
.site__links { margin-left: auto; display: flex; gap: 1.2em; color: var(--text-mute); font-style: normal; }
.site__links i { font-style: normal; }
.site__cta {
  padding: .42em 1.05em;
  border-radius: 99px;
  background: var(--demo);
  color: var(--demo-ink);
  font-weight: 700;
  transition: background-color .5s var(--ease);
}
.site__hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.3em;
  padding: 1.7em 1.3em;
  align-items: center;
}
.site__eyebrow { color: var(--demo); font-size: .82em; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .55em; transition: color .5s var(--ease); }
.site__h1 { font-size: 2em; line-height: 1.08; margin-bottom: .45em; }
.site__sub { color: var(--text-dim); margin-bottom: 1.1em; }
.site__btn {
  display: inline-block;
  padding: .55em 1.3em;
  border-radius: 99px;
  background: var(--demo);
  color: var(--demo-ink);
  font-weight: 700;
  transition: background-color .5s var(--ease);
}
.site__hero-art {
  aspect-ratio: 4 / 3;
  border-radius: .8em;
  border: 1px solid rgba(255, 255, 255, .09);
  background:
    radial-gradient(80% 70% at 30% 20%, color-mix(in srgb, var(--demo) 30%, transparent), transparent 65%),
    linear-gradient(150deg, rgba(255, 255, 255, .07), rgba(0, 0, 0, .25));
  position: relative;
  overflow: hidden;
  transition: background .6s var(--ease);
}
.site__hero-art::after {
  content: "";
  position: absolute;
  inset: 12% 14%;
  border-radius: .5em;
  border: 1px dashed color-mix(in srgb, var(--demo) 45%, transparent);
  opacity: .5;
}
.site__panel {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1.3em;
  padding: 0 1.3em 1.6em;
}
.site__panel h4 {
  font-size: .92em;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--demo);
  margin-bottom: .8em;
  transition: color .5s var(--ease);
}
.site__list ul { display: grid; gap: .5em; }
.site__list li {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding-bottom: .5em;
  border-bottom: 1px dotted rgba(255, 255, 255, .1);
  color: var(--text-dim);
}
.site__list li b { color: var(--text); font-weight: 500; }
.site__list li .price { color: var(--demo); white-space: nowrap; transition: color .5s var(--ease); }
.site__hours dl { display: grid; grid-template-columns: 1fr auto; gap: .45em .8em; color: var(--text-dim); }
.site__hours dt { color: var(--text-mute); }
.site__hours dd { margin: 0; color: var(--text); text-align: right; white-space: nowrap; }

/* --- Telefon / QR-meny --- */
.device--phone { position: relative; justify-self: center; }
.phone {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 9 / 18.5;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(160deg, #2a3d37, #101d19);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .2);
  transform: rotateX(6deg) rotateY(9deg) translateY(-8px);
  transition: transform 1s var(--spring);
}
.demo-scene:hover .phone { transform: rotateX(3deg) rotateY(5deg) translateY(-14px); }
.phone__glow {
  position: absolute;
  inset: 12% -18% -8%;
  z-index: 1;
  background: radial-gradient(closest-side, rgba(61, 220, 151, .22), transparent);
  filter: blur(28px);
}
.phone__screen {
  height: 100%;
  border-radius: 23px;
  overflow: hidden;
  background: #0A1512;
}

.qr {
  --demo: var(--accent);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.1rem .9rem .9rem;
  font-size: .72rem;
  line-height: 1.4;
}
.qr__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.qr__logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--demo);
  color: #04140D;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  flex: none;
  transition: background-color .5s var(--ease);
}
.qr__head strong { display: block; font-family: var(--font-display); font-size: .84rem; letter-spacing: -.01em; }
.qr__head span { color: var(--text-mute); font-size: .68rem; }
.qr__langs { display: flex; gap: .3rem; margin-bottom: .85rem; }
.qr__langs span {
  padding: .15rem .5rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-size: .62rem;
  letter-spacing: .06em;
}
.qr__langs .is-on { background: color-mix(in srgb, var(--demo) 18%, transparent); border-color: color-mix(in srgb, var(--demo) 45%, transparent); color: var(--text); }
.qr__items { display: grid; gap: .55rem; flex: 1; align-content: start; overflow: hidden; }
.qr__items li { border-bottom: 1px dotted rgba(255, 255, 255, .1); padding-bottom: .5rem; }
.qr__items b { display: block; font-weight: 500; font-size: .74rem; }
.qr__items span { color: var(--text-mute); font-size: .64rem; }
.qr__items em { float: right; font-style: normal; color: var(--demo); font-size: .74rem; transition: color .5s var(--ease); }
.qr__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .7rem; border-top: 1px solid var(--border); font-size: .6rem; color: var(--text-mute); }
.qr__badge { padding: .18rem .5rem; border-radius: 99px; background: color-mix(in srgb, var(--demo) 16%, transparent); color: var(--text); }

/* Fade når fane byttes */
.demo-swap { animation: demoSwap .55s var(--spring); }
@keyframes demoSwap {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.demo-note { margin-top: 1.4rem; color: var(--text-mute); font-size: var(--step--1); max-width: 62ch; }

@media (max-width: 860px) {
  .demo-scene { grid-template-columns: 1fr; justify-items: center; perspective: none; }
  .laptop, .phone { transform: none !important; }
  .device--laptop { width: 100%; }
  .phone { margin-top: 1.5rem; }
  .site__hero { grid-template-columns: 1fr; }
  .site__hero-art { display: none; }
  .site__panel { grid-template-columns: 1fr; }
  .site__links { display: none; }
}

/* =========================================================
   5. Pakker
   ========================================================= */

.packages {
  margin-top: clamp(2.5rem, 5vw, 3.8rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: stretch;
}
.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.pkg--featured {
  border-color: var(--border-strong);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(61, 220, 151, .13), transparent 58%),
    linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}
.pkg__flag {
  position: absolute;
  top: -.85rem;
  left: clamp(1.6rem, 3vw, 2.2rem);
  padding: .3rem .85rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.pkg__name { font-size: var(--step-2); }
.pkg__for { margin-top: .5rem; color: var(--text-mute); font-size: var(--step--1); }
.pkg .ticks { margin-top: 1.5rem; margin-bottom: 2rem; }
.pkg__cta { margin-top: auto; width: 100%; }
.pkg__note {
  margin-top: 1.8rem;
  color: var(--text-mute);
  font-size: var(--step--1);
  text-align: center;
}

/* =========================================================
   6. Bransjer
   ========================================================= */

.industries {
  margin-top: clamp(2.5rem, 5vw, 3.8rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
.ind {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.ind__art {
  border-radius: var(--r-md);
  background: radial-gradient(90% 90% at 25% 15%, rgba(61, 220, 151, .12), transparent 62%), rgba(0, 0, 0, .22);
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1.4rem;
}
.ind__art svg { width: 100%; height: auto; }
.ind h3 { font-size: var(--step-1); margin-bottom: .7rem; }
.ind p { color: var(--text-dim); font-size: var(--step--1); line-height: 1.65; }
.ind__gain {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim) !important;
}
.ind__gain span {
  display: block;
  color: var(--brass);
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

/* =========================================================
   7. Slik jobber vi
   ========================================================= */

.timeline { margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.timeline__track {
  position: absolute;
  top: 22px;
  left: 0; right: 0;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.timeline__progress {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--emerald-deep), var(--emerald) 55%, var(--brass));
  border-radius: 2px;
  transition: width .25s linear;
}
.timeline__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.step { position: relative; padding-top: 3.6rem; }
.step::before {
  content: "";
  position: absolute;
  top: 16px; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.step.is-reached::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(61, 220, 151, .16);
}
.step__num {
  position: absolute;
  top: 6px; left: 28px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .13);
  letter-spacing: -.03em;
  transition: color .5s var(--ease);
}
.step.is-reached .step__num { color: rgba(61, 220, 151, .35); }
.step h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.step p { color: var(--text-dim); font-size: var(--step--1); line-height: 1.65; }

@media (max-width: 860px) {
  .timeline__track { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .timeline__progress { width: 2px !important; height: var(--p, 0%); transition: height .25s linear; }
  .timeline__steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .step { padding-top: 0; padding-left: 2.6rem; }
  .step::before { top: 6px; left: 0; }
  .step__num { position: static; display: block; margin-bottom: .3rem; font-size: 1.1rem; }
}

/* =========================================================
   8. FAQ
   ========================================================= */

.faq { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: .7rem; }
.faq__item {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.faq__item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem clamp(1rem, 2.5vw, 1.5rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-0);
  letter-spacing: -.012em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary i {
  position: relative;
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  transition: transform .4s var(--spring), border-color .3s var(--ease);
}
.faq__item summary i::before, .faq__item summary i::after {
  content: "";
  position: absolute;
  inset: 50% 25%;
  height: 1.6px;
  background: var(--accent);
  translate: 0 -50%;
  border-radius: 2px;
  transition: opacity .3s var(--ease);
}
.faq__item summary i::after { rotate: 90deg; }
.faq__item[open] summary i { transform: rotate(180deg); border-color: var(--border-strong); }
.faq__item[open] summary i::after { opacity: 0; }
.faq__body {
  padding: 0 clamp(1rem, 2.5vw, 1.5rem) 1.35rem;
  color: var(--text-dim);
  font-size: var(--step--1);
  line-height: 1.7;
  max-width: 68ch;
}
.faq__item[open] .faq__body { animation: faqIn .4s var(--spring); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   9. Kontakt
   ========================================================= */

.section--contact {
  background:
    radial-gradient(80% 60% at 80% 20%, rgba(61, 220, 151, .10), transparent 60%),
    radial-gradient(60% 50% at 10% 90%, rgba(201, 162, 39, .07), transparent 60%);
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__points { margin-top: 2rem; display: grid; gap: .8rem; }
.contact__points li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--text-dim);
  font-size: var(--step--1);
}
.contact__points svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 1px; }
.contact__direct { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.contact__direct p { color: var(--text-mute); font-size: var(--step--1); margin-bottom: .5rem; }
.contact__phone {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
}
.contact__mail { font-size: var(--step--1); }

.contact__formwrap {
  position: relative;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.05rem; min-width: 0; }
.field label, .field legend {
  display: block;
  margin-bottom: .42rem;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -.005em;
  padding: 0;
}
.req { color: var(--accent); }
.opt { color: var(--text-mute); font-weight: 400; font-size: .78rem; }
.field--fs { border: 0; padding: 0; margin-inline: 0; }

.field input, .field textarea, .field select {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: var(--step-0);
  font-family: inherit;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(155, 169, 163, .65); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(255, 255, 255, .2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, .42);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, .14);
}
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--danger); }
.field.is-invalid input:focus, .field.is-invalid textarea:focus, .field.is-invalid select:focus { box-shadow: 0 0 0 4px rgba(255, 138, 122, .16); }

.select { position: relative; }
.select svg {
  position: absolute;
  right: 1rem; top: 50%;
  translate: 0 -50%;
  width: 20px; height: 20px;
  color: var(--text-mute);
  pointer-events: none;
}
.select select option { background: var(--night-700); color: var(--text); }

.err {
  margin: .38rem 0 0;
  font-size: .8rem;
  color: var(--danger);
  min-height: 0;
  display: none;
}
.field.is-invalid .err { display: block; animation: errIn .3s var(--spring); }
@keyframes errIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; margin: 0 !important; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  padding: 0;
  margin: 0;
}
.chip span {
  display: block;
  padding: .55rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .2);
  color: var(--text-dim);
  font-size: var(--step--1);
  transition: all .25s var(--spring);
}
.chip:hover span { border-color: rgba(255, 255, 255, .22); color: var(--text); }
.chip input:checked + span {
  background: rgba(61, 220, 151, .14);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__legal { margin-top: 1rem; font-size: .78rem; color: var(--text-mute); line-height: 1.55; }

.thanks { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) 0; animation: faqIn .5s var(--spring); }
.thanks__icon { width: 64px; height: 64px; margin: 0 auto 1.4rem; }
.thanks h3 { font-size: var(--step-2); margin-bottom: .8rem; }
.thanks p { color: var(--text-dim); max-width: 44ch; margin-inline: auto; margin-bottom: 1.8rem; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================
   Toast
   ========================================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 150;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: min(92vw, 460px);
  padding: .9rem 1.2rem;
  border-radius: var(--r-md);
  background: rgba(16, 32, 28, .96);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: var(--step--1);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .3s var(--ease), transform .45s var(--spring);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { border-color: rgba(255, 138, 122, .5); }
.toast.is-error .toast__icon { color: var(--danger); }
.toast__icon { width: 22px; height: 22px; flex: none; color: var(--accent); }
.toast__icon svg { width: 100%; height: 100%; }

/* =========================================================
   Footer
   ========================================================= */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.footer__tagline { margin-top: 1rem; color: var(--text-mute); font-size: var(--step--1); max-width: 40ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__cols h2 {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer__cols ul { display: grid; gap: .6rem; }
.footer__cols li, .footer__cols a { font-size: var(--step--1); color: var(--text-dim); text-decoration: none; }
.footer__cols a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: .8rem;
}
.footer__bottom p { margin: 0; }

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}

/* =========================================================
   Bevegelse: reveal + tilt
   ========================================================= */

/* Reveal-effekten aktiveres kun når JS faktisk kjører. Uten <html class="js">
   vises alt innhold som normalt — siden skal aldri kunne bli usynlig. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s var(--ease) calc(var(--i, 0) * 70ms),
    transform .9s var(--spring) calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

.tilt {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(0);
  transition: transform .6s var(--spring), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.tilt.is-tilting { transition: transform .18s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.tilt:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
/* reveal + tilt sammen: reveal styrer transform til det er ferdig */
.js .reveal.tilt { transform: translateY(22px); }
.js .reveal.tilt.is-in { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }

@media (hover: none) {
  .tilt { transform: none !important; }
}

/* =========================================================
   Redusert bevegelse
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  .tilt, .js .reveal.tilt.is-in { transform: none !important; }
  .scene__stage { transform: none !important; }
  .hero__glow, .hero__grid { transform: none !important; }
  .laptop, .phone { transform: none !important; }
  .scroll-hint { display: none; }
}

/* Enkle sider (personvern / vilkår) */
.page { padding-block: calc(var(--topbar-h) + 4rem) 5rem; }
.page h1 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.page h2 { font-size: var(--step-1); margin-top: 2.4rem; margin-bottom: .7rem; }
.page p, .page li { color: var(--text-dim); font-size: var(--step-0); line-height: 1.75; }
.page ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .5rem; margin-bottom: 1em; }
.page .lead { color: var(--text); font-size: var(--step-1); }
.page .updated { color: var(--text-mute); font-size: var(--step--1); }
