/* Arvebro – landingsside
   Layout: marineblå topp med overskrift til venstre og skjemaet som hvitt kort til høyre (på mobil rett under overskriften).
   Én bro-bue binder sammen «Slik fungerer det»; resten er rolig typografi på hvitt og kjølig grått. */
:root {
  --navy: #1a2942;        /* merkefarge, bakgrunn i toppen */
  --navy-deep: #121d31;   /* bunntekst */
  --gold: #c9a227;        /* merkefarge, knapper og detaljer */
  --gold-ink: #85690f;    /* gull som tekst på hvitt (kontrast 5:1) */
  --paper: #ffffff;
  --mist: #f2f4f8;        /* kjølig grå med et snev av marine */
  --ink: #1a2942;
  --muted: #4d596e;
  --line: #dce1e9;
  --on-navy: #ffffff;
  --on-navy-muted: #c3cad6;
  --on-navy-line: rgba(255, 255, 255, 0.14);

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem);

  --wrap: 72rem;
  --radius: 14px;
  color-scheme: light;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-head { background: var(--navy); color: var(--on-navy); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 9px;
}
.brand-mark svg { width: 30px; height: 30px; display: block; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.005em; line-height: 1; }
.head-contact { font-size: var(--step--1); color: var(--on-navy-muted); display: none; }
.head-contact a { color: var(--on-navy); }
@media (min-width: 760px) { .head-contact { display: block; } }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); padding-bottom: 56px; }
.hero-grid {
  display: grid;
  gap: 24px;
  grid-template-areas: "copy" "form" "trust";
  padding-top: 8px;
}
.hero-copy { grid-area: copy; min-width: 0; }
.hero-form { grid-area: form; min-width: 0; }
.hero-trust { grid-area: trust; min-width: 0; }
.hero h1 { font-size: var(--step-4); }
.hero-lede { margin-top: 14px; color: var(--on-navy-muted); font-size: var(--step-0); max-width: 34rem; }

@media (min-width: 960px) {
  .hero { padding-bottom: 88px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 27.5rem;
    grid-template-areas: "copy form" "trust form";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 6vw, 88px);
    row-gap: 40px;
    padding-top: 40px;
  }
  .hero-lede { font-size: var(--step-1); line-height: 1.55; margin-top: 22px; }
}

.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.trust svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.trust strong { display: block; font-weight: 600; color: var(--on-navy); }
.trust span { color: var(--on-navy-muted); font-size: var(--step--1); }
.operator {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--on-navy-line);
  font-size: var(--step--1); color: var(--on-navy-muted); max-width: 34rem;
}
.operator a { color: var(--on-navy); }

/* Skjemakortet */
.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10, 18, 33, 0.25), 0 18px 40px -12px rgba(10, 18, 33, 0.55);
  padding: 22px 16px 10px;
}
.form-card-head { padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.form-card-head h2 { font-size: var(--step-1); }
.form-card-head p { font-size: var(--step--1); color: var(--muted); margin-top: 4px; }
.form-card iframe { display: block; width: 100%; border: 0; min-height: 560px; }
@media (min-width: 480px) { .form-card { padding: 26px 22px 12px; } }

/* ---------- Seksjoner ---------- */
.section { padding-block: 72px; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--mist); border-top: 0; }
.section.alt + .section { border-top: 0; }
@media (min-width: 960px) { .section { padding-block: 104px; } }
.section h2 { font-size: var(--step-3); }
.section-lede { margin-top: 12px; color: var(--muted); max-width: 36rem; }

/* Slik fungerer det – broen */
.steps-head { max-width: 40rem; }
.bridge { margin-top: 48px; }
.bridge-arch { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
.step::before { /* loddrett linje på mobil */
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--gold); opacity: 0.35;
}
.step:last-child::before { display: none; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1;
  font-variant-numeric: lining-nums;
  position: relative; z-index: 1;
}
.step h3 { font-family: var(--text); font-weight: 600; font-size: var(--step-1); line-height: 1.3; padding-top: 8px; }
.step p { grid-column: 2; color: var(--muted); margin-top: 6px; max-width: 26rem; }
.step-who { grid-column: 2; font-size: var(--step--1); color: var(--gold-ink); font-weight: 500; margin-top: 10px; }

@media (min-width: 860px) {
  .bridge { position: relative; margin-top: 56px; }
  .bridge-arch { display: block; position: relative; height: 120px; }
  .bridge-arch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .bridge-arch .arch { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .bridge-arch .deck { fill: none; stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .bridge-arch .hanger { stroke: var(--gold); stroke-opacity: 0.35; stroke-width: 1; vector-effect: non-scaling-stroke; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; margin-top: 0; }
  .step { grid-template-columns: 1fr; text-align: center; padding: 0 20px; justify-items: center; }
  .step::before { display: none; }
  .step-num { position: absolute; left: 50%; transform: translate(-50%, -50%); }
  .step:nth-child(1) .step-num, .step:nth-child(3) .step-num { top: calc(-120px + 55.6px); }
  .step:nth-child(2) .step-num { top: calc(-120px + 20px); }
  .step h3 { padding-top: 28px; }
  .step p, .step-who { grid-column: 1; margin-inline: auto; }
}

/* Hva du får */
.split { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .split-head { position: sticky; top: 32px; align-self: start; }
}
.benefits { margin: 0; padding: 0; display: grid; }
.benefit { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.benefit:last-child { border-bottom: 1px solid var(--line); }
.benefit dt { font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.benefit dd { margin: 0; color: var(--muted); max-width: 34rem; }

/* Dette formidler vi */
.cases { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 640px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cases li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.cases li::before { content: ""; width: 14px; height: 2px; background: var(--gold); margin-top: 0.8em; }
.cases-note {
  margin-top: 28px; padding: 18px 20px;
  background: var(--paper); border-radius: 10px; border: 1px solid var(--line);
  color: var(--muted); max-width: 44rem;
}

/* Hvem står bak */
.about { display: grid; gap: 36px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; } }
.about-text { display: grid; gap: 16px; max-width: 38rem; }
.about-text p { color: var(--muted); }
.about-text p.lead { color: var(--ink); font-size: var(--step-1); line-height: 1.5; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; background: var(--paper); }
.facts div { padding-block: 14px; display: grid; gap: 2px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts-mark { display: flex; align-items: center; gap: 12px; padding-block: 16px 14px; }
.facts-mark .brand-mark { background: var(--navy); border-color: var(--navy); width: 44px; height: 44px; }
.facts-mark .brand-mark svg { width: 34px; height: 34px; }
.facts-mark span { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }

/* FAQ */
.faq { margin-top: 32px; max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 20px; font-weight: 600; font-size: var(--step-1); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 40rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Avsluttende oppfordring */
.closing { background: var(--navy); color: var(--on-navy); }
.closing .wrap { padding-block: 72px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .closing .wrap { grid-template-columns: 1fr auto; padding-block: 88px; } }
.closing h2 { font-size: var(--step-3); }
.closing p { color: var(--on-navy-muted); margin-top: 10px; max-width: 34rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--gold); color: var(--navy);
  font-family: var(--text); font-weight: 600; font-size: var(--step-0);
  padding: 15px 28px; border-radius: 10px; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: #d8b23a; text-decoration: none; }
.button:focus-visible { outline-color: var(--on-navy); }

/* Bunntekst */
.site-foot { background: var(--navy-deep); color: var(--on-navy-muted); font-size: var(--step--1); }
.site-foot .wrap { padding-block: 48px 40px; display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot-cols { display: grid; gap: 28px; }
.foot-cols h2 { font-family: var(--text); font-size: var(--step--1); font-weight: 600; color: var(--on-navy); margin-bottom: 8px; }
.foot-cols p { line-height: 1.7; }
.site-foot a { color: var(--on-navy); }
.foot-base { border-top: 1px solid var(--on-navy-line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--on-navy); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* ---------- Personvernsiden ---------- */
.doc-hero { background: var(--navy); color: var(--on-navy); }
.doc-hero .wrap { padding-block: 24px 56px; }
.doc-hero h1 { font-size: var(--step-4); }
.doc-hero p { margin-top: 12px; color: var(--on-navy-muted); }
.doc { max-width: 44rem; padding-block: 56px 88px; }
.doc section { padding-block: 22px; border-bottom: 1px solid var(--line); }
.doc section:first-child { padding-top: 0; }
.doc h2 { font-size: var(--step-2); margin-bottom: 10px; }
.doc h2 .para { color: var(--gold-ink); font-variant-numeric: lining-nums; margin-right: 0.35em; }
.doc h3 { font-family: var(--text); font-size: var(--step-0); font-weight: 600; margin: 14px 0 4px; }
.doc p, .doc li { color: #2f3a4f; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 10px; }
.doc ul { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.doc li::marker { color: var(--gold-ink); }
.back { display: inline-block; margin-top: 18px; color: var(--on-navy); font-size: var(--step--1); }
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Cookiebot-banner som bunnstripe på mobil (under 768 px). Desktop påvirkes ikke. */
@media (max-width: 767px) {
#CybotCookiebotDialog.CybotEdge { top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; transform: none !important; margin: 0 !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; max-height: 60vh !important; border-radius: 14px 14px 0 0 !important; background: #ffffff !important; color: #1a2942 !important; box-shadow: 0 -6px 24px rgba(0,0,0,.25) !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogHeader { display: none !important; }
#CybotCookiebotDialog.CybotEdge .CybotCookiebotDialogContentWrapper { max-height: none !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBody .CybotCookiebotScrollContainer { min-height: 0 !important; max-height: none !important; padding: 14px 16px 0 !important; border: 0 !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyContent { padding: 0 !important; height: auto !important; max-height: none !important; overflow: visible !important; }
#CybotCookiebotDialog.CybotEdge .CybotCookiebotFader { display: none !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyContentTitle { font-size: 15px !important; margin: 0 0 4px !important; color: #1a2942 !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyContentText { font-size: 13px !important; line-height: 1.45 !important; color: #1a2942 !important; }
#CybotCookiebotDialog.CybotEdge .CybotCookiebotDialogBodyBottomWrapper { margin: 4px 0 0 !important; padding: 0 16px !important; justify-content: flex-start !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyEdgeMoreDetails { justify-content: flex-start !important; margin: 0 !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyEdgeMoreDetailsLink { color: #1a2942 !important; font-size: 13px !important; font-weight: 600 !important; text-decoration: underline !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyEdgeMoreDetailsLink:after { display: none !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogFooter { padding: 10px 16px 14px !important; border: 0 !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogFooter .CybotCookiebotScrollArea { padding: 0 !important; }
/* Tre like knapper på én rad – avvis er like synlig som godta */
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyButtons,
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyButtonsWrapper { display: flex !important; flex-direction: row !important; gap: 8px !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyButtonsWrapper .CybotCookiebotDialogBodyButton { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 11px 6px !important; font-size: 13px !important; white-space: nowrap !important; background: #1a2942 !important; border-color: #1a2942 !important; color: #ffffff !important; border-radius: 6px !important; }
}
