/* Sankva forside – felles stil (designpakken, pakke 11).
   Lyst tema er standard her; mørkt følger systemvalget (prefers-color-scheme).
   Skrift er selvhostet (OFL, se fonts/), ingen eksterne kall. */

@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: "Lato";
  src: url("../fonts/lato-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  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: "Lato";
  src: url("../fonts/lato-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Sankva-tokens (designpakken, samme verdier som appen).
   Forest #183B32, ivory #F5F1E9, sand #D8C5A8, charcoal #262822.
   Terrakotta #B65B40 bare på store flater (--flate); tekst i aksentfarge bruker --brand-text (#99462F lys / #E7A58D mørk). */
:root {
  color-scheme: light dark;
  --bg: #F5F1E9;
  --bg-alt: #FFFFFF;
  --bg-tone: #EFE9DE;
  --ink: #262822;
  --ink-2: #3E4540;
  --muted: #59655D;
  --line: #DED8CB;
  --rule: #77857C;
  --accent: #183B32;
  --accent-hover: #21483D;
  --on-accent: #F5F1E9;
  --brand-text: #99462F;
  --brand-text-hover: #7A3825;
  --focus: #183B32;
  --card: #F5F1E9;
  --flate: #B65B40;
  --ramme: #183B32;
  --serif: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10251F;
    --bg-alt: #183B32;
    --bg-tone: #183B32;
    --ink: #F5F1E9;
    --ink-2: #E4DFD5;
    --muted: #D8D4CA;
    --line: #456258;
    --rule: #8FA89E;
    --accent: #D8C5A8;
    --accent-hover: #E6D8C2;
    --on-accent: #183B32;
    --brand-text: #E7A58D;
    --brand-text-hover: #F0BFAC;
    --focus: #D8C5A8;
    --card: #10251F;
    --flate: #B65B40;
    --ramme: #0B1A16;
  }
}

*, *::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(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { color: var(--brand-text-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Topp */
.topp { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ordmerke {
  font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; min-height: 44px;
}
.ordmerke:hover { color: var(--ink); }
.meny { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; }
.meny a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.meny a:hover { text-decoration: underline; }
.meny .anker { display: none; }
@media (min-width: 880px) { .meny .anker { display: inline-flex; } }
.sprak { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 500; }

.knapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; line-height: 1.2;
}
.knapp-hoved { background: var(--accent); color: var(--on-accent); }
.knapp-hoved:hover { background: var(--accent-hover); color: var(--on-accent); }
.knapp-kant { border: 1.5px solid var(--rule); color: var(--ink); background: transparent; }
.knapp-kant:hover { border-color: var(--ink); color: var(--ink); }
.meny .knapp { min-height: 44px; padding: 8px 18px; font-weight: 500; }

/* Hero */
.hero { padding-top: 32px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-tekst { flex: 1 1 100%; min-width: 0; }
.hero h1 { max-width: 15em; }
/* Uten bilde i hero (6.12): på PC mer luft og større overskrift, så teksten fyller bredden uten tomrom til høyre */
@media (min-width: 880px) {
  .hero { padding-top: 64px; padding-bottom: 96px; }
  .hero h1 { font-size: clamp(56px, 5.4vw, 68px); }
  .hero .ingress { font-size: 20px; max-width: 38em; }
}
.hero-bilde { flex: 1 1 300px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bildetekst { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.overtittel { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { margin: 0 0 20px; font-size: clamp(36px, 7vw, 56px); line-height: 1.08; }
.ingress { margin: 0 0 28px; font-size: clamp(17px, 2.2vw, 19px); color: var(--ink-2); max-width: 36em; }
.kun-inviterte { margin: 0 0 24px; font-size: 17px; font-weight: 500; color: var(--ink); max-width: 36em; }
.handling { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center; }
.handling p { margin: 0; font-size: 15px; color: var(--muted); max-width: 30em; }

/* Ekte skjermbilde fra appen (eksempeldata) med tynn ramme. Står under teksten på mobil (rekkefølgen i HTML). */
.skjermbilde { position: relative; display: block; width: 260px; max-width: 100%; height: auto; border: 6px solid var(--ramme); border-radius: 34px; box-shadow: 0 16px 40px rgba(16, 37, 31, 0.22); background: var(--ramme); }

/* Seksjoner */
.seksjon { padding-top: 64px; padding-bottom: 64px; }
.seksjon.hvit { background: var(--bg-alt); }
.seksjon.tone { background: var(--bg-tone); }
h2 { margin: 0 0 12px; font-size: clamp(28px, 4.5vw, 34px); line-height: 1.15; }
.seksjon .forklaring { margin: 0 0 32px; color: var(--ink-2); max-width: 40em; }
h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.seksjon p { margin: 0; color: var(--ink-2); }
.rutenett { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.kort { background: var(--card); border-radius: var(--radius); padding: 24px; }
.seksjon.hvit .kort { border: 1px solid var(--line); }
.kort svg { display: block; margin-bottom: 14px; color: var(--ink); }
.strek { border-top: 1.5px solid var(--rule); padding-top: 16px; }
.mellomrom-topp { margin-top: 36px; }

.to-spalter { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.to-spalter > * { flex: 1 1 380px; min-width: 0; }
.tidslinje { list-style: none; margin: 0; padding: 0; }
.tidslinje li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tidslinje li:last-child { border-bottom: 0; }
.tidslinje strong { color: var(--ink); font-weight: 600; }
.boks { background: var(--bg-tone); border-radius: var(--radius); padding: 28px; }
.boks h2 { font-size: 26px; }
.boks p + p { margin-top: 12px; }

.punkter { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); }
.punkter li { margin: 6px 0; }
.lenker { display: flex; flex-direction: column; gap: 6px; }
.lenker a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

.invitasjon { text-align: center; }
.invitasjon p { margin: 0 auto 24px; max-width: 34em; }
.invitasjon .handling { justify-content: center; }

/* Bunn */
.bunn { padding-top: 28px; padding-bottom: 36px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.bunn a { color: var(--muted); }
.bunn nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.bunn nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Personvern-siden */
.dok { max-width: 760px; }
.dok h1 { font-size: clamp(32px, 5vw, 42px); }
.dok h2 { font-size: 24px; margin-top: 36px; }
.dok h3 { margin-top: 20px; }
.dok p, .dok li { color: var(--ink-2); }
.dok ul { padding-left: 20px; }
.dok li { margin: 6px 0; }
.dok section + section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.meta { font-size: 14px; color: var(--muted); }

/* Små hjelpeklasser (ingen style-attributter i HTML, så en streng CSP virker) */
.null { margin: 0; }
.undertittel { margin: 48px 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.forklaring.tett { margin-bottom: 12px; }
h4 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; }

/* Logo: Sankva primærlogo (lys) / reverslogo (mørk), valgt med <picture> etter tema. */
.ordmerke picture, .ordmerke img { display: block; width: 126px; height: 36px; flex: none; }
.invitasjon .forklaring { margin-left: auto; margin-right: auto; }
.rutenett.fire { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Personvern: «Kort fortalt» og innholdsliste */
.liten-tittel { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.dok h2.liten-tittel { font-size: 15px; margin-top: 0; }
.kort-fortalt { background: var(--bg-tone); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0 24px; }
.kort-fortalt ul { margin: 0; }
.kort-fortalt li { color: var(--ink); }
.innhold { border-left: 2px solid var(--line); padding-left: 18px; margin: 0 0 8px; }
.innhold ol { margin: 0; padding-left: 20px; }
.innhold li { margin: 2px 0; }
.innhold a { display: inline-block; padding: 4px 0; }
.dok h2[id] { scroll-margin-top: 16px; }

/* Hero: to knapper side om side */
.handling p { flex-basis: 100%; }

/* Snarveier i hero, rett under knappene (bare smale skjermer, der toppmenyen skjuler ankerlenkene). Brytes over flere linjer. */
.snarveier { margin-top: 24px; }
.snarveier ul { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.snarveier li { flex: none; }
.snarveier a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt);
  color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap;
}
.snarveier a:hover { border-color: var(--rule); }
@media (min-width: 880px) { .snarveier { display: none; } }
[id] { scroll-margin-top: 12px; }

/* Innlogging som tekstlenke («Har du konto? Logg inn») */
.tekstlenke a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.invitasjon .tekstlenke { margin: 0; }

/* Personvern: «Til toppen» etter hver hoveddel, og kontaktadressen som ren tekst */
.dok .til-toppen { margin: 12px 0 0; font-size: 14px; }
.til-toppen a { display: inline-flex; align-items: center; min-height: 44px; }
.kontakt { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* «Til deg som tester» (test.html, forside-1): rolig tekstlenke (ikke korall) og deler med lite ikon foran overskriften */
.tekstlenke.rolig a { color: var(--ink); font-weight: 500; }
.tekstlenke.rolig a:hover { color: var(--ink-2); }
.tester .ingress { font-size: 18px; margin-top: 12px; }
.tester section + section { margin-top: 48px; }
.dok h2.med-ikon { display: flex; align-items: center; gap: 10px; }
.med-ikon svg { flex: none; color: var(--brand-text); }

/* Test-sidene: «Før – under – etter» som tre små kort (side om side fra 720px), evner som liste (mobil) / kort (PC) */
.emoji { margin: 0 0 10px; font-size: 24px; line-height: 1; }
.faser { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 720px) { .faser { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dok.tester { max-width: 960px; }
.tester > section > p, .tester .punkter { max-width: 42em; }
.dok .faser .kort { background: var(--bg-tone); }
.faser .kort { padding: 20px; }
.dok .faser .kort h3 { margin: 0 0 6px; font-size: 18px; }
.dok .faser .kort p:not(.emoji) { margin: 0; font-size: 15px; line-height: 1.6; }
.dok ul.evner { list-style: none; margin: 16px 0 0; padding: 0; }
.dok ul.evner li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dok ul.evner li:last-child { border-bottom: 0; }
.evner .emoji { margin: 2px 0 0; font-size: 20px; flex: none; }
.evner strong { color: var(--ink); font-weight: 600; }
@media (min-width: 720px) {
  .dok ul.evner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .dok ul.evner li { flex-direction: column; gap: 8px; padding: 18px; border: 0; border-radius: var(--radius); background: var(--bg-tone); font-size: 15px; }
  .evner strong { display: block; margin-bottom: 4px; }
  .evner .skille { display: none; }
  .evner .tekst { display: block; }
  .evner .tekst::first-letter { text-transform: uppercase; }
}
.signatur { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.dok p.signatur { font-size: 22px; color: var(--ink); }

/* Test-sidene: personlig ingress og avslutning */
.tester .avslutning { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.tester .avslutning p { font-size: 18px; line-height: 1.7; }

/* Hero: tre tillitspunkter under knappene */
.tillit { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--ink-2); }
.tillit li { display: inline-flex; align-items: center; gap: 8px; }
.tillit svg { flex: none; color: var(--brand-text); }

/* Bunntekst: kontakt som ren tekst */
.bunn > span { display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; }

/* Personvern: underpunkter, og ord som ikke skal brytes («e-posten», «k…@eksempel.no») */
.dok ul.under { margin: 6px 0 4px; padding-left: 20px; list-style: circle; }
.hel { white-space: nowrap; }

/* Engelske ankre (#how, #ahead, #privacy, #invite); de norske id-ene står igjen som alias */
.alias { display: block; }

/* Forsiden: lys, rolig humorboks ved siden av «Hva skjer framover» (spørsmål i serif, svar i vanlig skrift) */
.husker { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.husker .husker-sporsmal { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 26px); font-weight: 600; line-height: 1.3; color: var(--ink); }
.husker p.husker-svar { margin: 10px 0 0; font-size: 18px; font-weight: 600; color: var(--ink-2); }

/* Testsiden: «Tips for en god start» som fire kort, to og to fra 720px */
@media (min-width: 720px) { .faser.to { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Forsiden: «Før, under og etter reisen – og hjemme» alltid 1, 2 eller 4 kolonner (aldri 3+1) */
.rutenett.fire-deler { grid-template-columns: 1fr; }
@media (min-width: 600px) { .rutenett.fire-deler { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rutenett.fire-deler { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sankva: terrakotta som stor flate bak skjermbildet i hero (bare dekor, ingen tekst på flaten) */
.hero-bilde .skjermbilde { z-index: 1; }
.bilde-flate { position: relative; display: flex; justify-content: center; padding: 28px 0 8px; }
.bilde-flate::before { content: ""; position: absolute; left: 50%; top: 0; width: 280px; height: 72%; transform: translateX(-50%); background: var(--flate); border-radius: 140px 140px 24px 24px; }
.ikon { display: block; }
.slagord { font-family: var(--serif); font-style: italic; }
.dok .faser .kort { background: var(--bg-tone); }
