/* ==========================================================================
   Kundeassistent1 – stilark
   Farger fra logoen: marineblå #001F5A, blå #0072FE og hvit. Font: DM Sans.
   ========================================================================== */

/* DM Sans ligger på eget domene (lisens: SIL Open Font License, se fonts/OFL.txt).
   Variabel font med akser for vekt og optisk størrelse. latin dekker norsk;
   latin-ext lastes bare hvis siden inneholder tegn utenfor vanlig latin. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reservefonter med mål tilpasset DM Sans (målt i nettleseren), så teksten
   hopper minst mulig i det DM Sans er ferdig lastet.
   Brødtekst: DM Sans er ca. 3,9 % bredere enn Arial. Store titler: ca. 6,5 % smalere. */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 500;
  size-adjust: 103.9%;
  ascent-override: 95.5%;
  descent-override: 29.8%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 700;
  size-adjust: 102%;
  ascent-override: 97.3%;
  descent-override: 30.4%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "DM Sans Display Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 700;
  size-adjust: 93.5%;
  ascent-override: 106.1%;
  descent-override: 33.2%;
  line-gap-override: 0%;
}

:root {
  --navy: #001F5A;
  --blue: #0072FE;            /* merkefargen: detaljer, ikoner og større flater */
  --blue-ink: #0064DF;        /* samme blå, litt mørkere: tekst og knapper (5,4:1 mot hvit) */
  --blue-ink-hover: #0050B5;
  --blue-50: #EEF4FF;
  --blue-100: #DCE8FF;
  --blue-200: #C2D7FF;
  --blue-300: #9CC2FF;

  --text: #24345B;
  --muted: #4A5878;
  --line: #DFE6F1;
  --line-strong: #C3CEE2;
  --soft: #F4F7FC;
  --bubble: #EEF3FB;
  --white: #FFFFFF;
  --on-navy: #C9D6EE;

  --font: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "DM Sans", "DM Sans Display Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --radius-lg: 24px;
  --shadow-float: 0 1px 2px rgb(0 31 90 / 0.06), 0 28px 56px -24px rgb(0 31 90 / 0.3);
}

/* ---------- Grunnlag ---------- */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  flex-shrink: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--blue-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-ink-hover);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: var(--blue-100);
  color: var(--navy);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 12px;
  left: 16px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  color: var(--white);
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Knapper ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.8em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue-ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-small {
  min-height: 44px;
  padding: 0.55em 1.25em;
  font-size: 0.975rem;
}

/* ---------- Topp ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  padding: 6px 0;
  border-radius: 6px;
}

.brand img {
  width: 200px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  padding: 0;
  list-style: none;
}

.nav-list a:not(.btn) {
  padding: 10px 2px;
  border-radius: 4px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:not(.btn):hover {
  color: var(--blue-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 959px) {
  .brand img {
    width: 168px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-right: -4px;
    padding: 8px 16px 8px 12px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    font-size: 0.975rem;
    font-weight: 600;
    cursor: pointer;
  }

  .nav-toggle .icon {
    width: 18px;
    height: 18px;
  }

  .nav-toggle .icon-close,
  .nav-toggle[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 24px 32px -24px rgb(0 31 90 / 0.25);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .nav-cta {
    margin-top: 20px;
  }

  .nav-cta .btn {
    width: 100%;
    min-height: 52px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px);
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 0.975rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-100);
}

.hero h1,
.section h2,
.notfound h1 {
  font-family: var(--font-display);
}

.hero h1 {
  font-size: clamp(2.5rem, 1.35rem + 3.9vw, 4.125rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-phone {
  margin-top: 22px;
  color: var(--muted);
}

.hero-phone a {
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}

.hero-phone a:hover {
  color: var(--blue-ink);
}

@media (max-width: 959px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    max-width: 640px;
  }
}

@media (max-width: 479px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Chatdemo ---------- */

.demo {
  width: 100%;
  max-width: 640px;
  justify-self: end;
}

@media (max-width: 959px) {
  .demo {
    justify-self: start;
  }
}

.scene {
  /* Chatvinduet tar mesteparten av bredden; resten viser den tegnede nettsiden bak */
  --panel-w: clamp(290px, 58cqw, 340px);
  --strip-w: calc(100cqw - var(--panel-w) - 64px);
  position: relative;
  height: clamp(560px, 74vh, 640px);
  container-type: inline-size;
  isolation: isolate;
}

/* Lys flate bak nettleservinduet */
.scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 56px -24px -24px 56px;
  border-radius: 28px;
  background: var(--blue-50);
}

/* Nettleservinduet med den tegnede nettsiden */
.browser {
  position: absolute;
  inset: 0 0 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-float);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.browser-arrows {
  display: flex;
  gap: 2px;
  color: #9aa7c2;
}

.browser-arrows svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.browser-url {
  display: flex;
  flex: 0 1 280px;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.browser-url svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #7a88a6;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.browser-url i {
  display: block;
  flex: 1;
  max-width: 120px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}

.mock-site {
  position: relative;
  flex: 1;
  padding: 22px 24px;
}

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mock-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mock-logo svg {
  width: 16px;
  height: 16px;
  fill: var(--blue);
}

.mock-links {
  display: flex;
  gap: 10px;
}

.mock-links i {
  display: block;
  width: 30px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}

.mock-hero {
  width: 42%;
  width: clamp(96px, var(--strip-w), 46%);
  margin-top: 44px;
}

.mock-hero i,
.mock-hero span {
  display: block;
  border-radius: 4px;
}

.mock-h {
  height: 14px;
  background: var(--navy);
}

.mock-h + .mock-h {
  margin-top: 8px;
}

.mock-p {
  height: 7px;
  margin-top: 10px;
  background: var(--line);
}

.mock-h + .mock-p {
  margin-top: 20px;
}

.mock-short {
  width: 64%;
}

.mock-btn {
  width: 104px;
  height: 28px;
  margin-top: 22px;
  border-radius: 999px !important;
  background: var(--blue);
}

.mock-art {
  position: absolute;
  bottom: 22px;
  left: 20px;
  width: min(240px, 42%);
  width: clamp(104px, var(--strip-w), 232px);
  height: auto;
}

.art-tiles {
  fill: none;
  stroke: #e3e9f4;
  stroke-width: 1.5;
}

.art-line {
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.art-white {
  fill: var(--white);
}

.art-cabinet {
  fill: var(--bubble);
}

.art-floor {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
}

.art-fill {
  fill: var(--navy);
}

.art-pipe,
.art-pipe-inner {
  fill: none;
  stroke-linejoin: round;
}

.art-pipe {
  stroke: var(--navy);
  stroke-width: 11;
}

.art-pipe-inner {
  stroke: var(--white);
  stroke-width: 6;
}

.art-drop {
  fill: var(--blue);
}

.art-puddle {
  fill: var(--blue-100);
  stroke: var(--blue);
  stroke-width: 1.5;
}

.art-tap,
.art-lever {
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-tap {
  stroke-width: 5;
}

.art-lever {
  stroke-width: 4;
}

/* Selve chatvinduet, nede i hjørnet */
.chat {
  position: absolute;
  z-index: 2;
  top: 96px;
  right: 20px;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  width: min(340px, calc(100% - 40px));
  width: var(--panel-w);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 2px 6px rgb(0 31 90 / 0.08), 0 28px 60px -16px rgb(0 31 90 / 0.38);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--navy);
}

.chat-head img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
}

.chat-title {
  min-width: 0;
}

.chat-name {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b8d2ff;
  font-size: 12.5px;
  line-height: 1.3;
}

.chat-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fa2ff;
}

.chat-x {
  width: 20px;
  height: 20px;
  margin-left: auto;
  fill: none;
  stroke: #b8d2ff;
  stroke-width: 2;
  stroke-linecap: round;
}

.chat-body {
  flex: 1;
  min-height: 0;
  padding: 14px 14px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.chat-body:focus-visible {
  outline-offset: -3px;
}

.chat-time {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.msg-user {
  align-items: flex-end;
}

.msg > p {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.42;
}

.msg-bot > p {
  border-bottom-left-radius: 5px;
  background: var(--bubble);
  color: var(--navy);
}

.msg-user > p {
  border-bottom-right-radius: 5px;
  background: var(--blue-ink);
  color: var(--white);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1.5px solid var(--blue-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.chip-call svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.booking {
  width: 92%;
  padding: 14px 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  background: var(--white);
}

.booking-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.booking-title svg {
  width: 22px;
  height: 22px;
}

.booking-title circle {
  fill: var(--blue);
}

.booking-title path {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking dl {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.35;
}

.booking dl div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
}

.booking dt {
  color: var(--muted);
}

.booking dd {
  color: var(--navy);
  font-weight: 500;
}

.booking-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.4;
}

.typing {
  display: none;
  gap: 4px;
  width: fit-content;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  background: var(--bubble);
}

.typing.is-visible {
  display: flex;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d8dae;
  animation: typing-dot 1.1s ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}

.chat-field {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-size: 14px;
  white-space: nowrap;
}

.chat-placeholder {
  color: #5f6c88;
}

.chat-field.is-typing .chat-placeholder {
  display: none;
}

.chat-field.is-typing .chat-typed::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1.15em;
  margin-left: 1px;
  background: var(--navy);
  vertical-align: -0.2em;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.chat-send {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
}

.chat-send svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.launcher {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 10px 24px -8px rgb(0 31 90 / 0.55);
}

.launcher svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Animasjon: meldinger som ikke er vist ennå, er skjult for øyet,
   men leses fortsatt opp av skjermlesere. */
.msg.is-pending {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.msg.is-entering {
  animation: msg-in 0.38s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.demo.is-paused .typing span,
.demo.is-paused .chat-typed::after {
  animation-play-state: paused;
}

.demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.demo-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px 8px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.demo-control[hidden] {
  display: none;
}

.demo-control:hover {
  border-color: var(--navy);
}

.demo-control .icon {
  display: none;
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.demo-control .icon-play path {
  fill: currentColor;
  stroke: none;
}

.demo-control[data-state="playing"] .icon-pause,
.demo-control[data-state="paused"] .icon-play,
.demo-control[data-state="done"] .icon-replay {
  display: block;
}

@media (max-width: 599px) {
  .scene {
    height: auto;
  }

  .scene::before,
  .browser,
  .launcher {
    display: none;
  }

  .chat {
    position: relative;
    inset: auto;
    width: 100%;
    height: 540px;
  }
}

/* ---------- Felles for seksjoner ---------- */

.section {
  padding-block: clamp(72px, 9vw, 128px);
}

.section-soft {
  background: var(--soft);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section h2 {
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.section-lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

/* ---------- Hva chatboten gjør ---------- */

.trades {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 3px solid var(--blue-200);
  color: var(--navy);
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.feature {
  padding-block: 26px 30px;
  border-top: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.feature p {
  max-width: 36em;
  margin-top: 8px;
  color: var(--muted);
}

.questions {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--soft);
}

.questions h3 {
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.questions-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.question-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.question-list li {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.question-list li:nth-child(even) {
  padding-left: clamp(12px, 3vw, 32px);
}

.q {
  min-width: 0;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.4;
}

.q-time {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .questions {
    position: static;
  }
}

/* ---------- Slik fungerer det: tre steg koblet sammen med et rør ---------- */

.steps {
  --node: 56px;
  --gap: clamp(28px, 4vw, 56px);
  --pipe: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

/* Røret fra dette steget til det neste */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - var(--pipe) / 2);
  left: calc(var(--node) / 2);
  width: calc(100% + var(--gap));
  height: var(--pipe);
  background: var(--blue-100);
}

/* Muffen midt på røret */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 12px);
  left: calc(var(--node) / 2 + (100% + var(--gap)) / 2 - 9px);
  width: 18px;
  height: 24px;
  border-radius: 4px;
  background: var(--blue-200);
  box-shadow: inset 0 0 0 2px var(--blue-300);
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--soft);
}

.step h3 {
  margin-top: 28px;
  font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.step p {
  max-width: 30em;
  margin-top: 10px;
  color: var(--muted);
}

@media (max-width: 799px) {
  .steps {
    --gap: 44px;
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    min-height: var(--node);
    padding-left: calc(var(--node) + 22px);
  }

  .step-num {
    position: absolute;
    top: 0;
    left: 0;
  }

  .step h3 {
    margin-top: 12px;
  }

  .step:not(:last-child)::before {
    top: calc(var(--node) / 2);
    left: calc(var(--node) / 2 - var(--pipe) / 2);
    width: var(--pipe);
    height: calc(100% + var(--gap));
  }

  .step:not(:last-child)::after {
    top: calc(100% + var(--gap) / 2 - 9px);
    left: calc(var(--node) / 2 - 12px);
    width: 24px;
    height: 18px;
  }
}

/* ---------- Nettsider ---------- */

.web-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.web-text .section-head {
  margin-bottom: 36px;
}

.web-points {
  display: grid;
  padding: 0;
  list-style: none;
}

.web-points li {
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.web-points li:last-child {
  border-bottom: 1px solid var(--line);
}

.web-points h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.web-points p {
  margin-top: 6px;
  color: var(--muted);
}

/* Tegnet mobil */
.web-art {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 40px;
  isolation: isolate;
}

.web-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14% 2% 4%;
  border-radius: 28px;
  background: var(--blue-50);
}

.phone {
  width: min(280px, 100%);
  padding: 10px;
  border-radius: 40px;
  background: var(--navy);
  box-shadow: var(--shadow-float);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 18px 18px 22px;
  overflow: hidden;
  border-radius: 31px;
  background: var(--white);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.phone-menu {
  display: grid;
  gap: 3px;
}

.phone-menu i {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--navy);
}

.phone-art {
  width: 100%;
  height: auto;
  margin-top: 18px;
}

.art-roof {
  fill: var(--blue-100);
}

.phone-h,
.phone-p {
  display: block;
  border-radius: 4px;
}

.phone-h {
  height: 12px;
  margin-top: 18px;
  background: var(--navy);
}

.phone-h + .phone-h {
  margin-top: 7px;
}

.phone-p {
  height: 6px;
  margin-top: 9px;
  background: var(--line);
}

.phone-h + .phone-p {
  margin-top: 16px;
}

.phone-short {
  width: 62%;
}

.phone-btn {
  display: block;
  margin-top: 20px;
  padding: 10px;
  border-radius: 999px;
  background: var(--blue-ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.phone-btn-ghost {
  margin-top: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--navy);
  color: var(--navy);
}

.phone-launcher {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 2px var(--navy), 0 10px 22px -6px rgb(0 31 90 / 0.45);
}

.phone-launcher img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

@media (max-width: 899px) {
  .web-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .web-art {
    padding-block: 24px 0;
  }
}

/* ---------- Personvern ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.privacy-text h3 {
  margin-top: 40px;
  font-size: 1.25rem;
  font-weight: 650;
}

.privacy-text h3 + p {
  margin-top: 10px;
}

.privacy-text p + p {
  margin-top: 14px;
}

.datasheet {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(0 31 90 / 0.05);
}

.datasheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 2px solid var(--navy);
}

.datasheet-head h3 {
  font-size: 1.125rem;
  font-weight: 650;
}

.datasheet-tag {
  padding: 4px 10px;
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.datasheet dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 4px 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.datasheet dl > div:last-child {
  border-bottom: 0;
}

.datasheet dt {
  color: var(--muted);
  font-size: 0.96875rem;
}

.datasheet dd {
  color: var(--navy);
  font-weight: 600;
}

.datasheet small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

@media (max-width: 899px) {
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  .datasheet dl > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .datasheet-head,
  .datasheet dl > div {
    padding-inline: 18px;
  }
}

/* ---------- Kontakt ---------- */

.section-navy {
  background: var(--navy);
  color: var(--on-navy);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-navy .section-lead {
  color: var(--on-navy);
}

.section-navy :focus-visible {
  outline-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.price {
  max-width: 34em;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}

.price h3 {
  font-size: 1.25rem;
  font-weight: 650;
}

.price p {
  margin-top: 10px;
}

.contact-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
}

.contact-card :focus-visible {
  outline-color: var(--blue);
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.monogram {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-50);
  box-shadow: inset 0 0 0 2px var(--blue-100);
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-name {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.contact-place {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-list {
  display: grid;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.contact-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.875rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.contact-link {
  color: var(--navy);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.contact-email {
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.375rem);
}

.contact-link:hover {
  color: var(--blue-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.copy-btn {
  min-height: 40px;
  padding: 6px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn[hidden] {
  display: none;
}

.copy-btn:hover {
  border-color: var(--navy);
}

.copy-status {
  min-height: 1.5em;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 899px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Bunn ---------- */

.site-footer {
  padding-block: 56px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.96875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
}

.footer-brand img {
  width: 200px;
}

.footer-brand p {
  max-width: 22em;
  margin-top: 14px;
  color: var(--muted);
}

.footer-nav ul {
  display: grid;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.footer-nav a,
.footer-contact a {
  display: inline-block;
  padding-block: 4px;
  color: var(--navy);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--blue-ink);
  text-decoration: underline;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 2px;
}

.footer-contact p:first-child {
  padding-block: 4px;
  color: var(--navy);
  font-weight: 600;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Streken følger innholdet, ikke margen */
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  border-top: 1px solid var(--line);
}

/* 404-siden har bare bunnlinjen */
.footer-bottom:first-child {
  margin-top: 0;
  padding-top: 0;
}

.footer-bottom:first-child::before {
  display: none;
}

@media (max-width: 759px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 459px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 404 ---------- */

.notfound {
  padding-block: clamp(64px, 12vw, 160px);
}

.notfound h1 {
  font-size: clamp(2.5rem, 1.35rem + 3.9vw, 4.125rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.notfound-art {
  display: block;
  width: min(260px, 70%);
  height: auto;
  margin-bottom: 32px;
}

.notfound .eyebrow {
  display: flex;
}

/* ---------- Tilpasninger ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Hele samtalen vises med en gang */
  .msg.is-pending {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
}

@media (forced-colors: active) {
  .msg p,
  .q,
  .booking,
  .chips span,
  .chat,
  .datasheet,
  .contact-card {
    border: 1px solid CanvasText;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .nav-list,
  .nav-toggle,
  .skip-link,
  .demo-control {
    display: none !important;
  }

  .section-navy {
    background: none;
    color: var(--text);
  }

  .section-navy h2,
  .section-navy h3 {
    color: var(--navy);
  }
}
