/* Nyskift AS – stilark
   Én skrifttype, tre farger: papir, blekk og koboltblå.
   Grått betyr «slik det gjøres i dag». Blått betyr «etter». */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f2ed;
  --paper-dim: #e6e3dc;
  --white: #ffffff;
  --ink: #11151a;
  --ink-soft: #454b53;
  --mute: #5e6062;
  --line: #d5d1c7;
  --accent: #1b3fd6;
  --accent-dark: #1430a8;
  --accent-tint: #e4e9fb;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}

.skip:focus {
  top: 1rem;
  color: var(--paper);
}

/* ---------- Typografi ---------- */

h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36em;
  text-wrap: pretty;
}

.label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  font-size: 1.125rem;
  letter-spacing: 0.09em;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav__links {
  display: none;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 52rem) {
  .nav__links {
    display: flex;
  }
}

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

.hero {
  padding-block: clamp(3.5rem, 8vw, 7rem) var(--section);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero h1 {
  max-width: 11em;
}

.hero .lead {
  margin-top: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Ukekortet i hero */

.week {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.week__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.week__title {
  font-weight: 650;
  font-size: 1.0625rem;
}

.week__list li {
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.week__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9875rem;
}

.week__nums {
  flex: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.was {
  color: var(--mute);
}

.now {
  font-weight: 700;
  color: var(--accent);
}

.arrow {
  color: var(--mute);
  margin-inline: 0.3em;
}

.track {
  position: relative;
  height: 0.5rem;
  margin-top: 0.55rem;
  width: var(--before);
  background: var(--paper-dim);
  border-radius: 1px;
}

.track__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--after);
  background: var(--accent);
  border-radius: 1px;
  animation: skift 1.3s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes skift {
  from {
    width: 100%;
    background: #8f9193;
  }
  to {
    width: var(--after);
    background: var(--accent);
  }
}

.week__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  font-weight: 650;
}

.week__total .week__nums {
  font-size: 1.25rem;
}

.week__note {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--mute);
}

/* ---------- Seksjoner ---------- */

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

.section__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 46rem;
}

.section__head .label {
  color: var(--accent);
}

/* ---------- Eksempler: før og etter ---------- */

.case + .case {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.case__head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  max-width: 44rem;
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-tint);
  color: var(--accent-dark);
}

.chip--plain {
  background: var(--paper-dim);
  color: var(--ink-soft);
}

.case__head p {
  color: var(--ink-soft);
}

.compare {
  display: grid;
  gap: 1rem;
}

@media (min-width: 52rem) {
  .compare {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.panel {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
}

.panel__label {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.panel--before {
  background: var(--paper-dim);
  color: var(--mute);
  border: 1.5px solid transparent;
}

.panel--after {
  background: var(--white);
  border: 1.5px solid var(--ink);
}

.panel--after .panel__label {
  color: var(--accent);
}

.steps {
  counter-reset: steg;
  flex: 1;
}

.steps li {
  counter-increment: steg;
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  padding-block: 0.8rem;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-size: 0.9875rem;
  line-height: 1.45;
}

.steps li::before {
  content: counter(steg);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.875rem;
  opacity: 0.75;
}

.panel--after .steps li {
  border-top-color: var(--line);
}

.steps .t {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9375rem;
}

.panel--after .steps .t {
  color: var(--accent);
}

.panel__total {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid currentColor;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.panel__total span {
  font-size: 0.9375rem;
}

.panel__total strong {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.panel--after .panel__total {
  border-top-color: var(--ink);
}

.panel--after .panel__total strong {
  color: var(--accent);
}

.meter {
  height: 0.5rem;
  margin-top: 1rem;
  background: color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 1px;
}

.meter span {
  display: block;
  height: 100%;
  width: var(--w, 100%);
  background: #8f9193;
  border-radius: 1px;
}

.panel--after .meter {
  background: var(--paper-dim);
}

.panel--after .meter span {
  background: var(--accent);
}

.case__result {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  max-width: 40em;
}

.case__result span {
  font-weight: 400;
  color: var(--ink-soft);
}

.fineprint {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.875rem;
  color: var(--mute);
  max-width: 44rem;
}

/* ---------- Mørkt bånd: ikke alt trenger AI ---------- */

.band {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--section);
}

.band .section__head .label {
  color: #9fb1ff;
}

.band .lead {
  color: #c9ccd1;
}

.band a:hover {
  color: #9fb1ff;
}

.three {
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .three {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .three > * {
    padding-inline: 2rem;
    border-left: 1px solid #343a42;
  }

  .three > *:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

.three h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.three p {
  color: #c9ccd1;
}

.three .eg {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: #9da2a9;
}

/* ---------- Slik går vi fram ---------- */

.process {
  counter-reset: p;
  display: grid;
  gap: 2rem;
}

@media (min-width: 40rem) {
  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
}

@media (min-width: 64rem) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process li {
  counter-increment: p;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--ink);
}

.process li::before {
  content: "0" counter(p);
  display: block;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.process h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.process p {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- Om oss ---------- */

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
  }
}

.prose {
  display: grid;
  gap: 1.1rem;
  max-width: 38em;
}

.prose p {
  color: var(--ink-soft);
}

.prose p:first-child {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Guider ---------- */

.guides {
  display: grid;
  gap: 1rem;
}

@media (min-width: 52rem) {
  .guides {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.guide-link {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.guide-link p {
  color: var(--ink-soft);
}

.guide-link .more {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent);
}

.guide-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.guide-link:hover p {
  color: #c9ccd1;
}

.guide-link:hover .more {
  color: #9fb1ff;
}

/* ---------- Spørsmål og svar ---------- */

.faq {
  max-width: 48rem;
  border-bottom: 1px solid var(--line);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "–";
}

.faq summary:hover {
  color: var(--accent);
}

.faq .answer {
  display: grid;
  gap: 0.8rem;
  padding-bottom: 1.5rem;
  max-width: 40em;
  color: var(--ink-soft);
}

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

.contact {
  background: var(--paper-dim);
}

.contact__direct {
  margin-top: 2rem;
  display: grid;
  gap: 0.35rem;
}

.contact__direct a {
  font-size: 1.25rem;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}

.form__row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 36rem) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid #9a9da1;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form__hint {
  font-size: 0.875rem;
  color: var(--mute);
  flex: 1 1 14rem;
}

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

.site-footer {
  background: var(--ink);
  color: #c9ccd1;
  padding-block: 3rem;
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer .logo {
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  display: grid;
  gap: 0.4rem;
}

.site-footer a:hover {
  color: var(--white);
}

/* ---------- Artikkelsider ---------- */

.article {
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section);
}

.article__inner {
  max-width: 44rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--mute);
  margin-bottom: 2rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
}

.article h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

.article__meta {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--mute);
}

.article .lead {
  margin-top: 1.75rem;
}

.short {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}

.short .label {
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.body {
  margin-top: 3rem;
}

.body > * + * {
  margin-top: 1.15rem;
}

.body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 3.25rem;
  line-height: 1.15;
}

.body h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.body p,
.body li {
  color: #2a3037;
  text-wrap: pretty;
}

.body ul,
.body ol {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.4rem;
}

.body ul {
  list-style: disc;
}

.body ol {
  list-style: decimal;
}

.body li::marker {
  color: var(--accent);
  font-weight: 600;
}

.body a {
  color: var(--accent-dark);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9875rem;
}

.body th,
.body td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.body th {
  font-weight: 650;
  border-bottom: 1.5px solid var(--ink);
}

.cta {
  margin-top: 4rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta p {
  color: #c9ccd1;
  max-width: 34em;
}

.cta .btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.next {
  margin-top: 2.5rem;
  font-size: 1rem;
}

/* ---------- Bevegelse ---------- */

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

  .track__fill {
    animation: none;
  }

  * {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .contact,
  .site-footer {
    display: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.split {
  align-items: start;
}

.split .section__head {
  align-content: start;
}

@media (min-width: 52rem) {
  .three h3 {
    min-height: 2.5em;
  }
}
