/* CheckRaise — felles stil, retning «Definisjonen».
   Farger og skrift ligger som variabler øverst, så profilen kan justeres på ett sted.
   Skriftene (Newsreader og Schibsted Grotesk, begge SIL Open Font License) ligger
   i /assets/fonts, så siden henter ingenting fra andre tjenester. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --paper: #fbfaf7;   /* Papir */
  --panel: #f3f0ea;
  --ink: #1a1a1a;     /* Blekk */
  --muted: #625e58;   /* Grafitt */
  --line: #e6e2da;
  --accent: #24473a;  /* Filt */
  --accent-ink: #fbfaf7;
  --band: #24473a;
  --band-ink: #f3efe7;
  --band-muted: #b9c9c0;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 76rem;
  --text: 44rem;
  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(4rem, 9vw, 7rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121412;
    --panel: #1a1d1b;
    --ink: #ece9e3;
    --muted: #a7a29a;
    --line: #2a2e2b;
    --accent: #8fbba8;
    --accent-ink: #0f1a15;
    --band: #1b2d26;
    --band-ink: #ece9e3;
    --band-muted: #a9bdb3;
  }
}

*,
*::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(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 2; background: var(--paper); padding: 6px 10px; }

/* Topp */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.mark { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; letter-spacing: -0.015em; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.top nav .nav-cta { border: 1px solid var(--ink); padding: 0.55rem 1rem; }
.top nav .nav-cta:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* Typografi */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(3rem, 8.5vw, 5.75rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 500; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.5; color: var(--muted); max-width: 36rem; }

.arrow { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.arrow svg { flex: none; transition: transform 0.2s ease; }
.arrow:hover svg { transform: translateX(4px); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 2px; padding: 0.95rem 1.5rem; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }

/* Forside */
.hero { padding-top: clamp(4rem, 14vh, 9rem); padding-bottom: clamp(3.5rem, 10vh, 6.5rem); }
.hero .lead { margin: 1.75rem 0 2.25rem; }

.band { background: var(--band); color: var(--band-ink); }
.band .wrap { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.band blockquote { margin: 0; max-width: 52rem; }
.band blockquote p { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.75rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
.band .note { color: var(--band-muted); margin: 1.5rem 0 0; max-width: 34rem; }

.block { padding-top: var(--section); padding-bottom: calc(var(--section) * 0.6); }
.block + .block { border-top: 1px solid var(--line); }
.intro { color: var(--muted); max-width: 34rem; margin-bottom: 2.5rem; }

/* Gratis sjekk */
.split { display: grid; gap: 3rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 1.35rem; color: var(--accent); line-height: 1.25; }
.steps li > * { grid-column: 2; }
.steps h3 { font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }

.form { background: var(--panel); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.92rem; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 0.8rem 0.9rem; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .btn { justify-self: start; margin-top: 0.4rem; }
.form .small { font-size: 0.88rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Pris */
.tiers { display: grid; gap: 3rem; margin-bottom: 2.5rem; }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tier { border-top: 1px solid var(--ink); padding-top: 1.75rem; }
.tier h3 { font-size: clamp(2rem, 3.5vw, 2.5rem); margin-bottom: 0.6rem; }
.amount { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 1rem; }
.amount span { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.tier-def { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; margin-bottom: 1.25rem; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; color: var(--muted); }
.tier li { padding-left: 1.4rem; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.7rem; height: 1px; background: var(--accent); }
.fine { color: var(--muted); max-width: var(--text); }

/* Prissiden */
@media (min-width: 1000px) { .tiers.three { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.tier .sum { margin: 1.25rem 0 0.25rem; font-size: 0.95rem; color: var(--muted); }
.tier .terms { margin: 0; font-size: 0.95rem; color: var(--muted); }
.tier .cta { margin: 1.5rem 0 0; }
.group { font-size: 1.5rem; margin: 2.5rem 0 0.5rem; }
.pricelist { border-top: 1px solid var(--line); }
.pricelist .row { display: grid; gap: 0.25rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .pricelist .row { grid-template-columns: 1fr 13rem; } }
.pricelist h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; margin: 0 0 0.2rem; }
.pricelist .row p { margin: 0; color: var(--muted); max-width: 40rem; }
.pricelist .row .p { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; }
@media (min-width: 760px) { .pricelist .row .p { text-align: right; } }
.pricelist .row .p span { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }

/* Det vi gjør */
.services { margin: 0; }
.services div { display: grid; gap: 0.35rem 3rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.services div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .services div { grid-template-columns: 14rem 1fr; } }
.services dt { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
.services dd { margin: 0; color: var(--muted); max-width: 38rem; }

/* Hvem står bak */
.about { max-width: 38rem; font-size: 1.15rem; }

.contact .email { font-family: var(--serif); font-size: clamp(1.6rem, 4.5vw, 2.5rem); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }

/* Undersider: spørsmål, personvern, takk */
.page-head { padding-top: clamp(3rem, 10vh, 6rem); padding-bottom: 2.5rem; }
.page-head > *, .faq-group > *, .prose > *, .cta-end > * { max-width: var(--text); }
.page-head .lead { margin-top: 1.25rem; }
.faq-group { padding-top: 3rem; padding-bottom: 1.5rem; }
.faq-group h2 { font-size: 1.6rem; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-family: var(--sans); font-weight: 300; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 0 1.4rem; color: var(--muted); max-width: 40rem; }
details > div p:last-child { margin-bottom: 0; }
.cta-end { padding-top: 3.5rem; padding-bottom: 2rem; }
.cta-end p { font-family: var(--serif); font-size: 1.5rem; }

.prose { padding-bottom: 3rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }

/* Bunn */
.foot { border-top: 1px solid var(--line); margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 2rem; padding-bottom: 3rem; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 1.25rem; }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  .top .wrap { min-height: 68px; }
  .mark { font-size: 1.4rem; }
  .top nav { gap: 1rem; font-size: 0.9rem; }
  .top nav .hide-s { display: none; }
  .form .btn { justify-self: stretch; text-align: center; }
}
