/* Mimir Lineage – the front page of www (B315): tokens, base, the top band and the shared parts.
   The app's look (B79) and the logo's colours; fonts bundled, nothing from third parties (B67). */
@font-face {
  font-family: 'Ubuntu Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/ubuntu-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;
}
@font-face {
  font-family: 'Ubuntu Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/ubuntu-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;
}

:root {
  color-scheme: light;
  --ink: #0b2d4d;
  --muted: #3d5368;
  --paper: #eef1f5;
  --card: #ffffff;
  --border: #dfe3e8;
  --primary: #046395;
  --navy: #0b2d4d;
  --navy-line: #2c5a6e;
  --on-navy: #f3f8fc;
  --on-navy-muted: #c9dbe8;
  --leaf: #78d4ca;
  --teal: #117783;
  --teal-strong: #0b5f69;
  --tint-blue: #d9e9f3;
  --tint-teal: #d6eeec;
  --proven: #1e6b3f;
  --focus: #005fcc;
  --radius: 16px;
  --shadow: 0 24px 50px rgba(11, 45, 77, 0.16);
}
:root[data-theme='dark'] {
  color-scheme: dark;
    --ink: #e2ecf3;
    --muted: #a9bccb;
    --paper: #12161b;
    --card: #1c2229;
    --border: #2f3842;
    --primary: #5bb4e0;
    --teal: #78d4ca;
    --teal-strong: #78d4ca;
    --tint-blue: #1d3a50;
    --tint-teal: #17393a;
    --proven: #6fcf97;
    --focus: #7fb8ff;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Ubuntu Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--card); color: var(--ink); padding: 0.5rem 0.75rem; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer; }
.btn-large { font-size: 17px; padding: 15px 24px; }
.btn-leaf { background: var(--leaf); color: #0b2d4d; font-weight: 700; }
.btn-leaf:hover { background: #9ae2da; }
.btn-outline-dark { border-color: #4d7593; color: var(--on-navy); }
.btn-outline-dark:hover { border-color: var(--leaf); }
.btn-ghost-dark { color: #ffffff; }
.btn-ghost-dark:hover { text-decoration: underline; }

/* The navy band: header and hero. The navy stays in dark mode – it is the logo's ink. */
.hero-band { background: var(--navy); color: var(--on-navy); }
.hero-band a:focus-visible { outline-color: var(--leaf); }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.logo-ink { fill: #f3f8fc; }
.logo-leaf { fill: #78d4ca; }
.top-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; flex: 1 1 auto; }
.top-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.top-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
.top-nav a[aria-current='page'] { color: #ffffff; }
.menu-only, .menu-toggle { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Above the menu button's width the header fits on one line with these gaps (B346) – seven links since «Spør treet» (B383). */
@media (min-width: 1200px) {
  .top, .top-menu, .top-extras { column-gap: 18px; }
  .top-nav { column-gap: 14px; }
}

/* The menu button (B346): up to 1199 px the links, the language, dark mode and the application sit behind ☰ in a panel
   that slides down over the page. Only with the script (data-menu) – without it the header wraps as before. */
@media (max-width: 1199px) {
  .top[data-menu] { position: relative; flex-wrap: nowrap; gap: 10px; }
  .top[data-menu] .brand { flex: 1 1 auto; min-width: 0; }
  .top[data-menu] .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; cursor: pointer;
    border-radius: 10px; border: 1.5px solid var(--navy-line); background: transparent; color: #ffffff;
  }
  .top[data-menu] .menu-close-icon, .top[data-menu='open'] .menu-open-icon { display: none; }
  .top[data-menu='open'] .menu-close-icon { display: block; }
  .top[data-menu='open'] .menu-toggle { border-color: var(--leaf); background: #13395c; }
  .top[data-menu] .menu-toggle:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
  .top[data-menu] .top-menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 24px 20px; background: var(--navy); border-top: 1px solid var(--navy-line); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }
  .top[data-menu='open'] .top-menu { visibility: visible; opacity: 1; transform: none; transition: opacity 0.18s ease, transform 0.18s ease; }
  .top[data-menu] .top-nav { flex-direction: column; gap: 0; font-size: 18px; }
  .top[data-menu] .top-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 0 0 16px; border-bottom: 1px solid var(--navy-line); }
  .top[data-menu] .top-nav a[aria-current='page'] { font-weight: 700; box-shadow: inset 4px 0 0 var(--leaf); }
  .top[data-menu] .top-extras { gap: 10px; margin-top: 16px; }
  .top[data-menu] .top-extras .top-link {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
    border: 1.5px solid var(--navy-line); border-radius: 10px; color: #ffffff;
  }
  .top[data-menu] .menu-only { display: flex; justify-content: center; align-items: center; flex: 1 1 100%; min-height: 48px; }
}
@media (max-width: 1199px) and (prefers-reduced-motion: reduce) { .top[data-menu] .top-menu { transition: none; } }
.top-nav a, .top-link { color: var(--on-navy-muted); text-decoration: none; padding: 8px 0; }
.top-nav a:hover, .top-link:hover { color: #ffffff; text-decoration: underline; }
.theme-toggle { border: 0; background: none; font: inherit; cursor: pointer; }
.theme-toggle::before { content: '\25D0'; margin-right: 6px; }
.theme-toggle[aria-pressed='true'] { color: #ffffff; }

/* Grouped links (B399): «Funksjoner» and «For deg» open a card under the header, each link with a line on what it is.
   The script opens them on a click (aria-expanded); without it, hovering or focusing the group shows the card. On the
   menu panel (≤1199 px) the groups lie open, the group's name above its links. */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; color: var(--on-navy-muted); font: inherit; cursor: pointer; }
.nav-group-button::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease; }
.nav-group-button:hover, .nav-group-button[aria-expanded='true'], .nav-group.current .nav-group-button { color: #ffffff; }
.nav-group-button[aria-expanded='true']::after { transform: translateY(1px) rotate(-135deg); }
.nav-group-button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
.nav-drop {
  position: absolute; top: calc(100% + 8px); left: -16px; z-index: 60; display: none; flex-direction: column; gap: 2px; width: max-content; max-width: 340px;
  padding: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.nav-group:not([data-ready]):hover .nav-drop, .nav-group:not([data-ready]):focus-within .nav-drop, .nav-group-button[aria-expanded='true'] + .nav-drop { display: flex; }
.top-nav .nav-drop a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.top-nav .nav-drop a:hover, .top-nav .nav-drop a:focus-visible { background: var(--tint-teal); color: var(--ink); text-decoration: none; }
.top-nav .nav-drop a[aria-current='page'] { background: var(--tint-blue); color: var(--ink); }
.nav-drop strong { font-size: 15px; font-weight: 700; }
.nav-drop a > span { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.nav-drop .new-tag { display: inline-block; margin-left: 6px; vertical-align: 1px; font-size: 11px; font-weight: 700; color: var(--teal-strong); background: var(--tint-teal); border-radius: 999px; padding: 1px 7px; }
@media (max-width: 1199px) {
  .top[data-menu] .nav-group { flex-direction: column; align-items: stretch; }
  .top[data-menu] .nav-group-button { pointer-events: none; padding: 18px 0 6px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); }
  .top[data-menu] .nav-group-button::after { display: none; }
  .top[data-menu] .nav-drop { position: static; display: flex; width: auto; max-width: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .top[data-menu] .top-nav .nav-drop a { align-items: flex-start; border-radius: 0; padding: 8px 0 8px 16px; min-height: 48px; justify-content: center; color: var(--on-navy); border-bottom: 1px solid var(--navy-line); }
  .top[data-menu] .nav-drop strong { font-size: 18px; font-weight: 500; }
  .top[data-menu] .top-nav .nav-drop a:hover { background: #13395c; }
  .top[data-menu] .top-nav .nav-drop a[aria-current='page'] { background: none; box-shadow: inset 4px 0 0 var(--leaf); }
  .top[data-menu] .nav-drop a > span { color: var(--on-navy-muted); }
}

.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 88px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--leaf); border: 1.5px solid var(--navy-line); border-radius: 999px; padding: 6px 14px; }
.pill-badge .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--leaf); }
.hero h1 { margin: 0 0 22px; font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; color: #ffffff; }
.hero h1 .accent { display: block; color: var(--leaf); }
.hero-lead { margin: 0 0 32px; font-size: 20px; color: var(--on-navy-muted); max-width: 31rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-shots { flex: 1 1 560px; min-width: 0; position: relative; padding-bottom: 72px; }
.window { margin: 0; background: #f3f8fc; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); border: 1px solid var(--navy-line); }
.window img { display: block; width: 100%; height: auto; }
.window-bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: #dfe7ee; }
.window-bar span:not(.window-url) { width: 10px; height: 10px; border-radius: 5px; background: #b9c6d2; }
.window-url { margin-left: 10px; font-size: 12px; color: #3d5368; background: #ffffff; border-radius: 6px; padding: 3px 10px; }
.window-light { box-shadow: var(--shadow); border-color: var(--border); }
.hero-excerpt { position: absolute; left: -24px; right: 36%; bottom: 0; margin: 0; background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4); border: 1px solid #c9d6e0; }
.hero-excerpt img { display: block; width: 100%; height: auto; }
.hero-caption { position: absolute; right: 0; bottom: 10px; margin: 0; max-width: 33%; font-size: 13px; color: var(--on-navy-muted); text-align: right; }
@media (max-width: 720px) {
  .hero-shots { padding-bottom: 0; }
  .hero-excerpt { position: static; margin-top: 14px; }
  .hero-caption { position: static; max-width: none; text-align: left; margin-top: 10px; }
}

/* Shared section parts */
.section { padding-top: 80px; padding-bottom: 24px; }
.kicker { margin: 0 0 10px; font-weight: 700; font-size: 14px; color: var(--teal); letter-spacing: 0.04em; }
.display { margin: 0 0 14px; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.display-small { margin: 0 0 10px; font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.lead { margin: 0 0 26px; font-size: 18px; color: var(--muted); max-width: 44rem; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; }
.chip { font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--card); color: var(--ink); }
.chip[aria-selected='true'] { background: var(--navy); border-color: var(--navy); color: #ffffff; }
