/* Tilskuddslista. Lys først, mørk via prefers-color-scheme.
   Tokens øverst; komponenter under. Ingen rammeverk. */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap;
  src: url(/fonts/schibsted.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap;
  src: url(/fonts/schibsted-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --sunk: #eaeef4;
  --ink: #0f1d33;
  --ink-2: #3f4d63;
  --ink-3: #66748a;
  --line: #d9dfe8;
  --line-2: #c3ccd9;
  --brand: #0b4ea2;
  --brand-hi: #093f84;
  --on-brand: #ffffff;
  --brand-wash: #e3edfa;
  --soon: #b9410d;
  --soon-wash: #fdeadc;
  --ok: #0f6b45;
  --focus: #0b4ea2;
  --shadow: 0 1px 2px rgba(15, 29, 51, .06), 0 8px 24px -12px rgba(15, 29, 51, .18);
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1322; --surface: #121c2f; --sunk: #0e1727;
    --ink: #edf1f8; --ink-2: #b5c0d2; --ink-3: #8b99ae;
    --line: #243350; --line-2: #33456a;
    --brand: #6aa5f5; --brand-hi: #8bbcf8; --on-brand: #07182f; --brand-wash: #14284a;
    --soon: #ff9f6b; --soon-wash: #3a2114;
    --ok: #55c998; --focus: #8bbcf8;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 28px -14px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Topp */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.25rem; height: 4rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 2rem; height: 2rem; flex: none; }
.logo, .main a { white-space: nowrap; }
.main { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.main a { text-decoration: none; padding: .5rem .8rem; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.main a:hover { background: var(--sunk); color: var(--ink); }
.main a[aria-current] { color: var(--ink); background: var(--sunk); }
.main .go { background: var(--brand); color: var(--on-brand); margin-left: .35rem; }
.main .go:hover { background: var(--brand-hi); color: var(--on-brand); }

/* Hero */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
h1 { margin: 0; font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.lede { margin: 1.1rem 0 0; font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 34rem; text-wrap: pretty; }
.facts { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); margin: 2rem 0 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; }
.facts b { font-size: clamp(2.4rem, 4.6vw, 3.4rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.facts span { color: var(--ink-2); font-size: .95rem; margin-top: .35rem; max-width: 11rem; line-height: 1.3; }
.cta-hero { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.4rem;
  border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: var(--on-brand); font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-hi); border-color: var(--brand-hi); }
.btn:active { transform: translateY(1px); }
.btn.alt { background: transparent; color: var(--brand); }
.btn.alt:hover { background: var(--brand-wash); }
.btn svg { width: 1.1em; height: 1.1em; }

/* Neste frister-panel (selve produktet i hero) */
.next { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: .5rem 1.25rem 1rem; }
.next h2 { margin: 0; padding: 1rem 0 .5rem; font-size: 1.05rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.next h2 a { font-weight: 600; font-size: .95rem; color: var(--brand); }
.next ol { list-style: none; margin: 0; padding: 0; }
.mini { display: grid; grid-template-columns: 3.25rem 1fr auto; gap: .9rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); }
.mini .nm { font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .gv { display: block; color: var(--ink-3); font-size: .9rem; font-weight: 400; margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .am { font-weight: 700; font-size: .95rem; text-align: right; white-space: nowrap; }
.strip { margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.strip-bars { display: flex; align-items: flex-end; gap: 2px; height: 2.6rem; }
.strip-bars i { flex: 1; min-width: 0; height: 3px; background: var(--line-2); border-radius: 2px; transform-origin: bottom; }
.strip-bars i.has { background: var(--brand); }
.strip-bars i.has.soon { background: var(--soon); }
.strip-lab { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .85rem; color: var(--ink-3); }

/* Datoflis */
.date { width: 3.25rem; text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: .3rem 0 .25rem; background: var(--surface); line-height: 1; }
.date b, .facts b, .plan b { font-variant-numeric: tabular-nums; }
.date b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.date em { display: block; font-style: normal; font-size: .8rem; color: var(--ink-2); margin-top: .15rem; font-weight: 600; }
.date.soon { border-color: var(--soon); background: var(--soon-wash); }
.date.soon em { color: var(--soon); }
.date.none { display: grid; place-items: center; height: 3.4rem; color: var(--ink-3); }
.date.none svg { width: 1.5rem; height: 1.5rem; }
.when { font-weight: 650; font-size: .92rem; color: var(--ink-2); }
.when.soon { color: var(--soon); }

/* Filtre */
.filters { padding: 1.25rem 0 .25rem; border-top: 1px solid var(--line); }
.search { position: relative; display: block; margin-bottom: 1.1rem; }
.search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 1.25rem; height: 1.25rem; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; min-height: 3.25rem; padding: .7rem 1rem .7rem 3rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line-2); border-radius: 999px; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-wash); }
.fgroup { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; align-items: start; margin-bottom: .75rem; }
.fgroup > span { padding-top: .55rem; font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 2.5rem; padding: .35rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface);
  cursor: pointer; font-weight: 600; font-size: .98rem; color: var(--ink); transition: background .12s, border-color .12s; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip.fold { border-style: dashed; color: var(--brand); }
.count { margin: 1.1rem 0 .75rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--ink-2); }
.count b { color: var(--ink); font-weight: 750; }
.count button { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; padding: .25rem; font-weight: 600; }

/* Liste */
.list, .cal { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: clip; }
.row { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) 13rem; gap: 1.1rem 1.4rem; padding: 1.15rem 1.4rem; border-top: 1px solid var(--line); align-items: start; }
.list > .row:first-child, .cal > .row:first-child { border-top: 0; }
.row h2, .item h2 { margin: 0; font-size: 1.12rem; line-height: 1.28; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.row h2 a, .item h2 a { text-decoration: none; }
.row h2 a:hover, .item h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.giver { margin: .2rem 0 0; color: var(--ink-2); font-size: .97rem; }
.who { margin: .45rem 0 0; color: var(--ink-3); font-size: .95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 46rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .7rem 0 0; }
.tags li { font-size: .84rem; padding: .12rem .6rem; border-radius: 999px; background: var(--sunk); color: var(--ink-2); font-weight: 550; }
.side { text-align: right; display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }
.amt { font-weight: 750; font-size: 1.05rem; line-height: 1.25; }
.amt.txt { font-weight: 450; font-size: .92rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.amt small { display: block; font-weight: 400; color: var(--ink-3); font-size: .85rem; margin-bottom: .1rem; }
.apply { margin-top: .35rem; color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.apply svg { display: inline; width: .95em; height: .95em; vertical-align: -.1em; margin-left: .2rem; }

/* Låste rader */
.row.locked { background: var(--sunk); }
.row.locked .date { background: transparent; }
.bar { display: block; height: .95rem; border-radius: 6px; background: var(--line-2); opacity: .55; margin: .25rem 0; }
.bar.w1 { width: min(22rem, 85%); height: 1.1rem; } .bar.w2 { width: min(14rem, 55%); }
.lock-ic { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-3); font-size: .85rem; }
.lock-ic svg { width: .95rem; height: .95rem; }

.row.locked:nth-last-child(2) { border-bottom: 0; }
.fade { height: 5rem; margin-top: -5rem; position: relative; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }

/* Oppgradering */
.gate { padding: clamp(1.5rem, 3.5vw, 2.5rem); border-top: 1px solid var(--line); background: var(--brand-wash); }
.gate-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.gate h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.gate ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.gate li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; align-items: start; }
.gate li svg { width: 1.3rem; height: 1.3rem; color: var(--ok); margin-top: .15rem; }
.plans { display: grid; gap: .75rem; }
.plan { display: flex; flex-direction: column; gap: .2rem; padding: 1.05rem 1.25rem; border-radius: var(--r-m); border: 2px solid var(--brand);
  background: var(--surface); text-decoration: none; position: relative; }
.plan b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.plan b small { font-size: 1rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.plan span { color: var(--ink-2); font-size: .95rem; }
.plan.best { background: var(--brand); color: var(--on-brand); }
.plan.best span, .plan.best b small { color: color-mix(in srgb, var(--on-brand) 82%, transparent); }
.plan:hover { box-shadow: var(--shadow); }
.plan.best:hover { background: var(--brand-hi); border-color: var(--brand-hi); }
.fine { margin: .25rem 0 0; font-size: .92rem; color: var(--ink-2); }

/* Bånd */
.band { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem 3rem; }
.band h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.025em; line-height: 1.15; font-weight: 800; text-wrap: balance; }
.band p { margin: 0 0 .8rem; color: var(--ink-2); max-width: 40rem; }
.band a { color: var(--brand); font-weight: 600; }

/* Frister */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.page-head .lede { max-width: 38rem; }
.page-head .strip { max-width: 44rem; margin-top: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.25rem; background: var(--surface); }
.day { display: grid; grid-template-columns: 10rem minmax(0, 1fr); border-top: 1px solid var(--line); }
.cal > .day:first-of-type, .month + .day { border-top: 0; }
.day-h { padding: 1.2rem 0 1.2rem 1.4rem; }
.day-h b { display: block; white-space: nowrap; font-size: 1.85rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.day-h span { display: block; color: var(--ink-2); font-size: .9rem; font-weight: 600; margin-top: .3rem; }
.day-h .when { display: block; margin-top: .2rem; font-size: .88rem; }
.day-rows { min-width: 0; }
.day-rows .item { padding: 1.15rem 1.4rem 1.15rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: .5rem 1.4rem; }
.day-rows .item:first-child { border-top: 0; }
.month { margin: 0; padding: .7rem 1.4rem; background: var(--sunk); font-size: .95rem; font-weight: 750; text-transform: capitalize; color: var(--ink-2); border-top: 1px solid var(--line); position: sticky; top: 4rem; z-index: 2; }
.month:first-child { border-top: 0; }
.more { padding: 1.4rem; border-top: 1px solid var(--line); background: var(--brand-wash); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
.more p { margin: 0; font-weight: 650; }
.empty { padding: 2.5rem 1.4rem; color: var(--ink-2); text-align: center; }
.empty b { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: .3rem; }
.empty button { margin-top: 1rem; }

footer.foot { padding: 0 0 3rem; color: var(--ink-3); font-size: .92rem; }
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* Mobil */
@media (max-width: 56rem) {
  .hero .wrap, .gate-in, .band .wrap { grid-template-columns: 1fr; }
  .hero .wrap { gap: 2rem; }
  .row { grid-template-columns: 3.25rem minmax(0, 1fr); padding: 1.05rem 1rem; gap: .75rem 1rem; }
  .side { grid-column: 2; text-align: left; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: baseline; }
  .amt small { display: inline; margin-right: .3rem; }
  .apply { margin: 0; }
  .day { grid-template-columns: 1fr; }
  .day-h { padding: 1rem 1rem .25rem; display: flex; align-items: baseline; gap: .75rem; }
  .day-h b { font-size: 1.5rem; }
  .day-h span, .day-h .when { margin: 0; }
  .day-rows .item { padding: 1rem; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .day-rows .item:first-child { border-top: 0; padding-top: .5rem; }
  .day-rows .item .side { grid-column: 1; }
  .month { padding: .6rem 1rem; }
  .more { padding: 1.1rem 1rem; }
}
@media (max-width: 34rem) {
  html { font-size: 106%; }
  .wrap { width: min(var(--wrap), 100% - 2rem); }
  .main a:not(.go) { display: none; }
  .main a { padding: .45rem .6rem; font-size: .92rem; }
  .main .go { margin-left: 0; padding: .5rem .85rem; }
  .logo { gap: .45rem; } .logo svg { width: 1.75rem; height: 1.75rem; }
  .top .wrap { gap: .5rem; }
  .logo span { font-size: 1.1rem; }
  .facts { gap: 1.25rem; }
  .facts span { max-width: 8.5rem; }
  .fgroup { grid-template-columns: 1fr; gap: .35rem; }
  .fgroup > span { padding-top: 0; }
  .mini { grid-template-columns: 3.25rem 1fr; }
  .mini .am { grid-column: 2; text-align: left; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .strip-bars i { animation: grow .7s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i) * 14ms); }
  @keyframes grow { from { transform: scaleY(.1); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
