/* Sia-OS site v2, editorial. Static CSS: no external resource, no inline style, no data: URI.
   Compatible with CSP: style-src 'self'; font-src 'self'; img-src 'self'. */

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

:root {
  --paper: #f7f8f7;
  --ink: #182126;
  --stone: #4f5b61;
  --rule: #c7cfd1;
  --accent: #0b5ea4;
  --accent-deep: #084476;
  --focus: #1d4ed8;
  --accent-soft: #e6eef6;
  --tint: #eef2f3;
  --night: #0f1a20;
  --night-ink: #e8eef0;
  --night-stone: #a9b8be;
  --night-accent: #7fb8ec;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
h1, h2, h3, .family-name, .related-link, .related-name, .nav, .lang, .crumbs, .button, .contact-mail, .colophon-links, a[href^="mailto:"], a[href^="http"] { hyphens: manual; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--focus);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

/* ------------------------------------------------------------------ masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: .15rem 0;
  border-radius: 4px;
}
.brand-logo { display: block; width: auto; height: 36px; }

.nav ul, .lang ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav a {
  display: inline-block;
  padding: .3rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); text-decoration: underline; }

.lang ul { gap: .75rem; }
.lang a, .lang span {
  display: inline-block;
  padding: .3rem 0;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.lang a { color: var(--stone); }
.lang a:hover { color: var(--accent); text-decoration: underline; }
.lang [aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.5rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6.5rem);
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(11, 94, 164, .14), transparent 70%),
    radial-gradient(40rem 24rem at 5% 100%, rgba(11, 94, 164, .07), transparent 70%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(24, 33, 38, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 33, 38, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(105deg, transparent 35%, #000 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(11, 94, 164, 0) 70%);
}
.hero h1, .hero .lead, .hero-action { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero .lead { animation-delay: .08s; }
.hero-action { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.35rem, 1.1rem + 5.4vw, 5.4rem);
  line-height: 1.02;
  font-weight: 780;
  letter-spacing: -.028em;
}
.lead {
  max-width: 54ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem);
  line-height: 1.55;
  color: var(--stone);
}
.hero-action { margin-top: 2.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .85rem 1.4rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(24, 33, 38, .12), 0 6px 18px -8px rgba(24, 33, 38, .45);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button::after { content: "\2192"; margin-left: .6rem; transition: transform .2s ease; }
.button:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(11, 94, 164, .2), 0 12px 26px -10px rgba(11, 94, 164, .6);
}
.button:hover::after { transform: translateX(3px); }

/* -------------------------------------------------------------------- blocks */
.block { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.block > .wrap { display: grid; gap: 1.75rem 3rem; grid-template-columns: minmax(0, 1fr); }
.block-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -.012em;
}
.block-head h2::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin-bottom: .9rem;
  border-radius: 2px;
  background: var(--accent);
}
.block-head p { margin-top: .6rem; color: var(--stone); max-width: 30ch; }

/* ------------------------------------------------------------------ families */
.families { border-bottom: 1px solid var(--ink); }
.family { border-top: 1px solid var(--ink); position: relative; transition: background-color .2s ease; }
.family::before {
  content: "";
  position: absolute;
  left: -1rem; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.family:not(.family-other):hover,
.family[open] { background: linear-gradient(90deg, var(--accent-soft), rgba(230, 238, 246, 0) 85%); }
.family:not(.family-other):hover::before,
.family[open]::before { transform: scaleY(1); }

.family summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 1.5rem;
  grid-template-areas:
    "num name toggle"
    ".   line line";
  align-items: baseline;
  gap: .35rem .5rem;
  padding: 1.35rem 0 1.4rem;
}
.family summary::-webkit-details-marker { display: none; }
.family summary::marker { content: ""; }
.family summary:focus-visible { outline-offset: 4px; }

.family-num {
  grid-area: num;
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.family-name {
  grid-area: name;
  font-size: clamp(1.4rem, 1rem + 1.7vw, 2.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.018em;
}
.family-line { grid-area: line; color: var(--stone); max-width: 52ch; }

.family-toggle {
  grid-area: toggle;
  align-self: center;
  justify-self: end;
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink);
  transition: transform .22s ease;
}
.family-toggle::before,
.family-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
}
.family-toggle::after { transform: rotate(90deg); }

.family summary:hover .family-name,
.family[open] .family-name { color: var(--accent); }
.family[open] .family-toggle { transform: rotate(45deg); color: var(--accent); }

.family-body { padding: 0 0 1.9rem 2.75rem; }
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.15rem; max-width: 60rem; }
.service dt { font-weight: 650; }
.service dd { color: var(--stone); max-width: 62ch; }
.family[open] .family-body { animation: rise .35s ease both; }

.family-other .family-static {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 1.5rem;
  grid-template-areas:
    ".   name ."
    ".   line .";
  gap: .35rem .5rem;
  padding: 1.35rem 0 1.4rem;
}
.family-other .family-name { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }

/* --------------------------------------------------------------------- steps */
.block:has(.steps) { background: var(--tint); }
.steps { display: grid; gap: 2rem 2.5rem; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 10px;
  border-top: 3px solid var(--accent);
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 33, 38, .06), 0 10px 24px -18px rgba(24, 33, 38, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(24, 33, 38, .08), 0 18px 32px -18px rgba(11, 94, 164, .45); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .35rem; }
.step p { color: var(--stone); }

/* ------------------------------------------------------------------- contact */
.block:has(.contact) {
  border-top: 0;
  color: var(--night-ink);
  background:
    radial-gradient(40rem 22rem at 90% 0%, rgba(127, 184, 236, .16), transparent 70%),
    var(--night);
}
.block:has(.contact) .block-head h2::before { background: var(--night-accent); }
.block:has(.contact) a { color: var(--night-accent); }
.block:has(.contact) a:hover { color: #fff; }
.block:has(.contact) :focus-visible { outline-color: var(--night-accent); }
.contact-intro { max-width: 56ch; color: var(--night-stone); font-size: 1.125rem; }
.contact-mail { margin: 1.5rem 0 1.4rem; }
.block:has(.contact) .contact-mail a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.3rem;
  border-radius: 6px;
  border: 1px solid rgba(127, 184, 236, .45);
  background: rgba(127, 184, 236, .08);
  color: #fff;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.block:has(.contact) .contact-mail a::after { content: "\2192"; transition: transform .2s ease; }
.block:has(.contact) .contact-mail a:hover {
  background: var(--night-accent);
  border-color: var(--night-accent);
  color: var(--night);
  transform: translateY(-1px);
}
.block:has(.contact) .contact-mail a:hover::after { transform: translateX(3px); }
.contact-privacy { font-size: .95rem; color: var(--night-stone); max-width: 60ch; }

/* ---------------------------------------------------------------- legal pages */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal .wrap { max-width: 50rem; }
.legal h1 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -.022em;
}
.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.4rem 0 .6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.legal p, .legal ul { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: .35rem; }
.legal .updated { margin-top: .6rem; color: var(--stone); font-size: .95rem; }
.legal dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem 2rem; margin-bottom: 1rem; }
.legal dt { font-weight: 650; margin-top: .75rem; }
.legal dd { color: var(--stone); }

/* ------------------------------------------------------------- service pages */
.family-more { margin-top: 1.4rem; }
.family-more a { font-weight: 650; }
.family-more a::after { content: " \2192"; }

.block-service { padding: clamp(2.25rem, 5vw, 3.75rem) 0; }
.block-service .block-head h2 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.5rem); }

.hero-page { padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-page h1 {
  max-width: 24ch;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.024em;
}
.hero-page .lead + .lead { margin-top: 1rem; color: var(--ink); }

.crumbs { margin-bottom: 1.5rem; font-size: .95rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--rule); }
.crumbs a { color: var(--stone); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.prose { max-width: 62ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose .note {
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 6px 6px 0;
}

.related { border-bottom: 1px solid var(--ink); }
.related-item {
  display: grid;
  gap: .25rem;
  padding: 1.1rem 0 1.2rem;
  border-top: 1px solid var(--ink);
}
.related-link, .related-name {
  font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.012em;
}
.related-link { color: var(--ink); text-decoration: none; }
.related-link::after { content: " \2192"; color: var(--accent); }
.related-link:hover { color: var(--accent); text-decoration: underline; }
.related-other .related-name { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); }
.related-line { color: var(--stone); max-width: 60ch; }

/* ------------------------------------------------------------------ colophon */
.colophon { border-top: 3px solid var(--accent); padding: 2.25rem 0 2.75rem; font-size: .95rem; color: var(--stone); }
.colophon-grid { display: grid; gap: 1rem 3rem; grid-template-columns: minmax(0, 1fr); }
.colophon-brand { color: var(--ink); max-width: 36ch; }
.nowrap { white-space: nowrap; }
.colophon-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.colophon a { color: var(--ink); }
.colophon a:hover { color: var(--accent); }
.colophon a[aria-current] { color: var(--accent); }

/* --------------------------------------------------------------- breakpoints */
@media (max-width: 24rem) {
  .brand-logo { height: 32px; }
}

@media (min-width: 40rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal dl { grid-template-columns: 15rem minmax(0, 1fr); }
  .legal dt { margin-top: 0; }
  .service { display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); gap: 0 2rem; }
}

@media (min-width: 60rem) {
  .brand-logo { height: 42px; }
  .block > .wrap { grid-template-columns: 15rem minmax(0, 1fr); }
  .family summary {
    grid-template-columns: 2.75rem minmax(0, 1.05fr) minmax(0, 1fr) 1.5rem;
    grid-template-areas: "num name line toggle";
    column-gap: 2rem;
  }
  .family-body { padding-left: 4.75rem; }
  .family-other .family-static {
    grid-template-columns: 2.75rem minmax(0, 1.05fr) minmax(0, 1fr) 1.5rem;
    grid-template-areas: ". name line .";
    column-gap: 2rem;
  }
  .family-line { padding-right: 1.5rem; }
  .related-item { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 2rem; align-items: baseline; }
  .colophon-grid { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
}

@media (min-width: 72rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .step:hover, .button:hover, .contact-mail a:hover { transform: none; }
}

@media print {
  .hero, .block:has(.contact) { background: none; color: var(--ink); }
  .hero::before, .hero::after { display: none; }
  .masthead nav, .skip-link, .family-toggle, .crumbs { display: none; }
  .family-body { padding-left: 0; }
}
